Re: [PATCH] Documentation: block: fix the sector 0 error injection example

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Sat, Aug 15, 2026 at 09:11:00PM +0200, Md Haris Iqbal wrote:
> The first error injection example is introduced as failing one in ten
> reads of sector 0, but the rule it shows does not set nr_sectors, which
> defaults to the remainder of the device.  As written it fails one in ten
> reads of the whole device.
> 
> Add nr_sectors=1 so that the rule does what the text says.  This also
> gives the documentation one example that uses nr_sectors.

Looks good:

Reviewed-by: Christoph Hellwig <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.