]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-iattr-vfsid.m4
ztest: use ASSERT3P to compare pointers
[FreeBSD/FreeBSD.git] / config / kernel-iattr-vfsid.m4
1 dnl #
2 dnl # 6.0 API change
3 dnl # struct iattr has two unions for the uid and gid
4 dnl #
5 AC_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
15 AC_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 ])