xfs
[Top] [All Lists]

[PATCH 0/2] repair: fix AGFL rebuild problem

To: xfs@xxxxxxxxxxx
Subject: [PATCH 0/2] repair: fix AGFL rebuild problem
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 29 Oct 2014 14:09:02 +1100
Cc: bvowk@xxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Hi folks,

The following two patches fix a repair rebuild issue that was
reported to me. xfs_repair would appear to succeed, but subsequent
runs would report a freespace mismatch and then on mount trigger
a corruption error on the first allocation from AG 0.

The problem as that the AGFL was not being correctly rebuilt due to
a very particular freespace pattern in AG 0 which required free
blocks in the AGFL to populate an empty AGFL. reapir silently
ignored this error, so it triggered allocation corruption errors
when the same AGFL fixup attempt failed on a mounted filesystem.

The fix is relatively straight forward, as is the fixes to the
tracing code that I had to make before i could track down the issue.

-Dave.

<Prev in Thread] Current Thread [Next in Thread>