. lib/inittest
losetup -h | grep sector-size || skip
+wipefs -V || skip
dd if=/dev/zero of=loopa bs=$((1024*1024)) count=2 2> /dev/null
dd if=/dev/zero of=loopb bs=$((1024*1024)) count=2 2> /dev/null
. lib/inittest
+wipefs -V || skip
+
test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
modprobe raid0 || skip
not grep md0 /proc/mdstat
. lib/inittest
+wipefs -V || skip
+
test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
modprobe raid1 || skip
not grep md0 /proc/mdstat
. lib/inittest
+wipefs -V || skip
+
test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
modprobe raid1 || skip
not grep md0 /proc/mdstat
# skip this test if mdadm or sfdisk (or others) aren't available
which sfdisk || skip
+wipefs -V || skip
+
test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
modprobe raid0 || skip
not grep md0 /proc/mdstat