]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: try to correct sb_unit value from secondaries
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 27 Feb 2020 20:05:47 +0000 (15:05 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2020 20:05:47 +0000 (15:05 -0500)
commit306b450b005585a19c65b59d07a3e2af0abfa6fd
tree10779df2ab93a24a8be81c7dcea9877e67b995d3
parentded6b55889acf0edf0a8e12744cc05a6d4677e29
xfs_repair: try to correct sb_unit value from secondaries

If the primary superblock's sb_unit leads to a rootino calculation that
doesn't match sb_rootino /but/ we can find a secondary superblock whose
sb_unit does match, fix the primary.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
repair/xfs_repair.c