From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yathindra Subject: Mapping sectors to have errors Date: Thu, 27 Oct 2011 20:31:00 -0600 Message-ID: <4EAA13E4.6020709@cs.utah.edu> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9051337028617518727==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: Yathindra Naik List-Id: dm-devel.ids This is a multi-part message in MIME format. --===============9051337028617518727== Content-Type: multipart/alternative; boundary="------------070204010803090908040707" This is a multi-part message in MIME format. --------------070204010803090908040707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------070204010803090908040707 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
--------------070204010803090908040707-- --===============9051337028617518727== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============9051337028617518727==--