You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.3 KiB
70 lines
2.3 KiB
4 years ago
|
From 821c525c50d0fd704a3f189d8bdab2b97b65d887 Mon Sep 17 00:00:00 2001
|
||
|
From: Theodore Ts'o <tytso@mit.edu>
|
||
|
Date: Sat, 9 Aug 2014 13:03:43 -0400
|
||
|
Subject: [PATCH] tests: add f_first_meta_bg_too_big test
|
||
|
|
||
|
The test verifies that e2fsck can properly fix a file system where the
|
||
|
value of s_first_meta_bg in the superblock is larger than the number
|
||
|
of block group descriptors in the file system. E2fsck will fix this
|
||
|
by clearing the meta_bg feature.
|
||
|
|
||
|
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
||
|
---
|
||
|
tests/f_first_meta_bg_too_big/expect.1 | 20 ++++++++++++++++++++
|
||
|
tests/f_first_meta_bg_too_big/expect.2 | 7 +++++++
|
||
|
tests/f_first_meta_bg_too_big/name | 1 +
|
||
|
3 files changed, 28 insertions(+)
|
||
|
create mode 100644 tests/f_first_meta_bg_too_big/expect.1
|
||
|
create mode 100644 tests/f_first_meta_bg_too_big/expect.2
|
||
|
create mode 100644 tests/f_first_meta_bg_too_big/name
|
||
|
|
||
|
diff --git a/tests/f_first_meta_bg_too_big/expect.1 b/tests/f_first_meta_bg_too_big/expect.1
|
||
|
new file mode 100644
|
||
|
index 00000000..85786bda
|
||
|
--- /dev/null
|
||
|
+++ b/tests/f_first_meta_bg_too_big/expect.1
|
||
|
@@ -0,0 +1,20 @@
|
||
|
+First_meta_bg is too big. (2, max value 1). Clear? yes
|
||
|
+
|
||
|
+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
|
||
|
+Block bitmap differences: -3
|
||
|
+Fix? yes
|
||
|
+
|
||
|
+Free blocks count wrong for group #0 (79, counted=80).
|
||
|
+Fix? yes
|
||
|
+
|
||
|
+Free blocks count wrong (79, counted=80).
|
||
|
+Fix? yes
|
||
|
+
|
||
|
+
|
||
|
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
|
||
|
+test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks
|
||
|
+Exit status is 1
|
||
|
diff --git a/tests/f_first_meta_bg_too_big/expect.2 b/tests/f_first_meta_bg_too_big/expect.2
|
||
|
new file mode 100644
|
||
|
index 00000000..44bff624
|
||
|
--- /dev/null
|
||
|
+++ b/tests/f_first_meta_bg_too_big/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: 11/16 files (0.0% non-contiguous), 20/100 blocks
|
||
|
+Exit status is 0
|
||
|
diff --git a/tests/f_first_meta_bg_too_big/name b/tests/f_first_meta_bg_too_big/name
|
||
|
new file mode 100644
|
||
|
index 00000000..47ec96db
|
||
|
--- /dev/null
|
||
|
+++ b/tests/f_first_meta_bg_too_big/name
|
||
|
@@ -0,0 +1 @@
|
||
|
+s_first_meta_bg is too large
|
||
|
--
|
||
|
2.21.3
|
||
|
|