]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: always use incore header for directory block checks
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:54 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 20:35:35 +0000 (15:35 -0500)
Otherwise we get failures to validate the block on CRC enabled
filesystems.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
repair/phase6.c

index 09052cc15a3b97f3fc1002e3053d24f0cd67ab63..6976d0cd76b9296fa03f2c2240c3e87e493ada0a 100644 (file)
@@ -1849,7 +1849,7 @@ longform_dir2_check_leaf(
        if (!(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC ||
              leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) ||
                                leafhdr.forw || leafhdr.back ||
-                               leafhdr.count < leaf->hdr.stale ||
+                               leafhdr.count < leafhdr.stale ||
                                leafhdr.count >
                                        xfs_dir3_max_leaf_ents(mp, leaf) ||
                                (char *)&ents[leafhdr.count] > (char *)bestsp) {