]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: fix leaf node directory data check
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:41:00 +0000 (06:41 +0000)
committerRich Johnston <rjohnston@sgi.com>
Thu, 14 Nov 2013 15:00:39 +0000 (09:00 -0600)
commit9b981421f503ba679097f8cd749af37cc42f5fd7
tree67e26886ed94e4c399fc82d728442540824dd782
parent0cce4aa198f0470817bedb3781ea5b6955e43076
repair: fix leaf node directory data check

When walking the leaf node format blocks (LEAFN) in the hash index
of a large directory, we could trip over btree node blocks (DA_NODE)
in the address space if there are enough entries in the directory.
These cause a verifier failure, and hence the directory is
considered corrupt and is trashed and rebuilt unnecessarily. Fix this
by using the correct verifier that can handle both types of blocks
without triggering failures.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/phase6.c