Re: [libvirt] [PATCHv2 11/7] snapshot: optimize vbox snapshot name lookup

2011-10-05 Thread Matthias Bolte
2011/10/4 Eric Blake ebl...@redhat.com: Older VBox required grabbing all snapshots, then looking through them until a name match was found.  But when VBox 3.1 introduced snapshot branching, it also added the ability to lookup a snapshot by name instead of UUID; exploit this for faster snapshot

[libvirt] [PATCHv2 11/7] snapshot: optimize vbox snapshot name lookup

2011-10-05 Thread Eric Blake
Older VBox provided snapshotGet, which looks up by UUID (and where NULL looked up the root) and snapshotFind, which looks up by name. VBox 4.0 consolidated into snapshotFind that looks up by UUID or name (and NULL still looks up the root). But since name lookup has always been present, we don't

[libvirt] [PATCHv2 11/7] snapshot: optimize vbox snapshot name lookup

2011-10-03 Thread Eric Blake
Older VBox required grabbing all snapshots, then looking through them until a name match was found. But when VBox 3.1 introduced snapshot branching, it also added the ability to lookup a snapshot by name instead of UUID; exploit this for faster snapshot lookup. * src/vbox/vbox_tmpl.c