]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_spaceman: report health of the realtime refcount btree
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:22:04 +0000 (10:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:02 +0000 (09:16 -0800)
Report the health of the realtime reference count btree.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
spaceman/health.c

index 5774d609a28de3fea43a0a0f81a58df63cec3c60..efe2a7261de5c4dcafd831a752e88bc39f311d03 100644 (file)
@@ -47,6 +47,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);
@@ -156,6 +161,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},
 };