1#!/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. $STF_SUITE/tests/functional/alloc_class/alloc_class.kshlib
15
16#
17# DESCRIPTION:
18#	Setting the special_small_blocks property greater than recordsize fails.
19#
20
21verify_runnable "global"
22
23claim="Setting the special_small_blocks property greater than recordsize fails"
24
25log_assert $claim
26log_onexit cleanup
27log_must disk_setup
28
29for size in 512 4096 32768 131072 524288 1048576
30do
31	let bigger=$size*2
32	log_mustnot zpool create -O recordsize=$size \
33		-O special_small_blocks=$bigger \
34		$TESTPOOL raidz $ZPOOL_DISKS special mirror \
35		$CLASS_DISK0 $CLASS_DISK1
36done
37
38log_pass $claim
39