1 #! /usr/bin/ksh -p
2 #
3 #
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
8 #
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
12 #
13
14 #
15 # Copyright 2017 Nexenta Systems, Inc.
16 #
17
18 . $STF_SUITE/tests/functional/wbc/wbc.cfg
19 . $STF_SUITE/tests/functional/wbc/wbc.kshlib
20
21 #
22 # DESCRIPTION:
23 # A raidz special is not supported
24 #
25 # STRATEGY:
26 # 1. Try to create pool with unsupported vdev type
27 # 2. Creating pool must fail
28 #
29
30 verify_runnable "global"
31 log_assert "A raidz special is not supported."
32 log_onexit cleanup
33 for pool_type in "stripe" "mirror" ; do
34 for special_type in "raidz" "raidz2" "raidz3" ; do
35 for wbc_mode in "none" "on" ; do
36 log_mustnot create_pool_special $TESTPOOL $wbc_mode \
37 $pool_type $special_type
38 done
39 done
40 done
41 log_pass "A raidz special is not supported."