blob: b3cc8039134bc4ed59420f51b48ab72c04f2eedc [file] [log] [blame]
Josef Bacik5103e942007-11-16 11:45:54 -05001/*
2 * Copyright (C) 2007 Red Hat. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 * Boston, MA 021110-1307, USA.
17 */
18
19#ifndef __XATTR__
20#define __XATTR__
21
22#include <linux/xattr.h>
Josef Bacik5103e942007-11-16 11:45:54 -050023
Stephen Hemmingerf01cbd32010-05-13 17:53:15 -070024extern const struct xattr_handler btrfs_xattr_acl_access_handler;
25extern const struct xattr_handler btrfs_xattr_acl_default_handler;
26extern const struct xattr_handler *btrfs_xattr_handlers[];
Josef Bacik5103e942007-11-16 11:45:54 -050027
Christoph Hellwig95819c02008-08-28 06:21:17 -040028extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
29 void *buffer, size_t size);
Yan, Zhengf34f57a2009-11-12 09:35:27 +000030extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
31 struct inode *inode, const char *name,
32 const void *value, size_t size, int flags);
Christoph Hellwig95819c02008-08-28 06:21:17 -040033extern ssize_t btrfs_getxattr(struct dentry *dentry, const char *name,
34 void *buffer, size_t size);
35extern int btrfs_setxattr(struct dentry *dentry, const char *name,
36 const void *value, size_t size, int flags);
37extern int btrfs_removexattr(struct dentry *dentry, const char *name);
Josef Bacik5103e942007-11-16 11:45:54 -050038
Yan, Zhengf34f57a2009-11-12 09:35:27 +000039extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
Eric Paris2a7dba32011-02-01 11:05:39 -050040 struct inode *inode, struct inode *dir,
41 const struct qstr *qstr);
Jim Owens0279b4c2009-02-04 09:29:13 -050042
Josef Bacik5103e942007-11-16 11:45:54 -050043#endif /* __XATTR__ */