summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-15 15:50:50 +1000
committerNeil Brown <neilb@suse.de>2008-05-15 15:50:50 +1000
commit54097ce72bacee68e5ceb5914ea3414f9688f282 (patch)
tree4bb985ca1a1c91b191ac21ca7d85b3f729c49d75
parentff1f6545dba0cc2e8c9561cf10de236579d6f58c (diff)
downloadmdadm-54097ce72bacee68e5ceb5914ea3414f9688f282.tar.gz
mdadm-54097ce72bacee68e5ceb5914ea3414f9688f282.tar.xz
mdadm-54097ce72bacee68e5ceb5914ea3414f9688f282.zip
Don't try the auto-detect test when md_mod is a module
....as this cannot work.
-rw-r--r--tests/07autodetect7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/07autodetect b/tests/07autodetect
index 3e338f8..5460c5b 100644
--- a/tests/07autodetect
+++ b/tests/07autodetect
@@ -5,6 +5,13 @@
# put a partition on each, create an array, and see if we can
# use autodetect to restart the array.
+if lsmod | grep md_mod > /dev/null 2>&1
+then
+ echo md is a module - cannot test autodetect
+ exit 0
+fi
+
+
mdadm -CR $mdp0 -l0 -f -n1 $dev0
mdadm -CR $mdp1 -l0 -f -n1 $dev1
sfdisk $mdp0 >&2 << END