Whamcloud - gitweb
e2fsck: allow to fix some superblock corruptions
authorJan Kara <jack@suse.cz>
Tue, 12 Jun 2018 09:53:23 +0000 (11:53 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Jun 2018 15:27:27 +0000 (11:27 -0400)
commit35b459ffd7b8b60671debe7233d5c558db1afafd
tree94b60f6accff2537fb1db433fd23bce8ae9580c6
parent42e77d5db53e3ec09b5dc507169d15de219799e3
e2fsck: allow to fix some superblock corruptions

Add a flag to ext2fs_open() which allows to open a filesystem even if
superblock is somewhat inconsistent. Use this flag from e2fsck as a last
resort to try to fix the superblok.

Currently, the flag does nothing. We'll relax checks in ext2fs_open()
once e2fsck is able to handle corresponding corruption gracefully.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c
lib/ext2fs/ext2fs.h
tests/f_crashdisk/expect.1
tests/f_detect_xfs/expect
tests/f_detect_xfs/expect.nodebugfs
tests/j_ext_dumpe2fs/expect