]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Tweaks to bulk dumpxml/import internals
authorEric Blake <eblake@redhat.com>
Mon, 11 Mar 2019 11:50:23 +0000 (06:50 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 06:15:20 +0000 (01:15 -0500)
commit967eef2b95da5f17e27345ac4352241e6f207793
treebc6d8686bb803f7b016ab500b2b93b4e6a9ba210
parent063042c7d0e71ceb800bd4f1299723b53d4cb589
snapshot: Tweaks to bulk dumpxml/import internals

Change the return value of virDomainSnapshotObjListParse() to return
the number of snapshots imported, and allow a return of 0 (the
original proposal of adding a flag to virDomainSnapshotCreateXML
required returning an arbitrary non-NULL snapshot, but that idea was
abandoned; and by returning a count, we are no longer constrained to a
non-empty list).

Document which flags are supported (namely, just SECURE) in
virDomainSnapshotObjListFormat().

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/virdomainsnapshotobjlist.c