2 * linux/fs/hfsplus/xattr_user.c
4 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 * Handler for user extended attributes.
11 #include "hfsplus_fs.h"
14 static int hfsplus_user_getxattr(struct dentry *dentry, const char *name,
15 void *buffer, size_t size, int type)
18 return hfsplus_getxattr(dentry, name, buffer, size,
19 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
22 static int hfsplus_user_setxattr(struct dentry *dentry, const char *name,
23 const void *buffer, size_t size, int flags, int type)
25 return hfsplus_setxattr(dentry, name, buffer, size, flags,
26 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
29 const struct xattr_handler hfsplus_xattr_user_handler = {
30 .prefix = XATTR_USER_PREFIX,
31 .get = hfsplus_user_getxattr,
32 .set = hfsplus_user_setxattr,