]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
tests: add test for non-numeric device names
authorNeilBrown <neilb@suse.de>
Wed, 19 Jun 2013 06:44:18 +0000 (16:44 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 19 Jun 2013 06:44:18 +0000 (16:44 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
tests/00names [new file with mode: 0644]

diff --git a/tests/00names b/tests/00names
new file mode 100644 (file)
index 0000000..c6630e2
--- /dev/null
@@ -0,0 +1,11 @@
+set -x -e
+
+# create arrays with non-numeric names
+
+for i in linear raid0 raid1 raid4 raid5 raid6
+do
+  mdadm -CR /dev/md/$i -l $i -n 4 $dev4 $dev3 $dev2 $dev1
+  check $i
+  [ -d /sys/class/block/md_$i/md ]
+  mdadm -S md_$i
+done