]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: enable fsmap reporting for internal RT devices
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:16:52 +0000 (09:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:16:52 +0000 (09:16 +0200)
commit7b83644776f78889c984abbfea88ca60f120967a
tree015a3314d09edc8c927bfb8e78cc8ce9a4448182
parentfd7f46b65d16bef839de1484e9939fae4e7631d9
xfs: enable fsmap reporting for internal RT devices

Source kernel commit: e50ec7fac81aa271f20ae09868f772ff43a240b0

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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_fs.h