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-times.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_INODE_TIMES], [
    2 
    3         dnl #
    4         dnl # 5.6 API change
    5         dnl # timespec64_trunc() replaced by timestamp_truncate() interface.
    6         dnl #
    7         ZFS_LINUX_TEST_SRC([timestamp_truncate], [
    8                 #include <linux/fs.h>
    9         ],[
   10                 struct timespec64 ts;
   11                 struct inode ip;
   12 
   13                 memset(&ts, 0, sizeof(ts));
   14                 ts = timestamp_truncate(ts, &ip);
   15         ])
   16 
   17         dnl #
   18         dnl # 4.18 API change
   19         dnl # i_atime, i_mtime, and i_ctime changed from timespec to timespec64.
   20         dnl #
   21         ZFS_LINUX_TEST_SRC([inode_times], [
   22                 #include <linux/fs.h>
   23         ],[
   24                 struct inode ip;
   25                 struct timespec ts;
   26 
   27                 memset(&ip, 0, sizeof(ip));
   28                 ts = ip.i_mtime;
   29         ])
   30 ])
   31 
   32 AC_DEFUN([ZFS_AC_KERNEL_INODE_TIMES], [
   33         AC_MSG_CHECKING([whether timestamp_truncate() exists])
   34         ZFS_LINUX_TEST_RESULT([timestamp_truncate], [
   35                 AC_MSG_RESULT(yes)
   36                 AC_DEFINE(HAVE_INODE_TIMESTAMP_TRUNCATE, 1,
   37                     [timestamp_truncate() exists])
   38         ],[
   39                 AC_MSG_RESULT(no)
   40         ])
   41 
   42         AC_MSG_CHECKING([whether inode->i_*time's are timespec64])
   43         ZFS_LINUX_TEST_RESULT([inode_times], [
   44                 AC_MSG_RESULT(no)
   45         ],[
   46                 AC_MSG_RESULT(yes)
   47                 AC_DEFINE(HAVE_INODE_TIMESPEC64_TIMES, 1,
   48                     [inode->i_*time's are timespec64])
   49         ])
   50 ])

Cache object: ed7162463a530dabdaaf180283c14397


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