From: Yathindra <ydev@cs.utah.edu>
To: Joe Thornber <thornber@redhat.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: Mapping sectors to have errors
Date: Fri, 28 Oct 2011 11:54:50 -0600 [thread overview]
Message-ID: <4EAAEC6A.4070209@cs.utah.edu> (raw)
In-Reply-To: <20111028091140.GD4105@ubuntu>
Hi Joe,
I tried it the other way but when I specify error it doesn't seem to take
the start sector > 0.
# echo "0 `blockdev --getsz /dev/sdb` linear /dev/sdb 0" | dmsetup
create bad_disk
# dmsetup table
bad_disk: 0 488281250 linear 8:16 0
# echo "100000 488181250 error" | dmsetup load bad_disk << This failed
device-mapper: reload ioctl failed: Invalid argument
Command failed
# echo "0 100000 error" | dmsetup load bad_disk << This worked
Any ideas?
Thanks,
Yathi
On 10/28/2011 3:11 AM, Joe Thornber wrote:
> On Thu, Oct 27, 2011 at 08:31:00PM -0600, Yathindra wrote:
>> 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.
> You have 2 target lines concatenated onto the same line there.
next prev parent reply other threads:[~2011-10-28 17:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 2:31 Mapping sectors to have errors Yathindra
2011-10-28 9:11 ` Joe Thornber
2011-10-28 17:54 ` Yathindra [this message]
2011-10-28 19:42 ` Milan Broz
2011-10-28 19:46 ` Yathindra
2011-11-04 16:14 ` Yathindra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EAAEC6A.4070209@cs.utah.edu \
--to=ydev@cs.utah.edu \
--cc=dm-devel@redhat.com \
--cc=thornber@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.