summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-15 23:49:14 +0200
committerNeilBrown <neilb@suse.de>2015-07-15 23:49:14 +0200
commit21a1287ac94847f4bc96d0257917d1a564d038ee (patch)
treeb96a2a9178e1d2cf9a399f5c04b89ed81b477a66 /test
parentraid6check: report role of suspect device. (diff)
downloadmdadm-21a1287ac94847f4bc96d0257917d1a564d038ee.tar.xz
mdadm-21a1287ac94847f4bc96d0257917d1a564d038ee.zip
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 <neilb@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest2
1 files changed, 2 insertions, 0 deletions
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