aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-super-userns.m4
blob: 1ad35f2d19ba4c7297d5204a35d901a1e32fddc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl #
dnl # 4.8 API change
dnl # struct user_namespace was added to struct super_block as
dnl # super->s_user_ns member
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_SUPER_USER_NS], [
	ZFS_LINUX_TEST_SRC([super_user_ns], [
		#include <linux/fs.h>
		#include <linux/user_namespace.h>
	], [
		struct super_block super;
		super.s_user_ns = (struct user_namespace *)NULL;
	])
])

AC_DEFUN([ZFS_AC_KERNEL_SUPER_USER_NS], [
	AC_MSG_CHECKING([whether super_block->s_user_ns exists])
	ZFS_LINUX_TEST_RESULT([super_user_ns], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_SUPER_USER_NS, 1,
		    [super_block->s_user_ns exists])
	],[
		AC_MSG_RESULT(no)
	])
])