linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: mwilck@arcor.de
To: neilb@suse.de, linux-raid@vger.kernel.org
Cc: mwilck@arcor.de
Subject: [PATCH 4/6] tests/10ddf-create: create RAID5 first
Date: Fri, 19 Jul 2013 21:04:13 +0200	[thread overview]
Message-ID: <1374260655-5788-5-git-send-email-mwilck@arcor.de> (raw)
In-Reply-To: <1374260655-5788-1-git-send-email-mwilck@arcor.de>

Let the first created array be RAID5 rather than RAID0. This makes
the test harder than before, because everything after the first
Create has do be done indirectly through mdmon.
---
 tests/10ddf-create |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/10ddf-create b/tests/10ddf-create
index 9eb1c5c..50c85ae 100644
--- a/tests/10ddf-create
+++ b/tests/10ddf-create
@@ -11,18 +11,18 @@
 set -e
 
 mdadm -CR /dev/md/ddf0 -e ddf -n 5 $dev8 $dev9 $dev10 $dev11 $dev12
-mdadm -CR r0 -l0 -n5 /dev/md/ddf0 -z 5000
-if mdadm -CR r0 -l1 -n2 /dev/md/ddf0 -z 5000
+mdadm -CR r5 -l5 -n5 /dev/md/ddf0 -z 5000
+if mdadm -CR r5 -l1 -n2 /dev/md/ddf0 -z 5000
 then echo >&2 create with same name should fail ; exit 1
 fi
 mdadm -CR r10 -l10 -n4 -pn2 /dev/md/ddf0 -z 5000
 mdadm -CR r1 -l1 -n2 /dev/md/ddf0
-mdadm -CR r5 -l5 -n3 /dev/md/ddf0
-testdev /dev/md/r0 5 5000 512
+mdadm -CR r0 -l0 -n3 /dev/md/ddf0
+testdev /dev/md/r5 4 5000 512
 testdev /dev/md/r10 2 5000 512
 # r0/r10 will use 4608 due to chunk size, so that leaves 23552 for the rest
 testdev /dev/md/r1 1 23552 64
-testdev /dev/md/r5 2 23552 512
+testdev /dev/md/r0 3 23552 512
 dd if=/dev/sda of=/dev/md/r0 || true
 dd if=/dev/sda of=/dev/md/r10 || true
 dd if=/dev/sda of=/dev/md/r1 || true
-- 
1.7.1

  parent reply	other threads:[~2013-07-19 19:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 19:04 [PATCH 0/6] More DDF fixes and unit tests mwilck
2013-07-19 19:04 ` [PATCH 1/6] DDF: err_bad_md_layout: fix return value mwilck
2013-07-19 19:04 ` [PATCH 2/6] DDF: kill_subarray_ddf: fix case without mdmon running mwilck
2013-07-19 19:04 ` [PATCH 3/6] DDF: getinfo_super_ddf_bvd: fix offset calculation for SVDs mwilck
2013-07-19 19:04 ` mwilck [this message]
2013-07-19 19:04 ` [PATCH 5/6] test: increase number of devices to 13 mwilck
2013-07-19 19:04 ` [PATCH 6/6] tests/10ddf-geometry: new unit test mwilck

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=1374260655-5788-5-git-send-email-mwilck@arcor.de \
    --to=mwilck@arcor.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).