[vbox-dev] IHardDrive

Josh Wright jshwright at gmail.com
Sun Aug 16 13:55:09 PDT 2009


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<thomas.trepper at microbyte.at> 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
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>




More information about the vbox-dev mailing list