]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
workaround a hald interaction and quiet cleanup
authorDan Williams <dan.j.williams@intel.com>
Mon, 8 Dec 2008 23:59:18 +0000 (16:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 8 Dec 2008 23:59:18 +0000 (16:59 -0700)
The 'udevadm settle' call appears to resolve:

mdadm: failed to stop array /dev/md127: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
test

diff --git a/test b/test
index f68a51d5422a4b75d5736d790d94e2f46b30dbe4..b3e49496447d191dd0d297bf85fd498c67055383 100644 (file)
--- a/test
+++ b/test
@@ -40,7 +40,8 @@ mdsize11=19992
 mdsize12=19988
 
 cleanup() {
-       $mdadm -Ss
+       udevadm settle
+       $mdadm -Ssq
        for d in 0 1 2 3 4 5 6 7
        do
            losetup -d /dev/loop$d ; # rm -f $targetdir/mdtest$d