summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_zfs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_zfs b/Completion/Unix/Command/_zfs
index ce5df5877..c720cbf74 100644
--- a/Completion/Unix/Command/_zfs
+++ b/Completion/Unix/Command/_zfs
@@ -145,7 +145,6 @@ _zfs() {
 	# set the sorting for *size properties to false by default?
 	rw_properties=(
 		"aclinherit:value:(discard noallow restricted passthrough passthrough-x)"
-		"aclmode:value:(discard mask passthrough)"
 		"atime:value:(on off)"
 		"canmount:value:(on off noauto)"
 		"checksum:value:(on off fletcher2 fletcher4 sha256 sha256+mac)"
@@ -185,6 +184,15 @@ _zfs() {
 		$share_rw_properties
 	)
 
+		if [[ "$OSTYPE" == "linux-gnu" ]]; then
+			rw_properties+=("acltype:value:(off noacl posixacl)")
+		elif [[ "$OSTYPE" == "solaris*" ]]; then
+			rw_properties+=("aclmode:value:(discard mask passthrough)")
+		else
+			rw_properties+=("aclmode:value:(discard groupmask passthrough restricted)")
+		fi
+
+
 	create_properties=(
 		$rw_properties
 		"casesensitivity:value:(sensitive insensitive mixed)"