]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-sget-args.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-sget-args.m4
CommitLineData
3c203610
YS
1dnl #
2dnl # 3.6 API change,
3dnl # 'sget' now takes the mount flags as an argument.
4dnl #
608f8749
BB
5AC_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
18AC_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])