mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
6c631e79e7
Create a streamlined function to walk a file's xattrs, without all the cursor management stuff in the regular listxattr. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
18 lines
579 B
C
18 lines
579 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2022-2024 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_LISTXATTR_H__
|
|
#define __XFS_SCRUB_LISTXATTR_H__
|
|
|
|
typedef int (*xchk_xattr_fn)(struct xfs_scrub *sc, struct xfs_inode *ip,
|
|
unsigned int attr_flags, const unsigned char *name,
|
|
unsigned int namelen, const void *value, unsigned int valuelen,
|
|
void *priv);
|
|
|
|
int xchk_xattr_walk(struct xfs_scrub *sc, struct xfs_inode *ip,
|
|
xchk_xattr_fn attr_fn, void *priv);
|
|
|
|
#endif /* __XFS_SCRUB_LISTXATTR_H__ */
|