resize: implement remote protocol for virStorageVolResize()

Autogeneration saves the day.

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 6714fd04d2
commit 835817806e
3 changed files with 15 additions and 1 deletions

View File

@ -4837,6 +4837,7 @@ static virStorageDriver storage_driver = {
.volGetInfo = remoteStorageVolGetInfo, /* 0.4.1 */
.volGetXMLDesc = remoteStorageVolGetXMLDesc, /* 0.4.1 */
.volGetPath = remoteStorageVolGetPath, /* 0.4.1 */
.volResize = remoteStorageVolResize, /* 0.9.10 */
.poolIsActive = remoteStoragePoolIsActive, /* 0.7.3 */
.poolIsPersistent = remoteStoragePoolIsPersistent, /* 0.7.3 */
};

View File

@ -1676,6 +1676,12 @@ struct remote_storage_vol_get_path_ret {
remote_nonnull_string name;
};
struct remote_storage_vol_resize_args {
remote_nonnull_storage_vol vol;
hyper capacity;
unsigned int flags;
};
/* Node driver calls: */
struct remote_node_num_of_devices_args {
@ -2667,7 +2673,8 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SET_INTERFACE_PARAMETERS = 256, /* autogen autogen */
REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257, /* skipgen skipgen */
REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 258, /* autogen autogen */
REMOTE_PROC_STORAGE_VOL_WIPE_PATTERN = 259 /* autogen autogen */
REMOTE_PROC_STORAGE_VOL_WIPE_PATTERN = 259, /* autogen autogen */
REMOTE_PROC_STORAGE_VOL_RESIZE = 260 /* autogen autogen */
/*
* Notice how the entries are grouped in sets of 10 ?

View File

@ -1260,6 +1260,11 @@ struct remote_storage_vol_get_path_args {
struct remote_storage_vol_get_path_ret {
remote_nonnull_string name;
};
struct remote_storage_vol_resize_args {
remote_nonnull_storage_vol vol;
int64_t capacity;
u_int flags;
};
struct remote_node_num_of_devices_args {
remote_string cap;
u_int flags;
@ -2101,4 +2106,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_INTERFACE_PARAMETERS = 257,
REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS = 258,
REMOTE_PROC_STORAGE_VOL_WIPE_PATTERN = 259,
REMOTE_PROC_STORAGE_VOL_RESIZE = 260,
};