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_baddir | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream/1.47.0.tar.xz e2fsprogs-upstream/1.47.0.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_baddir/expect.1 | 54 | ||||
-rw-r--r-- | tests/f_baddir/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_baddir/image.gz | bin | 0 -> 14241 bytes | |||
-rw-r--r-- | tests/f_baddir/name | 1 | ||||
-rw-r--r-- | tests/f_baddir2/expect.1 | 12 | ||||
-rw-r--r-- | tests/f_baddir2/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_baddir2/image.gz | bin | 0 -> 587 bytes | |||
-rw-r--r-- | tests/f_baddir2/name | 1 |
8 files changed, 82 insertions, 0 deletions
diff --git a/tests/f_baddir/expect.1 b/tests/f_baddir/expect.1 new file mode 100644 index 0000000..cf46a60 --- /dev/null +++ b/tests/f_baddir/expect.1 @@ -0,0 +1,54 @@ +Filesystem did not have a UUID; generating one. + +Pass 1: Checking inodes, blocks, and sizes +Inode 12, i_size is 182, should be 1024. Fix? yes + +Inode 13 is a zero-length directory. Clear? yes + +Pass 2: Checking directory structure +Entry 'zero' in / (2) has deleted/unused inode 13. Clear? yes + +Entry 'foo/bar' in / (2) has illegal characters in its name. +Fix? yes + +Entry 'root' in /test (14) is a link to the root inode. +Clear? yes + +Entry 'badino' in /test (14) has invalid inode #: 123456. +Clear? yes + +Entry 'dot' in /test (14) is a link to '.' Clear? yes + +Directory inode 12, block #0, offset 0: directory corrupted +Salvage? yes + +Missing '.' in directory inode 12. +Fix? yes + +Missing '..' in directory inode 12. +Fix? yes + +Pass 3: Checking directory connectivity +'..' in /block.h (12) is <The NULL inode> (0), should be / (2). +Fix? yes + +Pass 4: Checking reference counts +Inode 12 ref count is 1, should be 2. Fix? yes + +Pass 5: Checking group summary information +Block bitmap differences: -22 +Fix? yes + +Free blocks count wrong (74, counted=75). +Fix? yes + +Inode bitmap differences: -13 +Fix? yes + +Directories count wrong for group #0 (5, counted=4). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 14/32 files (0.0% non-contiguous), 25/100 blocks +Exit status is 1 diff --git a/tests/f_baddir/expect.2 b/tests/f_baddir/expect.2 new file mode 100644 index 0000000..e848eff --- /dev/null +++ b/tests/f_baddir/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: 14/32 files (0.0% non-contiguous), 25/100 blocks +Exit status is 0 diff --git a/tests/f_baddir/image.gz b/tests/f_baddir/image.gz Binary files differnew file mode 100644 index 0000000..9d593fe --- /dev/null +++ b/tests/f_baddir/image.gz diff --git a/tests/f_baddir/name b/tests/f_baddir/name new file mode 100644 index 0000000..9822221 --- /dev/null +++ b/tests/f_baddir/name @@ -0,0 +1 @@ +corrupted directory entries diff --git a/tests/f_baddir2/expect.1 b/tests/f_baddir2/expect.1 new file mode 100644 index 0000000..ec6ed32 --- /dev/null +++ b/tests/f_baddir2/expect.1 @@ -0,0 +1,12 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Directory inode 12, block #0, offset 60: 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: 15/16 files (0.0% non-contiguous), 23/100 blocks +Exit status is 1 diff --git a/tests/f_baddir2/expect.2 b/tests/f_baddir2/expect.2 new file mode 100644 index 0000000..b85bbab --- /dev/null +++ b/tests/f_baddir2/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/16 files (0.0% non-contiguous), 23/100 blocks +Exit status is 0 diff --git a/tests/f_baddir2/image.gz b/tests/f_baddir2/image.gz Binary files differnew file mode 100644 index 0000000..0d9fcdf --- /dev/null +++ b/tests/f_baddir2/image.gz diff --git a/tests/f_baddir2/name b/tests/f_baddir2/name new file mode 100644 index 0000000..568a7c9 --- /dev/null +++ b/tests/f_baddir2/name @@ -0,0 +1 @@ +salvage last directory entry |