1 AC_DEFUN([ZFS_AC_KERNEL_VFS_ITERATE], [
5 AC_MSG_CHECKING([whether fops->iterate_shared() is available])
6 ZFS_LINUX_TRY_COMPILE([
8 int iterate(struct file *filp, struct dir_context * context)
11 static const struct file_operations fops
12 __attribute__ ((unused)) = {
13 .iterate_shared = iterate,
18 AC_DEFINE(HAVE_VFS_ITERATE_SHARED, 1,
19 [fops->iterate_shared() is available])
26 AC_MSG_CHECKING([whether fops->iterate() is available])
27 ZFS_LINUX_TRY_COMPILE([
29 int iterate(struct file *filp, struct dir_context * context)
32 static const struct file_operations fops
33 __attribute__ ((unused)) = {
39 AC_DEFINE(HAVE_VFS_ITERATE, 1,
40 [fops->iterate() is available])
44 AC_MSG_CHECKING([whether fops->readdir() is available])
45 ZFS_LINUX_TRY_COMPILE([
47 int readdir(struct file *filp, void *entry, filldir_t func)
50 static const struct file_operations fops
51 __attribute__ ((unused)) = {
57 AC_DEFINE(HAVE_VFS_READDIR, 1,
58 [fops->readdir() is available])
60 AC_MSG_ERROR(no; file a bug report with ZFSOnLinux)