diff options
author | Jan Kara <jack@suse.cz> | 2018-06-19 11:15:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-06-19 11:27:51 -0400 |
commit | d338544de1d85aa833eaf72c5186fdae79970753 (patch) | |
tree | 2c0cda3c2ae84223faba764df2696b98695db9cf /debugfs | |
parent | d74eb7ef5e4ef9590af56744dd8915edf1a4ea12 (diff) |
debugfs: allow read-write opening in catastrophic mode
Allow filesystem to be open read-write in catastrophic mode so that one
can fixup e.g. superblock breakage. The CHECK_FS_BITMAPS flag to
common_args_process() still guards us from doing operations on bitmaps
which we don't load in this mode.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/debugfs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index cbcfa24c..a4f3370b 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -159,11 +159,6 @@ static void open_filesystem(char *device, int open_flags, blk64_t superblock, } } - if (catastrophic && (open_flags & EXT2_FLAG_RW)) { - com_err(device, 0, - "opening read-only because of catastrophic mode"); - open_flags &= ~EXT2_FLAG_RW; - } if (catastrophic) open_flags |= EXT2_FLAG_SKIP_MMP; |