diff options
author | Theodore Ts'o <tytso@mit.edu> | 2023-06-14 15:15:48 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-06-14 15:15:48 -0400 |
commit | 541ce8f2bb6f91834b5d5b7c98bd4de8998dccc5 (patch) | |
tree | 40aafd0b3f8ebfd2b3a566bb47b71b2db59e097e | |
parent | 8798bbb81687103b0c0f56a42b096884c6032101 (diff) | |
download | e2fsprogs-541ce8f2bb6f91834b5d5b7c98bd4de8998dccc5.tar.gz |
tests: add test for handling an invalid symlink in an inline directory
Add a test for the commit "e2fsck: fix handling of a invalid symlink
in an inline_data directory"
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | tests/f_inlinedir_bad_symlink/expect.1 | 12 | ||||
-rw-r--r-- | tests/f_inlinedir_bad_symlink/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_inlinedir_bad_symlink/image.gz | bin | 0 -> 1797 bytes | |||
-rw-r--r-- | tests/f_inlinedir_bad_symlink/name | 1 |
4 files changed, 20 insertions, 0 deletions
diff --git a/tests/f_inlinedir_bad_symlink/expect.1 b/tests/f_inlinedir_bad_symlink/expect.1 new file mode 100644 index 000000000..e1d0e879e --- /dev/null +++ b/tests/f_inlinedir_bad_symlink/expect.1 @@ -0,0 +1,12 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Symlink /a/7 (inode #19) is invalid. +Clear? 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/112 files (0.0% non-contiguous), 16/200 blocks +Exit status is 1 diff --git a/tests/f_inlinedir_bad_symlink/expect.2 b/tests/f_inlinedir_bad_symlink/expect.2 new file mode 100644 index 000000000..b881d6573 --- /dev/null +++ b/tests/f_inlinedir_bad_symlink/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/112 files (0.0% non-contiguous), 16/200 blocks +Exit status is 0 diff --git a/tests/f_inlinedir_bad_symlink/image.gz b/tests/f_inlinedir_bad_symlink/image.gz Binary files differnew file mode 100644 index 000000000..c5bd71a3b --- /dev/null +++ b/tests/f_inlinedir_bad_symlink/image.gz diff --git a/tests/f_inlinedir_bad_symlink/name b/tests/f_inlinedir_bad_symlink/name new file mode 100644 index 000000000..f7f7f0d6c --- /dev/null +++ b/tests/f_inlinedir_bad_symlink/name @@ -0,0 +1 @@ +bad symlink in an inline directory |