]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/zfs/zpool/create/already_exists.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / zfs / zpool / create / already_exists.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 dir=`dirname $0`
5 . ${dir}/../../misc.sh
6
7 echo "1..5"
8
9 disks_create 2
10 names_create 1
11
12 expect_ok ${ZPOOL} create ${name0} ${disk0}
13 exp=`(
14   echo "  pool: ${name0}"
15   echo " state: ONLINE"
16   echo " scrub: none requested"
17   echo "config:"
18   echo "        NAME        STATE   READ WRITE CKSUM"
19   echo "        ${name0}    ONLINE     0     0     0"
20   echo "          ${disk0}  ONLINE     0     0     0"
21   echo "errors: No known data errors"
22 )`
23 expect "${exp}" ${ZPOOL} status ${name0}
24 expect_fl ${ZPOOL} create ${name0} ${disk1}
25 expect "${exp}" ${ZPOOL} status ${name0}
26 expect_ok ${ZPOOL} destroy ${name0}
27
28 disks_destroy