xfs
[Top] [All Lists]

[PATCH 31/48] xfs_repair: always use incore header for directory block c

To: xfs@xxxxxxxxxxx
Subject: [PATCH 31/48] xfs_repair: always use incore header for directory block checks
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 7 Jun 2013 10:25:54 +1000
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1370564771-4929-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1370564771-4929-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

Otherwise we get failures to validate the block on CRC enabled
filesystems.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 repair/phase6.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repair/phase6.c b/repair/phase6.c
index 09052cc..6976d0c 100644
--- a/repair/phase6.c
+++ b/repair/phase6.c
@@ -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) {
-- 
1.7.10.4

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