1153182Spjd#!/bin/sh 2153182Spjd# $FreeBSD: releng/10.3/tools/regression/geom_mirror/test-1.t 294657 2016-01-24 06:19:49Z ngie $ 3153182Spjd 4153186Spjd. `dirname $0`/conf.sh 5153186Spjd 6153186Spjdecho "1..1" 7153186Spjd 8294657Sngieus0=$(attach_md -t malloc -s 1M) || exit 1 9294657Sngieus1=$(attach_md -t malloc -s 2M) || exit 1 10294657Sngieus2=$(attach_md -t malloc -s 3M) || exit 1 11153182Spjd 12294657Sngiegmirror label $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1 13153186Spjddevwait 14153182Spjd 15153182Spjd# Size of created device should be 1MB - 512b. 16153182Spjd 17153182Spjdsize=`diskinfo /dev/mirror/${name} | awk '{print $3}'` 18153182Spjd 19153182Spjdif [ $size -eq 1048064 ]; then 20153182Spjd echo "ok 1" 21153182Spjdelse 22153182Spjd echo "not ok 1" 23153182Spjdfi 24