]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - test
Improve --re-add documentation
[thirdparty/mdadm.git] / test
diff --git a/test b/test
index 3acb6c14bc0912533917e0776db16311f4c42004..a31ad40fd379470d15829c2d2bcb4a8f933698d0 100644 (file)
--- a/test
+++ b/test
@@ -34,9 +34,15 @@ mdsize0=19904
 mdsize00=19840
 # super1.0 round down to multiple of 2, subtract 8
 mdsize1=19992
+mdsize1a=19988
+mdsize12=19988
+# super1.2 for linear: round to multiple of 2, subtract 4
+mdsize1_l=18976
+mdsize2_l=18976
 # subtract another 4 for bitmaps
 mdsize1b=19988
 mdsize11=19992
+mdsize11a=18944
 mdsize12=19988
 
 # ddf needs bigger devices as 32Meg is reserved!
@@ -166,7 +172,9 @@ testdev() {
    cnt=$2
    dvsize=$3
    chunk=$4
-   mkfs -j $dev > /dev/null 2>&1 && fsck -fn $dev >&2
+   if [ -z "$5" ]; then
+      mkfs -j $dev > /dev/null 2>&1 && fsck -fn $dev >&2
+   fi
    dsize=$[dvsize/chunk]
    dsize=$[dsize*chunk]
    rasize=$[dsize*2*cnt]