All of lore.kernel.org
 help / color / mirror / Atom feed
* Mapping sectors to have errors
@ 2011-10-28  2:31 Yathindra
  2011-10-28  9:11 ` Joe Thornber
  2011-10-28 19:42 ` Milan Broz
  0 siblings, 2 replies; 6+ messages in thread
From: Yathindra @ 2011-10-28  2:31 UTC (permalink / raw)
  To: device-mapper development; +Cc: Yathindra Naik


[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]

Hi,

I'm trying to create a disk and map some sectors to have errors on them.

I tried this,
echo "0 100000 linear /dev/sdb 0 100000 480081250 error"| dmsetup create 
bad_disk
device-mapper: reload ioctl failed: Invalid argument
Command failed

I have put in the right arguments but not sure why it fails.

Could someone please guide me how I can do this.

Thanks,
Yathi

[-- Attachment #1.2: Type: text/html, Size: 809 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-04 16:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  2:31 Mapping sectors to have errors Yathindra
2011-10-28  9:11 ` Joe Thornber
2011-10-28 17:54   ` Yathindra
2011-10-28 19:42 ` Milan Broz
2011-10-28 19:46   ` Yathindra
2011-11-04 16:14     ` Yathindra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.