]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: report rt group and block number in the bmap command
authorDarrick J. Wong <djwong@kernel.org>
Thu, 26 Sep 2024 20:39:07 +0000 (13:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:29:14 +0000 (16:29 -0700)
commit5879c7474a23abcc4e4fd1c1d9ae48d51bf67e16
tree59ab1bdc76676a6eaa3eec5514065a106c8990ac
parentf3641f0dddbe46485433ced126ddd476a015b5f1
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>
db/bmap.c