On 6/1/26 10:45 PM, Christoph Hellwig wrote:
> diff --git a/Documentation/block/error-injection.rst
> b/Documentation/block/error-injection.rst
> new file mode 100644
> index 000000000000..be87091b5330
> --- /dev/null
> +++ b/Documentation/block/error-injection.rst
> @@ -0,0 +1,59 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +
> +============================
> +Configurable Error Injection
> +============================
> +
> +Overview
> +--------
> +
> +Configurable error injection allows injecting specific block layer status
> codes
> +for ranges of a block device. Error can be injected unconditional, or with a
Errors can be injected unconditionally or
with a
> +given probability.
> +
> +To use configurable error injection, CONFIG_FAIL_MAKE_REQUEST must be
> enabled.
> +
> +The only interface is the error_injection debugfs file, which is created for
> +each registered gendisk. Writes to this file are used to create or delete
> rules
> +and reads return a list of the current error injection sites.
[snip]
--
~Randy
- [PATCH 1/9] block: remove ALLOW_ERROR_INJECTION for shou... Christoph Hellwig
- [PATCH 4/9] block: move the FAIL_MAKE_REQUEST symbol fro... Christoph Hellwig
- [PATCH 2/9] block: consolidate the calls to should_fail_... Christoph Hellwig
- [PATCH 7/9] block: add a str_to_blk_op helper Christoph Hellwig
- [PATCH 3/9] block: refactor should_fail_bio and should_f... Christoph Hellwig
- [PATCH 5/9] block: add a macro to initialize the status ... Christoph Hellwig
- [PATCH 6/9] block: add a "tag" for block statu... Christoph Hellwig
- [PATCH 8/9] block: add configurable error injection Christoph Hellwig
- Re: [PATCH 8/9] block: add configurable error injec... Keith Busch
- Re: [PATCH 8/9] block: add configurable error i... Christoph Hellwig
- Re: [PATCH 8/9] block: add configurable error injec... Randy Dunlap
- [PATCH 9/9] block: move the fail request code Christoph Hellwig
- Re: configurable block error injection Keith Busch
- Re: configurable block error injection Daniel Gomez
- Re: configurable block error injection Christoph Hellwig
- Re: configurable block error injection Daniel Gomez
- Re: configurable block error injection Christoph Hellwig
