Merge pull request #6051 from illenseer/devel

Fix zfs create command for properties with spaces
pull/6057/head
Michael DeHaan 11 years ago
commit dc3ca7b37e

@ -264,7 +264,7 @@ class Zfs(object):
cmd.append('-b %s' % volblocksize) cmd.append('-b %s' % volblocksize)
if properties: if properties:
for prop, value in properties.iteritems(): for prop, value in properties.iteritems():
cmd.append('-o %s=%s' % (prop, value)) cmd.append('-o %s="%s"' % (prop, value))
if volsize: if volsize:
cmd.append('-V') cmd.append('-V')
cmd.append(volsize) cmd.append(volsize)

Loading…
Cancel
Save