Whamcloud - gitweb
mke2fs/libext2fs: Fix lazy inode table initialization
authorTheodore Ts'o <tytso@mit.edu>
Wed, 23 Apr 2008 03:18:37 +0000 (23:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Apr 2008 03:18:37 +0000 (23:18 -0400)
commit0f2794c020b34de391f7a42e3b155ccb0ed2830f
treeaa95527eda1f4a2c854368f5dc541ba7dac852ed
parent4476105bf377eb9bd30d2771b21b2ada06c13e82
mke2fs/libext2fs: Fix lazy inode table initialization

This fixes some bugs which I introduced recently while revamping the
uninit_bg code.  Since mke2fs is no longer calling
ext2fs_set_gdt_csum(), it's important that ext2fs_initialize()
correctly initialize bg_itable_unused for all block group descriptors.
In addition, mke2fs needs to zero out the the reserved inodes based on
the values of bg_itable_unused set by ext2fs_initialize().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/initialize.c
misc/mke2fs.c