resize: add virStorageVolResize() API

Add a new function to allow changing of capacity of storage volumes.
Plan out several flags, even if not all of them will be implemented
up front.

Expose the new command via 'virsh vol-resize'.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Zeeshan Ali (Khattak)
2012-01-27 07:29:56 +02:00
committed by Eric Blake
parent b2e13f9c44
commit 6714fd04d2
7 changed files with 187 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ py_types = {
'double': ('d', None, "double", "double"),
'unsigned int': ('i', None, "int", "int"),
'unsigned long': ('l', None, "long", "long"),
'long long': ('l', None, "longlong", "long long"),
'unsigned long long': ('l', None, "longlong", "long long"),
'unsigned char *': ('z', None, "charPtr", "char *"),
'char *': ('z', None, "charPtr", "char *"),