Patchwork [v3,1/8] fix format name for backing file

login
register
mail settings
Submitter Paolo Bonzini
Date March 5, 2012, 5:33 p.m.
Message ID <1330968842-24635-2-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/144745/
State New
Headers show

Comments

Paolo Bonzini - March 5, 2012, 5:33 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 blockdev.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/blockdev.c b/blockdev.c
index d78aa51..96a893b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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;