Re: [PATCH 2.6/4] snapshot: virsh fallback for snapshot-list --from children

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/29/2011 04:02 PM, Eric Blake wrote:
Iterating over one level of children requires parsing all snapshots
and their parents; a bit of code shuffling makes it pretty easy
to do this as well.

* tools/virsh.c (cmdSnapshotList): Add another fallback.
---

Applies anywhere after 2.5/4, but again, easiest to test against the
same version of libvirtd if applied before 3/4.


+        if (numsnaps<  0) {
+            /* XXX also want to emulate --descendants without --tree */
+            if ((!descendants || tree)
+                last_error->code == VIR_ERR_NO_SUPPORT) {

This doesn't even compile.  Let me send a cleaned up v2.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]