9p: xattr simplifications
authorAndreas Gruenbacher <[email protected]>
Sun, 4 Oct 2015 17:18:52 +0000 (19:18 +0200)
committerAl Viro <[email protected]>
Sat, 14 Nov 2015 01:34:33 +0000 (20:34 -0500)
commite409de992e3ea3674393465f07cc71c948edd87a
treee650f63fbb38fb48cef2fd24f10651ea5765d5ff
parentd9a82a04033f87bbd06efb29f78c0170a38154a8
9p: xattr simplifications

Now that the xattr handler is passed to the xattr handler operations, we
can use the same get and set operations for the user, trusted, and security
xattr namespaces.  In those namespaces, we can access the full attribute
name by "reattaching" the name prefix the vfs has skipped for us.  Add a
xattr_full_name helper to make this obvious in the code.

For the "system.posix_acl_access" and "system.posix_acl_default"
attributes, handler->prefix is the full attribute name; the suffix is the
empty string.

Signed-off-by: Andreas Gruenbacher <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Ron Minnich <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Cc: [email protected]
Signed-off-by: Al Viro <[email protected]>
fs/9p/Makefile
fs/9p/acl.c
fs/9p/xattr.c
fs/9p/xattr.h
fs/9p/xattr_security.c [deleted file]
fs/9p/xattr_trusted.c [deleted file]
fs/9p/xattr_user.c [deleted file]
fs/xattr.c
include/linux/xattr.h