• E
    snapshot: use new virsh function for snapshot-list · 90a61b39
    Eric Blake 提交于
    Operating on a list of snapshot objects looks so much simpler.
    In particular, since the helper function already trimmed out
    irrelevant entries, we no longer have quite so many special cases
    on finding the first snapshot to operate on.  Also, vshTreePrint
    no longer has a generic callback struct; both clients now pass
    something different according to their own needs.
    
    * tools/virsh.c (cmdSnapshotList): Use previous patches.
    (vshTreeArrayLookup): Rename...
    (vshNodeListLookup): ...now that it only has one client.
    (cmdNodeListDevices): Adjust caller.
    90a61b39
virsh.c 599.8 KB