xfs: enable fsmap reporting for internal RT devices
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Nov 2024 05:51:55 +0000 (06:51 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:17:08 +0000 (08:17 -0700)
commite50ec7fac81aa271f20ae09868f772ff43a240b0
tree323f7e50979c72de4cfa838ccd9e6f102f6c87c2
parent14d355dceca26a28b6c95759fc9a3645f5ec2f8d
xfs: enable fsmap reporting for internal RT devices

File system with internal RT devices are a bit odd in that we need
to report AGs and RGs.  To make this happen use separate synthetic
fmr_device values for the different sections instead of the dev_t
mapping used by other XFS configurations.

The data device is reported as file system metadata before the
start of the RGs for the synthetic RT fmr_device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/libxfs/xfs_fs.h
fs/xfs/xfs_fsmap.c