1dnl # 2dnl # 6.0 API change 3dnl # struct iattr has two unions for the uid and gid 4dnl # 5AC_DEFUN([ZFS_AC_KERNEL_SRC_IATTR_VFSID], [ 6 ZFS_LINUX_TEST_SRC([iattr_vfsid], [ 7 #include <linux/fs.h> 8 ], [ 9 struct iattr ia; 10 ia.ia_vfsuid = (vfsuid_t){0}; 11 ia.ia_vfsgid = (vfsgid_t){0}; 12 ]) 13]) 14 15AC_DEFUN([ZFS_AC_KERNEL_IATTR_VFSID], [ 16 AC_MSG_CHECKING([whether iattr->ia_vfsuid and iattr->ia_vfsgid exist]) 17 ZFS_LINUX_TEST_RESULT([iattr_vfsid], [ 18 AC_MSG_RESULT(yes) 19 AC_DEFINE(HAVE_IATTR_VFSID, 1, 20 [iattr->ia_vfsuid and iattr->ia_vfsgid exist]) 21 ],[ 22 AC_MSG_RESULT(no) 23 ]) 24]) 25