]> www.infradead.org Git - mtd-utils.git/commit
tests: ubifs_tools: fsck_tests: Add random_corrupt+fsck test
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 09:08:24 +0000 (17:08 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:46 +0000 (10:32 +0100)
commit16765dd7f46549527523e8a6d48fa3a1da887b1f
tree2fb72c87a55600f76d0a87c12a46a4c4577ce276
parente06aa684857345f8be397a481cf726a1051734d7
tests: ubifs_tools: fsck_tests: Add random_corrupt+fsck test

Inject random corruption on UBIFS image by writting random data on
kinds of mtd devices (eg. nand, nor), check the consistency of UBIFS
after fsck.
This testcase simulates random bad UBIFS image caused by hardware
exceptions(eg. ecc uncorrectable, unwritten), and makes sure that
fsck.ubifs could make UBIFS be consistent after repairing UBIFS
image.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
.gitignore
configure.ac
tests/ubifs_tools-tests/Makemodule.am
tests/ubifs_tools-tests/fsck_tests/random_corrupted_fsck.sh.in [new file with mode: 0755]