Whamcloud - gitweb
e2fsck: use ext2fs_write_dir_block3() instead of ext2fs_write_dir_block()
authorKit Westneat <kwestneat@ddn.com>
Tue, 3 Dec 2013 00:11:52 +0000 (19:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Dec 2013 00:11:52 +0000 (19:11 -0500)
commit7bef6d52125ef3f1ef07d9da71a13546f6843c56
tree15df7bed752cbc35e353ed13e5ac22c237c348dd
parent496220309337863b45d9ee6173ff431919fb51f5
e2fsck: use ext2fs_write_dir_block3() instead of ext2fs_write_dir_block()

The use of ext2fs_write_dir_block() meant that attempts to fix
deleted/unused inodes in a directory would not be fixed for file
systems with 64-bit block numbers.  (And some random block with the
high 32-bits cleared would get corrupted.)

Fix a similar problem when expanding directories and when creating the
lost+found dirctory.

Signed-off-by: Kit Westneat <kwestneat@ddn.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
e2fsck/pass2.c
e2fsck/pass3.c