Index: new/qapi-schema.json
===================================================================
---- new.orig/qapi-schema.json 2013-12-06 08:42:27.000000000 +0100
-+++ new/qapi-schema.json 2013-12-06 08:57:27.000000000 +0100
+--- new.orig/qapi-schema.json 2013-12-06 09:11:43.000000000 +0100
++++ new/qapi-schema.json 2013-12-06 09:27:30.000000000 +0100
@@ -586,7 +586,7 @@
# @vma: Proxmox vma backup format
##
# @backup:
Index: new/blockdev.c
===================================================================
---- new.orig/blockdev.c 2013-12-06 08:53:36.000000000 +0100
-+++ new/blockdev.c 2013-12-06 08:59:07.000000000 +0100
+--- new.orig/blockdev.c 2013-12-06 09:26:53.000000000 +0100
++++ new/blockdev.c 2013-12-06 09:28:58.000000000 +0100
@@ -1760,6 +1760,8 @@
uint8_t dev_id;
//bool started;
} PVEBackupDevInfo;
static void pvebackup_run_next_job(void);
-@@ -1827,15 +1829,16 @@
+@@ -1827,8 +1829,6 @@
{
PVEBackupDevInfo *di = opaque;
-
di->completed = true;
+ if (ret < 0 && !backup_state.error) {
+@@ -1839,8 +1839,11 @@
BlockDriverState *bs = di->bs;
di->bs = NULL;
block_job_cb(bs, ret);
-@@ -1912,6 +1915,7 @@
+@@ -1917,6 +1920,7 @@
bool has_speed, int64_t speed, Error **errp)
{
BlockDriverState *bs;
Error *local_err = NULL;
uuid_t uuid;
VmaWriter *vmaw = NULL;
-@@ -1928,11 +1932,6 @@
+@@ -1933,11 +1937,6 @@
/* Todo: try to auto-detect format based on file name */
format = has_format ? format : BACKUP_FORMAT_VMA;
if (has_devlist) {
devs = g_strsplit_set(devlist, ",;:", -1);
-@@ -2000,27 +1999,63 @@
+@@ -2005,27 +2004,63 @@
uuid_generate(uuid);
}
/* add configuration file to archive */
-@@ -2033,12 +2068,27 @@
+@@ -2038,12 +2073,27 @@
goto err;
}
g_free(cdata);
}
-@@ -2078,10 +2128,11 @@
+@@ -2083,10 +2133,11 @@
PVEBackupDevInfo *di = (PVEBackupDevInfo *)l->data;
l = g_list_next(l);
if (local_err != NULL) {
error_setg(&backup_state.error, "backup_job_create failed");
pvebackup_cancel(NULL);
-@@ -2098,8 +2149,17 @@
+@@ -2103,8 +2154,17 @@
l = di_list;
while (l) {
}
g_list_free(di_list);
-@@ -2113,6 +2173,10 @@
+@@ -2118,6 +2178,10 @@
unlink(backup_file);
}
Index: new/hmp-commands.hx
===================================================================
---- new.orig/hmp-commands.hx 2013-12-06 08:42:27.000000000 +0100
-+++ new/hmp-commands.hx 2013-12-06 08:57:27.000000000 +0100
+--- new.orig/hmp-commands.hx 2013-12-06 09:11:43.000000000 +0100
++++ new/hmp-commands.hx 2013-12-06 09:27:30.000000000 +0100
@@ -85,9 +85,11 @@
{
Index: new/hmp.c
===================================================================
---- new.orig/hmp.c 2013-12-06 08:42:27.000000000 +0100
-+++ new/hmp.c 2013-12-06 08:57:27.000000000 +0100
+--- new.orig/hmp.c 2013-12-06 09:11:43.000000000 +0100
++++ new/hmp.c 2013-12-06 09:27:30.000000000 +0100
@@ -1245,11 +1245,13 @@
{
Error *error = NULL;