From: Paolo Bonzini <pbonzini@redhat.com>
To: Taeha Kim <kthguru@gmail.com>, qemu-block@nongnu.org
Cc: kwolf@redhat.com, 김태하 <thlab.kim@samsung.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] block: There in no change in userland tools after resizing qcow2 image except file utility.
Date: Sun, 19 Jul 2015 19:57:48 +0200 [thread overview]
Message-ID: <55ABE51C.3020708@redhat.com> (raw)
In-Reply-To: <CADsSMSebYEQg7AHu5jqmKvz_68ano0ZoBjEkr6JK4ntsB4=T5Q@mail.gmail.com>
On 19/07/2015 10:12, Taeha Kim wrote:
> $ ./qemu/qemu-img resize 100G.qcow2 200G
> Image resized.
>
>
> $ ./qemu/qemu-img check 100G.qcow2
> No errors were found on the image.
> 1638400/3276800 = 50.00% allocated, 0.00% fragmented, 0.00% compressed clusters
> Image end offset: 107390894080
You are getting a large qcow2 image because you have specified metadata
preallocation. However you can see from "qemu-img check" that the
preallocation is lost even with your patch.
I think if you try resizing to 102408M for example (very little above
the previous size) "qemu-img check" will show corruption after the resize.
Paolo
prev parent reply other threads:[~2015-07-19 17:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-19 8:12 [Qemu-devel] [Qemu-block] [PATCH] block: There in no change in userland tools after resizing qcow2 image except file utility Taeha Kim
2015-07-19 17:57 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55ABE51C.3020708@redhat.com \
--to=pbonzini@redhat.com \
--cc=kthguru@gmail.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=thlab.kim@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.