Always validate checksums for Direct I/O reads
[zfs.git] / config / kernel-kuid-helpers.m4
blob38a439fa6ea9865291621802714f5e293cf1b9fb
1 dnl #
2 dnl # 3.5 API change,
3 dnl # Since usernamespaces were introduced in kernel version 3.5, it
4 dnl # became necessary to go through one more level of indirection
5 dnl # when dealing with uid/gid - namely the kuid type.
6 dnl #
7 dnl #
8 AC_DEFUN([ZFS_AC_KERNEL_SRC_KUID_HELPERS], [
9         ZFS_LINUX_TEST_SRC([i_uid_read], [
10                 #include <linux/fs.h>
11         ],[
12                 struct inode *ip = NULL;
13                 (void) i_uid_read(ip);
14         ])
17 AC_DEFUN([ZFS_AC_KERNEL_KUID_HELPERS], [
18         AC_MSG_CHECKING([whether i_(uid|gid)_(read|write) exist])
19         ZFS_LINUX_TEST_RESULT([i_uid_read], [
20                 AC_MSG_RESULT(yes)
21         ],[
22                 ZFS_LINUX_TEST_ERROR([i_uid_read])
23         ])