[PATCH 1/2] xfs_spaceman: report the health of quota counts

Darrick J. Wong
2024-06-03T19:22:35Z

Report the health of quota counts.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
---
man/man2/ioctl_xfs_fsgeometry.2 | 3 +++
spaceman/health.c | 4 ++++
2 files changed, 7 insertions(+)

diff --git a/man/man2/ioctl_xfs_fsgeometry.2 b/man/man2/ioctl_xfs_fsgeometry.2
index 6b7c83da7..f59a6e8a6 100644
--- a/man/man2/ioctl_xfs_fsgeometry.2
+++ b/man/man2/ioctl_xfs_fsgeometry.2
@@ -256,6 +256,9 @@ Free space bitmap for the realtime device.
.TP
.B XFS_FSOP_GEOM_SICK_RT_SUMMARY
Free space summary for the realtime device.
+.TP
+.B XFS_FSOP_GEOM_SICK_QUOTACHECK
+Quota resource usage counters.
.RE

.SH RETURN VALUE
diff --git a/spaceman/health.c b/spaceman/health.c
index d83c5ccd9..3318f9d1a 100644
--- a/spaceman/health.c
+++ b/spaceman/health.c
@@ -72,6 +72,10 @@ static const struct flag_map fs_flags[] = {
.descr = "realtime summary",
.has_fn = has_realtime,
},
+ {
+ .mask = XFS_FSOP_GEOM_SICK_QUOTACHECK,
+ .descr = "quota counts",
+ },
{0},
};