]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: report rt group and block number in the bmap command
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:38 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:34 +0000 (18:01 -0800)
commitbd76dc340f6798694b1ce7a432683e969e749ed4
treeb586733f4e1783a350891c18c51a5eab8ca6ad34
parente5bd3d74aa0204aa8633d0dbbb2c460cb4dba150
xfs_db: report rt group and block number in the bmap command

The bmap command does not report startblocks for realtime files
correctly.  If rtgroups are enabled, we need to use the appropriate
functions to crack the startblock into rtgroup and block numbers; if
not, then we need to report a linear address and not try to report a
group number.

Fix both of these issues.

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