From 4ca1e034ea951b39ec92b0e63420cd9aa2f959bb Mon Sep 17 00:00:00 2001 From: pjd Date: Tue, 21 Dec 2004 19:03:10 +0000 Subject: [PATCH] Wait a bit after creating device. --- tools/regression/geom_mirror/test-1.sh | 2 +- tools/regression/geom_mirror/test-2.sh | 2 +- tools/regression/geom_mirror/test-3.sh | 2 +- tools/regression/geom_mirror/test-4.sh | 2 +- tools/regression/geom_mirror/test-5.sh | 2 +- tools/regression/geom_mirror/test-6.sh | 2 +- tools/regression/geom_mirror/test-7.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/regression/geom_mirror/test-1.sh b/tools/regression/geom_mirror/test-1.sh index e521564211cd..35440d3832bf 100644 --- a/tools/regression/geom_mirror/test-1.sh +++ b/tools/regression/geom_mirror/test-1.sh @@ -10,9 +10,9 @@ us2=`expr $us0 + 2` mdconfig -a -t malloc -s 1M -u $us0 || exit 1 mdconfig -a -t malloc -s 2M -u $us1 || exit 1 mdconfig -a -t malloc -s 3M -u $us2 || exit 1 -sleep 1 gmirror label $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 # Size of created device should be 1MB - 512b. diff --git a/tools/regression/geom_mirror/test-2.sh b/tools/regression/geom_mirror/test-2.sh index 89bfdd4df85c..d9fabbb5270e 100644 --- a/tools/regression/geom_mirror/test-2.sh +++ b/tools/regression/geom_mirror/test-2.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 diff --git a/tools/regression/geom_mirror/test-3.sh b/tools/regression/geom_mirror/test-3.sh index 67a41516ea59..023bcc8738b7 100644 --- a/tools/regression/geom_mirror/test-3.sh +++ b/tools/regression/geom_mirror/test-3.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 diff --git a/tools/regression/geom_mirror/test-4.sh b/tools/regression/geom_mirror/test-4.sh index 0b764cad67bc..0e2edc2c7654 100644 --- a/tools/regression/geom_mirror/test-4.sh +++ b/tools/regression/geom_mirror/test-4.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 diff --git a/tools/regression/geom_mirror/test-5.sh b/tools/regression/geom_mirror/test-5.sh index d1958d587cb3..ae36814f10b7 100644 --- a/tools/regression/geom_mirror/test-5.sh +++ b/tools/regression/geom_mirror/test-5.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance -s `expr $ddbs / 2` $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 diff --git a/tools/regression/geom_mirror/test-6.sh b/tools/regression/geom_mirror/test-6.sh index db36726b2929..65fe1abf4b3b 100644 --- a/tools/regression/geom_mirror/test-6.sh +++ b/tools/regression/geom_mirror/test-6.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance -s `expr $ddbs / 2` $name /dev/md${us0} /dev/md${us1} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 dd if=/dev/zero of=/dev/md${us2} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 diff --git a/tools/regression/geom_mirror/test-7.sh b/tools/regression/geom_mirror/test-7.sh index f39c531fb79a..ec2d8a0d128f 100644 --- a/tools/regression/geom_mirror/test-7.sh +++ b/tools/regression/geom_mirror/test-7.sh @@ -18,9 +18,9 @@ dd if=/dev/random of=${src} bs=$ddbs count=$nblocks2 >/dev/null 2>&1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us0 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us1 || exit 1 mdconfig -a -t malloc -s `expr $nblocks1 + 1` -u $us2 || exit 1 -sleep 1 gmirror label -b $balance $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1 +sleep 1 dd if=${src} of=/dev/mirror/${name} bs=$ddbs count=$nblocks2 >/dev/null 2>&1