]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Add metadata xattrs
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Jul 2017 14:50:27 +0000 (15:50 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 9 Jul 2017 21:40:12 +0000 (14:40 -0700)
commitd6c212212478d5ae7d0e8a6152b8b7503f5a1ac8
treef3a8e5d9775aeb053290e2157a946425e9803cd2
parent6d20cea7e114a3c41ddca57a49d6105f92f8e007
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>
fs/afs/Makefile
fs/afs/dir.c
fs/afs/file.c
fs/afs/inode.c
fs/afs/internal.h
fs/afs/mntpt.c
fs/afs/super.c
fs/afs/xattr.c [new file with mode: 0644]