blob: 3e11fc3331ebe711b2ecfc6a6e8635b13be643c3 [file] [log] [blame]
Dominique Martinet024b7d62021-11-02 22:12:01 +09001/* SPDX-License-Identifier: LGPL-2.1 */
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +05302/*
3 * Copyright IBM Corporation, 2010
4 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +05305 */
6#ifndef FS_9P_XATTR_H
7#define FS_9P_XATTR_H
8
9#include <linux/xattr.h>
Aneesh Kumar K.V85ff8722010-09-28 00:27:39 +053010#include <net/9p/9p.h>
11#include <net/9p/client.h>
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053012
13extern const struct xattr_handler *v9fs_xattr_handlers[];
Aneesh Kumar K.V7a4566b2010-09-28 00:27:39 +053014extern const struct xattr_handler v9fs_xattr_acl_access_handler;
15extern const struct xattr_handler v9fs_xattr_acl_default_handler;
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053016
Dominique Martinet6e195b02021-11-02 22:16:43 +090017ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
18 void *buffer, size_t buffer_size);
19ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
20 void *buffer, size_t buffer_size);
21int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
22 const void *value, size_t value_len, int flags);
23int v9fs_xattr_set(struct dentry *dentry, const char *name,
24 const void *value, size_t value_len, int flags);
25ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
26 size_t buffer_size);
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053027#endif /* FS_9P_XATTR_H */