summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2021-12-10 22:40:40 -0500
committerTheodore Ts'o <tytso@mit.edu>2021-12-10 22:40:40 -0500
commit755e1da8398c0414c3ce4a399f5661f255e61529 (patch)
treecc6f1ebeaa27689259f40bf6b6bec7129c4f86b0 /tests
parent699d448eee4b991acafaae4e4f8222be332d6837 (diff)
downloade2fsprogs-755e1da8398c0414c3ce4a399f5661f255e61529.tar.gz
e2fsck: update the bg_checksum after fixing problems in the bg descriptor
Otherwise, we break the block group descriptor's checksum, and while this gets fixed by e2fsck, it results unnecessary messages printed or questions asked of the system administrator. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/f_uninit_inode_past_unused/expect.13
-rw-r--r--tests/f_uninit_restart_fsck/expect.14
-rw-r--r--tests/f_unused_itable/expect.14
3 files changed, 0 insertions, 11 deletions
diff --git a/tests/f_uninit_inode_past_unused/expect.1 b/tests/f_uninit_inode_past_unused/expect.1
index 1cf5c85c..de1ac23c 100644
--- a/tests/f_uninit_inode_past_unused/expect.1
+++ b/tests/f_uninit_inode_past_unused/expect.1
@@ -4,9 +4,6 @@ Entry 'foo' in / (2) references inode 14 found in group 0's unused inodes area.
Fix? yes
Restarting e2fsck from the beginning...
-One or more block group descriptor checksums are invalid. Fix? yes
-
-Group descriptor 0 checksum is 0x4c72, should be 0xde74. FIXED.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
diff --git a/tests/f_uninit_restart_fsck/expect.1 b/tests/f_uninit_restart_fsck/expect.1
index d396beb3..64a2d062 100644
--- a/tests/f_uninit_restart_fsck/expect.1
+++ b/tests/f_uninit_restart_fsck/expect.1
@@ -13,10 +13,6 @@ Entry 'bar2' in /d2 (3761) has an incorrect filetype (was 1, should be 0).
Fix? yes
Restarting e2fsck from the beginning...
-One or more block group descriptor checksums are invalid. Fix? yes
-
-Group descriptor 0 checksum is 0xb92b, should be 0x2b5f. FIXED.
-Group descriptor 1 checksum is 0x2f53, should be 0x8d2f. FIXED.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'foo2' in /d1 (1881) has deleted/unused inode 500. Clear? yes
diff --git a/tests/f_unused_itable/expect.1 b/tests/f_unused_itable/expect.1
index a4da987e..ffda3c48 100644
--- a/tests/f_unused_itable/expect.1
+++ b/tests/f_unused_itable/expect.1
@@ -7,10 +7,6 @@ Entry '1' in / (2) references inode 12 found in group 0's unused inodes area.
Fix? yes
Restarting e2fsck from the beginning...
-One or more block group descriptor checksums are invalid. Fix? yes
-
-Group descriptor 0 checksum is 0x289d, should be 0x788a. FIXED.
-Group descriptor 1 checksum is 0xfaab, should be 0x3a9a. FIXED.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity