NeilBrown: Fix test for imsm prodigal member scenario

Martin F. Krafft madduck at alioth.debian.org
Sun Aug 29 11:55:49 UTC 2010


Module: mdadm
Branch: upstream
Commit: c61c4dd01df75d3a56809db19ec827203505830b
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=c61c4dd01df75d3a56809db19ec827203505830b

Author: NeilBrown <neilb at suse.de>
Date:   Thu Aug  5 11:44:26 2010 +1000

Fix test for imsm prodigal member scenario

The 'container_enough' changes fliped the default from assembling
an array as soon as we possibly could, to assembling only when all
expected devices are present.
This broken 09imsm-assemble which expects the original default.
So change from "-I" to "-IR" to restore the expected behaviour.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 tests/09imsm-assemble |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/09imsm-assemble b/tests/09imsm-assemble
index 7389b0e..46e15bc 100644
--- a/tests/09imsm-assemble
+++ b/tests/09imsm-assemble
@@ -9,19 +9,19 @@ mdadm -Ss
 
 # make dev0 and dev1 a new rebuild family
 mdadm -A $container $dev0 $dev1
-mdadm -I $container
+mdadm -IR $container
 mdadm --wait ${member}_0
 mdadm -Ss
 
 # make dev2 and dev3 a new rebuild family
 mdadm -A $container $dev2 $dev3
-mdadm -I $container
+mdadm -IR $container
 mdadm --wait ${member}_0
 mdadm -Ss
 
 # reassemble and make sure one of the families falls out
 mdadm -A $container $dev0 $dev1 $dev2 $dev3
-mdadm -I $container
+mdadm -IR $container
 testdev ${member}_0 1 $size 1
 if mdadm --remove $container $dev0 ; then
     # the dev[23] family won
@@ -38,9 +38,9 @@ mdadm -Ss
 
 # reassemble with a new id for the dev[23] family
 mdadm -A $container $dev0 $dev1
-mdadm -I $container
+mdadm -IR $container
 mdadm -A ${container}2 $dev2 $dev3 --update=uuid
-mdadm -I ${container}2
+mdadm -IR ${container}2
 
 testdev ${member}_0 1 $size 1
 testdev ${member}_1 1 $size 1




More information about the pkg-mdadm-commits mailing list