[libvirt] [PATCHv2 10/15] blockjob: support pivot operation on cancel

Eric Blake eblake at redhat.com
Fri Apr 6 14:59:26 UTC 2012


On 04/06/2012 01:08 AM, Paolo Bonzini wrote:
> Il 06/04/2012 06:36, Eric Blake ha scritto:
>> If only qemu could get 'drive-reopen' inside 'transaction'...
> 
> Just a quick answer to this: if qemu could get 'drive-reopen' inside
> 'transaction', the standalone command could be made safe just as easily.
>  In fact, in QEMU 1.1 the blockdev-snapshot-sync command got a similar
> treatment: it became transactionable, _and_ the standalone command
> became a simple wrapper around a 1-command transaction.

Good point.  So unless we have a situation where we want to do
'drive-reopen' on multiple disks at once, we don't actually have to use
a transaction command to reopen a single disk.  Meanwhile, for
similarity with blockdev-snapshot-sync, it looks like I will someday be
adding a VIR_DOMAIN_BLOCK_JOB_ABORT_ATOMIC flag, which fails if qemu
lacks support for reopen within a transaction, and assuming that qemu
exposes a way to see which commands are transactionable.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120406/00e802cc/attachment-0001.sig>


More information about the libvir-list mailing list