1 AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
5 dnl # timespec64_trunc() replaced by timestamp_truncate() interface.
7 ZFS_LINUX_TEST_SRC([timestamp_truncate], [
13 memset(&ts, 0, sizeof(ts));
14 ts = timestamp_truncate(ts, &ip);
19 dnl # i_atime, i_mtime, and i_ctime changed from timespec to timespec64.
21 ZFS_LINUX_TEST_SRC([inode_times], [
27 memset(&ip, 0, sizeof(ip));
33 dnl # i_ctime no longer directly accessible, must use
34 dnl # inode_get_ctime(ip), inode_set_ctime*(ip) to
37 ZFS_LINUX_TEST_SRC([inode_get_ctime], [
42 memset(&ip, 0, sizeof(ip));
46 ZFS_LINUX_TEST_SRC([inode_set_ctime_to_ts], [
52 memset(&ip, 0, sizeof(ip));
53 inode_set_ctime_to_ts(&ip, ts);
57 AC_DEFUN([ZFS_AC_KERNEL_INODE_TIMES], [
58 AC_MSG_CHECKING([whether timestamp_truncate() exists])
59 ZFS_LINUX_TEST_RESULT([timestamp_truncate], [
61 AC_DEFINE(HAVE_INODE_TIMESTAMP_TRUNCATE, 1,
62 [timestamp_truncate() exists])
67 AC_MSG_CHECKING([whether inode->i_*time's are timespec64])
68 ZFS_LINUX_TEST_RESULT([inode_times], [
72 AC_DEFINE(HAVE_INODE_TIMESPEC64_TIMES, 1,
73 [inode->i_*time's are timespec64])
76 AC_MSG_CHECKING([whether inode_get_ctime() exists])
77 ZFS_LINUX_TEST_RESULT([inode_get_ctime], [
79 AC_DEFINE(HAVE_INODE_GET_CTIME, 1,
80 [inode_get_ctime() exists in linux/fs.h])
85 AC_MSG_CHECKING([whether inode_set_ctime_to_ts() exists])
86 ZFS_LINUX_TEST_RESULT([inode_set_ctime_to_ts], [
88 AC_DEFINE(HAVE_INODE_SET_CTIME_TO_TS, 1,
89 [inode_set_ctime_to_ts() exists in linux/fs.h])