]> xenbits.xensource.com Git - libvirt.git/commitdiff
resize: implement remote protocol for virStorageVolResize()
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 27 Jan 2012 05:29:56 +0000 (07:29 +0200)
committerEric Blake <eblake@redhat.com>
Sat, 28 Jan 2012 02:56:21 +0000 (19:56 -0700)
Autogeneration saves the day.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs

index f79f53e5104e762c9c0f59380ed57dd25aaa7599..2bb4cbf69fc751f4ea2977a4ed660f1339d34de4 100644 (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 */
 };
index 0f354bb242809d009c921b732e5a6ba7a9c9d59c..7d104b25a80f01da534420b1f17ac1a37b007bcf 100644 (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 ?
index de8586219667cbf61d8e4453ebccb90ed8c953b0..70a69f661c8968cb79652aff0c24d0ed900d0913 100644 (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,
 };