2012-02-02 19:55:48 +00:00
|
|
|
dnl #
|
|
|
|
dnl # Linux 3.3 API
|
|
|
|
dnl #
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SHOW_OPTIONS], [
|
|
|
|
ZFS_LINUX_TEST_SRC([super_operations_show_options], [
|
2012-02-02 19:55:48 +00:00
|
|
|
#include <linux/fs.h>
|
|
|
|
|
2019-10-01 19:50:34 +00:00
|
|
|
int show_options(struct seq_file * x, struct dentry * y) {
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2012-07-19 22:37:56 +00:00
|
|
|
static struct super_operations sops __attribute__ ((unused)) = {
|
|
|
|
.show_options = show_options,
|
|
|
|
};
|
2019-10-01 19:50:34 +00:00
|
|
|
],[])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SHOW_OPTIONS], [
|
|
|
|
AC_MSG_CHECKING([whether sops->show_options() wants dentry])
|
|
|
|
ZFS_LINUX_TEST_RESULT([super_operations_show_options], [
|
2012-02-02 19:55:48 +00:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
],[
|
2019-11-12 16:59:06 +00:00
|
|
|
ZFS_LINUX_TEST_ERROR([sops->show_options()])
|
2012-02-02 19:55:48 +00:00
|
|
|
])
|
|
|
|
])
|