xref: /kernel/linux/linux-5.10/fs/btrfs/xattr.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/fs/btrfs/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2007 Red Hat.  All rights reserved.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef BTRFS_XATTR_H
78c2ecf20Sopenharmony_ci#define BTRFS_XATTR_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/xattr.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciextern const struct xattr_handler *btrfs_xattr_handlers[];
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciint btrfs_getxattr(struct inode *inode, const char *name,
148c2ecf20Sopenharmony_ci		void *buffer, size_t size);
158c2ecf20Sopenharmony_ciint btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
168c2ecf20Sopenharmony_ci		   const char *name, const void *value, size_t size, int flags);
178c2ecf20Sopenharmony_ciint btrfs_setxattr_trans(struct inode *inode, const char *name,
188c2ecf20Sopenharmony_ci			 const void *value, size_t size, int flags);
198c2ecf20Sopenharmony_cissize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciint btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
228c2ecf20Sopenharmony_ci				     struct inode *inode, struct inode *dir,
238c2ecf20Sopenharmony_ci				     const struct qstr *qstr);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024