diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /tests/f_orphan | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream.tar.xz e2fsprogs-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/f_orphan/expect.1 | 14 | ||||
-rw-r--r-- | tests/f_orphan/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_orphan/image.gz | bin | 0 -> 12026 bytes | |||
-rw-r--r-- | tests/f_orphan/name | 1 | ||||
-rw-r--r-- | tests/f_orphan_dotdot_ft/expect.1 | 56 | ||||
-rw-r--r-- | tests/f_orphan_dotdot_ft/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_orphan_dotdot_ft/image.gz | bin | 0 -> 590 bytes | |||
-rw-r--r-- | tests/f_orphan_dotdot_ft/name | 1 | ||||
-rw-r--r-- | tests/f_orphan_extents_inode/expect.1 | 10 | ||||
-rw-r--r-- | tests/f_orphan_extents_inode/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_orphan_extents_inode/image.gz | bin | 0 -> 564 bytes | |||
-rw-r--r-- | tests/f_orphan_extents_inode/name | 1 | ||||
-rw-r--r-- | tests/f_orphan_indirect_inode/expect.1 | 3 | ||||
-rw-r--r-- | tests/f_orphan_indirect_inode/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_orphan_indirect_inode/image.gz | bin | 0 -> 592 bytes | |||
-rw-r--r-- | tests/f_orphan_indirect_inode/name | 1 | ||||
-rw-r--r-- | tests/f_orphan_indirect_inode/script | 2 |
17 files changed, 117 insertions, 0 deletions
diff --git a/tests/f_orphan/expect.1 b/tests/f_orphan/expect.1 new file mode 100644 index 0000000..087ebee --- /dev/null +++ b/tests/f_orphan/expect.1 @@ -0,0 +1,14 @@ +Clearing orphaned inode 15 (uid=0, gid=0, mode=040755, size=1024) +Clearing orphaned inode 17 (uid=0, gid=0, mode=0100644, size=0) +Clearing orphaned inode 16 (uid=0, gid=0, mode=040755, size=1024) +Clearing orphaned inode 14 (uid=0, gid=0, mode=0100644, size=69) +Clearing orphaned inode 13 (uid=0, gid=0, mode=040755, size=1024) +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: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/2048 files (0.0% non-contiguous), 1303/8192 blocks +Exit status is 0 diff --git a/tests/f_orphan/expect.2 b/tests/f_orphan/expect.2 new file mode 100644 index 0000000..359c937 --- /dev/null +++ b/tests/f_orphan/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: 12/2048 files (0.0% non-contiguous), 1303/8192 blocks +Exit status is 0 diff --git a/tests/f_orphan/image.gz b/tests/f_orphan/image.gz Binary files differnew file mode 100644 index 0000000..cada434 --- /dev/null +++ b/tests/f_orphan/image.gz diff --git a/tests/f_orphan/name b/tests/f_orphan/name new file mode 100644 index 0000000..4f9f3d5 --- /dev/null +++ b/tests/f_orphan/name @@ -0,0 +1 @@ +clearing orphan inodes diff --git a/tests/f_orphan_dotdot_ft/expect.1 b/tests/f_orphan_dotdot_ft/expect.1 new file mode 100644 index 0000000..6092495 --- /dev/null +++ b/tests/f_orphan_dotdot_ft/expect.1 @@ -0,0 +1,56 @@ +Pass 1: Checking inodes, blocks, and sizes +Special (device/socket/fifo) inode 12 has non-zero size. Fix? yes + +Inode 12, i_blocks is 2, should be 0. Fix? yes + +Pass 2: Checking directory structure +Entry 'dir' in / (2) has an incorrect filetype (was 2, should be 6). +Fix? yes + +Entry '..' in <12>/<13> (13) has an incorrect filetype (was 2, should be 6). +Fix? yes + +Entry '..' in <12>/<14> (14) has an incorrect filetype (was 2, should be 6). +Fix? yes + +Entry '..' in <12>/<15> (15) has an incorrect filetype (was 2, should be 6). +Fix? yes + +Pass 3: Checking directory connectivity +Unconnected directory inode 13 (was in <12>) +Connect to /lost+found? yes + +Unconnected directory inode 14 (was in <12>) +Connect to /lost+found? yes + +Unconnected directory inode 15 (was in <12>) +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 2, should be 1. Fix? yes + +Inode 13 ref count is 3, should be 2. Fix? yes + +Inode 14 ref count is 3, should be 2. Fix? yes + +Inode 15 ref count is 3, should be 2. Fix? yes + +Pass 5: Checking group summary information +Block bitmap differences: -23 +Fix? yes + +Free blocks count wrong for group #0 (73, counted=74). +Fix? yes + +Free blocks count wrong (73, counted=74). +Fix? yes + +Directories count wrong for group #0 (6, counted=5). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 15/32 files (0.0% non-contiguous), 26/100 blocks +Exit status is 1 diff --git a/tests/f_orphan_dotdot_ft/expect.2 b/tests/f_orphan_dotdot_ft/expect.2 new file mode 100644 index 0000000..fc68e79 --- /dev/null +++ b/tests/f_orphan_dotdot_ft/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: 15/32 files (0.0% non-contiguous), 26/100 blocks +Exit status is 0 diff --git a/tests/f_orphan_dotdot_ft/image.gz b/tests/f_orphan_dotdot_ft/image.gz Binary files differnew file mode 100644 index 0000000..cb91a64 --- /dev/null +++ b/tests/f_orphan_dotdot_ft/image.gz diff --git a/tests/f_orphan_dotdot_ft/name b/tests/f_orphan_dotdot_ft/name new file mode 100644 index 0000000..8362e9e --- /dev/null +++ b/tests/f_orphan_dotdot_ft/name @@ -0,0 +1 @@ +filetype of .. in orphaned directories diff --git a/tests/f_orphan_extents_inode/expect.1 b/tests/f_orphan_extents_inode/expect.1 new file mode 100644 index 0000000..5d713b3 --- /dev/null +++ b/tests/f_orphan_extents_inode/expect.1 @@ -0,0 +1,10 @@ +Truncating orphaned inode 12 (uid=0, gid=0, mode=0100644, size=0) +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: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/16 files (0.0% non-contiguous), 21/100 blocks +Exit status is 0 diff --git a/tests/f_orphan_extents_inode/expect.2 b/tests/f_orphan_extents_inode/expect.2 new file mode 100644 index 0000000..4ee5d96 --- /dev/null +++ b/tests/f_orphan_extents_inode/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: 12/16 files (0.0% non-contiguous), 21/100 blocks +Exit status is 0 diff --git a/tests/f_orphan_extents_inode/image.gz b/tests/f_orphan_extents_inode/image.gz Binary files differnew file mode 100644 index 0000000..6c57fef --- /dev/null +++ b/tests/f_orphan_extents_inode/image.gz diff --git a/tests/f_orphan_extents_inode/name b/tests/f_orphan_extents_inode/name new file mode 100644 index 0000000..fc48ec2 --- /dev/null +++ b/tests/f_orphan_extents_inode/name @@ -0,0 +1 @@ +truncating an orphaned extent-mapped inode diff --git a/tests/f_orphan_indirect_inode/expect.1 b/tests/f_orphan_indirect_inode/expect.1 new file mode 100644 index 0000000..814a688 --- /dev/null +++ b/tests/f_orphan_indirect_inode/expect.1 @@ -0,0 +1,3 @@ +test_filesys: Truncating orphaned inode 12 (uid=0, gid=0, mode=0100644, size=0) +test_filesys: clean, 12/16 files, 21/100 blocks +Exit status is 0 diff --git a/tests/f_orphan_indirect_inode/expect.2 b/tests/f_orphan_indirect_inode/expect.2 new file mode 100644 index 0000000..4ee5d96 --- /dev/null +++ b/tests/f_orphan_indirect_inode/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: 12/16 files (0.0% non-contiguous), 21/100 blocks +Exit status is 0 diff --git a/tests/f_orphan_indirect_inode/image.gz b/tests/f_orphan_indirect_inode/image.gz Binary files differnew file mode 100644 index 0000000..54b3909 --- /dev/null +++ b/tests/f_orphan_indirect_inode/image.gz diff --git a/tests/f_orphan_indirect_inode/name b/tests/f_orphan_indirect_inode/name new file mode 100644 index 0000000..04ccb31 --- /dev/null +++ b/tests/f_orphan_indirect_inode/name @@ -0,0 +1 @@ +truncating an orphaned inode in preen mode diff --git a/tests/f_orphan_indirect_inode/script b/tests/f_orphan_indirect_inode/script new file mode 100644 index 0000000..ea3b93a --- /dev/null +++ b/tests/f_orphan_indirect_inode/script @@ -0,0 +1,2 @@ +FSCK_OPT=-p +. $cmd_dir/run_e2fsck |