summary refs log tree commit diff
diff options
context:
space:
mode:
authorTeddy Heinen <skyshayde@gmail.com>2019-10-26 10:38:34 -0500
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-10-28 23:15:37 +0100
commit5cf1d6dfd149a83bd6c4418518dc9de430834b99 (patch)
tree70066b06fc2255e7cc7e341f826fd538a0d0f167
parent8c25d92e11b57aad056d34af3c2269aad586f659 (diff)
downloadzsh-5cf1d6dfd149a83bd6c4418518dc9de430834b99.tar.gz
zsh-5cf1d6dfd149a83bd6c4418518dc9de430834b99.tar.xz
zsh-5cf1d6dfd149a83bd6c4418518dc9de430834b99.zip
github #40: Teddy Heinen: adjust zfs completion to use acltype on linux instead of aclmode
-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)"