]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-automount.m4
Allow mounting snapshots in .zfs/snapshot as a regular user
[mirror_zfs.git] / config / kernel-automount.m4
CommitLineData
ebe7e575
BB
1dnl #
2dnl # 2.6.37 API change
3dnl # The dops->d_automount() dentry operation was added as a clean
4dnl # solution to handling automounts. Prior to this cifs/nfs clients
5dnl # which required automount support would abuse the follow_link()
6dnl # operation on directories for this purpose.
7dnl #
608f8749
BB
8AC_DEFUN([ZFS_AC_KERNEL_SRC_AUTOMOUNT], [
9 ZFS_LINUX_TEST_SRC([dentry_operations_d_automount], [
ebe7e575 10 #include <linux/dcache.h>
52cd9202 11 struct vfsmount *d_automount(struct path *p) { return NULL; }
ebe7e575
BB
12 struct dentry_operations dops __attribute__ ((unused)) = {
13 .d_automount = d_automount,
14 };
066e8252 15 ])
608f8749
BB
16])
17
18AC_DEFUN([ZFS_AC_KERNEL_AUTOMOUNT], [
19 AC_MSG_CHECKING([whether dops->d_automount() exists])
20 ZFS_LINUX_TEST_RESULT([dentry_operations_d_automount], [
ebe7e575 21 AC_MSG_RESULT(yes)
ebe7e575 22 ],[
066e8252 23 ZFS_LINUX_TEST_ERROR([dops->d_automount()])
ebe7e575
BB
24 ])
25])