]> www.infradead.org Git - users/hch/xfsprogs.git/commit
repair: handle uncorrected corruptions in phase 2
authorDave Chinner <dchinner@redhat.com>
Fri, 11 Jul 2014 02:00:51 +0000 (12:00 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 11 Jul 2014 02:00:51 +0000 (12:00 +1000)
commit1fe7b0b07b2ab9c9dca09b107117acca047a781a
treef92ef714986c950c7bcce49f4a79ac4491961f81
parentcee99cfa7ccb720f60b6cf77997792efbd90a413
repair: handle uncorrected corruptions in phase 2

Some of the AG header corruptions detected by the IO verifiers
cannot be corrected in phase 2 when we do the initial scan of the
AGs. Correcting some errors cannot be done until a full rebuild of
the trees is done in phase 5.

Hence we can end up with a "clean" AGF/AGI buffer but have a
EFSCORRUPTED error on the buffer. This results in an assert failing:

ASSERT(agf_dirty || agfbuf->b_error != EFSCORRUPTED);

and repair not beign able to fix the problems it has tripped over.
Hence the assert that we corrected all corruptions in the buffers
is not valid and should be removed.

Reported-by: Hans Kraus <hans.w.kraus@gmx.at>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/scan.c