Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 1 | /* |
| 2 | * linux/fs/hfsplus/xattr.h |
| 3 | * |
| 4 | * Vyacheslav Dubeyko <slava@dubeyko.com> |
| 5 | * |
| 6 | * Logic of processing extended attributes |
| 7 | */ |
| 8 | |
| 9 | #ifndef _LINUX_HFSPLUS_XATTR_H |
| 10 | #define _LINUX_HFSPLUS_XATTR_H |
| 11 | |
| 12 | #include <linux/xattr.h> |
| 13 | |
| 14 | extern const struct xattr_handler hfsplus_xattr_osx_handler; |
| 15 | extern const struct xattr_handler hfsplus_xattr_user_handler; |
| 16 | extern const struct xattr_handler hfsplus_xattr_trusted_handler; |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 17 | extern const struct xattr_handler hfsplus_xattr_security_handler; |
| 18 | |
| 19 | extern const struct xattr_handler *hfsplus_xattr_handlers[]; |
| 20 | |
| 21 | int __hfsplus_setxattr(struct inode *inode, const char *name, |
| 22 | const void *value, size_t size, int flags); |
| 23 | |
Fabian Frederick | 5e61473 | 2015-04-16 12:47:01 -0700 | [diff] [blame] | 24 | int hfsplus_setxattr(struct dentry *dentry, const char *name, |
| 25 | const void *value, size_t size, int flags, |
| 26 | const char *prefix, size_t prefixlen); |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 27 | |
Vyacheslav Dubeyko | b4c1107 | 2013-09-11 14:24:30 -0700 | [diff] [blame] | 28 | ssize_t __hfsplus_getxattr(struct inode *inode, const char *name, |
Fabian Frederick | a3cef4c | 2015-04-16 12:46:58 -0700 | [diff] [blame] | 29 | void *value, size_t size); |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 30 | |
Al Viro | b296821 | 2016-04-10 20:48:24 -0400 | [diff] [blame] | 31 | ssize_t hfsplus_getxattr(struct inode *inode, const char *name, |
Fabian Frederick | a3cef4c | 2015-04-16 12:46:58 -0700 | [diff] [blame] | 32 | void *value, size_t size, |
| 33 | const char *prefix, size_t prefixlen); |
Vyacheslav Dubeyko | b4c1107 | 2013-09-11 14:24:30 -0700 | [diff] [blame] | 34 | |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 35 | ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size); |
| 36 | |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 37 | int hfsplus_init_security(struct inode *inode, struct inode *dir, |
| 38 | const struct qstr *qstr); |
| 39 | |
Vyacheslav Dubeyko | b4c1107 | 2013-09-11 14:24:30 -0700 | [diff] [blame] | 40 | int hfsplus_init_inode_security(struct inode *inode, struct inode *dir, |
| 41 | const struct qstr *qstr); |
Vyacheslav Dubeyko | 127e5f5 | 2013-02-27 17:03:03 -0800 | [diff] [blame] | 42 | |
| 43 | #endif |