[libvirt] [PATCH] virsh: add snapshot-parent

Eric Blake eblake at redhat.com
Thu Aug 11 19:23:38 UTC 2011


On 08/11/2011 12:23 AM, Daniel Veillard wrote:
> On Wed, Aug 10, 2011 at 10:09:56PM -0600, Eric Blake wrote:
>> Down the road, I want to add virDomainSnapshotGetParent, and use
>> the new API rather than xml scraping; but this virsh command can
>> be implemented even without the new API.
>>
>> * tools/virsh.c (cmdSnapshotParent): New command.
>> * tools/virsh.pod (snapshot-parent): Document it.
>> ---
>>
>> Adding this will make it a bit easier to track relationships between
>> snapshots, especially since 'virsh snapshot-list' covers everything
>> except the relationship.
>>

>> +=item B<snapshot-parent>  I<domain>  I<snapshot>
>> +
>> +Output the name of the parent snapshot for the given I<snapshot>, if any.
>> +
>>   =item B<snapshot-revert>  I<domain>  I<snapshot>
>>
>>   Revert the given domain to the snapshot specified by I<snapshot>.  Be aware
>> --
>> 1.7.4.4
>
>    ACK,

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list