]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: implement snapshot roots listing in vbox
authorEric Blake <eblake@redhat.com>
Mon, 3 Oct 2011 21:20:25 +0000 (15:20 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2011 14:57:58 +0000 (08:57 -0600)
commit869b69ea3dda89e05802c9f030c3655f2741ebe6
treec48eb7f26e210e9f6389c354c580b81c2cb2a883
parentfcd2bd55d714b8e939c5bfd44fd2ddc32a09c141
snapshot: implement snapshot roots listing in vbox

Commit 9f5e53e introduced the ability to filter snapshots to
just roots, but it was never implemented for VBox until now.

The VBox implementation prohibits deletion of a snapshot with
multiple children.  Hence, there can only be at most one root,
which is found by searching for the snapshot with a NULL uuid.

Prior to 4.0, snapshotGet looked up by UUID, and snapshotFind
looked up by name; after that point, snapshotGet disappeared
and snapshotFind handles uuid or name.

* src/vbox/vbox_tmpl.c (vboxDomainSnapshotNum)
(vboxDomainSnapshotListNames): Implement limiting list to root.
src/vbox/vbox_tmpl.c