blob: f9b0955b3d281ee93deedf398905bf1c1c64469d [file] [log] [blame]
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -08001/*
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
14extern const struct xattr_handler hfsplus_xattr_osx_handler;
15extern const struct xattr_handler hfsplus_xattr_user_handler;
16extern const struct xattr_handler hfsplus_xattr_trusted_handler;
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080017extern const struct xattr_handler hfsplus_xattr_security_handler;
18
19extern const struct xattr_handler *hfsplus_xattr_handlers[];
20
21int __hfsplus_setxattr(struct inode *inode, const char *name,
22 const void *value, size_t size, int flags);
23
Fabian Frederick5e614732015-04-16 12:47:01 -070024int 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 Dubeyko127e5f52013-02-27 17:03:03 -080027
Vyacheslav Dubeykob4c11072013-09-11 14:24:30 -070028ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
Fabian Fredericka3cef4c2015-04-16 12:46:58 -070029 void *value, size_t size);
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080030
Fabian Fredericka3cef4c2015-04-16 12:46:58 -070031ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
32 void *value, size_t size,
33 const char *prefix, size_t prefixlen);
Vyacheslav Dubeykob4c11072013-09-11 14:24:30 -070034
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080035ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
36
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080037int hfsplus_init_security(struct inode *inode, struct inode *dir,
38 const struct qstr *qstr);
39
Vyacheslav Dubeykob4c11072013-09-11 14:24:30 -070040int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
41 const struct qstr *qstr);
Vyacheslav Dubeyko127e5f52013-02-27 17:03:03 -080042
43#endif