ztest: update ztest_dmu_snapshot_create_destroy()
[zfs.git] / config / kernel-show-options.m4
blob93bd5fbfbb24f2c990a7829f30e4cd301e766656
1 dnl #
2 dnl # Linux 3.3 API
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_SHOW_OPTIONS], [
5         ZFS_LINUX_TEST_SRC([super_operations_show_options], [
6                 #include <linux/fs.h>
8                 int show_options(struct seq_file * x, struct dentry * y) {
9                         return 0;
10                 };
12                 static struct super_operations sops __attribute__ ((unused)) = {
13                         .show_options = show_options,
14                 };
15         ],[])
18 AC_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], [
21                 AC_MSG_RESULT([yes])
22         ],[
23                 ZFS_LINUX_TEST_ERROR([sops->show_options()])
24         ])