]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: trash dirattr btrees that cycle to the root
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Jan 2017 02:02:43 +0000 (20:02 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 26 Jan 2017 02:02:43 +0000 (20:02 -0600)
commitce746a2928d43face98cdb6684dea343b8e9b481
treec419e968e44a9b1df7df6373c8985ea804779e94
parentfa2a8c17da431c4940cc4a50ce20134e1fa5c678
xfs_repair: trash dirattr btrees that cycle to the root

If xfs_repair detects a dir/attr btree that cycles back to the root, the
tree should be cleared and/or rebuilt instead of simply aborting the
repair program.

[sandeen: move check outside main loop]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/attr_repair.c