1 #include <linux/reiserfs_fs.h>
2 #include <linux/errno.h>
4 #include <linux/pagemap.h>
5 #include <linux/xattr.h>
6 #include <linux/reiserfs_xattr.h>
7 #include <asm/uaccess.h>
9 #ifdef CONFIG_REISERFS_FS_POSIX_ACL
10 # include <linux/reiserfs_acl.h>
14 user_get(struct inode *inode, const char *name, void *buffer, size_t size)
17 if (strlen(name) < sizeof(XATTR_USER_PREFIX))
19 if (!reiserfs_xattrs_user(inode->i_sb))
21 return reiserfs_xattr_get(inode, name, buffer, size);
25 user_set(struct inode *inode, const char *name, const void *buffer,
26 size_t size, int flags)
29 if (strlen(name) < sizeof(XATTR_USER_PREFIX))
32 if (!reiserfs_xattrs_user(inode->i_sb))
34 return reiserfs_xattr_set(inode, name, buffer, size, flags);
37 static int user_del(struct inode *inode, const char *name)
39 if (strlen(name) < sizeof(XATTR_USER_PREFIX))
42 if (!reiserfs_xattrs_user(inode->i_sb))
48 user_list(struct inode *inode, const char *name, int namelen, char *out)
51 if (!reiserfs_xattrs_user(inode->i_sb))
55 memcpy(out, name, len);
60 struct reiserfs_xattr_handler user_handler = {
61 .prefix = XATTR_USER_PREFIX,