blob: c63c3bea5de550d87159e55ccedb0f057fcebedb [file] [log] [blame]
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +05301/*
2 * Copyright IBM Corporation, 2010
3 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2.1 of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 *
13 */
14#ifndef FS_9P_XATTR_H
15#define FS_9P_XATTR_H
16
17#include <linux/xattr.h>
Aneesh Kumar K.V85ff8722010-09-28 00:27:39 +053018#include <net/9p/9p.h>
19#include <net/9p/client.h>
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053020
21extern const struct xattr_handler *v9fs_xattr_handlers[];
Aneesh Kumar K.V7a4566b2010-09-28 00:27:39 +053022extern const struct xattr_handler v9fs_xattr_acl_access_handler;
23extern const struct xattr_handler v9fs_xattr_acl_default_handler;
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053024
Aneesh Kumar K.V85ff8722010-09-28 00:27:39 +053025extern ssize_t v9fs_fid_xattr_get(struct p9_fid *, const char *,
26 void *, size_t);
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053027extern ssize_t v9fs_xattr_get(struct dentry *, const char *,
28 void *, size_t);
Al Viro38baba92013-01-31 12:34:58 -050029extern int v9fs_fid_xattr_set(struct p9_fid *, const char *,
30 const void *, size_t, int);
Aneesh Kumar K.Vebf46262010-05-31 13:22:56 +053031extern int v9fs_xattr_set(struct dentry *, const char *,
32 const void *, size_t, int);
33extern ssize_t v9fs_listxattr(struct dentry *, char *, size_t);
34#endif /* FS_9P_XATTR_H */