]>
Commit | Line | Data |
---|---|---|
3c203610 YS |
1 | dnl # |
2 | dnl # 3.6 API change, | |
3 | dnl # 'sget' now takes the mount flags as an argument. | |
4 | dnl # | |
608f8749 BB |
5 | AC_DEFUN([ZFS_AC_KERNEL_SRC_SGET], [ |
6 | ZFS_LINUX_TEST_SRC([sget_5args], [ | |
3c203610 YS |
7 | #include <linux/fs.h> |
8 | ],[ | |
9 | struct file_system_type *type = NULL; | |
10 | int (*test)(struct super_block *,void *) = NULL; | |
11 | int (*set)(struct super_block *,void *) = NULL; | |
12 | int flags = 0; | |
13 | void *data = NULL; | |
14 | (void) sget(type, test, set, flags, data); | |
608f8749 BB |
15 | ]) |
16 | ]) | |
17 | ||
18 | AC_DEFUN([ZFS_AC_KERNEL_SGET], [ | |
19 | AC_MSG_CHECKING([whether sget() wants 5 args]) | |
20 | ZFS_LINUX_TEST_RESULT([sget_5args], [ | |
3c203610 | 21 | AC_MSG_RESULT(yes) |
3c203610 | 22 | ],[ |
066e8252 | 23 | ZFS_LINUX_TEST_ERROR([sget()]) |
3c203610 YS |
24 | ]) |
25 | ]) |