Loading...
1/* SPDX-License-Identifier: GPL-2.0 */
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;
18extern const struct xattr_handler hfsplus_xattr_security_handler;
19
20extern const struct xattr_handler * const hfsplus_xattr_handlers[];
21
22int __hfsplus_setxattr(struct inode *inode, const char *name,
23 const void *value, size_t size, int flags);
24
25int hfsplus_setxattr(struct inode *inode, const char *name,
26 const void *value, size_t size, int flags,
27 const char *prefix, size_t prefixlen);
28
29ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
30 void *value, size_t size);
31
32ssize_t hfsplus_getxattr(struct inode *inode, const char *name,
33 void *value, size_t size,
34 const char *prefix, size_t prefixlen);
35
36ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
37
38int hfsplus_init_security(struct inode *inode, struct inode *dir,
39 const struct qstr *qstr);
40
41#endif
1/*
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;
17extern 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
24int hfsplus_setxattr(struct dentry *dentry, const char *name,
25 const void *value, size_t size, int flags,
26 const char *prefix, size_t prefixlen);
27
28ssize_t __hfsplus_getxattr(struct inode *inode, const char *name,
29 void *value, size_t size);
30
31ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
32 void *value, size_t size,
33 const char *prefix, size_t prefixlen);
34
35ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
36
37int hfsplus_init_security(struct inode *inode, struct inode *dir,
38 const struct qstr *qstr);
39
40int hfsplus_init_inode_security(struct inode *inode, struct inode *dir,
41 const struct qstr *qstr);
42
43#endif