Unverified Commit 6f62149a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3575 ubi: Enhance fault injection capability for the UBI driver

Merge Pull Request from: @ci-robot 
 
PR sync from: ZhaoLong Wang <wangzhaolong1@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/AMOHM7ETGHOHKMCU3UY3PQPNQDLVY2HH/ 
CONFIG Dependency

CONFIG_MTD=y
CONFIG_MTD_NAND_NANDSIM=m
CONFIG_MTD_UBI=m
CONFIG_FAULT_INJECTION_DEBUG_FS=y
CONFIG_MTD_PARTITIONED_MASTER

The existing fault injection capability of UBI is too simple.
It uses hard-coded fault probability values and lacks other
configurable options. As a result, these interfaces are difficult
to use when digging defects in the abnormal path of code and
reproducing some problems.

The kernel provides a powerful fault injection framework, which
provides rich configurable fault injection attributes during runtime.
So it can be used to improve the fault injection capability of the
UBI driver.

This series of patches refactor the existing fault injection interface
and add some fault injection types to help testers and developers
find potential problems in the code.

This series of patches enhance the existing fault injection interface
and retain the old debugfs interface, and add some fault injection types
to help testers and developers Look for potential problems in the code.

v1 -> v2:
Delete the redundant semicolon of the first patch.

v2 -> v3:
Completely checked and fixed the English syntax errors in the patch.

v3 -> v4:
Fixed code indent error

ZhaoLong Wang (5):
  ubi: Use the fault injection framework to enhance the fault injection
    capability
  ubi: Split io_failures into write_failure and erase_failure
  ubi: Add six fault injection type for testing
  ubi: Reserve sufficient buffer length for the input mask
  mtd: Add several functions to the fail_function list


-- 
2.39.2
 
https://gitee.com/openeuler/kernel/issues/I8QZWQ 
 
Link:https://gitee.com/openeuler/kernel/pulls/3575

 

Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: default avatarLu Jialin <lujialin4@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents f5ac4b9b 728c9fa3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment