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