]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement File Attribute Support
authorRichard Yao <ryao@gentoo.org>
Fri, 1 Jul 2011 22:56:35 +0000 (15:56 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 May 2014 17:11:18 +0000 (10:11 -0700)
commit9d317793aa66d05a8c44410ea24a9a4166a89bbd
treeee74e5cca3564c8b303726899fa956451949dde1
parent3b4f425a5a321c02f6cf10e2ffba891ff79b80c6
Implement File Attribute Support

We add support for lsattr and chattr to resolve a regression caused
by 88c283952f0bfeab54612f9ce666601d83c4244f that broke Python's
xattr.list(). That changet broke Gentoo Portage's FEATURES=xattr,
which depended on Python's xattr.list().

Only attributes common to both Solaris and Linux are supported. These
are 'a', 'd' and 'i' in Linux's lsattr and chattr commands. File
attributes exclusive to Solaris are present in the ZFS code, but cannot
be accessed or modified through this method.  That was the case prior to
this patch. The resolution of issue zfsonlinux/zfs#229 should implement
some method to permit access and modification of Solaris-specific
attributes.

References:
  https://bugs.gentoo.org/show_bug.cgi?id=483516

Original-patch-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1691
include/linux/vfs_compat.h
module/zfs/zfs_znode.c
module/zfs/zpl_file.c