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