* [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
@ 2009-06-29 14:04 Avi Kivity
2009-06-30 8:34 ` Kevin Wolf
2009-06-30 12:05 ` Amit Shah
0 siblings, 2 replies; 12+ messages in thread
From: Avi Kivity @ 2009-06-29 14:04 UTC (permalink / raw)
To: qemu-devel; +Cc: kvm
The qcow block driver format is no longer maintained and likely contains
serious data corruptors. Urge users to stay away for it, and advertise
the new and improved replacement.
Signed-off-by: Avi Kivity <avi@redhat.com>
---
block/qcow.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/block/qcow.c b/block/qcow.c
index 55a68a6..2aef6a6 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -101,6 +101,11 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
return ret;
if (bdrv_pread(s->hd, 0, &header, sizeof(header)) != sizeof(header))
goto fail;
+
+ fprintf(stderr,
+ "WARNING: the qcow file format is no longer supported.\n"
+ " Please convert your images to qcow2.\n");
+
be32_to_cpus(&header.magic);
be32_to_cpus(&header.version);
be64_to_cpus(&header.backing_file_offset);
--
1.6.0.6
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-29 14:04 [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened Avi Kivity
@ 2009-06-30 8:34 ` Kevin Wolf
2009-06-30 13:32 ` Anthony Liguori
2009-06-30 12:05 ` Amit Shah
1 sibling, 1 reply; 12+ messages in thread
From: Kevin Wolf @ 2009-06-30 8:34 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel, kvm
Avi Kivity schrieb:
> The qcow block driver format is no longer maintained and likely contains
> serious data corruptors. Urge users to stay away for it, and advertise
> the new and improved replacement.
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
vvfat is using qcow internally, so the warning will appear there, too.
Not that warning against vvfat would be a bad thing, but this error
message could be confusing.
Maybe we're lucky enough and vvfat survives a s/qcow/qcow2/, but I
really never wanted to touch that code...
Kevin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-29 14:04 [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened Avi Kivity
2009-06-30 8:34 ` Kevin Wolf
@ 2009-06-30 12:05 ` Amit Shah
2009-06-30 12:53 ` Kevin Wolf
1 sibling, 1 reply; 12+ messages in thread
From: Amit Shah @ 2009-06-30 12:05 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel, kvm
On (Mon) Jun 29 2009 [17:04:49], Avi Kivity wrote:
> The qcow block driver format is no longer maintained and likely contains
> serious data corruptors. Urge users to stay away for it, and advertise
> the new and improved replacement.
Does this also print the message at the time of creating the image? (And
isn't qcow the default image format?)
Amit
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 12:05 ` Amit Shah
@ 2009-06-30 12:53 ` Kevin Wolf
0 siblings, 0 replies; 12+ messages in thread
From: Kevin Wolf @ 2009-06-30 12:53 UTC (permalink / raw)
To: Amit Shah; +Cc: Avi Kivity, kvm, qemu-devel
Amit Shah schrieb:
> On (Mon) Jun 29 2009 [17:04:49], Avi Kivity wrote:
>> The qcow block driver format is no longer maintained and likely contains
>> serious data corruptors. Urge users to stay away for it, and advertise
>> the new and improved replacement.
>
> Does this also print the message at the time of creating the image? (And
> isn't qcow the default image format?)
No, I don't think the image is opened by qemu-img create, create is a
different operation. And the default format is raw.
Kevin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 8:34 ` Kevin Wolf
@ 2009-06-30 13:32 ` Anthony Liguori
2009-06-30 13:53 ` Kevin Wolf
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Anthony Liguori @ 2009-06-30 13:32 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Avi Kivity, kvm, qemu-devel
Kevin Wolf wrote:
> Avi Kivity schrieb:
>
>> The qcow block driver format is no longer maintained and likely contains
>> serious data corruptors. Urge users to stay away for it, and advertise
>> the new and improved replacement.
>>
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>
>
> vvfat is using qcow internally, so the warning will appear there, too.
> Not that warning against vvfat would be a bad thing, but this error
> message could be confusing.
>
> Maybe we're lucky enough and vvfat survives a s/qcow/qcow2/, but I
> really never wanted to touch that code...
>
I'm not sure how I feel about this. Can we prove qcow is broken? Is it
only broken for writes and not reads?
If we're printing a warning, does that mean we want to deprecate qcow
and eventually remove it (or remove write support, at least)?
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 13:32 ` Anthony Liguori
@ 2009-06-30 13:53 ` Kevin Wolf
2009-06-30 13:57 ` Avi Kivity
2009-07-01 17:14 ` Andreas Färber
2 siblings, 0 replies; 12+ messages in thread
From: Kevin Wolf @ 2009-06-30 13:53 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Avi Kivity, kvm, qemu-devel
Anthony Liguori schrieb:
> Kevin Wolf wrote:
>> Avi Kivity schrieb:
>>
>>> The qcow block driver format is no longer maintained and likely contains
>>> serious data corruptors. Urge users to stay away for it, and advertise
>>> the new and improved replacement.
>>>
>>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>>
>> vvfat is using qcow internally, so the warning will appear there, too.
>> Not that warning against vvfat would be a bad thing, but this error
>> message could be confusing.
>>
>> Maybe we're lucky enough and vvfat survives a s/qcow/qcow2/, but I
>> really never wanted to touch that code...
>>
>
> I'm not sure how I feel about this. Can we prove qcow is broken? Is it
> only broken for writes and not reads?
>
> If we're printing a warning, does that mean we want to deprecate qcow
> and eventually remove it (or remove write support, at least)?
I haven't commented on the intention of deprecating qcow1, I'm not sure
either. But the bug that turned up yesterday was present for a month and
nobody saw it. So I guess we can take that as a sign that qcow isn't
really used that much any more.
On the other hand, I think maintaining qcow1 isn't that hard. It won't
get new features, so we'll not have a whole lot of changes. We must test
it from time to time. And when it comes to fixing, I think qcow1 is much
easier for us than, say, VMDK.
Kevin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 13:32 ` Anthony Liguori
2009-06-30 13:53 ` Kevin Wolf
@ 2009-06-30 13:57 ` Avi Kivity
2009-06-30 14:21 ` Paul Brook
2009-07-01 17:14 ` Andreas Färber
2 siblings, 1 reply; 12+ messages in thread
From: Avi Kivity @ 2009-06-30 13:57 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Kevin Wolf, qemu-devel, kvm
On 06/30/2009 04:32 PM, Anthony Liguori wrote:
> Kevin Wolf wrote:
>> Avi Kivity schrieb:
>>> The qcow block driver format is no longer maintained and likely
>>> contains
>>> serious data corruptors. Urge users to stay away for it, and advertise
>>> the new and improved replacement.
>>>
>>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>
>> vvfat is using qcow internally, so the warning will appear there, too.
>> Not that warning against vvfat would be a bad thing, but this error
>> message could be confusing.
>>
>> Maybe we're lucky enough and vvfat survives a s/qcow/qcow2/, but I
>> really never wanted to touch that code...
>
> I'm not sure how I feel about this. Can we prove qcow is broken? Is
> it only broken for writes and not reads?
Well, Kevin posted a patch, so it is. It's definitely unmaintained.
Given it's a qemu native format, there is no interoperability value
except with old qemu versions.
>
> If we're printing a warning, does that mean we want to deprecate qcow
> and eventually remove it (or remove write support, at least)?
Yes.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 13:57 ` Avi Kivity
@ 2009-06-30 14:21 ` Paul Brook
2009-06-30 14:40 ` Daniel P. Berrange
2009-06-30 16:42 ` Anthony Liguori
0 siblings, 2 replies; 12+ messages in thread
From: Paul Brook @ 2009-06-30 14:21 UTC (permalink / raw)
To: qemu-devel; +Cc: Kevin Wolf, Avi Kivity, kvm
> >>> The qcow block driver format is no longer maintained and likely
> >>> contains
> >>> serious data corruptors. Urge users to stay away for it, and advertise
> >>> the new and improved replacement.
> >
> > I'm not sure how I feel about this. Can we prove qcow is broken? Is
> > it only broken for writes and not reads?
>
> Well, Kevin posted a patch, so it is. It's definitely unmaintained.
> Given it's a qemu native format, there is no interoperability value
> except with old qemu versions.
>
> > If we're printing a warning, does that mean we want to deprecate qcow
> > and eventually remove it (or remove write support, at least)?
>
> Yes.
IMHO there's little value in just printing a warning. Until it actually goes
away, people are liable to assume we're just being paranoid/awkward and keep
using it anyway.
I suggest crippling it now and, assuming noone steps up to fix+maintain it,
ripping out the write support altogether at next release.
I'm assuming the readonly code is in better shape, and can be supported with
relatively little effort.
Paul
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 14:21 ` Paul Brook
@ 2009-06-30 14:40 ` Daniel P. Berrange
2009-06-30 16:42 ` Anthony Liguori
1 sibling, 0 replies; 12+ messages in thread
From: Daniel P. Berrange @ 2009-06-30 14:40 UTC (permalink / raw)
To: Paul Brook; +Cc: Kevin Wolf, kvm, qemu-devel, Avi Kivity
On Tue, Jun 30, 2009 at 03:21:24PM +0100, Paul Brook wrote:
> > >>> The qcow block driver format is no longer maintained and likely
> > >>> contains
> > >>> serious data corruptors. Urge users to stay away for it, and advertise
> > >>> the new and improved replacement.
> > >
> > > I'm not sure how I feel about this. Can we prove qcow is broken? Is
> > > it only broken for writes and not reads?
> >
> > Well, Kevin posted a patch, so it is. It's definitely unmaintained.
> > Given it's a qemu native format, there is no interoperability value
> > except with old qemu versions.
> >
> > > If we're printing a warning, does that mean we want to deprecate qcow
> > > and eventually remove it (or remove write support, at least)?
> >
> > Yes.
>
> IMHO there's little value in just printing a warning. Until it actually goes
> away, people are liable to assume we're just being paranoid/awkward and keep
> using it anyway.
>
> I suggest crippling it now and, assuming noone steps up to fix+maintain it,
> ripping out the write support altogether at next release.
> I'm assuming the readonly code is in better shape, and can be supported with
> relatively little effort.
I agree, if we want to phase it out we should be more discouraging than
just an ignoreable warning
- Disable it in qemu, and have code which looks for qcow1 magic
bytes, prints an error message telling them to use qemu-img
to convert to qcow2 and exits
- Keep qcow1 in qemu-img as a source format only, to allow conversions
to qcow2
Possibly have a 'configure' arg to let people re-enable full read-write
it if they badly need it, but tell them it'll be gone permanently in
release qemu-0.12.0
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 14:21 ` Paul Brook
2009-06-30 14:40 ` Daniel P. Berrange
@ 2009-06-30 16:42 ` Anthony Liguori
1 sibling, 0 replies; 12+ messages in thread
From: Anthony Liguori @ 2009-06-30 16:42 UTC (permalink / raw)
To: Paul Brook; +Cc: Kevin Wolf, qemu-devel, kvm, Avi Kivity
Paul Brook wrote:
> IMHO there's little value in just printing a warning. Until it actually goes
> away, people are liable to assume we're just being paranoid/awkward and keep
> using it anyway.
>
> I suggest crippling it now and, assuming noone steps up to fix+maintain it,
> ripping out the write support altogether at next release.
> I'm assuming the readonly code is in better shape, and can be supported with
> relatively little effort.
>
Yes, that's what I was getting at. We need to support read-only in
order to allow people to convert to qcow2.
If we're sufficiently concerned that there is data corruption in the
write path, we should disable it to keep a user from shooting themselves
in the foot.
Regards,
Anthony Liguori
> Paul
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-06-30 13:32 ` Anthony Liguori
2009-06-30 13:53 ` Kevin Wolf
2009-06-30 13:57 ` Avi Kivity
@ 2009-07-01 17:14 ` Andreas Färber
2009-07-02 7:22 ` Kevin Wolf
2 siblings, 1 reply; 12+ messages in thread
From: Andreas Färber @ 2009-07-01 17:14 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Kevin Wolf, Avi Kivity, kvm, QEMU Developers
Am 30.06.2009 um 15:32 schrieb Anthony Liguori:
> Kevin Wolf wrote:
>> Avi Kivity schrieb:
>>
>>> The qcow block driver format is no longer maintained and likely
>>> contains
>>> serious data corruptors. Urge users to stay away for it, and
>>> advertise
>>> the new and improved replacement.
>>>
>>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>
>> vvfat is using qcow internally, so the warning will appear there,
>> too.
>> Not that warning against vvfat would be a bad thing, but this error
>> message could be confusing.
>>
>> Maybe we're lucky enough and vvfat survives a s/qcow/qcow2/, but I
>> really never wanted to touch that code...
>
> I'm not sure how I feel about this. Can we prove qcow is broken?
> Is it only broken for writes and not reads?
>
> If we're printing a warning, does that mean we want to deprecate
> qcow and eventually remove it (or remove write support, at least)?
I'm confused now. Only recently someone stepped up, saying that qcow2
was broken and that qcow should be used instead for safety reasons.
Now all of a sudden, it's the exact opposite, you're even considering
replacing qcow with qcow2 for vvfat and dropping qcow support.
Andreas
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened
2009-07-01 17:14 ` Andreas Färber
@ 2009-07-02 7:22 ` Kevin Wolf
0 siblings, 0 replies; 12+ messages in thread
From: Kevin Wolf @ 2009-07-02 7:22 UTC (permalink / raw)
To: Andreas Färber; +Cc: QEMU Developers, Avi Kivity, kvm
Andreas Färber schrieb:
> I'm confused now. Only recently someone stepped up, saying that qcow2
> was broken and that qcow should be used instead for safety reasons.
> Now all of a sudden, it's the exact opposite, you're even considering
> replacing qcow with qcow2 for vvfat and dropping qcow support.
Basically, qcow1 is unmaintained. On the one hand this means that its
code is rarely changed and is quite stable in that respect, on the other
hand it means that nobody cares if it's broken e.g. by changes to the
block layer in general. There is no breakage I know of in the current
stable release, however git master has been broken for a month now.
And I'm pretty sure that qcow2 receives more testing than qcow.
Kevin
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-07-02 7:24 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 14:04 [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened Avi Kivity
2009-06-30 8:34 ` Kevin Wolf
2009-06-30 13:32 ` Anthony Liguori
2009-06-30 13:53 ` Kevin Wolf
2009-06-30 13:57 ` Avi Kivity
2009-06-30 14:21 ` Paul Brook
2009-06-30 14:40 ` Daniel P. Berrange
2009-06-30 16:42 ` Anthony Liguori
2009-07-01 17:14 ` Andreas Färber
2009-07-02 7:22 ` Kevin Wolf
2009-06-30 12:05 ` Amit Shah
2009-06-30 12:53 ` Kevin Wolf
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).