summaryrefslogtreecommitdiff
path: root/tests/f_lpf2
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-12-12 03:00:56 -0500
committerTheodore Ts'o <tytso@mit.edu>2003-12-12 03:00:56 -0500
commit2e5fcce05ea583c480b28bf3b1f2aa427a3dcc07 (patch)
treef88c9de0fa824574927dee3ab87b61c6442e4519 /tests/f_lpf2
parent2d9f0804bf6265f36f50fcde80b4cb5ef89fa936 (diff)
downloade2fsprogs-2e5fcce05ea583c480b28bf3b1f2aa427a3dcc07.tar.gz
Fix bug in e2fsck: When reconnecting a directory, we may
need to create a lost+found directory. This may invalidate our pointer to the directory information, so we must look it up again after calling e2fsck_reconnect_file(). (Addresses Debian bug #219640).
Diffstat (limited to 'tests/f_lpf2')
-rw-r--r--tests/f_lpf2/expect.141
-rw-r--r--tests/f_lpf2/expect.27
-rw-r--r--tests/f_lpf2/image.gzbin0 -> 450 bytes
-rw-r--r--tests/f_lpf2/name1
4 files changed, 49 insertions, 0 deletions
diff --git a/tests/f_lpf2/expect.1 b/tests/f_lpf2/expect.1
new file mode 100644
index 00000000..633586cc
--- /dev/null
+++ b/tests/f_lpf2/expect.1
@@ -0,0 +1,41 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Unconnected directory inode 12 (/???)
+Connect to /lost+found? yes
+
+/lost+found not found. Create? yes
+
+Unconnected directory inode 13 (/???)
+Connect to /lost+found? yes
+
+Pass 4: Checking reference counts
+Inode 2 ref count is 4, should be 3. Fix? yes
+
+Inode 12 ref count is 3, should be 2. Fix? yes
+
+Inode 13 ref count is 3, should be 2. Fix? yes
+
+Pass 5: Checking group summary information
+Block bitmap differences: -(9--19)
+Fix? yes
+
+Free blocks count wrong for group #0 (77, counted=89).
+Fix? yes
+
+Free blocks count wrong (77, counted=89).
+Fix? yes
+
+Free inodes count wrong for group #0 (2, counted=3).
+Fix? yes
+
+Directories count wrong for group #0 (5, counted=4).
+Fix? yes
+
+Free inodes count wrong (2, counted=3).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 13/16 files (0.0% non-contiguous), 11/100 blocks
+Exit status is 1
diff --git a/tests/f_lpf2/expect.2 b/tests/f_lpf2/expect.2
new file mode 100644
index 00000000..e5519325
--- /dev/null
+++ b/tests/f_lpf2/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: 13/16 files (0.0% non-contiguous), 11/100 blocks
+Exit status is 0
diff --git a/tests/f_lpf2/image.gz b/tests/f_lpf2/image.gz
new file mode 100644
index 00000000..f703fb3f
--- /dev/null
+++ b/tests/f_lpf2/image.gz
Binary files differ
diff --git a/tests/f_lpf2/name b/tests/f_lpf2/name
new file mode 100644
index 00000000..63da3159
--- /dev/null
+++ b/tests/f_lpf2/name
@@ -0,0 +1 @@
+create lost+found and reconnect lost directory