qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH] qemu-img: supplement the omitted 'disk size' by


From: sochin.jiang
Subject: Re: [Qemu-block] [PATCH] qemu-img: supplement the omitted 'disk size' bytes info
Date: Tue, 6 Jun 2017 21:53:18 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Please ignore this patch, I realize that there are some unfixed problems,
like iotest, etc.

On 2017/6/6 15:03, sochin.jiang wrote:
> From: "sochin.jiang" <address@hidden>
>
>  Supplement the omitted 'disk size' bytes information when using
>
>  'qemu-img info',it is useful in some occasion. Anyhow, it looks
>
>  strange that 'virtual size' has bytes while actual 'disk size'
>
>  does not.
>
> Signed-off-by: sochin.jiang <address@hidden>
> ---
>  block/qapi.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/block/qapi.c b/block/qapi.c
> index a40922e..9bb5956 100644
> --- a/block/qapi.c
> +++ b/block/qapi.c
> @@ -703,10 +703,11 @@ void bdrv_image_info_dump(fprintf_function 
> func_fprintf, void *f,
>                   "image: %s\n"
>                   "file format: %s\n"
>                   "virtual size: %s (%" PRId64 " bytes)\n"
> -                 "disk size: %s\n",
> +                 "disk size: %s (%" PRId64 " bytes)\n",
>                   info->filename, info->format, size_buf,
>                   info->virtual_size,
> -                 dsize_buf);
> +                 dsize_buf,
> +                 info->actual_size);
>  
>      if (info->has_encrypted && info->encrypted) {
>          func_fprintf(f, "encrypted: yes\n");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]