summaryrefslogtreecommitdiffstats
path: root/tests/f_salvage_dir
diff options
context:
space:
mode:
Diffstat (limited to 'tests/f_salvage_dir')
-rw-r--r--tests/f_salvage_dir/expect.119
-rw-r--r--tests/f_salvage_dir/expect.27
-rw-r--r--tests/f_salvage_dir/image.gzbin0 -> 616 bytes
-rw-r--r--tests/f_salvage_dir/name1
4 files changed, 27 insertions, 0 deletions
diff --git a/tests/f_salvage_dir/expect.1 b/tests/f_salvage_dir/expect.1
new file mode 100644
index 0000000..3286384
--- /dev/null
+++ b/tests/f_salvage_dir/expect.1
@@ -0,0 +1,19 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Directory inode 13, block #0, offset 48: directory corrupted
+Salvage? yes
+
+Directory inode 12, block #1, offset 0: directory corrupted
+Salvage? yes
+
+Setting filetype for entry 'c' in /test (12) to 1.
+Directory inode 12, block #1, offset 1016: directory corrupted
+Salvage? yes
+
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 19/64 files (10.5% non-contiguous), 30/100 blocks
+Exit status is 1
diff --git a/tests/f_salvage_dir/expect.2 b/tests/f_salvage_dir/expect.2
new file mode 100644
index 0000000..0b77cd1
--- /dev/null
+++ b/tests/f_salvage_dir/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: 19/64 files (10.5% non-contiguous), 30/100 blocks
+Exit status is 0
diff --git a/tests/f_salvage_dir/image.gz b/tests/f_salvage_dir/image.gz
new file mode 100644
index 0000000..b0adde7
--- /dev/null
+++ b/tests/f_salvage_dir/image.gz
Binary files differ
diff --git a/tests/f_salvage_dir/name b/tests/f_salvage_dir/name
new file mode 100644
index 0000000..746f43a
--- /dev/null
+++ b/tests/f_salvage_dir/name
@@ -0,0 +1 @@
+salvage corrupted directories