ZIL: Assert record sizes in different places
[zfs.git] / config / kernel-idmap_mnt_api.m4
blob47ddc5702fb7edf3d9730da2df70fa3479656a9e
1 dnl #
2 dnl # 5.12 API
3 dnl #
4 dnl # Check if APIs for idmapped mount are available
5 dnl #
6 AC_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         ])
15 AC_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         ])