Whamcloud - gitweb
e2fsck: improve the inline directory detector
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Jan 2015 16:37:44 +0000 (11:37 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 28 Jan 2015 16:37:44 +0000 (11:37 -0500)
commite274cc39b91f5b0674eac922b22b29b857442194
tree178cae99a8a5c287791c549f9af0ffb8d9aad3af
parent0ac4b3973f313a0bd914b21e85c67b1b76e742fb
e2fsck: improve the inline directory detector

Strengthen the checks that guess if the inode we're looking at is an
inline directory.  The current check sweeps up any inline inode if
its length is a multiple of four; now we'll at least try to see if
there's the beginning of a valid directory entry.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
tests/f_inlinedata_repair/expect.1
tests/f_inlinedata_repair/expect.2
tests/f_inlinedir_detector/expect.1 [new file with mode: 0644]
tests/f_inlinedir_detector/expect.2 [new file with mode: 0644]
tests/f_inlinedir_detector/image.gz [new file with mode: 0644]
tests/f_inlinedir_detector/name [new file with mode: 0644]