1# vim: filetype=sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22
23#
24# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"@(#)properties.kshlib	1.6	09/01/13 SMI"
28#
29
30. $STF_SUITE/include/libtest.kshlib
31
32set -A RW_FS_PROP "quota=512M" \
33		  "reservation=512M" \
34		  "recordsize=64K" \
35		  "mountpoint=/tmp/mnt${TESTCASE_ID}" \
36		  "checksum=fletcher2" \
37		  "compression=lzjb" \
38		  "atime=off" \
39		  "devices=off" \
40		  "exec=off" \
41		  "setuid=off" \
42		  "readonly=on" \
43		  "snapdir=visible" \
44		  "aclmode=discard" \
45		  "aclinherit=discard" \
46		  "canmount=off" \
47		  "local:department=123"
48
49is_global_zone && \
50	set -A RW_FS_PROP ${RW_FS_PROP[*]} "sharenfs=on"
51
52set -A RW_VOL_PROP "volblocksize=16K" \
53		   "checksum=fletcher2" \
54		   "compression=lzjb" \
55		   "readonly=on" \
56		   "local:department=123"
57
58set -A RW_VOL_CLONE_PROP "checksum=fletcher2" \
59		   "compression=lzjb" \
60		   "readonly=on" \
61		   "local:department=123"
62
63set -A FS_ONLY_PROP "quota=512M" \
64                    "recordsize=64K" \
65                    "mountpoint=/tmp/mnt${TESTCASE_ID}" \
66                    "sharenfs=on" \
67                    "atime=off" \
68                    "devices=off" \
69                    "exec=off" \
70                    "setuid=off" \
71                    "snapdir=visible" \
72                    "aclmode=discard" \
73                    "aclinherit=discard" \
74		    "canmount=off"
75
76$ZFS upgrade -v > /dev/null 2>&1
77if [[ $? -eq 0 ]]; then
78	set -A FS_ONLY_PROP ${FS_ONLY_PROP[*]} "version=1"
79fi
80
81set -A VOL_ONLY_PROP "volblocksize=16K" "volsize=512M"
82