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