]> git.proxmox.com Git - mirror_qemu.git/commit - hmp-commands.hx
block: add drive_backup HMP command
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Jun 2013 12:11:58 +0000 (14:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 15 Jul 2013 07:49:00 +0000 (09:49 +0200)
commitde90930a0c45760e7523138fac57ff07312bf51d
tree168e123511084e83eb64b1484019379ee0a96ceb
parentb53169eae06d6cf6f512a8b1fdd5424a0a6aab85
block: add drive_backup HMP command

Make "drive_backup" available on the HMP monitor:

  drive_backup [-n] [-f] device target [format]

The -n flag requests QEMU to reuse the image found in new-image-file,
instead of recreating it from scratch.

The -f flag requests QEMU to copy the whole disk, so that the result
does not need a backing file.  Note that this flag *must* currently be
passed since the other sync modes ('none' and 'top') have not been
implemented yet.  Requiring it ensures that "drive_backup" behaves like
"drive_mirror".

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hmp-commands.hx
hmp.c
hmp.h