]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: enable fsmap reporting for internal RT devices
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:36:05 +0000 (07:36 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:57 +0000 (18:09 +0200)
commit6b1ed216be17d5a3daa5f60e677e4c658dc6cd2b
treeabf8f4ee3ba0c5b847268d54a4a0647c029db936
parentd648bcdbbb87f5150463983a89ea2e400e71eb26
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