[LU-14290] Convert fault-injection framework to match the model using in linux Created: 04/Jan/21  Updated: 04/Jan/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Neil Brown Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-9859 libcfs simplification Open
Rank (Obsolete): 9223372036854775807

 Description   

Lustre has a fault-injection framework which contains functionality which is similar to the fault-injection in Linux, though in a very different form.

It also contains functionality - particularly for encouraging race conditions - which is not present in Linux.

The two frameworks have substantially different user-space interfaces.  Lustre allows a single fault to be enabled at a time, by writing a magic number to a magic file.  Linux allows each possible fault to be enabled independently by using a named directory in debugfs which contains files for controlling various aspects of the fault trigger.

The goal of this improvement is to provide enhancements to the Linux fault-injection framework which allow races to be encouraged while using the interface style of the rest of that framework.  Then convert all lustre faults to use the linux framework.

We would need to preserve the current lustre interface, at least for a while, so old test suites could run on new code.


Generated at Sat Feb 10 03:08:27 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.