All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: Yathindra <ydev@cs.utah.edu>
Subject: Re: Mapping sectors to have errors
Date: Fri, 28 Oct 2011 21:42:22 +0200	[thread overview]
Message-ID: <4EAB059E.3050900@redhat.com> (raw)
In-Reply-To: <4EAA13E4.6020709@cs.utah.edu>

On 10/28/2011 04:31 AM, Yathindra wrote:
> 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

Try
echo -e "0 100000 linear /dev/sdb 0\n100000 480081250 error"| dmsetup create bad_disk

Milan

  parent reply	other threads:[~2011-10-28 19:42 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
2011-10-28 19:42 ` Milan Broz [this message]
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=4EAB059E.3050900@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=ydev@cs.utah.edu \
    /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.