Utility functions for storage.
|
GetDiskTemplatesOfStorageTypes(*storage_types)
Given the storage type, returns a list of disk templates based on
that storage type. |
source code
|
|
|
IsDiskTemplateEnabled(disk_template,
enabled_disk_templates)
Checks if a particular disk template is enabled. |
source code
|
|
|
IsFileStorageEnabled(enabled_disk_templates)
Checks if file storage is enabled. |
source code
|
|
|
IsSharedFileStorageEnabled(enabled_disk_templates)
Checks if shared file storage is enabled. |
source code
|
|
|
IsLvmEnabled(enabled_disk_templates)
Check whether or not any lvm-based disk templates are enabled. |
source code
|
|
|
LvmGetsEnabled(enabled_disk_templates,
new_enabled_disk_templates)
Checks whether lvm was not enabled before, but will be enabled after
the operation. |
source code
|
|
string
|
|
|
DiskTemplateSupportsSpaceReporting(disk_template)
Check whether the disk template supports storage space reporting. |
source code
|
|
list of tuples (string, string)
|
|
tuple
|
|
tuple
|
|
generator
|
|
|
|