Add reporting of the rt rmap btree health to spaceman.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
return g->flags & XFS_FSOP_GEOM_FLAGS_REFLINK;
}
+static bool has_rtrmapbt(const struct xfs_fsop_geom *g)
+{
+ return g->rtblocks > 0 && (g->flags & XFS_FSOP_GEOM_FLAGS_RMAPBT);
+}
+
struct flag_map {
unsigned int mask;
bool (*has_fn)(const struct xfs_fsop_geom *g);
.mask = XFS_RTGROUP_GEOM_SICK_SUMMARY,
.descr = "realtime summary",
},
+ {
+ .mask = XFS_RTGROUP_GEOM_SICK_RMAPBT,
+ .descr = "realtime reverse mappings btree",
+ .has_fn = has_rtrmapbt,
+ },
{0},
};