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