]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel-xattr-handler.m4
Linux 4.5 compat: Use xattr_handler->name for acl
authorChunwei Chen <david.chen@osnexus.com>
Fri, 22 Apr 2016 00:19:07 +0000 (17:19 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Apr 2016 15:42:08 +0000 (08:42 -0700)
commit232604b58e8579501c5a260ad3a7b71a239dd546
treeee3fc3fbda55eb731625733daa151bfd0ffb4949
parentda5e151f207ff1bc4972ce74a3a85e442ffd5a03
Linux 4.5 compat: Use xattr_handler->name for acl

Linux 4.5 added member "name" to xattr_handler. xattr_handler which matches to
whole name rather than prefix should use "name" instead of "prefix".
Otherwise, kernel will return with EINVAL when it tries to resolve handlers.

Also, we remove the strcmp checks when xattr_handler has name, because
xattr_resolve_name will do the check for us.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4549
Closes #4537
config/kernel-xattr-handler.m4
config/kernel.m4
module/zfs/zpl_xattr.c