summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_itable.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-09-01 11:15:38 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-12-15 17:29:08 -0800
commitc30358814d4e757e02cd713f367801076cd9077c (patch)
tree85f19bd23a3e2e332a2f3bbca158b936abeed7f8 /fs/xfs/xfs_itable.h
parent6c47b24a66986b6d5d4d1474c8fd2e9c7da6819e (diff)
xfs: allow bulkstat to return metadata directories
Allow the V5 bulkstat ioctl to return information about metadata directory files so that xfs_scrub can find and scrub them, since they are otherwise ordinary directories. (Metadata files of course require per-file scrub code and hence do not need exposure.) Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_itable.h')
-rw-r--r--fs/xfs/xfs_itable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_itable.h b/fs/xfs/xfs_itable.h
index 7078d10c9b12..f5a13f69883a 100644
--- a/fs/xfs/xfs_itable.h
+++ b/fs/xfs/xfs_itable.h
@@ -19,6 +19,9 @@ struct xfs_ibulk {
/* Only iterate within the same AG as startino */
#define XFS_IBULK_SAME_AG (XFS_IWALK_SAME_AG)
+/* Signal that we can return metadata directories. */
+#define XFS_IBULK_METADIR (XFS_IWALK_METADIR)
+
/*
* Advance the user buffer pointer by one record of the given size. If the
* buffer is now full, return the appropriate error code.