NeilBrown: Update some device sizes for self tests.

Michael Tokarev mjt at alioth.debian.org
Fri May 25 18:01:40 UTC 2012


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

Author: NeilBrown <neilb at suse.de>
Date:   Fri May 18 17:08:28 2012 +1000

Update some device sizes for self tests.

A recent change means that devices smaller than
1Gig no longer have 1Meg wasted at the start.
So we must adjust some sizes again.

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

---

 test                 |    6 +++---
 tests/07autoassemble |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test b/test
index 2964b3b..4f0979e 100755
--- a/test
+++ b/test
@@ -37,12 +37,12 @@ mdsize1=19992
 mdsize1a=19988
 mdsize12=19988
 # super1.2 for linear: round to multiple of 2, subtract 4
-mdsize1_l=18976
-mdsize2_l=18976
+mdsize1_l=19996
+mdsize2_l=19996
 # subtract another 4 for bitmaps
 mdsize1b=19988
 mdsize11=19992
-mdsize11a=18944
+mdsize11a=19456
 mdsize12=19988
 
 # ddf needs bigger devices as 32Meg is reserved!
diff --git a/tests/07autoassemble b/tests/07autoassemble
index 1d53d3f..e689be7 100644
--- a/tests/07autoassemble
+++ b/tests/07autoassemble
@@ -20,5 +20,5 @@ mdadm -CR $md0 -l0 -n2 $md1 $dev2  --homehost=testing
 mdadm -Ss
 mdadm -As -c /dev/null --homehost=testing -vvv
 testdev $md1 1 $mdsize1a 64
-testdev $md0 1 $[mdsize1a+mdsize11a-1024] 512
+testdev $md0 1 $[mdsize1a+mdsize11a] 512
 mdadm -Ss




More information about the pkg-mdadm-commits mailing list