2018-04-03 20:16:55 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2007-11-16 19:45:54 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 Red Hat. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2018-04-03 20:16:55 +03:00
|
|
|
#ifndef BTRFS_XATTR_H
|
|
|
|
#define BTRFS_XATTR_H
|
2007-11-16 19:45:54 +03:00
|
|
|
|
|
|
|
#include <linux/xattr.h>
|
|
|
|
|
2010-05-14 04:53:15 +04:00
|
|
|
extern const struct xattr_handler *btrfs_xattr_handlers[];
|
2007-11-16 19:45:54 +03:00
|
|
|
|
2018-02-27 17:48:57 +03:00
|
|
|
int btrfs_getxattr(struct inode *inode, const char *name,
|
2008-08-28 14:21:17 +04:00
|
|
|
void *buffer, size_t size);
|
2019-04-12 11:02:56 +03:00
|
|
|
int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
|
|
|
|
const char *name, const void *value, size_t size, int flags);
|
2019-04-12 11:02:59 +03:00
|
|
|
int btrfs_setxattr_trans(struct inode *inode, const char *name,
|
|
|
|
const void *value, size_t size, int flags);
|
2018-02-27 17:48:59 +03:00
|
|
|
ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
|
2007-11-16 19:45:54 +03:00
|
|
|
|
2018-02-27 17:48:54 +03:00
|
|
|
int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
|
2011-02-01 19:05:39 +03:00
|
|
|
struct inode *inode, struct inode *dir,
|
|
|
|
const struct qstr *qstr);
|
2009-02-04 17:29:13 +03:00
|
|
|
|
2018-04-03 20:16:55 +03:00
|
|
|
#endif
|