]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - test
sysfs: avoid possible data corruption in sys_load.
[thirdparty/mdadm.git] / test
diff --git a/test b/test
index d2719854717a08ffbf2eaa5a292886f7b8dee9f6..f83e28fcb9d846659009604744f9759b9b907859 100644 (file)
--- a/test
+++ b/test
@@ -30,6 +30,8 @@ targetdir=/var/tmp
 size=20000
 # super0, round down to multiple of 64 and substract 64
 mdsize0=19904
+# super00 is nested, subtract 128
+mdsize00=19840
 # super1.0 round down to multiple of 2, subtract 8
 mdsize1=19992
 # subtract another 4 for bitmaps
@@ -169,6 +171,8 @@ do
   if [ -f "$script" ]
   then
    rm -f $targetdir/stderr
+   # stop all arrays, just incase some script left an array active.
+   mdadm -Ssq
    # source script in a subshell, so it has access to our
    # namespace, but cannot change it.
    if ( set -ex ; . $script )  2> $targetdir/log