C Christoph Hellwig #
Message details and related content
NAK. Don't overload xattrs with magic behavior just to avoid the need
to do proper syscalls or ioctls. This makes them harder to discover,
audit and security fix.
On Thu, Jul 06, 2017 at 03:50:27PM +0100, David Howells wrote:quoted hunk
Add xattrs to allow the user to get/set metadata in lieu of having pioctl() available. The following xattrs are now available: (*) afs.cell The name of the cell in which the vnode's volume resides. (*) afs.fid The volume ID, vnode ID and vnode uniquifier of the file as three hex numbers separated by colons. (*) afs.volume The name of the volume in which the vnode resides. For example: # getfattr -d -m ".*" /mnt/scratch getfattr: Removing leading '/' from absolute path names # file: mnt/scratch afs.cell="mycell.myorg.org" afs.fid="10000b:1:1" afs.volume="scratch" Signed-off-by: David Howells <dhowells@redhat.com> --- fs/afs/Makefile | 3 + fs/afs/dir.c | 1 fs/afs/file.c | 1 fs/afs/inode.c | 7 +++ fs/afs/internal.h | 5 ++ fs/afs/mntpt.c | 1 fs/afs/super.c | 1 fs/afs/xattr.c | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 fs/afs/xattr.cdiff --git a/fs/afs/Makefile b/fs/afs/Makefile
---end quoted text---