summaryrefslogtreecommitdiffstats
path: root/fs/afs/file.c
diff options
context:
space:
mode:
authorDavid Howells2017-07-06 16:50:27 +0200
committerLinus Torvalds2017-07-09 23:40:12 +0200
commitd3e3b7eac886fb1383db2f22b81550fa6d87f62f (patch)
treef3a8e5d9775aeb053290e2157a946425e9803cd2 /fs/afs/file.c
parentafs: Ignore AFS_ACE_READ and AFS_ACE_WRITE for directories (diff)
downloadkernel-qcow2-linux-d3e3b7eac886fb1383db2f22b81550fa6d87f62f.tar.gz
kernel-qcow2-linux-d3e3b7eac886fb1383db2f22b81550fa6d87f62f.tar.xz
kernel-qcow2-linux-d3e3b7eac886fb1383db2f22b81550fa6d87f62f.zip
afs: Add metadata xattrs
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r--fs/afs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 0d5b8508869b..510cba15fa56 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -46,6 +46,7 @@ const struct inode_operations afs_file_inode_operations = {
.getattr = afs_getattr,
.setattr = afs_setattr,
.permission = afs_permission,
+ .listxattr = afs_listxattr,
};
const struct address_space_operations afs_fs_aops = {