]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
configure: always check for statmount supported_mask
authorAnthony Iliopoulos <ailiop@suse.com>
Wed, 13 May 2026 19:30:37 +0000 (21:30 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 14 May 2026 11:03:23 +0000 (13:03 +0200)
On systems with kernel headers older than v6.8 that preceed the addition
of the statmount syscall, have_listmount will be set to false and thus
checking of the statmount supported_mask is being skipped since the
check is currently conditional to listmount support.

This causes compilation failures since need_internal_statmount will not
be set, and thus struct statmount will not be available to xfs_healer.

Fix this by always checking for statmount supported_mask support even
when listmount is not available.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
configure.ac

index 2ac5e3d8181a6ea425a53256c7b9e5ce60db63d8..fe2ffddd9ec406e02e9dfa4b84997a61e8aa861f 100644 (file)
@@ -192,8 +192,8 @@ AC_HAVE_CLOSE_RANGE
 AC_HAVE_LISTMOUNT
 if test "$have_listmount" = "yes"; then
        AC_HAVE_LISTMOUNT_NS_FD
-       AC_HAVE_STATMOUNT_SUPPORTED_MASK
 fi
+AC_HAVE_STATMOUNT_SUPPORTED_MASK
 AC_HAVE_FANOTIFY_MOUNTINFO
 
 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then