From 5dced3d1b3deca80e01415a2e35dc7972dcbfae7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 11:25:10 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/f_baddir/expect.1 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/f_baddir/expect.2 | 7 +++++++ tests/f_baddir/image.gz | Bin 0 -> 14241 bytes tests/f_baddir/name | 1 + 4 files changed, 62 insertions(+) create mode 100644 tests/f_baddir/expect.1 create mode 100644 tests/f_baddir/expect.2 create mode 100644 tests/f_baddir/image.gz create mode 100644 tests/f_baddir/name (limited to 'tests/f_baddir') 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 (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 new file mode 100644 index 0000000..9d593fe Binary files /dev/null and b/tests/f_baddir/image.gz differ 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 -- cgit v1.2.3