From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, John Snow <jsnow@redhat.com>
Cc: Qemu-Trivial <qemu-trivial@nongnu.org>,
radmehrsaeed7@gmail.com, qemu-devel@nongnu.org,
qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] block/qcow: Improve error when opening qcow2 files as qcow
Date: Thu, 27 Jun 2019 09:51:10 -0500 [thread overview]
Message-ID: <13d0a05e-a445-39e1-841b-d84c5e5352b2@redhat.com> (raw)
In-Reply-To: <20190627083453.GC5618@localhost.localdomain>
[-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --]
On 6/27/19 3:34 AM, Kevin Wolf wrote:
> Am 26.06.2019 um 23:53 hat John Snow geschrieben:
>> Reported-by: radmehrsaeed7@gmail.com
>> Fixes: https://bugs.launchpad.net/bugs/1832914
>> Signed-off-by: John Snow <jsnow@redhat.com>
>> ---
>> block/qcow.c | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/block/qcow.c b/block/qcow.c
>> index 6dee5bb792..a9cb6ae0bd 100644
>> --- a/block/qcow.c
>> +++ b/block/qcow.c
>> @@ -156,7 +156,12 @@ static int qcow_open(BlockDriverState *bs, QDict *options, int flags,
>> goto fail;
>> }
>> if (header.version != QCOW_VERSION) {
>> - error_setg(errp, "Unsupported qcow version %" PRIu32, header.version);
>> + error_setg(errp, "qcow (v%d) does not support qcow version %" PRIu32,
>> + QCOW_VERSION, header.version);
>> + if (header.version == 2 || header.version == 3) {
>> + error_append_hint(errp, "Try the 'qcow2' driver instead.");
>
> I think we want a \n at the end here.
>
Yes, we do. Good spot.
> Kevin
>
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-06-27 14:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-26 21:53 [Qemu-devel] [PATCH] block/qcow: Improve error when opening qcow2 files as qcow John Snow
2019-06-26 23:25 ` Eric Blake
2019-06-27 8:34 ` Kevin Wolf
2019-06-27 14:51 ` Eric Blake [this message]
2019-06-27 17:17 ` John Snow
2019-06-28 9:24 ` Kevin Wolf
2019-06-28 16:50 ` John Snow
2019-06-27 8:35 ` [Qemu-devel] [Qemu-block] " Maxim Levitsky
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=13d0a05e-a445-39e1-841b-d84c5e5352b2@redhat.com \
--to=eblake@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=radmehrsaeed7@gmail.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 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).