From: NeilBrown Date: Wed, 15 Jul 2015 21:49:14 +0000 (+1000) Subject: test: clear out old metadata from loop devices. X-Git-Tag: mdadm-3.3.3~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21a1287ac94847f4bc96d0257917d1a564d038ee;p=thirdparty%2Fmdadm.git test: clear out old metadata from loop devices. Old metadata can tempt udev to assemble things, which just gets in the way. Signed-off-by: NeilBrown --- diff --git a/test b/test index 342177af..d09f3d8f 100755 --- a/test +++ b/test @@ -111,6 +111,8 @@ do_setup() { case $DEVTYPE in loop) [ -f $targetdir/mdtest$d ] || dd if=/dev/zero of=$targetdir/mdtest$d count=$sz bs=1K > /dev/null 2>&1 + # make sure udev doesn't touch + mdadm --zero $targetdir/mdtest$d 2> /dev/null [ -b /dev/loop$d ] || mknod /dev/loop$d b 7 $d if [ $d -eq 7 ] then