All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Error target causes entire device to error
Date: Mon, 10 Nov 2008 17:16:28 -0500	[thread overview]
Message-ID: <4918B2BC.8020606@cfl.rr.com> (raw)

$ sudo dmsetup create foo
0 1 zero
1 1 error
$ sudo dd if=/dev/mapper/foo bs=512 count=1
dd: reading `/dev/mapper/foo': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000715356 seconds, 0.0 kB/s

Why can't you read the first sector mapped to the zero target without 
getting an error?  It doesn't seem to matter where the error target is 
in the table, or how big the virtual device is; any attempt to read 
anywhere returns an error if there are any sectors mapped to the error 
target.

             reply	other threads:[~2008-11-10 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 22:16 Phillip Susi [this message]
2008-11-13 18:38 ` Error target causes entire device to error Milan Broz
2008-11-13 19:43   ` Phillip Susi

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=4918B2BC.8020606@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=dm-devel@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.