diff options
Diffstat (limited to 'tools/regression/zfs/zpool/add/doesnt_exist.t')
| -rw-r--r-- | tools/regression/zfs/zpool/add/doesnt_exist.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/regression/zfs/zpool/add/doesnt_exist.t b/tools/regression/zfs/zpool/add/doesnt_exist.t new file mode 100644 index 000000000000..589dd31b4097 --- /dev/null +++ b/tools/regression/zfs/zpool/add/doesnt_exist.t @@ -0,0 +1,19 @@ +#!/bin/sh + +dir=`dirname $0` +. ${dir}/../../misc.sh + +echo "1..6" + +disks_create 1 +names_create 1 + +expect_fl ${ZPOOL} add ${name0} ${disk0} +expect_fl ${ZPOOL} status -x ${name0} +expect_fl ${ZPOOL} destroy ${name0} + +expect_fl ${ZPOOL} add -f ${name0} ${disk0} +expect_fl ${ZPOOL} status -x ${name0} +expect_fl ${ZPOOL} destroy ${name0} + +disks_destroy |
