From: Alasdair G Kergon <agk@uk.sistina.com>
To: dm-devel@sistina.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [dm-devel] [RFC] File backed target for device-mapper
Date: Tue, 22 Jul 2003 22:58:44 +0100 [thread overview]
Message-ID: <20030722225844.T31325@uk.sistina.com> (raw)
In-Reply-To: <1058908659.17049.9.camel@chtephan.cs.pocnet.net>; from christophe@saout.de on Tue, Jul 22, 2003 at 11:17:39PM +0200
On Tue, Jul 22, 2003 at 11:17:39PM +0200, Christophe Saout wrote:
> I just wrote a dm target uses a file as backend instead of another block
> device.
Another suggestion:
A target that always returns a block of zeros [or more generally,
some other repeating pattern e.g. if the read goes beyond the end
of your file - required to be multiple of sector size - it loops
round to the beginning; writes get dropped]
So you can easily create, for example a /dev/zero-like block device of
arbitrary size, which might be useful for replacing a lost disk that
contained a stripe if you want to read off the data from the other
stripes at correct offsets.
Alasdair
--
agk@uk.sistina.com
prev parent reply other threads:[~2003-07-22 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-22 21:17 Christophe Saout
2003-07-22 21:39 ` Christophe Saout
2003-07-22 21:58 ` Alasdair G Kergon [this message]
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=20030722225844.T31325@uk.sistina.com \
--to=agk@uk.sistina.com \
--cc=dm-devel@sistina.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®