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-inode-create.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 AC_DEFUN([ZFS_AC_KERNEL_SRC_CREATE], [
    2         dnl #
    3         dnl # 5.12 API change that added the struct user_namespace* arg
    4         dnl # to the front of this function type's arg list.
    5         dnl #
    6         ZFS_LINUX_TEST_SRC([create_userns], [
    7                 #include <linux/fs.h>
    8                 #include <linux/sched.h>
    9 
   10                 int inode_create(struct user_namespace *userns,
   11                     struct inode *inode ,struct dentry *dentry,
   12                     umode_t umode, bool flag) { return 0; }
   13 
   14                 static const struct inode_operations
   15                         iops __attribute__ ((unused)) = {
   16                         .create         = inode_create,
   17                 };
   18         ],[])
   19 
   20         dnl #
   21         dnl # 3.6 API change
   22         dnl #
   23         ZFS_LINUX_TEST_SRC([create_flags], [
   24                 #include <linux/fs.h>
   25                 #include <linux/sched.h>
   26 
   27                 int inode_create(struct inode *inode ,struct dentry *dentry,
   28                     umode_t umode, bool flag) { return 0; }
   29 
   30                 static const struct inode_operations
   31                     iops __attribute__ ((unused)) = {
   32                         .create         = inode_create,
   33                 };
   34         ],[])
   35 ])
   36 
   37 AC_DEFUN([ZFS_AC_KERNEL_CREATE], [
   38         AC_MSG_CHECKING([whether iops->create() takes struct user_namespace*])
   39         ZFS_LINUX_TEST_RESULT([create_userns], [
   40                 AC_MSG_RESULT(yes)
   41                 AC_DEFINE(HAVE_IOPS_CREATE_USERNS, 1,
   42                    [iops->create() takes struct user_namespace*])
   43         ],[
   44                 AC_MSG_RESULT(no)
   45 
   46                 AC_MSG_CHECKING([whether iops->create() passes flags])
   47                 ZFS_LINUX_TEST_RESULT([create_flags], [
   48                         AC_MSG_RESULT(yes)
   49                 ],[
   50                         ZFS_LINUX_TEST_ERROR([iops->create()])
   51                 ])
   52         ])
   53 ])

Cache object: 6ff630318ae4cf279f66cf35b3455b7b


[ 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.