]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Implement commit like QMP
authorMax Reitz <mreitz@redhat.com>
Fri, 24 Oct 2014 13:57:37 +0000 (15:57 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Nov 2014 11:41:48 +0000 (11:41 +0000)
commitd4a3238af567939f4c51bb074af1ce8839e2ce2d
tree81eef76b82fcd6d9cda128fb98fb06ec98864522
parentb21c76529d55bf7bb02ac736b312f5f8bf033ea2
qemu-img: Implement commit like QMP

qemu-img should use QMP commands whenever possible in order to ensure
feature completeness of both online and offline image operations. As
qemu-img itself has no access to QMP (since this would basically require
just everything being linked into qemu-img), imitate QMP's
implementation of block-commit by using commit_active_start() and then
waiting for the block job to finish.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1414159063-25977-9-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/Makefile.objs
qemu-img.c