// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
*/ #ifndef __XFS_ITABLE_H__ #define __XFS_ITABLE_H__
/* In-memory representation of a userspace request for batch inode data. */ struct xfs_ibulk { struct xfs_mount *mp; struct mnt_idmap *idmap; void __user *ubuffer; /* user output buffer */
xfs_ino_t startino; /* start with this inode */ unsignedint icount; /* number of elements in ubuffer */ unsignedint ocount; /* number of records returned */ unsignedint flags; /* XFS_IBULK_FLAG_* */ unsignedint iwalk_flags; /* XFS_IWALK_FLAG_* */
};
/* Fill out the bs_extents64 field if set. */ #define XFS_IBULK_NREXT64 (1U << 0)
/* Signal that we can return metadata directories. */ #define XFS_IBULK_METADIR (1U << 1)
/* * Advance the user buffer pointer by one record of the given size. If the * buffer is now full, return the appropriate error code.
*/ staticinlineint
xfs_ibulk_advance( struct xfs_ibulk *breq,
size_t bytes)
{ char __user *b = breq->ubuffer;
/* * Return stat information in bulk (by-inode) for the filesystem.
*/
/* * Return codes for the formatter function are 0 to continue iterating, and * non-zero to stop iterating. Any non-zero value will be passed up to the * bulkstat/inumbers caller. The special value -ECANCELED can be used to stop * iteration, as neither bulkstat nor inumbers will ever generate that error * code on their own.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.