|
|
3b974a |
From 821c525c50d0fd704a3f189d8bdab2b97b65d887 Mon Sep 17 00:00:00 2001
|
|
|
3b974a |
From: Theodore Ts'o <tytso@mit.edu>
|
|
|
3b974a |
Date: Sat, 9 Aug 2014 13:03:43 -0400
|
|
|
3b974a |
Subject: [PATCH] tests: add f_first_meta_bg_too_big test
|
|
|
3b974a |
|
|
|
3b974a |
The test verifies that e2fsck can properly fix a file system where the
|
|
|
3b974a |
value of s_first_meta_bg in the superblock is larger than the number
|
|
|
3b974a |
of block group descriptors in the file system. E2fsck will fix this
|
|
|
3b974a |
by clearing the meta_bg feature.
|
|
|
3b974a |
|
|
|
3b974a |
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
|
3b974a |
---
|
|
|
3b974a |
tests/f_first_meta_bg_too_big/expect.1 | 20 ++++++++++++++++++++
|
|
|
3b974a |
tests/f_first_meta_bg_too_big/expect.2 | 7 +++++++
|
|
|
3b974a |
tests/f_first_meta_bg_too_big/name | 1 +
|
|
|
3b974a |
3 files changed, 28 insertions(+)
|
|
|
3b974a |
create mode 100644 tests/f_first_meta_bg_too_big/expect.1
|
|
|
3b974a |
create mode 100644 tests/f_first_meta_bg_too_big/expect.2
|
|
|
3b974a |
create mode 100644 tests/f_first_meta_bg_too_big/name
|
|
|
3b974a |
|
|
|
3b974a |
diff --git a/tests/f_first_meta_bg_too_big/expect.1 b/tests/f_first_meta_bg_too_big/expect.1
|
|
|
3b974a |
new file mode 100644
|
|
|
3b974a |
index 00000000..85786bda
|
|
|
3b974a |
--- /dev/null
|
|
|
3b974a |
+++ b/tests/f_first_meta_bg_too_big/expect.1
|
|
|
3b974a |
@@ -0,0 +1,20 @@
|
|
|
3b974a |
+First_meta_bg is too big. (2, max value 1). Clear? yes
|
|
|
3b974a |
+
|
|
|
3b974a |
+Pass 1: Checking inodes, blocks, and sizes
|
|
|
3b974a |
+Pass 2: Checking directory structure
|
|
|
3b974a |
+Pass 3: Checking directory connectivity
|
|
|
3b974a |
+Pass 4: Checking reference counts
|
|
|
3b974a |
+Pass 5: Checking group summary information
|
|
|
3b974a |
+Block bitmap differences: -3
|
|
|
3b974a |
+Fix? yes
|
|
|
3b974a |
+
|
|
|
3b974a |
+Free blocks count wrong for group #0 (79, counted=80).
|
|
|
3b974a |
+Fix? yes
|
|
|
3b974a |
+
|
|
|
3b974a |
+Free blocks count wrong (79, counted=80).
|
|
|
3b974a |
+Fix? yes
|
|
|
3b974a |
+
|
|
|
3b974a |
+
|
|
|
3b974a |
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
|
|
|
3b974a |
+test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks
|
|
|
3b974a |
+Exit status is 1
|
|
|
3b974a |
diff --git a/tests/f_first_meta_bg_too_big/expect.2 b/tests/f_first_meta_bg_too_big/expect.2
|
|
|
3b974a |
new file mode 100644
|
|
|
3b974a |
index 00000000..44bff624
|
|
|
3b974a |
--- /dev/null
|
|
|
3b974a |
+++ b/tests/f_first_meta_bg_too_big/expect.2
|
|
|
3b974a |
@@ -0,0 +1,7 @@
|
|
|
3b974a |
+Pass 1: Checking inodes, blocks, and sizes
|
|
|
3b974a |
+Pass 2: Checking directory structure
|
|
|
3b974a |
+Pass 3: Checking directory connectivity
|
|
|
3b974a |
+Pass 4: Checking reference counts
|
|
|
3b974a |
+Pass 5: Checking group summary information
|
|
|
3b974a |
+test_filesys: 11/16 files (0.0% non-contiguous), 20/100 blocks
|
|
|
3b974a |
+Exit status is 0
|
|
|
3b974a |
diff --git a/tests/f_first_meta_bg_too_big/name b/tests/f_first_meta_bg_too_big/name
|
|
|
3b974a |
new file mode 100644
|
|
|
3b974a |
index 00000000..47ec96db
|
|
|
3b974a |
--- /dev/null
|
|
|
3b974a |
+++ b/tests/f_first_meta_bg_too_big/name
|
|
|
3b974a |
@@ -0,0 +1 @@
|
|
|
3b974a |
+s_first_meta_bg is too large
|
|
|
3b974a |
--
|
|
|
3b974a |
2.21.3
|
|
|
3b974a |
|