From: Max Reitz <mreitz@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Alberto Garcia <berto@igalia.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org
Subject: Re: [PATCH for-5.1] qcow2: Don't open images with a backing file and the data-file-raw bit
Date: Fri, 5 Jun 2020 16:38:30 +0200 [thread overview]
Message-ID: <59c2f3e0-dfc2-404c-ba68-408593022ed3@redhat.com> (raw)
In-Reply-To: <20200605130042.GK5869@linux.fritz.box>
[-- Attachment #1.1: Type: text/plain, Size: 873 bytes --]
On 05.06.20 15:00, Kevin Wolf wrote:
[...]
> Makes sense. I'm not against preallocation during image creation. I just
> think it shouldn't play a role in deciding whether an image is valid or
> not.
Oh, no. I wouldn’t consider it corrupted just because some clusters are
not allocated. I’d just say any program that handles qcow2 files is
responsible to ensure that images with the data-file-raw flag actually
fulfill the flag’s promise. So if a cluster isn’t allocated in qcow2,
it must read as zeroes in the data file (because the spec disallows
backing files with data-file-raw anyway[1]).
It’s just my impression that qemu currently doesn’t always ensure this,
and the easiest way to do so would be to enforce metadata preallocation
for such images.
Max
[1] Such images are indeed corrupt, hence this patch here from Berto.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-06-05 14:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 19:02 [PATCH for-5.1] qcow2: Don't open images with a backing file and the data-file-raw bit Alberto Garcia
2020-04-15 21:09 ` Eric Blake
2020-05-19 17:46 ` Alberto Garcia
2020-06-03 13:53 ` Max Reitz
2020-06-05 11:14 ` Kevin Wolf
2020-06-05 12:11 ` Max Reitz
2020-06-05 13:00 ` Kevin Wolf
2020-06-05 14:38 ` Max Reitz [this message]
2020-06-18 12:03 ` Alberto Garcia
2020-06-19 7:57 ` Max Reitz
2020-06-19 11:06 ` Alberto Garcia
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=59c2f3e0-dfc2-404c-ba68-408593022ed3@redhat.com \
--to=mreitz@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--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).