module documentation
Undocumented
| Function | |
Convert dictionary to flat string representation |
| Function | |
Helper method to convert nested dicts to flat string representation |
| Function | |
Return cache settings suitable for use with -blockdev |
| Function | |
Parse a storage uri into qemu blockdev params |
| Function | |
Converts a given boolean to 'on'|'off' for use in QEMUs cmdline |
| Constant | _BLOCKDEV |
Undocumented |
| Constant | _BLOCKDEV |
Undocumented |
Convert dictionary to flat string representation
This function is used to transform a blockdev QEMU parameter set for use as command line parameters (to QEMUs -blockdev parameter)
| Parameters | |
| data:dict | data to convert |
| Returns | |
| string | |
Return cache settings suitable for use with -blockdev
| Parameters | |
| cache | string (one of constants.HT_VALID_CACHE_TYPES) |
| dev | string (one of constants.DISK_TEMPLATES |
| Returns | |
| tuple | (writeback, direct, no_flush) |
Converts a given boolean to 'on'|'off' for use in QEMUs cmdline
| Parameters | |
| value | bool |
| Returns | |
| string | 'on' or 'off' |