diff options
author | Brian Behlendorf <[email protected]> | 2011-11-29 09:05:04 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-11-29 10:24:24 -0800 |
commit | f31b3ebe6e6c9de4db30bf752c09a8300b305258 (patch) | |
tree | d89517fed16d4ec1261d7f2eec1550b99ed551b8 /config/kernel-blk-end-request.m4 | |
parent | 82a37189aac955c81a59a5ecc3400475adb56355 (diff) |
Allow xattrs on symlinks
The Solaris version of ZFS does not allow xattrs to be set on
symlinks due to the way they implemented the attropen() system
call. Linux however implements xattrs through the lgetxattr()
and lsetxattr() system calls which do not have this limitation.
The only reason this hasn't always worked under ZFS on Linux
is that the xattr handlers were not registered for symlink type
inodes. This was done simply to be consistent with the Solaris
behavior.
Upon futher reflection I believe this should be allowed under
Linux. The only ill effect would be that the xattrs on symlinks
will not be visible when the pool is imported on a Solaris
system. This also has the benefit that it allows for SELinux
style security xattr labeling which expects to be able to set
xattrs on all inode types.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #272
Diffstat (limited to 'config/kernel-blk-end-request.m4')
0 files changed, 0 insertions, 0 deletions