Merge pull request #259 from gtirloni/zfs-issue194

add createparent option to zfs create
This commit is contained in:
Greg DeKoenigsberg 2015-06-02 10:23:43 -04:00
commit 6562845821

View file

@ -260,6 +260,10 @@ class Zfs(object):
cmd = [self.module.get_bin_path('zfs', True)]
cmd.append(action)
if createparent:
cmd.append('-p')
if volblocksize:
cmd.append('-b %s' % volblocksize)
if properties:
@ -345,6 +349,7 @@ def main():
'checksum': {'required': False, 'choices':['on', 'off', 'fletcher2', 'fletcher4', 'sha256']},
'compression': {'required': False, 'choices':['on', 'off', 'lzjb', 'gzip', 'gzip-1', 'gzip-2', 'gzip-3', 'gzip-4', 'gzip-5', 'gzip-6', 'gzip-7', 'gzip-8', 'gzip-9', 'lz4', 'zle']},
'copies': {'required': False, 'choices':['1', '2', '3']},
'createparent': {'required': False, 'choices':['on', 'off']},
'dedup': {'required': False, 'choices':['on', 'off']},
'devices': {'required': False, 'choices':['on', 'off']},
'exec': {'required': False, 'choices':['on', 'off']},