Whamcloud - gitweb
e2fsck: fix sliding the directory block down on bigalloc
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Sep 2014 01:29:21 +0000 (21:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 19 Sep 2014 01:29:21 +0000 (21:29 -0400)
commit7ef1b8b4248ab099f4ac4c921fe8c0def831f255
tree3f0c922029aae9d41455144f0ef163f709a309c3
parent79362360658a70e3d4304435bc06837494cf198d
e2fsck: fix sliding the directory block down on bigalloc

If we find a hole in a directory on a bigalloc filesystem, we need to
obey the cluster alignment rules when collapsing the gap to avoid
later complaints.

Specifically, the calculation of the new logical cluster number was
incorrect, and we need to ensure that the logical cluster alignment
respects the physical cluster alignment, since we've concluded that
the extent's logical block number is wrong.

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