Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-04-11 Thread Paolo Bonzini
Il 09/03/2013 23:22, Stefan Hajnoczi ha scritto: > @block-backup > > Start a point-in-time copy of a block device to a new destination. > > @device: the name of the device whose writes should be mirrored. > > @target: the target of the new image. If the file exists, or if it > is a dev

Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-15 Thread Stefan Hajnoczi
On Thu, Mar 14, 2013 at 03:52:16PM -0600, Eric Blake wrote: > On 03/09/2013 03:22 PM, Stefan Hajnoczi wrote: > > @block-backup > > > > Start a point-in-time copy of a block device to a new destination. > > > > I'm trying to figure out how this is different from drive-mirror. If I > understand c

Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-14 Thread Eric Blake
On 03/09/2013 03:22 PM, Stefan Hajnoczi wrote: > @block-backup > > Start a point-in-time copy of a block device to a new destination. > I'm trying to figure out how this is different from drive-mirror. If I understand correctly: After starting drive-mirror, a write to the block device is also

Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-14 Thread Eric Blake
On 03/09/2013 03:22 PM, Stefan Hajnoczi wrote: > @block-backup > > Start a point-in-time copy of a block device to a new destination. > Is a BLOCK_JOB_COMPLETED event emitted when the copy is completed? If not, it should be. > +# Since 1.5 > +## > +{ 'command': 'block-backup', > + 'data': { '

[Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-09 Thread Stefan Hajnoczi
@block-backup Start a point-in-time copy of a block device to a new destination. @device: the name of the device whose writes should be mirrored. @target: the target of the new image. If the file exists, or if it is a device, the existing file/device will be used as the new de