1 /* SPDX-License-Identifier: GPL-2.0 */
3 * linux/fs/hfsplus/xattr.h
5 * Vyacheslav Dubeyko <slava@dubeyko.com>
7 * Logic of processing extended attributes
10 #ifndef _LINUX_HFSPLUS_XATTR_H
11 #define _LINUX_HFSPLUS_XATTR_H
13 #include <linux/xattr.h>
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
;
18 extern const struct xattr_handler hfsplus_xattr_security_handler
;
20 extern const struct xattr_handler
*hfsplus_xattr_handlers
[];
22 int __hfsplus_setxattr(struct inode
*inode
, const char *name
,
23 const void *value
, size_t size
, int flags
);
25 int hfsplus_setxattr(struct inode
*inode
, const char *name
,
26 const void *value
, size_t size
, int flags
,
27 const char *prefix
, size_t prefixlen
);
29 ssize_t
__hfsplus_getxattr(struct inode
*inode
, const char *name
,
30 void *value
, size_t size
);
32 ssize_t
hfsplus_getxattr(struct inode
*inode
, const char *name
,
33 void *value
, size_t size
,
34 const char *prefix
, size_t prefixlen
);
36 ssize_t
hfsplus_listxattr(struct dentry
*dentry
, char *buffer
, size_t size
);
38 int hfsplus_init_security(struct inode
*inode
, struct inode
*dir
,
39 const struct qstr
*qstr
);