On 10/09/2013 08:34 AM, Jorge Fábregas wrote:
Hi,
I'm using the new snapshot features of virt-manager and since these are
internal snapshots I'm wondering how to figure out how much space a
given snapshot is currently using.
Previously I used base-images+overlays and I could just check the size
of the overlay file to get an idea. If I use "qemu-img info" on my
current disks (the ones with internal snapshots) there's a "VM size"
column there but it shows 0 for offline snapshots.
Is there a way to get the actual used-space for an internal snapshot?
Not via libvirt. I'm not even sure if qemu-img can do that yet,
although the new 'qemu-img map' subcommand to be added in qemu 1.7 might
be the sort of tool for it. It's probably worth asking on the qemu list.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org