1eda14cbcSMatt Macydnl # 2eda14cbcSMatt Macydnl # Linux 3.3 API 3eda14cbcSMatt Macydnl # 4eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_SRC_SHOW_OPTIONS], [ 5eda14cbcSMatt Macy ZFS_LINUX_TEST_SRC([super_operations_show_options], [ 6eda14cbcSMatt Macy #include <linux/fs.h> 7eda14cbcSMatt Macy 8*fd45b686SMartin Matuska static int show_options(struct seq_file * x, struct dentry * y) { 9eda14cbcSMatt Macy return 0; 10eda14cbcSMatt Macy }; 11eda14cbcSMatt Macy 12eda14cbcSMatt Macy static struct super_operations sops __attribute__ ((unused)) = { 13eda14cbcSMatt Macy .show_options = show_options, 14eda14cbcSMatt Macy }; 15eda14cbcSMatt Macy ],[]) 16eda14cbcSMatt Macy]) 17eda14cbcSMatt Macy 18eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [ 19eda14cbcSMatt Macy AC_MSG_CHECKING([whether sops->show_options() wants dentry]) 20eda14cbcSMatt Macy ZFS_LINUX_TEST_RESULT([super_operations_show_options], [ 21eda14cbcSMatt Macy AC_MSG_RESULT([yes]) 22eda14cbcSMatt Macy ],[ 23eda14cbcSMatt Macy ZFS_LINUX_TEST_ERROR([sops->show_options()]) 24eda14cbcSMatt Macy ]) 25eda14cbcSMatt Macy]) 26