]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: fix fino_bno calculation when rmapbt is enabled
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Aug 2016 23:57:04 +0000 (09:57 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Aug 2016 23:57:04 +0000 (09:57 +1000)
commit7ddb50f899b2624c39cbe5b563e7889972b3f4ea
tree488b7dbc699f5aa21e16177332b8e1559de449f4
parent0f94fa4b023916527a206d54861555bb99247deb
xfs_repair: fix fino_bno calculation when rmapbt is enabled

In xfs_repair, we calculate where we think mkfs put the root inode
block.  However, the rmapbt component doesn't account for the fact
that mkfs reserved 2 AGFL blocks for the rmapbt, so its calculation
is off by a bit.  This leads to it complaining (incorrectly) about the
root inode block being in the wrong place and blowing up.

[dchinner: small comment update to indicate AGFL block accounting]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/xfs_repair.c