The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-encode-fh-inode.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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_SRC_ENCODE_FH_WITH_INODE], [
    8         ZFS_LINUX_TEST_SRC([export_operations_encode_fh], [
    9                 #include <linux/exportfs.h>
   10                 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
   11                               struct inode *parent) { return 0; }
   12                 static struct export_operations eops __attribute__ ((unused))={
   13                         .encode_fh = encode_fh,
   14                 };
   15         ],[])
   16 ])
   17 
   18 AC_DEFUN([ZFS_AC_KERNEL_ENCODE_FH_WITH_INODE], [
   19         AC_MSG_CHECKING([whether eops->encode_fh() wants inode])
   20         ZFS_LINUX_TEST_RESULT([export_operations_encode_fh], [
   21                 AC_MSG_RESULT(yes)
   22                 AC_DEFINE(HAVE_ENCODE_FH_WITH_INODE, 1,
   23                     [eops->encode_fh() wants child and parent inodes])
   24         ],[
   25                 AC_MSG_RESULT(no)
   26         ])
   27 ])

Cache object: 9bdac222a974ff6fb19a11d678cb4a55


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.