[libvirt] [PATCH 05/16] snapshot: Drop virDomainSnapshotDef.current

Eric Blake eblake at redhat.com
Thu Mar 21 16:55:20 UTC 2019


On 3/20/19 12:40 AM, Eric Blake wrote:
> The only use for the 'current' member of virDomainSnapshotDef was with
> the PARSE/FORMAT_INTERNAL flag for controlling an internal-use
> <active> element marking whether a particular snapshot definition was
> current, and even then, only by the qemu driver on output, and by qemu
> and test driver on input. But this duplicates vm->snapshot_current,
> and gets in the way of potential simplifications to have qemu store a
> single file for all snapshots rather than one file per snapshot.  Get
> rid of the member by adding a bool* parameter during parse (ignored if
> the PARSE_INTERNAL flag is not set), and by adding a new flag during
> format (if FORMAT_INTERNAL is set, the value printed in <active>
> depends on the new FORMAT_CURRENT).  Then update the qemu driver
> accordingly.

Note that FORMAT_INTERNAL/FORMAT_CURRENT no longer have any clients if
we accept patch 18/16; I may do a followup patch that removes them again.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

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


More information about the libvir-list mailing list