From: "Marc Bevand" <m.bevand@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/2] Update documentation for qemu-img + add new -B option
Date: Wed, 4 Jun 2008 03:24:35 -0700 [thread overview]
Message-ID: <aaccfcb60806040324j374ac350n40a2488e0aa8026f@mail.gmail.com> (raw)
In-Reply-To: <20080604073716.GA20295@shareable.org>
On Wed, Jun 4, 2008 at 12:37 AM, Jamie Lokier <jamie@shareable.org> wrote:
>
> I wonder if a useful option would be to be able to create an image
> relative to a _different_ base image. I.e.
I see what you mean. qemu-img could compare the content of each sector
in images A and B (no matter what A is based on) and infer and image
A' (based on B) equivalent to A.
I wonder too if it would be _that_ useful in real-world scenarios.
> Another thing, which might be easier and more useful, would be
> instantiating zeros in the source image into holes in the relative
> image. To save space, after lots of changes on the virtual hard disk
> and some zeroing. (Microsoft has a tool to do this with Virtual PC).
Actually "qemu-img convert A B" already does this: zeros in A are
converted to holes in B (more precisely: real holes if B is a raw
image, or undefined clusters if the qcow/qcow2 case). B in this
example would be a flat image.
If you wanted to do the same thing with B a relative image, the
qcow/qcow2 format would need to be extended because there is currently
no defined way to efficiently represent zero'd clusters in relative
images. (Or actually now that I think about it maybe we could
represent zero'd clusters as if they were compressed even when
compression is disabled.)
I am curious, does Virtual PC support relative aka copy-on-write images ?
--
Marc Bevand
next prev parent reply other threads:[~2008-06-04 10:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 6:22 [Qemu-devel] [PATCH 0/2] Update documentation for qemu-img + add new -B option Marc Bevand
2008-06-04 6:23 ` [Qemu-devel] [PATCH 1/2] Update documentation for qemu-img convert options Marc Bevand
2008-06-04 13:54 ` [Qemu-devel] " Anthony Liguori
2008-06-04 6:23 ` [Qemu-devel] [PATCH 2/2] New qemu-img convert -B option to preserve the COW aspect of images and/or re-base them Marc Bevand
2008-06-04 14:03 ` [Qemu-devel] " Anthony Liguori
2008-06-04 7:37 ` [Qemu-devel] [PATCH 0/2] Update documentation for qemu-img + add new -B option Jamie Lokier
2008-06-04 10:24 ` Marc Bevand [this message]
2008-06-04 15:39 ` Jamie Lokier
2008-06-04 17:09 ` Marc Bevand
2008-06-05 12:16 ` Jamie Lokier
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=aaccfcb60806040324j374ac350n40a2488e0aa8026f@mail.gmail.com \
--to=m.bevand@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).