Blame view
fs/hfsplus/xattr_trusted.c
981 Bytes
127e5f5ae hfsplus: rework f... |
1 2 3 4 5 6 7 |
/* * linux/fs/hfsplus/xattr_trusted.c * * Vyacheslav Dubeyko <slava@dubeyko.com> * * Handler for trusted extended attributes. */ |
bf29e886b hfsplus: correct ... |
8 |
#include <linux/nls.h> |
127e5f5ae hfsplus: rework f... |
9 10 |
#include "hfsplus_fs.h" #include "xattr.h" |
d9a82a040 xattr handlers: P... |
11 |
static int hfsplus_trusted_getxattr(const struct xattr_handler *handler, |
b296821a7 xattr_handler: pa... |
12 13 |
struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) |
127e5f5ae hfsplus: rework f... |
14 |
{ |
b296821a7 xattr_handler: pa... |
15 |
return hfsplus_getxattr(inode, name, buffer, size, |
a3cef4cd6 fs/hfsplus: move ... |
16 17 |
XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN); |
127e5f5ae hfsplus: rework f... |
18 |
} |
d9a82a040 xattr handlers: P... |
19 |
static int hfsplus_trusted_setxattr(const struct xattr_handler *handler, |
593012268 switch xattr_hand... |
20 21 22 |
struct dentry *unused, struct inode *inode, const char *name, const void *buffer, size_t size, int flags) |
127e5f5ae hfsplus: rework f... |
23 |
{ |
593012268 switch xattr_hand... |
24 |
return hfsplus_setxattr(inode, name, buffer, size, flags, |
5e61473ea fs/hfsplus: move ... |
25 |
XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN); |
127e5f5ae hfsplus: rework f... |
26 |
} |
127e5f5ae hfsplus: rework f... |
27 28 |
const struct xattr_handler hfsplus_xattr_trusted_handler = { .prefix = XATTR_TRUSTED_PREFIX, |
127e5f5ae hfsplus: rework f... |
29 30 31 |
.get = hfsplus_trusted_getxattr, .set = hfsplus_trusted_setxattr, }; |