diff options
author | Christian Brauner <brauner@kernel.org> | 2023-11-29 14:27:15 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-12-14 13:49:17 +0300 |
commit | 35e27a5744131996061e6e323f1bcb4c827ae867 (patch) | |
tree | b370f212ae31530a2cdc740b9899ed6613213e95 /include | |
parent | d8b0f5465012538cc4bb10ddc4affadbab73465b (diff) | |
download | linux-35e27a5744131996061e6e323f1bcb4c827ae867.tar.xz |
fs: keep struct mnt_id_req extensible
Make it extensible so that we have the liberty to reuse it in future
mount-id based apis. Treat zero size as the first published struct.
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/mount.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/mount.h b/include/uapi/linux/mount.h index dc9a0112d819..ad5478dbad00 100644 --- a/include/uapi/linux/mount.h +++ b/include/uapi/linux/mount.h @@ -184,10 +184,15 @@ struct statmount { * For listmount(2) @param represents the last listed mount id (or zero). */ struct mnt_id_req { + __u32 size; + __u32 spare; __u64 mnt_id; __u64 param; }; +/* List of all mnt_id_req versions. */ +#define MNT_ID_REQ_SIZE_VER0 24 /* sizeof first published struct */ + /* * @mask bits for statmount(2) */ |