Whamcloud - gitweb
e2fsck: use the correct block size when salvaging directories
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 10 Aug 2014 22:44:42 +0000 (18:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Aug 2014 22:44:42 +0000 (18:44 -0400)
commit3a748dfc1cc28878b5c0ffc1042c3efb3d26360e
tree8fe2d376507806c38ebc8099f827bfa3a515b6b0
parentef9c58d572de36f1786d32c93196a679294e3bc7
e2fsck: use the correct block size when salvaging directories

Now that the directory salvaging operation is fed the block size,
teach pass 2 that it should use the size of the inline data if the
directory is inline_data.  Without this, it'll "fix" inline
directories by setting the rec_len to something approaching the FS
blocksize, which is clearly wrong.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass2.c