diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-01 12:21:43 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-03-12 15:14:06 +0100 |
commit | d0895d6e390d59d3dc6edab771335adfea263029 (patch) | |
tree | 479b879a35bdb61c772e4d4005b478fc25fd4b6f /blockdev.c | |
parent | a348f108842fb928563865c9918642900cd0d477 (diff) |
Group snapshot: Fix format name for backing file
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index d78aa51af5..96a893bed9 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; |