From 7f40790fc1951c8b2bc30584b0f08250ed62bb4a 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. --- system/zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/zfs b/system/zfs index 79363252e08..56392820059 100644 --- a/system/zfs +++ b/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)