From d77a6dbba557d3efd809f2513af0514efeac22e3 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Thu, 15 Aug 2024 11:58:29 -0700 Subject: [PATCH] xfs_spaceman: report health of the realtime refcount btree Report the health of the realtime reference count btree. Signed-off-by: Darrick J. Wong --- spaceman/health.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spaceman/health.c b/spaceman/health.c index 90e4dfd8c..786463a0f 100644 --- a/spaceman/health.c +++ b/spaceman/health.c @@ -46,6 +46,11 @@ static bool has_rtrmapbt(const struct xfs_fsop_geom *g) return g->rtblocks > 0 && (g->flags & XFS_FSOP_GEOM_FLAGS_RMAPBT); } +static bool has_rtreflink(const struct xfs_fsop_geom *g) +{ + return g->rtblocks > 0 && (g->flags & XFS_FSOP_GEOM_FLAGS_REFLINK); +} + struct flag_map { unsigned int mask; bool (*has_fn)(const struct xfs_fsop_geom *g); @@ -155,6 +160,11 @@ static const struct flag_map rtgroup_flags[] = { .descr = "realtime reverse mappings btree", .has_fn = has_rtrmapbt, }, + { + .mask = XFS_RTGROUP_GEOM_SICK_REFCNTBT, + .descr = "realtime reference count btree", + .has_fn = has_rtreflink, + }, {0}, }; -- 2.50.1