Add set bad lba function in md-faulty module.

2 messages, 2 authors, 2012-05-15 · open the first message on its own page

Add set bad lba function in md-faulty module.

From: kedacomkernel <hidden>
Date: 2012-05-14 10:22:25

Hi all:
	In order to test md code, sometime we need  simulate read/write harddisk error.
	Using hdparm --make-bad-sector to  simulate  read error.But I did not find way of  simulating write-error.
	I tested md-faulty module, it can do this.But it is not provide the function link hdparm --make-bad-sector,which did not set lba.
	Using hdpamr --make-bad-sector to  simulate read error can cause some problem.
	It will cause ata commnd reset,disk reset and so on.It take too log time.
	So I think add a function in md-faulty which can set read/write lba.
	How about ?
																				
 				
--------------
kedacomkernel
2012-05-14

Re: Add set bad lba function in md-faulty module.

From: NeilBrown <hidden>
Date: 2012-05-15 00:16:11

On Mon, 14 May 2012 18:22:25 +0800 "kedacomkernel" [off-list ref]
wrote:
Hi all:
	In order to test md code, sometime we need  simulate read/write harddisk error.
	Using hdparm --make-bad-sector to  simulate  read error.But I did not find way of  simulating write-error.
	I tested md-faulty module, it can do this.But it is not provide the function link hdparm --make-bad-sector,which did not set lba.
	Using hdpamr --make-bad-sector to  simulate read error can cause some problem.
	It will cause ata commnd reset,disk reset and so on.It take too log time.
	So I think add a function in md-faulty which can set read/write lba.
	How about ?
I don't know how --make-bad-sector works so it might not be possible to get
md to respond to the same command.  But if it can work it sounds like a good
idea.

Patches welcome.

NeilBrown

 				
--------------
kedacomkernel
2012-05-14

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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