mirror of
https://github.com/openzfs/zfs.git
synced 2026-07-16 17:27:25 +02:00
config: remove HAVE_IDMAP_MNT_API check
The check itself is not needed, since we only use it to decide whether or not to use a define, we can just test the define anyway. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <rob.norris@truenas.com> Closes #18769
This commit is contained in:
committed by
Brian Behlendorf
parent
d09f952c27
commit
63385ed101
@@ -1,29 +1,4 @@
|
||||
dnl # SPDX-License-Identifier: CDDL-1.0
|
||||
dnl #
|
||||
dnl # 5.12 API
|
||||
dnl #
|
||||
dnl # Check if APIs for idmapped mount are available
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_IDMAP_MNT_API], [
|
||||
ZFS_LINUX_TEST_SRC([idmap_mnt_api], [
|
||||
#include <linux/fs.h>
|
||||
],[
|
||||
int fs_flags = 0;
|
||||
fs_flags |= FS_ALLOW_IDMAP;
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([ZFS_AC_KERNEL_IDMAP_MNT_API], [
|
||||
AC_MSG_CHECKING([whether APIs for idmapped mount are present])
|
||||
ZFS_LINUX_TEST_RESULT([idmap_mnt_api], [
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_DEFINE(HAVE_IDMAP_MNT_API, 1,
|
||||
[APIs for idmapped mount are present])
|
||||
],[
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
|
||||
dnl #
|
||||
dnl # 6.8 decouples mnt_idmap from user_namespace. This is all internal
|
||||
dnl # to mnt_idmap so we can't detect it directly, but we detect a related
|
||||
|
||||
@@ -113,7 +113,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
||||
ZFS_AC_KERNEL_SRC_ADD_DISK
|
||||
ZFS_AC_KERNEL_SRC_KTHREAD
|
||||
ZFS_AC_KERNEL_SRC_ZERO_PAGE
|
||||
ZFS_AC_KERNEL_SRC_IDMAP_MNT_API
|
||||
ZFS_AC_KERNEL_SRC_IDMAP_NO_USERNS
|
||||
ZFS_AC_KERNEL_SRC_IATTR_VFSID
|
||||
ZFS_AC_KERNEL_SRC_WRITEBACK
|
||||
@@ -228,7 +227,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
||||
ZFS_AC_KERNEL_ADD_DISK
|
||||
ZFS_AC_KERNEL_KTHREAD
|
||||
ZFS_AC_KERNEL_ZERO_PAGE
|
||||
ZFS_AC_KERNEL_IDMAP_MNT_API
|
||||
ZFS_AC_KERNEL_IDMAP_NO_USERNS
|
||||
ZFS_AC_KERNEL_IATTR_VFSID
|
||||
ZFS_AC_KERNEL_WRITEBACK
|
||||
|
||||
@@ -1092,7 +1092,7 @@ const struct dentry_operations zpl_dentry_operations = {
|
||||
struct file_system_type zpl_fs_type = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = ZFS_DRIVER,
|
||||
#if defined(HAVE_IDMAP_MNT_API)
|
||||
#if defined(FS_ALLOW_IDMAP)
|
||||
.fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP,
|
||||
#else
|
||||
.fs_flags = FS_USERNS_MOUNT,
|
||||
|
||||
Reference in New Issue
Block a user