Index: new/blockdev.c
===================================================================
--- new.orig/blockdev.c 2013-12-06 07:46:40.000000000 +0100
-+++ new/blockdev.c 2013-12-06 08:01:03.000000000 +0100
++++ new/blockdev.c 2013-12-06 08:09:32.000000000 +0100
@@ -1463,6 +1463,8 @@
uint8_t dev_id;
//bool started;
+ }
+ } else if (format == BACKUP_FORMAT_DIR) {
+ char config_path[PATH_MAX];
-+ snprintf(config_path, PATH_MAX, "%s/%s.raw", backup_dir, basename);
++ snprintf(config_path, PATH_MAX, "%s/%s", backup_dir, basename);
+ if (!g_file_set_contents(config_path, cdata, clen, &err)) {
+ error_setg(errp, "unable to write config file '%s'", config_path);
+ g_free(cdata);