Fixing SB with e2fsck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ted,

I was looking into fixing the problem with resize2fs overflowing
s_inodes_count with e2fsck. The problem there is that e2fsck does not even
open the filesystem as ext2fs_open2() finds s_inodes_count is corrupted and
aborts. That seems like a fundamental problem with e2fsck using
ext2fs_open2() so it is not able to fix corruptions in superblock. Usually
this can be resolved by resorting to a backup superblock but with this
resize2fs problem, backup superblocks are buggy in the same way so there's
no way to fix the filesystem besides binary poking bytes into it (even
debugfs won't work). So what should we do?

1) Just live with the fact that such corruptions are not easily fixable.
2) Add a flag to ext2fs_open() to check only a bare minimum in the
superblock so that e2fsck can start working and fixup the superblock.
3) Something else I'm missing.

What do you think?

								Honza

-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux