]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/delegate/delegate.cfg
Add `zfs allow` and `zfs unallow` support
[mirror_zfs.git] / tests / zfs-tests / tests / functional / delegate / delegate.cfg
index 57ec0a582c482f59423984d953404e7b3a20e463..aaa67604839ecc709d5d74160a3d65a5ffe267a7 100644 (file)
@@ -40,9 +40,22 @@ export OTHER2=other2
 
 export EVERYONE="$STAFF1 $STAFF2 $OTHER1 $OTHER2"
 
-export LOCAL_SET="snapshot"
-export LOCAL_DESC_SET="readonly,checksum"
-export DESC_SET="compression"
+#
+# 'readonly' is disabled for Linux because it requires remounting the
+# filesystem which is restricted to root for older versions of mount(8).
+#
+if is_linux; then
+       LOCAL_SET="snapshot"
+       LOCAL_DESC_SET="checksum"
+       DESC_SET="compression"
+else
+       LOCAL_SET="snapshot"
+       LOCAL_DESC_SET="readonly,checksum"
+       DESC_SET="compression"
+fi
+export LOCAL_SET
+export LOCAL_DESC_SET
+export DESC_SET
 
 export TESTVOL=testvol.delegate
 export VOLSIZE=150m