File: kernel-iattr-vfsid.m4

package info (click to toggle)
zfs-linux 2.3.4~git20250812.3b64a96-1
  • links: PTS, VCS
  • area: contrib
  • in suites: experimental
  • size: 70,688 kB
  • sloc: ansic: 393,668; sh: 68,068; asm: 47,734; python: 8,160; makefile: 5,125; perl: 859; sed: 41
file content (24 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl #
dnl # 6.0 API change
dnl # struct iattr has two unions for the uid and gid
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_IATTR_VFSID], [
	ZFS_LINUX_TEST_SRC([iattr_vfsid], [
		#include <linux/fs.h>
	], [
		struct iattr ia;
		ia.ia_vfsuid = (vfsuid_t){0};
		ia.ia_vfsgid = (vfsgid_t){0};
	])
])

AC_DEFUN([ZFS_AC_KERNEL_IATTR_VFSID], [
	AC_MSG_CHECKING([whether iattr->ia_vfsuid and iattr->ia_vfsgid exist])
	ZFS_LINUX_TEST_RESULT([iattr_vfsid], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_IATTR_VFSID, 1,
		    [iattr->ia_vfsuid and iattr->ia_vfsgid exist])
	],[
		AC_MSG_RESULT(no)
	])
])