Thread (17 messages) flat view 17 messages, 6 authors, 2017-08-08

Re: [PATCH 5/5] testb: badblock support

From: Shaohua Li <shli@kernel.org>
Date: 2017-08-07 04:39:12
Also in: linux-raid

On Sat, Aug 05, 2017 at 06:56:31PM -0700, Dan Williams wrote:
On Sat, Aug 5, 2017 at 8:51 AM, Shaohua Li [off-list ref] wrote:
quoted
From: Shaohua Li <redacted>

Sometime disk could have tracks broken and data there is inaccessable,
but data in other parts can be accessed in normal way. MD RAID supports
such disks. But we don't have a good way to test it, because we can't
control which part of a physical disk is bad. For a virtual disk, this
can be easily controlled.

This patch adds a new 'badblock' attribute. Configure it in this way:
echo "+1-100" > xxx/badblock, this will make sector [1-100] as bad
blocks.
echo "-20-30" > xxx/badblock, this will make sector [20-30] good
Did you happen to overlook block/badblocks.c, or did you find it unsuitable?
Hmm, I overlooked at it indeed, thought I don't need those features of
badblocks without double checking the code. Will use badblocks interface in
next post.

Thanks,
Shaohua
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help