]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel-kuid-helpers.m4
Check whether the kernel supports i_uid/gid_read/write helpers
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Mon, 30 May 2016 17:37:36 +0000 (20:37 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Jul 2016 20:21:49 +0000 (13:21 -0700)
commit82a1b2d6289f9ceae0bee6f1e71d3bc29a8c5d16
tree57c01daa4c2eb3ab7fca9faefee6b071f7b4a2e0
parent77943bc1dc39315feb335b0882dd6c91041538a3
Check whether the kernel supports i_uid/gid_read/write helpers

Since the concept of a kuid and the need to translate from it to
ordinary integer type was added in kernel version 3.5 implement necessary
plumbing to be able to detect this condition during compile time. If
the kernel doesn't support the kuid then just fall back to directly
accessing the respective struct inode's members

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4685
Issue #227
config/kernel-kuid-helpers.m4 [new file with mode: 0644]
config/kernel.m4
include/linux/vfs_compat.h