Files
mirror_zfs/config/kernel-show-options.m4
T

27 lines
643 B
Plaintext
Raw Normal View History

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