1eda14cbcSMatt Macydnl # 2eda14cbcSMatt Macydnl # 2.6.37 API change 3eda14cbcSMatt Macydnl # The dops->d_automount() dentry operation was added as a clean 4eda14cbcSMatt Macydnl # solution to handling automounts. Prior to this cifs/nfs clients 5eda14cbcSMatt Macydnl # which required automount support would abuse the follow_link() 6eda14cbcSMatt Macydnl # operation on directories for this purpose. 7eda14cbcSMatt Macydnl # 8eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_SRC_AUTOMOUNT], [ 9eda14cbcSMatt Macy ZFS_LINUX_TEST_SRC([dentry_operations_d_automount], [ 10eda14cbcSMatt Macy #include <linux/dcache.h> 11*fd45b686SMartin Matuska static struct vfsmount *d_automount(struct path *p) { return NULL; } 12eda14cbcSMatt Macy struct dentry_operations dops __attribute__ ((unused)) = { 13eda14cbcSMatt Macy .d_automount = d_automount, 14eda14cbcSMatt Macy }; 15eda14cbcSMatt Macy ]) 16eda14cbcSMatt Macy]) 17eda14cbcSMatt Macy 18eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_AUTOMOUNT], [ 19eda14cbcSMatt Macy AC_MSG_CHECKING([whether dops->d_automount() exists]) 20eda14cbcSMatt Macy ZFS_LINUX_TEST_RESULT([dentry_operations_d_automount], [ 21eda14cbcSMatt Macy AC_MSG_RESULT(yes) 22eda14cbcSMatt Macy ],[ 23eda14cbcSMatt Macy ZFS_LINUX_TEST_ERROR([dops->d_automount()]) 24eda14cbcSMatt Macy ]) 25eda14cbcSMatt Macy]) 26