xref: /freebsd/tools/regression/zfs/zpool/add/doesnt_exist.t (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1#!/bin/sh
2
3dir=`dirname $0`
4. ${dir}/../../misc.sh
5
6echo "1..6"
7
8disks_create 1
9names_create 1
10
11expect_fl ${ZPOOL} add ${name0} ${disk0}
12expect_fl ${ZPOOL} status -x ${name0}
13expect_fl ${ZPOOL} destroy ${name0}
14
15expect_fl ${ZPOOL} add -f ${name0} ${disk0}
16expect_fl ${ZPOOL} status -x ${name0}
17expect_fl ${ZPOOL} destroy ${name0}
18
19disks_destroy
20