aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include/properties.shlib
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-12-18 12:29:43 -0800
committerBrian Behlendorf <[email protected]>2019-12-18 12:29:43 -0800
commit7839c4b5e1e79e29f0df4ec9fe5e1e7182473e47 (patch)
treeef0214b6e757aeb181e54944abffe4e116bbf018 /tests/zfs-tests/include/properties.shlib
parent118fc3ef07c53a88ea1d4c21142a2b01c4648434 (diff)
Update ZTS to work on FreeBSD
Update the common ZTS scripts and individual test cases as needed in order to allow them to be run on FreeBSD. The high level goal is to provide compatibility wrappers whenever possible to minimize changes to individual test cases. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Matt Macy <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9692
Diffstat (limited to 'tests/zfs-tests/include/properties.shlib')
-rw-r--r--tests/zfs-tests/include/properties.shlib9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/zfs-tests/include/properties.shlib b/tests/zfs-tests/include/properties.shlib
index f049f5193..cc37e769d 100644
--- a/tests/zfs-tests/include/properties.shlib
+++ b/tests/zfs-tests/include/properties.shlib
@@ -80,8 +80,13 @@ function get_rand_large_recsize
#
# Functions to toggle on/off properties
#
-typeset -a binary_props=('atime' 'devices' 'exec' 'readonly' 'setuid' 'xattr'
- 'zoned')
+typeset -a binary_props=('atime' 'devices' 'exec' 'readonly' 'setuid' 'xattr')
+
+if is_freebsd; then
+ binary_props+=('jailed')
+else
+ binary_props+=('zoned')
+fi
if is_linux; then
# Only older kernels support non-blocking mandatory locks