]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-show-options.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-show-options.m4
CommitLineData
47621f3d
BB
1dnl #
2dnl # Linux 3.3 API
3dnl #
608f8749
BB
4AC_DEFUN([ZFS_AC_KERNEL_SRC_SHOW_OPTIONS], [
5 ZFS_LINUX_TEST_SRC([super_operations_show_options], [
47621f3d 6 #include <linux/fs.h>
47621f3d 7
a41d0b29 8 static int show_options(struct seq_file * x, struct dentry * y) {
608f8749
BB
9 return 0;
10 };
11
ed3fc800
RY
12 static struct super_operations sops __attribute__ ((unused)) = {
13 .show_options = show_options,
14 };
608f8749
BB
15 ],[])
16])
17
18AC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [
19 AC_MSG_CHECKING([whether sops->show_options() wants dentry])
20 ZFS_LINUX_TEST_RESULT([super_operations_show_options], [
47621f3d 21 AC_MSG_RESULT([yes])
47621f3d 22 ],[
066e8252 23 ZFS_LINUX_TEST_ERROR([sops->show_options()])
47621f3d
BB
24 ])
25])