]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/zfs/zpool/create/option-n.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / zfs / zpool / create / option-n.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 dir=`dirname $0`
5 . ${dir}/../../misc.sh
6
7 echo "1..5"
8
9 disks_create 1
10 names_create 1
11
12 expect_fl is_mountpoint /${name0}
13 exp=`(
14   echo "would create '${name0}' with the following layout:"
15   echo "        ${name0}"
16   echo "          ${disk0}"
17 )`
18 expect "${exp}" ${ZPOOL} create -n ${name0} ${disk0}
19 expect_fl is_mountpoint /${name0}
20 expect_fl ${ZPOOL} status -x ${name0}
21 expect_fl ${ZPOOL} destroy ${name0}
22
23 disks_destroy