]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: enforce that inode btree chunks can't point to AG headers
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 27 Feb 2020 19:50:01 +0000 (14:50 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2020 19:50:01 +0000 (14:50 -0500)
commitb1f7ac05b1fd9d74079136ba7d6576ebe91b2a82
treefb7d24669d344f0a51b249f9d0dc24c6b5594d6f
parent659a4358f2d36178a388abf91e32d782c3cb9690
xfs_repair: enforce that inode btree chunks can't point to AG headers

xfs_repair has a very old check that evidently excuses the AG 0 inode
btrees pointing to blocks that are already marked XR_E_INUSE_FS* (e.g.
AG headers).  mkfs never formats filesystems that way and it looks like
an error, so purge the check.  After this, we always complain if inodes
overlap with AG headers because that should never happen.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[sandeen: removed unused switch cases that fall through to default]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/globals.c
repair/globals.h
repair/scan.c
repair/xfs_repair.c