Merge branch 'parisc-4.17-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux-2.6-block.git] / fs / hfsplus / xattr.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
127e5f5a
VD
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
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;
127e5f5a
VD
18extern 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
59301226 25int hfsplus_setxattr(struct inode *inode, const char *name,
5e61473e
FF
26 const void *value, size_t size, int flags,
27 const char *prefix, size_t prefixlen);
127e5f5a 28
b4c1107c 29ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
a3cef4cd 30 void *value, size_t size);
127e5f5a 31
b296821a 32ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
a3cef4cd
FF
33 void *value, size_t size,
34 const char *prefix, size_t prefixlen);
b4c1107c 35
127e5f5a
VD
36ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
37
127e5f5a
VD
38int hfsplus_init_security(struct inode *inode, struct inode *dir,
39 const struct qstr *qstr);
40
b4c1107c
VD
41int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
42 const struct qstr *qstr);
127e5f5a
VD
43
44#endif