2 dnl # 2.6.39 API change,
3 dnl # The is_owner_or_cap() macro was renamed to inode_owner_or_capable(),
4 dnl # This is used for permission checks in the xattr and file attribute call
7 AC_DEFUN([ZFS_AC_KERNEL_INODE_OWNER_OR_CAPABLE], [
8 AC_MSG_CHECKING([whether inode_owner_or_capable() exists])
9 ZFS_LINUX_TRY_COMPILE([
12 struct inode *ip = NULL;
13 (void) inode_owner_or_capable(ip);
16 AC_DEFINE(HAVE_INODE_OWNER_OR_CAPABLE, 1,
17 [inode_owner_or_capable() exists])
20 AC_MSG_CHECKING([whether is_owner_or_cap() exists])
21 ZFS_LINUX_TRY_COMPILE([
23 #include <linux/sched.h>
25 struct inode *ip = NULL;
26 (void) is_owner_or_cap(ip);
29 AC_DEFINE(HAVE_IS_OWNER_OR_CAP, 1,
30 [is_owner_or_cap() exists])
32 AC_MSG_ERROR(no - Please file a bug report at
33 https://github.com/zfsonlinux/zfs/issues/new)