]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: Support new AGFL format
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:28 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 15:56:32 +0000 (10:56 -0500)
commit84232448fb1a091af02c1cc6b3239ea182a04713
treec41aca4779e041395c0ddd29e3052ed434e08543
parentdd5b876e0c7110dccc770fd1241d0224d50f15c0
xfsprogs: Support new AGFL format

With the addition of CRCs to the filesystem format, the AGFL has a
new format structure definition. Existing code that pulls freelist
blocks out via dereferencing agfl->agfl_bno no longer works as the
location of the free list is now variable depending on the disk
format in use.

Hence all the users of agfl_bno need ot be converted to extract the
location of the first free list entry from the AGFL and grab entries
relative to that first entry. It's a simple change, but needs to be
made in several places as there is very little code reuse within and
between the different utilities in xfsprogs.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/check.c
db/freesp.c
repair/phase5.c
repair/scan.c