diff options
author | NeilBrown <neilb@suse.de> | 2015-07-15 23:49:14 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-07-15 23:49:14 +0200 |
commit | 21a1287ac94847f4bc96d0257917d1a564d038ee (patch) | |
tree | b96a2a9178e1d2cf9a399f5c04b89ed81b477a66 /test | |
parent | raid6check: report role of suspect device. (diff) | |
download | mdadm-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-x | test | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |