From 5dced3d1b3deca80e01415a2e35dc7972dcbfae7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 11:25:10 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/f_h_badroot/expect.1 | 40 ++++++++++++++++++++++++++++++++++++++++ tests/f_h_badroot/expect.2 | 7 +++++++ tests/f_h_badroot/image.gz | Bin 0 -> 43165 bytes tests/f_h_badroot/name | 1 + tests/f_h_badroot/script | 5 +++++ 5 files changed, 53 insertions(+) create mode 100644 tests/f_h_badroot/expect.1 create mode 100644 tests/f_h_badroot/expect.2 create mode 100644 tests/f_h_badroot/image.gz create mode 100644 tests/f_h_badroot/name create mode 100644 tests/f_h_badroot/script (limited to 'tests/f_h_badroot') diff --git a/tests/f_h_badroot/expect.1 b/tests/f_h_badroot/expect.1 new file mode 100644 index 0000000..88eba51 --- /dev/null +++ b/tests/f_h_badroot/expect.1 @@ -0,0 +1,40 @@ +Backing up journal inode block information. + +Pass 1: Checking inodes, blocks, and sizes +HTREE directory inode 13345 has an invalid root node. +Clear HTree index? yes + +HTREE directory inode 26689 has an unsupported hash version (240) +Clear HTree index? yes + +HTREE directory inode 40033 has an invalid root node. +Clear HTree index? yes + +HTREE directory inode 53377 has a tree depth (8) which is too big +Clear HTree index? yes + +HTREE directory inode 66721 uses an incompatible htree root node flag. +Clear HTree index? yes + +Pass 2: Checking directory structure +Problem in HTREE directory inode 80065: block #0 has an unordered hash table +Clear HTree index? yes + +Problem in HTREE directory inode 86737: block #0 has invalid limit (511) +Clear HTree index? yes + +Problem in HTREE directory inode 93409: block #0 has invalid count (234) +Clear HTree index? yes + +Problem in HTREE directory inode 73393: block #1 has bad min hash +Problem in HTREE directory inode 73393: block #2 has bad max hash +Invalid HTREE directory inode 73393 (/test6). Clear HTree index? yes + +Pass 3: Checking directory connectivity +Pass 3A: Optimizing directories +Pass 4: Checking reference counts +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 1921/100080 files (0.0% non-contiguous), 13646/15361 blocks +Exit status is 1 diff --git a/tests/f_h_badroot/expect.2 b/tests/f_h_badroot/expect.2 new file mode 100644 index 0000000..d5772c1 --- /dev/null +++ b/tests/f_h_badroot/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 1921/100080 files (0.0% non-contiguous), 13646/15361 blocks +Exit status is 0 diff --git a/tests/f_h_badroot/image.gz b/tests/f_h_badroot/image.gz new file mode 100644 index 0000000..7160cd5 Binary files /dev/null and b/tests/f_h_badroot/image.gz differ diff --git a/tests/f_h_badroot/name b/tests/f_h_badroot/name new file mode 100644 index 0000000..b2ac7ff --- /dev/null +++ b/tests/f_h_badroot/name @@ -0,0 +1 @@ +bad htree root nodes diff --git a/tests/f_h_badroot/script b/tests/f_h_badroot/script new file mode 100644 index 0000000..e5fc6b2 --- /dev/null +++ b/tests/f_h_badroot/script @@ -0,0 +1,5 @@ +if test "$HTREE"x = yx ; then +. $cmd_dir/run_e2fsck +else + echo "$test_name: $test_description: skipped" +fi -- cgit v1.2.3