Whamcloud - gitweb
e2fsprogs-tests-f_ea_checks.patch
authorAndreas Dilger <adilger@sun.com>
Sat, 2 Feb 2008 08:22:05 +0000 (01:22 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Feb 2008 02:45:33 +0000 (21:45 -0500)
Test case for various types of extended attribute block corruption

Signed-off-by: Andreas Dilger <adilger@sun.com>
tests/f_ea_checks/expect.1 [new file with mode: 0644]
tests/f_ea_checks/expect.2 [new file with mode: 0644]
tests/f_ea_checks/image.gz [new file with mode: 0644]
tests/f_ea_checks/name [new file with mode: 0644]

diff --git a/tests/f_ea_checks/expect.1 b/tests/f_ea_checks/expect.1
new file mode 100644 (file)
index 0000000..eb215a2
--- /dev/null
@@ -0,0 +1,57 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 13 has a bad extended attribute block 26.  Clear? yes
+
+Inode 13, i_blocks is 4, should be 2.  Fix? yes
+
+Extended attribute in inode 14 has a hash (1649340189) which is invalid
+Clear? yes
+
+Inode 14, i_blocks is 2, should be 0.  Fix? yes
+
+Inode 17 has a bad extended attribute block 28.  Clear? yes
+
+Inode 17, i_blocks is 4, should be 2.  Fix? yes
+
+Inode 16 has a bad extended attribute block 29.  Clear? yes
+
+Inode 16, i_blocks is 2, should be 0.  Fix? yes
+
+Inode 19 has a bad extended attribute block 33.  Clear? yes
+
+Inode 19, i_blocks is 2, should be 0.  Fix? yes
+
+Inode 12 has a bad extended attribute block 55.  Clear? yes
+
+Inode 12, i_blocks is 2, should be 0.  Fix? yes
+
+Inode 15, i_blocks is 2, should be 0.  Fix? yes
+
+Pass 2: Checking directory structure
+Extended attribute block for inode 15 (/far) is invalid (999).
+Clear? yes
+
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+Block bitmap differences:  -(26--29) -33 -55
+Fix? yes
+
+Free blocks count wrong for group #0 (481, counted=484).
+Fix? yes
+
+Free blocks count wrong (481, counted=484).
+Fix? yes
+
+Inode bitmap differences:  -18
+Fix? yes
+
+Free inodes count wrong for group #0 (47, counted=46).
+Fix? yes
+
+Free inodes count wrong (47, counted=46).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 18/64 files (0.0% non-contiguous), 28/512 blocks
+Exit status is 1
diff --git a/tests/f_ea_checks/expect.2 b/tests/f_ea_checks/expect.2
new file mode 100644 (file)
index 0000000..2a11cd2
--- /dev/null
@@ -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: 18/64 files (0.0% non-contiguous), 28/512 blocks
+Exit status is 0
diff --git a/tests/f_ea_checks/image.gz b/tests/f_ea_checks/image.gz
new file mode 100644 (file)
index 0000000..253da06
Binary files /dev/null and b/tests/f_ea_checks/image.gz differ
diff --git a/tests/f_ea_checks/name b/tests/f_ea_checks/name
new file mode 100644 (file)
index 0000000..160fdea
--- /dev/null
@@ -0,0 +1 @@
+extended attribute block checks