blob: d14e362b3ebaf7a4a13639067526eb910c03909e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -08002/*
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
15extern const struct xattr_handler hfsplus_xattr_osx_handler;
16extern const struct xattr_handler hfsplus_xattr_user_handler;
17extern const struct xattr_handler hfsplus_xattr_trusted_handler;
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080018extern const struct xattr_handler hfsplus_xattr_security_handler;
19
20extern const struct xattr_handler *hfsplus_xattr_handlers[];
21
22int __hfsplus_setxattr(struct inode *inode, const char *name,
23 const void *value, size_t size, int flags);
24
Al Viro59301222016-05-27 10:19:30 -040025int hfsplus_setxattr(struct inode *inode, const char *name,
Fabian Frederick5e614732015-04-16 12:47:01 -070026 const void *value, size_t size, int flags,
27 const char *prefix, size_t prefixlen);
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080028
Vyacheslav Dubeykob4c11072013-09-11 14:24:30 -070029ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
Fabian Fredericka3cef4c2015-04-16 12:46:58 -070030 void *value, size_t size);
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080031
Al Virob2968212016-04-10 20:48:24 -040032ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
Fabian Fredericka3cef4c2015-04-16 12:46:58 -070033 void *value, size_t size,
34 const char *prefix, size_t prefixlen);
Vyacheslav Dubeykob4c11072013-09-11 14:24:30 -070035
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080036ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
37
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080038int hfsplus_init_security(struct inode *inode, struct inode *dir,
39 const struct qstr *qstr);
40
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080041#endif