aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/vtbl.c
diff options
context:
space:
mode:
authorGravatar ZhaoLong Wang <wangzhaolong1@huawei.com> 2023-12-26 09:01:11 +0800
committerGravatar Richard Weinberger <richard@nod.at> 2024-01-06 23:41:40 +0100
commit7cd8d1f8475d83c8871917430a2daf362c68e742 (patch)
treeb27963949e320354528562eaae0b260e71763dd8 /drivers/mtd/ubi/vtbl.c
parentubi: Split io_failures into write_failure and erase_failure (diff)
downloadlinux-7cd8d1f8475d83c8871917430a2daf362c68e742.tar.gz
linux-7cd8d1f8475d83c8871917430a2daf362c68e742.tar.bz2
linux-7cd8d1f8475d83c8871917430a2daf362c68e742.zip
ubi: Add six fault injection type for testing
This commit adds six fault injection type for testing to cover the abnormal path of the UBI driver. Inject the following faults when the UBI reads the LEB: +----------------------------+-----------------------------------+ | Interface name | emulate behavior | +----------------------------+-----------------------------------+ | emulate_eccerr | ECC error | +----------------------------+-----------------------------------+ | emulate_read_failure | read failure | |----------------------------+-----------------------------------+ | emulate_io_ff | read content as all FF | |----------------------------+-----------------------------------+ | emulate_io_ff_bitflips | content FF with MTD err reported | +----------------------------+-----------------------------------+ | emulate_bad_hdr | bad leb header | |----------------------------+-----------------------------------+ | emulate_bad_hdr_ebadmsg | bad header with ECC err | +----------------------------+-----------------------------------+ Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com> Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/vtbl.c')
0 files changed, 0 insertions, 0 deletions