xref: /freebsd/tools/regression/zfs/zpool/create/option-n.t (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1#!/bin/sh
2
3dir=`dirname $0`
4. ${dir}/../../misc.sh
5
6echo "1..5"
7
8disks_create 1
9names_create 1
10
11expect_fl is_mountpoint /${name0}
12exp=`(
13  echo "would create '${name0}' with the following layout:"
14  echo "	${name0}"
15  echo "	  ${disk0}"
16)`
17expect "${exp}" ${ZPOOL} create -n ${name0} ${disk0}
18expect_fl is_mountpoint /${name0}
19expect_fl ${ZPOOL} status -x ${name0}
20expect_fl ${ZPOOL} destroy ${name0}
21
22disks_destroy
23