• E
    snapshot: Add virDomainSnapshotObjListParse · 1b57269c
    Eric Blake 提交于
    Add a new function to make it possible to parse a list of snapshots
    at once.  This is a counterpart to an earlier patch making it
    possible to produce all snapshots in a single XML string, and
    intentionally parses the same top-level element <snapshots> with
    an optional attribute current='name'.
    
    Note that since we know we started with no relations at all, and
    since checking parent relationships per-snapshot is not viable as
    we don't control which order the snapshots appear in, that we are
    fine with doing a final pass to update all parent/child
    relationships among the definitions.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    1b57269c
snapshot_conf.c 50.8 KB