]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/mount-api-utils: update to recent kernel
authorKarel Zak <kzak@redhat.com>
Thu, 21 Aug 2025 08:16:14 +0000 (10:16 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Aug 2025 08:16:14 +0000 (10:16 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/mount-api-utils.h

index e3552416878fe99734f51077c28447b0f4d20a39..e77db065553a66adb1fb9df633de39678c8c58fc 100644 (file)
@@ -293,7 +293,12 @@ struct ul_statmount {
        uint32_t opt_array;       /* [str] Array of nul terminated fs options */
        uint32_t opt_sec_num;     /* Number of security options */
        uint32_t opt_sec_array;   /* [str] Array of nul terminated security options */
-       uint64_t __spare2[46];
+       uint64_t supported_mask;  /* Mask flags that this kernel supports */
+       uint32_t mnt_uidmap_num;  /* Number of uid mappings */
+       uint32_t mnt_uidmap;      /* [str] Array of uid mappings (as seen from callers namespace) */
+       uint32_t mnt_gidmap_num;  /* Number of gid mappings */
+       uint32_t mnt_gidmap;      /* [str] Array of gid mappings (as seen from callers namespace) */
+       uint64_t __spare2[43];
        char str[];               /* Variable size part containing strings */
 };
 
@@ -355,8 +360,15 @@ struct ul_statmount {
 #ifndef STATMOUNT_OPT_SEC_ARRAY
 # define STATMOUNT_OPT_SEC_ARRAY       0x00000800U   /* Want/got opt_sec... */
 #endif
-
-
+#ifndef STATMOUNT_SUPPORTED_MASK
+# define STATMOUNT_SUPPORTED_MASK      0x00001000U   /* Want/got supported mask flags */
+#endif
+#ifndef STATMOUNT_MNT_UIDMAP
+# define STATMOUNT_MNT_UIDMAP          0x00002000U   /* Want/got uidmap... */
+#endif
+#ifndef STATMOUNT_MNT_GIDMAP
+# define STATMOUNT_MNT_GIDMAP          0x00004000U   /* Want/got gidmap... */
+#endif
 /*
  * Special @mnt_id values that can be passed to listmount
  */