config: remove HAVE___POSIX_ACL_CHMOD
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
This commit is contained in:
parent
e710487950
commit
756542bcc0
|
@ -64,49 +64,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE], [
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl #
|
|
||||||
dnl # 3.1 API change,
|
|
||||||
dnl # posix_acl_chmod() was added as the preferred interface.
|
|
||||||
dnl #
|
|
||||||
dnl # 3.14 API change,
|
|
||||||
dnl # posix_acl_chmod() was changed to __posix_acl_chmod()
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_POSIX_ACL_CHMOD], [
|
|
||||||
ZFS_LINUX_TEST_SRC([posix_acl_chmod], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/posix_acl.h>
|
|
||||||
],[
|
|
||||||
posix_acl_chmod(NULL, 0, 0)
|
|
||||||
])
|
|
||||||
|
|
||||||
ZFS_LINUX_TEST_SRC([__posix_acl_chmod], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/posix_acl.h>
|
|
||||||
],[
|
|
||||||
__posix_acl_chmod(NULL, 0, 0)
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_POSIX_ACL_CHMOD], [
|
|
||||||
AC_MSG_CHECKING([whether __posix_acl_chmod exists])
|
|
||||||
ZFS_LINUX_TEST_RESULT([__posix_acl_chmod], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE___POSIX_ACL_CHMOD, 1,
|
|
||||||
[__posix_acl_chmod() exists])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether posix_acl_chmod exists])
|
|
||||||
ZFS_LINUX_TEST_RESULT([posix_acl_chmod], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_POSIX_ACL_CHMOD, 1,
|
|
||||||
[posix_acl_chmod() exists])
|
|
||||||
],[
|
|
||||||
ZFS_LINUX_TEST_ERROR([posix_acl_chmod()])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl #
|
dnl #
|
||||||
dnl # 3.1 API change,
|
dnl # 3.1 API change,
|
||||||
dnl # posix_acl_equiv_mode now wants an umode_t instead of a mode_t
|
dnl # posix_acl_equiv_mode now wants an umode_t instead of a mode_t
|
||||||
|
@ -373,7 +330,6 @@ AC_DEFUN([ZFS_AC_KERNEL_ACL_HAS_REFCOUNT], [
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_ACL], [
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_ACL], [
|
||||||
ZFS_AC_KERNEL_SRC_POSIX_ACL_RELEASE
|
ZFS_AC_KERNEL_SRC_POSIX_ACL_RELEASE
|
||||||
ZFS_AC_KERNEL_SRC_SET_CACHED_ACL_USABLE
|
ZFS_AC_KERNEL_SRC_SET_CACHED_ACL_USABLE
|
||||||
ZFS_AC_KERNEL_SRC_POSIX_ACL_CHMOD
|
|
||||||
ZFS_AC_KERNEL_SRC_POSIX_ACL_EQUIV_MODE_WANTS_UMODE_T
|
ZFS_AC_KERNEL_SRC_POSIX_ACL_EQUIV_MODE_WANTS_UMODE_T
|
||||||
ZFS_AC_KERNEL_SRC_POSIX_ACL_VALID_WITH_NS
|
ZFS_AC_KERNEL_SRC_POSIX_ACL_VALID_WITH_NS
|
||||||
ZFS_AC_KERNEL_SRC_INODE_OPERATIONS_GET_ACL
|
ZFS_AC_KERNEL_SRC_INODE_OPERATIONS_GET_ACL
|
||||||
|
@ -385,7 +341,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_ACL], [
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_ACL], [
|
AC_DEFUN([ZFS_AC_KERNEL_ACL], [
|
||||||
ZFS_AC_KERNEL_POSIX_ACL_RELEASE
|
ZFS_AC_KERNEL_POSIX_ACL_RELEASE
|
||||||
ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE
|
ZFS_AC_KERNEL_SET_CACHED_ACL_USABLE
|
||||||
ZFS_AC_KERNEL_POSIX_ACL_CHMOD
|
|
||||||
ZFS_AC_KERNEL_POSIX_ACL_EQUIV_MODE_WANTS_UMODE_T
|
ZFS_AC_KERNEL_POSIX_ACL_EQUIV_MODE_WANTS_UMODE_T
|
||||||
ZFS_AC_KERNEL_POSIX_ACL_VALID_WITH_NS
|
ZFS_AC_KERNEL_POSIX_ACL_VALID_WITH_NS
|
||||||
ZFS_AC_KERNEL_INODE_OPERATIONS_GET_ACL
|
ZFS_AC_KERNEL_INODE_OPERATIONS_GET_ACL
|
||||||
|
|
|
@ -231,22 +231,6 @@ zpl_forget_cached_acl(struct inode *ip, int type)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_SET_CACHED_ACL_USABLE */
|
#endif /* HAVE_SET_CACHED_ACL_USABLE */
|
||||||
|
|
||||||
/*
|
|
||||||
* 3.1 API change,
|
|
||||||
* posix_acl_chmod() was added as the preferred interface.
|
|
||||||
*
|
|
||||||
* 3.14 API change,
|
|
||||||
* posix_acl_chmod() was changed to __posix_acl_chmod()
|
|
||||||
*/
|
|
||||||
#ifndef HAVE___POSIX_ACL_CHMOD
|
|
||||||
#ifdef HAVE_POSIX_ACL_CHMOD
|
|
||||||
#define __posix_acl_chmod(acl, gfp, mode) posix_acl_chmod(acl, gfp, mode)
|
|
||||||
#define __posix_acl_create(acl, gfp, mode) posix_acl_create(acl, gfp, mode)
|
|
||||||
#else
|
|
||||||
#error "Unsupported kernel"
|
|
||||||
#endif /* HAVE_POSIX_ACL_CHMOD */
|
|
||||||
#endif /* HAVE___POSIX_ACL_CHMOD */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 4.8 API change,
|
* 4.8 API change,
|
||||||
* posix_acl_valid() now must be passed a namespace, the namespace from
|
* posix_acl_valid() now must be passed a namespace, the namespace from
|
||||||
|
|
Loading…
Reference in New Issue