mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
add createparent option to zfs create
This commit is contained in:
parent
7ccd958ffd
commit
ac3614527d
1 changed files with 8 additions and 3 deletions
|
@ -260,6 +260,10 @@ class Zfs(object):
|
||||||
|
|
||||||
cmd = [self.module.get_bin_path('zfs', True)]
|
cmd = [self.module.get_bin_path('zfs', True)]
|
||||||
cmd.append(action)
|
cmd.append(action)
|
||||||
|
|
||||||
|
if createparent:
|
||||||
|
cmd.append('-p')
|
||||||
|
|
||||||
if volblocksize:
|
if volblocksize:
|
||||||
cmd.append('-b %s' % volblocksize)
|
cmd.append('-b %s' % volblocksize)
|
||||||
if properties:
|
if properties:
|
||||||
|
@ -345,6 +349,7 @@ def main():
|
||||||
'checksum': {'required': False, 'choices':['on', 'off', 'fletcher2', 'fletcher4', 'sha256']},
|
'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']},
|
'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']},
|
'copies': {'required': False, 'choices':['1', '2', '3']},
|
||||||
|
'createparent': {'required': False, 'choices':['on', 'off']},
|
||||||
'dedup': {'required': False, 'choices':['on', 'off']},
|
'dedup': {'required': False, 'choices':['on', 'off']},
|
||||||
'devices': {'required': False, 'choices':['on', 'off']},
|
'devices': {'required': False, 'choices':['on', 'off']},
|
||||||
'exec': {'required': False, 'choices':['on', 'off']},
|
'exec': {'required': False, 'choices':['on', 'off']},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue