From 755e1da8398c0414c3ce4a399f5661f255e61529 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 10 Dec 2021 22:40:40 -0500 Subject: 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 --- tests/f_uninit_inode_past_unused/expect.1 | 3 --- tests/f_uninit_restart_fsck/expect.1 | 4 ---- tests/f_unused_itable/expect.1 | 4 ---- 3 files changed, 11 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1