]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
libfrog: add missing statmount flag definitions
authorAnthony Iliopoulos <ailiop@suse.com>
Wed, 13 May 2026 19:30:38 +0000 (21:30 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 14 May 2026 11:03:23 +0000 (13:03 +0200)
Add definitions for STATMOUNT_MNT_BASIC and STATMOUNT_MNT_POINT to support
compilation of xfs_healer on systems with older kernel headers that predate
the statmount syscall (introduced in v6.8).

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
libfrog/statmount.h

index 7e281ce93029ff9d5f92189df0fa8fe4a3def2e8..b6f1338830a03e1e249215326d8e2609fd085914 100644 (file)
@@ -52,6 +52,14 @@ struct statmount {
 
 /* all the new flags added since the beginning of statmount */
 
+#ifndef STATMOUNT_MNT_BASIC
+#define STATMOUNT_MNT_BASIC            0x00000002U     /* Want/got mnt_... */
+#endif
+
+#ifndef STATMOUNT_MNT_POINT
+#define STATMOUNT_MNT_POINT            0x00000010U     /* Want/got mnt_point */
+#endif
+
 #ifndef STATMOUNT_MNT_NS_ID
 #define STATMOUNT_MNT_NS_ID            0x00000040U     /* Want/got mnt_ns_id */
 #endif