Whamcloud - gitweb
e2fsck: inspect inline dir data as two directory blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 28 Jan 2015 14:00:13 +0000 (09:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 28 Jan 2015 14:00:13 +0000 (09:00 -0500)
commit0ac4b3973f313a0bd914b21e85c67b1b76e742fb
tree8e7c5bc3d039279955be6178a7bc0f1c27f6258a
parent09282b8a0b4b8ff7c57daf371dc3ea192e2947d3
e2fsck: inspect inline dir data as two directory blocks

The design of inline directories (apparently) calls for the i_block[]
region and the EA regions to be treated as if they were two separate
blocks of dirents.  Effectively this means that it is impossible for a
directory entry to straddle both areas.  e2fsck doesn't enforce this,
so teach it to do so.  e2fslib already knows to do this....

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