[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] qemu-img info actual size member
From: |
Han Han |
Subject: |
Re: [Qemu-discuss] qemu-img info actual size member |
Date: |
Wed, 30 May 2018 18:35:13 +0800 |
Well, it will return "the size reserved on disk" refer to its man page. You
can use --output json to get the actual-size:
# qemu-img info /var/lib/libvirt/images/raw --output=json
{
"virtual-size": 10737418240,
"filename": "/var/lib/libvirt/images/raw",
"format": "raw",
"actual-size": 1421459456,
"dirty-flag": false
}
Remember to add -U option if the images is used by other qemu related
process since qemu-2.10 due to the qemu image locking.
On Thu, May 10, 2018 at 8:10 PM, Eyal Shenitzky <address@hidden> wrote:
> Hey All,
>
> Is qemu-img info will always return actual-size as part of the return
> result?
>
> I couldn't find a documentation on that.
>
> Thanks,
>
> --
> Regards,
> Eyal Shenitzky
>
--
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.
Email: address@hidden
Phone: +861065339333