aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-11-25 14:57:10 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2011-12-06 11:40:01 -0200
commit5e7caacb2583e6a4657fec51a92147f33c5bae43 (patch)
tree08713dd453821a703edd198a298f1106d93afe88 /hmp.c
parentd72f326431e280a619a0fd55e27d3737747f8178 (diff)
downloadqemu-5e7caacb2583e6a4657fec51a92147f33c5bae43.zip
qemu-5e7caacb2583e6a4657fec51a92147f33c5bae43.tar.gz
qemu-5e7caacb2583e6a4657fec51a92147f33c5bae43.tar.bz2
qapi: Convert block_resize
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index e9d1711..db199b2 100644
--- a/hmp.c
+++ b/hmp.c
@@ -633,3 +633,13 @@ void hmp_balloon(Monitor *mon, const QDict *qdict)
error_free(errp);
}
}
+
+void hmp_block_resize(Monitor *mon, const QDict *qdict)
+{
+ const char *device = qdict_get_str(qdict, "device");
+ int64_t size = qdict_get_int(qdict, "size");
+ Error *errp = NULL;
+
+ qmp_block_resize(device, size, &errp);
+ hmp_handle_error(mon, &errp);
+}