xref: /freebsd/sys/contrib/openzfs/config/kernel-idmap_mnt_api.m4 (revision 058ac3e8063366dafa634d9107642e12b038bf09)
1dnl #
2dnl # 5.12 API
3dnl #
4dnl # Check if APIs for idmapped mount are available
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SRC_IDMAP_MNT_API], [
7        ZFS_LINUX_TEST_SRC([idmap_mnt_api], [
8                #include <linux/fs.h>
9        ],[
10		int fs_flags = 0;
11		fs_flags |= FS_ALLOW_IDMAP;
12        ])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_IDMAP_MNT_API], [
16        AC_MSG_CHECKING([whether APIs for idmapped mount are present])
17        ZFS_LINUX_TEST_RESULT([idmap_mnt_api], [
18                AC_MSG_RESULT([yes])
19                AC_DEFINE(HAVE_IDMAP_MNT_API, 1,
20                    [APIs for idmapped mount are present])
21        ],[
22                AC_MSG_RESULT([no])
23        ])
24])
25
26