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>
Showing
- fs/afs/Makefile 2 additions, 1 deletionfs/afs/Makefile
- fs/afs/dir.c 1 addition, 0 deletionsfs/afs/dir.c
- fs/afs/file.c 1 addition, 0 deletionsfs/afs/file.c
- fs/afs/inode.c 6 additions, 1 deletionfs/afs/inode.c
- fs/afs/internal.h 5 additions, 0 deletionsfs/afs/internal.h
- fs/afs/mntpt.c 1 addition, 0 deletionsfs/afs/mntpt.c
- fs/afs/super.c 1 addition, 0 deletionsfs/afs/super.c
- fs/afs/xattr.c 121 additions, 0 deletionsfs/afs/xattr.c
Loading
Please register or sign in to comment