Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (24 sloc) 0.802 kb
756c3e5 Richard Yao Linux 3.5 compat, eops->encode_fh() takes inodes
ryao authored
1 dnl #
2 dnl # 3.5.0 API change
3 dnl # torvalds/linux@b0b0382bb4904965a9e9fca77ad87514dfda0d1c changed the
4 dnl # ->encode_fh() callback to pass the child inode and its parents inode
5 dnl # rather than a dentry and a boolean saying whether we want the parent.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE], [
8 AC_MSG_CHECKING([whether eops->encode_fh() wants inode])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/exportfs.h>
11 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
12 struct inode *parent) { return 0; }
13 static struct export_operations eops __attribute__ ((unused))={
14 .encode_fh = encode_fh,
15 };
16 ],[
17 ],[
18 AC_MSG_RESULT(yes)
19 AC_DEFINE(HAVE_ENCODE_FH_WITH_INODE, 1,
20 [eops->encode_fh() wants child and parent inodes])
21 ],[
22 AC_MSG_RESULT(no)
23 ])
24 ])
Something went wrong with that request. Please try again.