]>
Commit | Line | Data |
---|---|---|
127e5f5a VD |
1 | /* |
2 | * linux/fs/hfsplus/xattr_user.c | |
3 | * | |
4 | * Vyacheslav Dubeyko <[email protected]> | |
5 | * | |
6 | * Handler for user extended attributes. | |
7 | */ | |
8 | ||
bf29e886 HTL |
9 | #include <linux/nls.h> |
10 | ||
127e5f5a VD |
11 | #include "hfsplus_fs.h" |
12 | #include "xattr.h" | |
13 | ||
d9a82a04 | 14 | static int hfsplus_user_getxattr(const struct xattr_handler *handler, |
b296821a AV |
15 | struct dentry *unused, struct inode *inode, |
16 | const char *name, void *buffer, size_t size) | |
127e5f5a | 17 | { |
127e5f5a | 18 | |
b296821a | 19 | return hfsplus_getxattr(inode, name, buffer, size, |
a3cef4cd | 20 | XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN); |
127e5f5a VD |
21 | } |
22 | ||
d9a82a04 | 23 | static int hfsplus_user_setxattr(const struct xattr_handler *handler, |
59301226 AV |
24 | struct dentry *unused, struct inode *inode, |
25 | const char *name, const void *buffer, | |
26 | size_t size, int flags) | |
127e5f5a | 27 | { |
59301226 | 28 | return hfsplus_setxattr(inode, name, buffer, size, flags, |
5e61473e | 29 | XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN); |
127e5f5a VD |
30 | } |
31 | ||
127e5f5a VD |
32 | const struct xattr_handler hfsplus_xattr_user_handler = { |
33 | .prefix = XATTR_USER_PREFIX, | |
127e5f5a VD |
34 | .get = hfsplus_user_getxattr, |
35 | .set = hfsplus_user_setxattr, | |
36 | }; |