xref: /OK3568_Linux_fs/kernel/fs/9p/xattr.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright IBM Corporation, 2010
3*4882a593Smuzhiyun  * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify it
6*4882a593Smuzhiyun  * under the terms of version 2.1 of the GNU Lesser General Public License
7*4882a593Smuzhiyun  * as published by the Free Software Foundation.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * This program is distributed in the hope that it would be useful, but
10*4882a593Smuzhiyun  * WITHOUT ANY WARRANTY; without even the implied warranty of
11*4882a593Smuzhiyun  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun #ifndef FS_9P_XATTR_H
15*4882a593Smuzhiyun #define FS_9P_XATTR_H
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #include <linux/xattr.h>
18*4882a593Smuzhiyun #include <net/9p/9p.h>
19*4882a593Smuzhiyun #include <net/9p/client.h>
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun extern const struct xattr_handler *v9fs_xattr_handlers[];
22*4882a593Smuzhiyun extern const struct xattr_handler v9fs_xattr_acl_access_handler;
23*4882a593Smuzhiyun extern const struct xattr_handler v9fs_xattr_acl_default_handler;
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun extern ssize_t v9fs_fid_xattr_get(struct p9_fid *, const char *,
26*4882a593Smuzhiyun 				  void *, size_t);
27*4882a593Smuzhiyun extern ssize_t v9fs_xattr_get(struct dentry *, const char *,
28*4882a593Smuzhiyun 			      void *, size_t);
29*4882a593Smuzhiyun extern int v9fs_fid_xattr_set(struct p9_fid *, const char *,
30*4882a593Smuzhiyun 			  const void *, size_t, int);
31*4882a593Smuzhiyun extern int v9fs_xattr_set(struct dentry *, const char *,
32*4882a593Smuzhiyun 			  const void *, size_t, int);
33*4882a593Smuzhiyun extern ssize_t v9fs_listxattr(struct dentry *, char *, size_t);
34*4882a593Smuzhiyun #endif /* FS_9P_XATTR_H */
35