From 858004984b8583a1f7bd1883469af017b57783eb Mon Sep 17 00:00:00 2001 From: Nils Pascal Illenseer Date: Tue, 18 Feb 2014 11:30:17 +0100 Subject: [PATCH] Fix zfs create command for properties with spaces If a property value contains one or more spaces, the zfs command will fail. With value quoted this behavior is fixed. --- library/system/zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/zfs b/library/system/zfs index 79363252e08..56392820059 100644 --- a/library/system/zfs +++ b/library/system/zfs @@ -264,7 +264,7 @@ class Zfs(object): cmd.append('-b %s' % volblocksize) if properties: for prop, value in properties.iteritems(): - cmd.append('-o %s=%s' % (prop, value)) + cmd.append('-o %s="%s"' % (prop, value)) if volsize: cmd.append('-V') cmd.append(volsize)