aboutsummaryrefslogtreecommitdiff
path: root/tests/ubifs_tools-tests/images
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2024-11-11 17:08:25 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-11-11 10:32:46 +0100
commit4e6f5098716ad2bf8859a1915fc0e42e69eaf88a (patch)
treed5c6a3c5e8f6bfd211f5db873a09e514c446d51e /tests/ubifs_tools-tests/images
parent16765dd7f46549527523e8a6d48fa3a1da887b1f (diff)
tests: ubifs_tools: fsck_tests: Add corrupted images
This is a preparation for adding bad images fsck testcase. There is no debugfs tools (for example: debugfs[ext4], xfs_db) for UBIFS, so there is no way to inject precise corruption into UBIFS image, we have to prepare inconsistent UBIFS images in advance like e2fsprogs[1] does. (Goto [2] to see how to generate inconsistent UBIFS images). Original UBIFS image content: / ├── corrupt_file (xattr - user.corrupt:123, 2K data) ├── dir │   ├── block_dev │   ├── char_dev │   ├── dir │   └── file (content: '123') ├── hardl_corrupt_file => corrupt_file └── softl_corrupt_file -> corrupt_file Here's a descriptons of the various testing images: ========================================================================= image | Description | expectancy ------------------------------------------------------------------------- good | good image contains | fsck success, fs content is | kinds of files. | not changed. ------------------------------------------------------------------------- sb_fanout | invalid fanout in | fsck failed. | superblock. | ------------------------------------------------------------------------- sb_fmt_version | invalid fmt_version | fsck failed. | in superblock. | ------------------------------------------------------------------------- sb_leb_size | invalid leb_size in | fsck failed. | superblock. | ------------------------------------------------------------------------- sb_log_lebs | invalid log lebs in | fsck failed. | superblock. | ------------------------------------------------------------------------- sb_min_io_size | invalid min_io_size | fsck failed. | in superblock. | ------------------------------------------------------------------------- master_highest_inum | invalid highest_inum| fsck success, fs content is | in master nodes. | not changed. ------------------------------------------------------------------------- master_lpt | bad lpt pos in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- master_tnc | bad tnc pos in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- master_total_dead | bad total_dead in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- master_total_dirty | bad total_dirty in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- master_total_free | bad total_free in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- journal_log | corrupted log area. | fsck success, fs content is | | not changed. ------------------------------------------------------------------------- journal_bud | corrupted bud area. | fsck success, file data is | | lost. ------------------------------------------------------------------------- orphan_node | bad orphan node. | fsck success, file is | | deleted as expected. ------------------------------------------------------------------------- lpt_dirty | bad dirty in pnode. | fsck success, fs content is | | not changed. ------------------------------------------------------------------------- lpt_flags | bad flags in pnode | fsck success, fs content is | (eg. index). | not changed. ------------------------------------------------------------------------- lpt_free | bad free in pnode. | fsck success, fs content is | | not changed. ------------------------------------------------------------------------- lpt_pos | bad pos in nnode. | fsck success, fs content is | | not changed. ------------------------------------------------------------------------- ltab_dirty | bad dirty in lprops | fsck success, fs content is | table. | not changed. ------------------------------------------------------------------------- ltab_free | bad free in lprops | fsck success, fs content is | table. | not changed. ------------------------------------------------------------------------- index_size | bad index size in | fsck success, fs content is | master nodes. | not changed. ------------------------------------------------------------------------- tnc_lv0_key | bad key in lv0 | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- tnc_lv0_len | bad len in lv0 | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- tnc_lv0_pos | bad pos in lv0 | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- tnc_noleaf_key | bad key in non-leaf | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- tnc_noleaf_len | bad len in non-leaf | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- tnc_noleaf_pos | bad pos in non-leaf | fsck success, fs content is | znode. | not changed. ------------------------------------------------------------------------- corrupted_data_leb | corrupted data leb. | fsck success, partial data of | | file is lost. ------------------------------------------------------------------------- corrupted_idx_leb | corrupted index leb.| fsck success, fs content is | | not changed. ------------------------------------------------------------------------- inode_data | bad data node. | fsck success, file content | | is changed, other files are | | not changed. ------------------------------------------------------------------------- inode_mode | bad inode mode for | fsck success, file is | file. | dropped, other files are not | | changed. ------------------------------------------------------------------------- inode_nlink | wrong nlink for | fsck success, nlink is | file. | corrected, fs content is not | | changed. ------------------------------------------------------------------------- inode_size | wrong inode size | fsck success, inode size is | for file. | corrected, fs content is not | | changed. ------------------------------------------------------------------------- inode_xcnt | wrong inode | fsck success, xattr_cnt is | xattr_cnt for file. | corrected, fs content is not | | changed. ------------------------------------------------------------------------- soft_link_inode_mode| bad inode mode for | fsck success, soft link | solf link file. | file is dropped, other files | | are not changed. ------------------------------------------------------------------------- soft_link_data_len | bad inode data_len | fsck success, soft link | for solt link file. | file is dropped, other files | | are not changed. ------------------------------------------------------------------------- dentry_key | bad dentry key for | fsck success, dentry is | file. | removed, other files are | | not changed. ------------------------------------------------------------------------- dentry_nlen | inconsistent nlen | fsck success, dentry is | and name in dentry | removed, other files are | for file. | not changed. ------------------------------------------------------------------------- dentry_type | inconsistent type | fsck success, dentry is | between dentry and | removed, other files are | inode for file. | not changed. ------------------------------------------------------------------------- xinode_flags | lost UBIFS_XATTR_FL | fsck success, xattr is | in xattr inode | removed, other files are | flags for file. | not changed. ------------------------------------------------------------------------- xinode_key | bad xattr inode key | fsck success, xattr is | for file. | removed, other files are | | not changed. ------------------------------------------------------------------------- xinode_mode | bad xattr inode | fsck success, xattr is | mode for file. | removed, other files are | | not changed. ------------------------------------------------------------------------- xentry_key | bad xattr entry key | fsck success, xattr is | for file. | removed, other files are | | not changed. ------------------------------------------------------------------------- xentry_nlen | inconsistent nlen | fsck success, xattr is | and name in xattr | removed, other files are | entry for file. | not changed. ------------------------------------------------------------------------- xentry_type | inconsistent type | fsck success, xattr is | between xattr entry | removed, other files are | and xattr inode for | not changed. | file. | ------------------------------------------------------------------------- xent_host | the xattr's host | fsck success, file, hard | is a xattr too, the | link and soft link are | flag of corrupt_file| dropped, other files are | inode is modified. | not changed. ------------------------------------------------------------------------- dir_many_dentry | dir has too many | fsck success, hard link is | dentries, the dentry| dropped, other files are not | of hard link is | changed. | modified. | ------------------------------------------------------------------------- dir_lost | bad dentry for dir. | fsck success, the 'file' is | | recovered under lost+found, | | left files under dir are | | removed, other files are not | | changed. ------------------------------------------------------------------------- dir_lost_duplicated | bad inode for dir, | fsck success, the 'file' is | there is a file | recovered with INO_<inum>_1 | under lost+found, | under lost+found, left files | which named with the| under dir are removed, other | inum of the 'file'. | files are not changed. ------------------------------------------------------------------------- dir_lost_not_recover| bad inode for dir, | fsck success, all files | lost+found is a | under dir are removed, | regular file and | other files are not changed. | exists under root | | dir. | ------------------------------------------------------------------------- root_dir | bad '/'. | fsck success, create new | | root dir('/'). All regular | | files are reocovered under | | lost+found, other files are | | removed. ------------------------------------------------------------------------- empty_tnc | all files have bad | fsck success, fs content | inode. | becomes empty. ========================================================================= [1] https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/tree/tests/README [2] https://bugzilla.kernel.org/show_bug.cgi?id=218924 Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/ubifs_tools-tests/images')
-rw-r--r--tests/ubifs_tools-tests/images/corrupted_data_leb.gzbin0 -> 9536 bytes
-rw-r--r--tests/ubifs_tools-tests/images/corrupted_idx_leb.gzbin0 -> 5082 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dentry_key.gzbin0 -> 5088 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dentry_nlen.gzbin0 -> 5113 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dentry_type.gzbin0 -> 5115 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dir_lost.gzbin0 -> 5088 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dir_lost_duplicated.gzbin0 -> 5347 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dir_lost_not_recover.gzbin0 -> 5396 bytes
-rw-r--r--tests/ubifs_tools-tests/images/dir_many_dentry.gzbin0 -> 5114 bytes
-rw-r--r--tests/ubifs_tools-tests/images/empty_tnc.gzbin0 -> 4954 bytes
-rw-r--r--tests/ubifs_tools-tests/images/good.gzbin0 -> 4960 bytes
-rw-r--r--tests/ubifs_tools-tests/images/index_size.gzbin0 -> 5070 bytes
-rw-r--r--tests/ubifs_tools-tests/images/inode_data.gzbin0 -> 5015 bytes
-rw-r--r--tests/ubifs_tools-tests/images/inode_mode.gzbin0 -> 5109 bytes
-rw-r--r--tests/ubifs_tools-tests/images/inode_nlink.gzbin0 -> 5110 bytes
-rw-r--r--tests/ubifs_tools-tests/images/inode_size.gzbin0 -> 5113 bytes
-rw-r--r--tests/ubifs_tools-tests/images/inode_xcnt.gzbin0 -> 5115 bytes
-rw-r--r--tests/ubifs_tools-tests/images/journal_bud.gzbin0 -> 5015 bytes
-rw-r--r--tests/ubifs_tools-tests/images/journal_log.gzbin0 -> 4927 bytes
-rw-r--r--tests/ubifs_tools-tests/images/lpt_dirty.gzbin0 -> 5056 bytes
-rw-r--r--tests/ubifs_tools-tests/images/lpt_flags.gzbin0 -> 5060 bytes
-rw-r--r--tests/ubifs_tools-tests/images/lpt_free.gzbin0 -> 5046 bytes
-rw-r--r--tests/ubifs_tools-tests/images/lpt_pos.gzbin0 -> 5070 bytes
-rw-r--r--tests/ubifs_tools-tests/images/ltab_dirty.gzbin0 -> 5104 bytes
-rw-r--r--tests/ubifs_tools-tests/images/ltab_free.gzbin0 -> 5072 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_highest_inum.gzbin0 -> 4813 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_lpt.gzbin0 -> 4808 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_tnc.gzbin0 -> 4805 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_total_dead.gzbin0 -> 4817 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_total_dirty.gzbin0 -> 4814 bytes
-rw-r--r--tests/ubifs_tools-tests/images/master_total_free.gzbin0 -> 4813 bytes
-rw-r--r--tests/ubifs_tools-tests/images/orphan_node.gzbin0 -> 5379 bytes
-rw-r--r--tests/ubifs_tools-tests/images/root_dir.gzbin0 -> 5058 bytes
-rw-r--r--tests/ubifs_tools-tests/images/sb_fanout.gzbin0 -> 5031 bytes
-rw-r--r--tests/ubifs_tools-tests/images/sb_fmt_version.gzbin0 -> 5032 bytes
-rw-r--r--tests/ubifs_tools-tests/images/sb_leb_size.gzbin0 -> 5033 bytes
-rw-r--r--tests/ubifs_tools-tests/images/sb_log_lebs.gzbin0 -> 5031 bytes
-rw-r--r--tests/ubifs_tools-tests/images/sb_min_io_size.gzbin0 -> 5035 bytes
-rw-r--r--tests/ubifs_tools-tests/images/soft_link_data_len.gzbin0 -> 5112 bytes
-rw-r--r--tests/ubifs_tools-tests/images/soft_link_inode_mode.gzbin0 -> 5121 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_lv0_key.gzbin0 -> 5118 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_lv0_len.gzbin0 -> 5130 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_lv0_pos.gzbin0 -> 5118 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_noleaf_key.gzbin0 -> 5140 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_noleaf_len.gzbin0 -> 5145 bytes
-rw-r--r--tests/ubifs_tools-tests/images/tnc_noleaf_pos.gzbin0 -> 5125 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xent_host.gzbin0 -> 5108 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xentry_key.gzbin0 -> 5085 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xentry_nlen.gzbin0 -> 5115 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xentry_type.gzbin0 -> 5113 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xinode_flags.gzbin0 -> 5112 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xinode_key.gzbin0 -> 5110 bytes
-rw-r--r--tests/ubifs_tools-tests/images/xinode_mode.gzbin0 -> 5112 bytes
53 files changed, 0 insertions, 0 deletions
diff --git a/tests/ubifs_tools-tests/images/corrupted_data_leb.gz b/tests/ubifs_tools-tests/images/corrupted_data_leb.gz
new file mode 100644
index 0000000..ebb98a4
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/corrupted_data_leb.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/corrupted_idx_leb.gz b/tests/ubifs_tools-tests/images/corrupted_idx_leb.gz
new file mode 100644
index 0000000..446f811
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/corrupted_idx_leb.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dentry_key.gz b/tests/ubifs_tools-tests/images/dentry_key.gz
new file mode 100644
index 0000000..bc313b5
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dentry_key.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dentry_nlen.gz b/tests/ubifs_tools-tests/images/dentry_nlen.gz
new file mode 100644
index 0000000..4e5c826
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dentry_nlen.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dentry_type.gz b/tests/ubifs_tools-tests/images/dentry_type.gz
new file mode 100644
index 0000000..e67348d
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dentry_type.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dir_lost.gz b/tests/ubifs_tools-tests/images/dir_lost.gz
new file mode 100644
index 0000000..fd42040
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dir_lost.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dir_lost_duplicated.gz b/tests/ubifs_tools-tests/images/dir_lost_duplicated.gz
new file mode 100644
index 0000000..09def92
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dir_lost_duplicated.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dir_lost_not_recover.gz b/tests/ubifs_tools-tests/images/dir_lost_not_recover.gz
new file mode 100644
index 0000000..6fe82bb
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dir_lost_not_recover.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/dir_many_dentry.gz b/tests/ubifs_tools-tests/images/dir_many_dentry.gz
new file mode 100644
index 0000000..f027bfc
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/dir_many_dentry.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/empty_tnc.gz b/tests/ubifs_tools-tests/images/empty_tnc.gz
new file mode 100644
index 0000000..7e85a8c
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/empty_tnc.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/good.gz b/tests/ubifs_tools-tests/images/good.gz
new file mode 100644
index 0000000..686e949
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/good.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/index_size.gz b/tests/ubifs_tools-tests/images/index_size.gz
new file mode 100644
index 0000000..0ebcf59
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/index_size.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/inode_data.gz b/tests/ubifs_tools-tests/images/inode_data.gz
new file mode 100644
index 0000000..f8135dc
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/inode_data.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/inode_mode.gz b/tests/ubifs_tools-tests/images/inode_mode.gz
new file mode 100644
index 0000000..1bdbb26
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/inode_mode.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/inode_nlink.gz b/tests/ubifs_tools-tests/images/inode_nlink.gz
new file mode 100644
index 0000000..19461d9
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/inode_nlink.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/inode_size.gz b/tests/ubifs_tools-tests/images/inode_size.gz
new file mode 100644
index 0000000..aa7574c
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/inode_size.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/inode_xcnt.gz b/tests/ubifs_tools-tests/images/inode_xcnt.gz
new file mode 100644
index 0000000..4bc5ac2
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/inode_xcnt.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/journal_bud.gz b/tests/ubifs_tools-tests/images/journal_bud.gz
new file mode 100644
index 0000000..37cf453
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/journal_bud.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/journal_log.gz b/tests/ubifs_tools-tests/images/journal_log.gz
new file mode 100644
index 0000000..e1ddc88
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/journal_log.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/lpt_dirty.gz b/tests/ubifs_tools-tests/images/lpt_dirty.gz
new file mode 100644
index 0000000..b7381c3
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/lpt_dirty.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/lpt_flags.gz b/tests/ubifs_tools-tests/images/lpt_flags.gz
new file mode 100644
index 0000000..baf6097
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/lpt_flags.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/lpt_free.gz b/tests/ubifs_tools-tests/images/lpt_free.gz
new file mode 100644
index 0000000..abc46fd
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/lpt_free.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/lpt_pos.gz b/tests/ubifs_tools-tests/images/lpt_pos.gz
new file mode 100644
index 0000000..d050f18
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/lpt_pos.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/ltab_dirty.gz b/tests/ubifs_tools-tests/images/ltab_dirty.gz
new file mode 100644
index 0000000..56dabee
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/ltab_dirty.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/ltab_free.gz b/tests/ubifs_tools-tests/images/ltab_free.gz
new file mode 100644
index 0000000..985e275
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/ltab_free.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_highest_inum.gz b/tests/ubifs_tools-tests/images/master_highest_inum.gz
new file mode 100644
index 0000000..08ed044
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_highest_inum.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_lpt.gz b/tests/ubifs_tools-tests/images/master_lpt.gz
new file mode 100644
index 0000000..4b205a2
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_lpt.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_tnc.gz b/tests/ubifs_tools-tests/images/master_tnc.gz
new file mode 100644
index 0000000..4219a5e
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_tnc.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_total_dead.gz b/tests/ubifs_tools-tests/images/master_total_dead.gz
new file mode 100644
index 0000000..165d787
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_total_dead.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_total_dirty.gz b/tests/ubifs_tools-tests/images/master_total_dirty.gz
new file mode 100644
index 0000000..9416bbd
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_total_dirty.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/master_total_free.gz b/tests/ubifs_tools-tests/images/master_total_free.gz
new file mode 100644
index 0000000..e6e942f
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/master_total_free.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/orphan_node.gz b/tests/ubifs_tools-tests/images/orphan_node.gz
new file mode 100644
index 0000000..901d75d
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/orphan_node.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/root_dir.gz b/tests/ubifs_tools-tests/images/root_dir.gz
new file mode 100644
index 0000000..d45e4dc
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/root_dir.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/sb_fanout.gz b/tests/ubifs_tools-tests/images/sb_fanout.gz
new file mode 100644
index 0000000..520fd09
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/sb_fanout.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/sb_fmt_version.gz b/tests/ubifs_tools-tests/images/sb_fmt_version.gz
new file mode 100644
index 0000000..c6309e1
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/sb_fmt_version.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/sb_leb_size.gz b/tests/ubifs_tools-tests/images/sb_leb_size.gz
new file mode 100644
index 0000000..a04ed7b
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/sb_leb_size.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/sb_log_lebs.gz b/tests/ubifs_tools-tests/images/sb_log_lebs.gz
new file mode 100644
index 0000000..9113fe4
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/sb_log_lebs.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/sb_min_io_size.gz b/tests/ubifs_tools-tests/images/sb_min_io_size.gz
new file mode 100644
index 0000000..788096d
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/sb_min_io_size.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/soft_link_data_len.gz b/tests/ubifs_tools-tests/images/soft_link_data_len.gz
new file mode 100644
index 0000000..10414a7
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/soft_link_data_len.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/soft_link_inode_mode.gz b/tests/ubifs_tools-tests/images/soft_link_inode_mode.gz
new file mode 100644
index 0000000..e333611
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/soft_link_inode_mode.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_lv0_key.gz b/tests/ubifs_tools-tests/images/tnc_lv0_key.gz
new file mode 100644
index 0000000..bcc8ca2
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_lv0_key.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_lv0_len.gz b/tests/ubifs_tools-tests/images/tnc_lv0_len.gz
new file mode 100644
index 0000000..1c64d79
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_lv0_len.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_lv0_pos.gz b/tests/ubifs_tools-tests/images/tnc_lv0_pos.gz
new file mode 100644
index 0000000..5816123
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_lv0_pos.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_noleaf_key.gz b/tests/ubifs_tools-tests/images/tnc_noleaf_key.gz
new file mode 100644
index 0000000..fc7c0ed
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_noleaf_key.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_noleaf_len.gz b/tests/ubifs_tools-tests/images/tnc_noleaf_len.gz
new file mode 100644
index 0000000..2d0f80d
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_noleaf_len.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/tnc_noleaf_pos.gz b/tests/ubifs_tools-tests/images/tnc_noleaf_pos.gz
new file mode 100644
index 0000000..1a05959
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/tnc_noleaf_pos.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xent_host.gz b/tests/ubifs_tools-tests/images/xent_host.gz
new file mode 100644
index 0000000..b2aef46
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xent_host.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xentry_key.gz b/tests/ubifs_tools-tests/images/xentry_key.gz
new file mode 100644
index 0000000..b4fa6d5
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xentry_key.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xentry_nlen.gz b/tests/ubifs_tools-tests/images/xentry_nlen.gz
new file mode 100644
index 0000000..e351280
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xentry_nlen.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xentry_type.gz b/tests/ubifs_tools-tests/images/xentry_type.gz
new file mode 100644
index 0000000..e0c5763
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xentry_type.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xinode_flags.gz b/tests/ubifs_tools-tests/images/xinode_flags.gz
new file mode 100644
index 0000000..34d3ff7
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xinode_flags.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xinode_key.gz b/tests/ubifs_tools-tests/images/xinode_key.gz
new file mode 100644
index 0000000..c92956c
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xinode_key.gz
Binary files differ
diff --git a/tests/ubifs_tools-tests/images/xinode_mode.gz b/tests/ubifs_tools-tests/images/xinode_mode.gz
new file mode 100644
index 0000000..0e52648
--- /dev/null
+++ b/tests/ubifs_tools-tests/images/xinode_mode.gz
Binary files differ