]> Git Repo - qemu.git/commitdiff
Group snapshot: Fix format name for backing file
authorPaolo Bonzini <[email protected]>
Thu, 1 Mar 2012 11:21:43 +0000 (12:21 +0100)
committerKevin Wolf <[email protected]>
Mon, 12 Mar 2012 14:14:06 +0000 (15:14 +0100)
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
blockdev.c

index d78aa51af5b2b277bc161f7201cd2e8804a81134..96a893bed9c267b45177de98e5cf3724c5a416d0 100644 (file)
@@ -800,7 +800,8 @@ void qmp_blockdev_group_snapshot_sync(SnapshotDevList *dev_list,
         /* create new image w/backing file */
         ret = bdrv_img_create(snapshot_file, format,
                               states->old_bs->filename,
-                              drv->format_name, NULL, -1, flags);
+                              states->old_bs->drv->format_name,
+                              NULL, -1, flags);
         if (ret) {
             error_set(errp, QERR_OPEN_FILE_FAILED, snapshot_file);
             goto delete_and_fail;
This page took 0.028122 seconds and 4 git commands to generate.