]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: refactor virsh snapshot parent computation
authorEric Blake <eblake@redhat.com>
Wed, 10 Aug 2011 23:31:04 +0000 (17:31 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 28 Sep 2011 15:54:57 +0000 (09:54 -0600)
commitd1be48f9761a9300b411e2910990674afd9459c9
tree3b59092d1709262ad0e14171e808dc1a65d99c36
parent3ca4296f80dc3dbc3db57d38c71857773df908b8
snapshot: refactor virsh snapshot parent computation

Make parent computation reusable, using virDomainSnapshotGetParent
when possible.

* tools/virsh.c (vshGetSnapshotParent): New helper.
(cmdSnapshotParent): Use it.
tools/virsh.c