2025-12-20 16:45:07 +11:00
|
|
|
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>
|
|
|
|
|
|
2024-01-23 10:50:53 +11:00
|
|
|
static int show_options(struct seq_file * x, struct dentry * y) {
|
2019-10-01 12:50:34 -07:00
|
|
|
return 0;
|
|
|
|
|
};
|
|
|
|
|
|
2012-07-19 18:37:56 -04:00
|
|
|
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
|
|
|
])
|
|
|
|
|
])
|