1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or https://opensource.org/licenses/CDDL-1.0. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27# 28# Copyright (c) 2013 by Delphix. All rights reserved. 29# 30 31if is_linux; then 32 # these are the set of settable ZFS properties 33 PROP_NAMES="\ 34 acltype atime \ 35 checksum compression devices \ 36 exec mountpoint quota readonly \ 37 recordsize reservation setuid \ 38 snapdir" 39 40 # these are a set of values we apply, for use when testing the 41 # zfs get/set subcommands - ordered as per the list above so we 42 # can iterate over both sets in an array 43 PROP_VALS="\ 44 posix on \ 45 fletcher2 on on \ 46 on legacy none on \ 47 128K none on \ 48 visible" 49 50 # these are an alternate set of property values 51 PROP_ALTVALS="\ 52 nfsv4 off \ 53 fletcher4 lzjb off \ 54 off /tmp/zfstest 100M off \ 55 512 10m off \ 56 hidden" 57elif is_freebsd; then 58 PROP_NAMES="\ 59 acltype atime \ 60 checksum compression devices \ 61 exec mountpoint quota readonly \ 62 recordsize reservation setuid \ 63 snapdir" 64 65 # these are a set of values we apply, for use when testing the 66 # zfs get/set subcommands - ordered as per the list above so we 67 # can iterate over both sets in an array 68 PROP_VALS="\ 69 posix on \ 70 fletcher2 on on \ 71 on legacy none on \ 72 128K none on \ 73 visible" 74 75 # these are an alternate set of property values 76 PROP_ALTVALS="\ 77 nfsv4 off \ 78 fletcher4 lzjb off \ 79 off /tmp/zfstest 100M off \ 80 512 10m off \ 81 hidden" 82 83else 84 # these are the set of settable ZFS properties 85 PROP_NAMES="\ 86 aclinherit aclmode atime \ 87 checksum compression devices \ 88 exec mountpoint quota readonly \ 89 recordsize reservation setuid sharenfs \ 90 snapdir" 91 92 # these are a set of values we apply, for use when testing the 93 # zfs get/set subcommands - ordered as per the list above so we 94 # can iterate over both sets in an array 95 PROP_VALS="\ 96 passthrough discard on \ 97 fletcher2 on on \ 98 on legacy none on \ 99 128K none on on \ 100 visible" 101 102 # these are an alternate set of property values 103 PROP_ALTVALS="\ 104 passthrough-x groupmask off \ 105 fletcher4 lzjb off \ 106 off /tmp/zfstest 100M off \ 107 512 10m off off \ 108 hidden" 109fi 110 111# additional properties to worry about: canmount copies xattr zoned version 112 113POOL_PROPS="\ 114 failmode autoreplace" 115 116POOL_VALS="\ 117 continue on" 118 119POOL_ALTVALS="\ 120 panic off" 121 122export TESTSNAP=testsnap-misc 123export TESTCLCT=testclct-misc 124