Whamcloud - gitweb
mke2fs: allow file systems w/ uninit_bg to be recovered with mke2fs -S
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Feb 2012 04:16:34 +0000 (23:16 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Feb 2012 20:28:20 +0000 (15:28 -0500)
commitba9e0afc5ab0d0ff26880e37ac71c281b644ce00
treea4323d34ae35df16b87a54bb6ea8a36fdf91bf6c
parent564826e2841c3c9505d02b1a1978892ae7b2b5d1
mke2fs: allow file systems w/ uninit_bg to be recovered with mke2fs -S

The command mke2fs -S is used as a last ditch recovery command to
write new superblock and block group descriptors, but _not_ to destroy
the inode table in hopes of recovering from a badly corrupted file
system.  If the uninit_bg feature is enabled, we need to make sure to
clear the unused inodes count field in the block group descriptors or
else e2fsck -fy will leave the file system completely empty.

Thanks to Akira Fujita for reporting this problem.

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