ZTS: Fix send_partial_dataset.ksh
[zfs.git] / config / kernel-super-userns.m4
blob1ad35f2d19ba4c7297d5204a35d901a1e32fddc5
1 dnl #
2 dnl # 4.8 API change
3 dnl # struct user_namespace was added to struct super_block as
4 dnl # super->s_user_ns member
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_SUPER_USER_NS], [
7         ZFS_LINUX_TEST_SRC([super_user_ns], [
8                 #include <linux/fs.h>
9                 #include <linux/user_namespace.h>
10         ], [
11                 struct super_block super;
12                 super.s_user_ns = (struct user_namespace *)NULL;
13         ])
16 AC_DEFUN([ZFS_AC_KERNEL_SUPER_USER_NS], [
17         AC_MSG_CHECKING([whether super_block->s_user_ns exists])
18         ZFS_LINUX_TEST_RESULT([super_user_ns], [
19                 AC_MSG_RESULT(yes)
20                 AC_DEFINE(HAVE_SUPER_USER_NS, 1,
21                     [super_block->s_user_ns exists])
22         ],[
23                 AC_MSG_RESULT(no)
24         ])