diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-08 03:29:12 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-03-26 09:01:18 +0100 |
commit | 2a82bb02941fb53d1f8df2a360e7798ae3d9d962 (patch) | |
tree | bbc159905c9a051e549d225ecfff31c9b7fe6ec7 /fs/stat.c | |
parent | Linux 6.9-rc1 (diff) | |
download | linux-2a82bb02941fb53d1f8df2a360e7798ae3d9d962.tar.xz linux-2a82bb02941fb53d1f8df2a360e7798ae3d9d962.zip |
statx: stx_subvol
Add a new statx field for (sub)volume identifiers, as implemented by
btrfs and bcachefs.
This includes bcachefs support; we'll definitely want btrfs support as
well.
Link: https://lore.kernel.org/linux-fsdevel/2uvhm6gweyl7iyyp2xpfryvcu2g3padagaeqcbiavjyiis6prl@yjm725bizncq/
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Link: https://lore.kernel.org/r/20240308022914.196982-1-kent.overstreet@linux.dev
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/stat.c')
-rw-r--r-- | fs/stat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/stat.c b/fs/stat.c index 77cdc69eb422..70bd3e888cfa 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -658,6 +658,7 @@ cp_statx(const struct kstat *stat, struct statx __user *buffer) tmp.stx_mnt_id = stat->mnt_id; tmp.stx_dio_mem_align = stat->dio_mem_align; tmp.stx_dio_offset_align = stat->dio_offset_align; + tmp.stx_subvol = stat->subvol; return copy_to_user(buffer, &tmp, sizeof(tmp)) ? -EFAULT : 0; } |