diff options
author | Theodore Ts'o <tytso@mit.edu> | 2022-09-13 07:59:52 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-09-13 07:59:52 -0400 |
commit | 281dcbfb1d59d0db95d4f81b8b9c275d87515ceb (patch) | |
tree | 43aad23d5d8b36b5772827b989e719b4b8308575 /tests/f_first_meta_bg_too_big | |
parent | a721b865d97cef58d7bca3bd03c8190342da79e8 (diff) | |
download | e2fsprogs-281dcbfb1d59d0db95d4f81b8b9c275d87515ceb.tar.gz |
libext2fs: in ext2fs_open[2](), return an error if s_first_meta_bg is too big
These checks will be skipped for e2fsck when it uses the flag
EXT2_FLAG_IGNORE_SB_ERRORS.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests/f_first_meta_bg_too_big')
-rw-r--r-- | tests/f_first_meta_bg_too_big/expect.1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/f_first_meta_bg_too_big/expect.1 b/tests/f_first_meta_bg_too_big/expect.1 index 85786bda..3148513c 100644 --- a/tests/f_first_meta_bg_too_big/expect.1 +++ b/tests/f_first_meta_bg_too_big/expect.1 @@ -1,3 +1,7 @@ +ext2fs_open2: The ext2 superblock is corrupt +../e2fsck/e2fsck: Superblock invalid, trying backup blocks... +../e2fsck/e2fsck: The ext2 superblock is corrupt while trying to open test.img +../e2fsck/e2fsck: Trying to load superblock despite errors... First_meta_bg is too big. (2, max value 1). Clear? yes Pass 1: Checking inodes, blocks, and sizes |