The VMM won't know anything useful about that.

IHardDisk::size (which it inherits from IMedium) will give you the
size of the the VDI on the disk, so if you're using an expanding VDI,
that will give you some clue. However, unless you've just compacted
the VDI, there will be space reflected that isn't actually used in the
VM.

~JW

On Sun, Aug 16, 2009 at 1:30 PM, Thomas
Trepper<[email protected]> wrote:
> Hi all,
>
> I am using 3.0.4-Branch and I want to show some harddisk-info:
>
> * total capacity
> * used (or free) capacity
>
> Does anybody know, if and how this is possible?
>
> I thied this one here:
>
> [...]
> new IHardDisk(myMachineName, vboxPortType).getLogicalSize()... (but I cannot
> find the used or free capacity)
>
> Thank you very much and best regards,
>
> Thomas
>
> _______________________________________________
> vbox-dev mailing list
> [email protected]
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to