summaryrefslogtreecommitdiff
path: root/include/uapi/linux/mount.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-11-29 12:27:15 +0100
committerChristian Brauner <brauner@kernel.org>2023-12-14 11:49:17 +0100
commit35e27a5744131996061e6e323f1bcb4c827ae867 (patch)
treeb370f212ae31530a2cdc740b9899ed6613213e95 /include/uapi/linux/mount.h
parentd8b0f5465012538cc4bb10ddc4affadbab73465b (diff)
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/uapi/linux/mount.h')
-rw-r--r--include/uapi/linux/mount.h5
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)
*/