• Stefan Hajnoczi's avatar
    block: add drive_backup HMP command · de90930a
    Stefan Hajnoczi authored
    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: default avatarStefan Hajnoczi <stefanha@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    de90930a
hmp-commands.hx 45.9 KB