]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: remove limits on tree listing
authorEric Blake <eblake@redhat.com>
Fri, 8 Jun 2012 20:26:06 +0000 (14:26 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 11 Jun 2012 15:23:16 +0000 (09:23 -0600)
commitef981053ca2956a93cf547fb35cde48330e741b1
tree96251e3a9b08af9aad5cb8a3e28c4b33994e58af
parent9202f2c2204cd66b75ac0f8be15577697f56c0e2
virsh: remove limits on tree listing

I am not a fan of fixed-width buffers.  All it takes is a
linear chain of more than 100 snapshots to mess up 'virsh
snapshot-list --tree'.  Now that virBuffer is more powerful,
we might as well exploit its power.

* tools/virsh.c (cmdNodeListDevicesPrint): Simplify to use a
virBuffer instead of fixed-width prefix, factor guts, and rename...
(vshTreePrint, vshTreePrintInternal): ...along with new helper.
(cmdNodeListDevices, cmdSnapshotList): Update callers.
tools/virsh.c