]> git.proxmox.com Git - qemu.git/blobdiff - hmp.c
qmp: add block_job_cancel command
[qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index bf3d9df88f89080045d62618b732f975ef059041..867c338788a1f407119c49e5316e269df8756489 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -805,3 +805,13 @@ void hmp_block_job_set_speed(Monitor *mon, const QDict *qdict)
 
     hmp_handle_error(mon, &error);
 }
+
+void hmp_block_job_cancel(Monitor *mon, const QDict *qdict)
+{
+    Error *error = NULL;
+    const char *device = qdict_get_str(qdict, "device");
+
+    qmp_block_job_cancel(device, &error);
+
+    hmp_handle_error(mon, &error);
+}