From: Mike Snitzer <snitzer@redhat.com>
To: "Alasdair G. Kergon" <agk@redhat.com>
Cc: dm-devel@redhat.com
Subject: Re: dm flakey: document corrupt_bio_byte and optional feature precedence
Date: Wed, 29 Jun 2011 10:52:37 -0400 [thread overview]
Message-ID: <20110629145237.GB20420@redhat.com> (raw)
In-Reply-To: <20110629144112.GA20420@redhat.com>
On Wed, Jun 29 2011 at 10:41am -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> ---
> Documentation/device-mapper/dm-flakey.txt | 15 ++++++++++++++-
> 1 files changed, 14 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/device-mapper/dm-flakey.txt b/Documentation/device-mapper/dm-flakey.txt
> index 6b40f79..6b4df49 100644
> --- a/Documentation/device-mapper/dm-flakey.txt
> +++ b/Documentation/device-mapper/dm-flakey.txt
> @@ -27,7 +27,20 @@ Mandatory parameters:
>
> Optional feature parameters:
> If no feature parameters are present, during the periods of
> - unreliability, all I/O returns errors.
> + unreliability, all I/O returns errors. Optional features may be
> + combined (e.g. corrupt_bio_byte on READ and drop_writes). Conflicting
> + features (e.g. corrupt_bio_byte on WRITE and drop_writes) are resolved
> + according to the following feature precedence (descending order):
> +
> + corrupt_bio_byte <Nth byte> <bio_flags> <value>:
> + Corrupt bios that have specific bi_rw flag(s), e.g.: READ=0 or
> + REQ_WRITE=1|REQ_META=32, by writing <value> to the <Nth byte> of
> + bios that have data.
Gah, we should also add:
<value> may be 0 or 1. Bios that don't match <bio_flags> fall through
to the other optional feature(s) or the default of returning I/O error.
> + Examples:
> + 1) corrupt 32nd byte in READ bios with the value 1:
> + corrupt_bio_byte 32 0 1
> + 2) corrupt 224th byte in WRITE|REQ_META bios with the value 0:
> + corrupt_bio_byte 224 33 0
>
> drop_writes:
> All write I/O is silently ignored.
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
prev parent reply other threads:[~2011-06-29 14:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-29 14:41 [PATCH] dm flakey: document corrupt_bio_byte and optional feature precedence Mike Snitzer
2011-06-29 14:52 ` Mike Snitzer [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=20110629145237.GB20420@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.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.