]>
Commit | Line | Data |
---|---|---|
ebe7e575 BB |
1 | dnl # |
2 | dnl # 2.6.37 API change | |
3 | dnl # The dops->d_automount() dentry operation was added as a clean | |
4 | dnl # solution to handling automounts. Prior to this cifs/nfs clients | |
5 | dnl # which required automount support would abuse the follow_link() | |
6 | dnl # operation on directories for this purpose. | |
7 | dnl # | |
8 | AC_DEFUN([ZFS_AC_KERNEL_AUTOMOUNT], [ | |
9 | AC_MSG_CHECKING([whether dops->d_automount() exists]) | |
10 | ZFS_LINUX_TRY_COMPILE([ | |
11 | #include <linux/dcache.h> | |
52cd9202 | 12 | struct vfsmount *d_automount(struct path *p) { return NULL; } |
ebe7e575 BB |
13 | struct dentry_operations dops __attribute__ ((unused)) = { |
14 | .d_automount = d_automount, | |
15 | }; | |
52cd9202 | 16 | ],[ |
ebe7e575 BB |
17 | ],[ |
18 | AC_MSG_RESULT(yes) | |
19 | AC_DEFINE(HAVE_AUTOMOUNT, 1, [dops->automount() exists]) | |
20 | ],[ | |
21 | AC_MSG_RESULT(no) | |
22 | ]) | |
23 | ]) |