From: Kevin Wolf <kwolf@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Fate of the read-only block drivers?
Date: Thu, 06 May 2010 11:23:49 +0200 [thread overview]
Message-ID: <4BE28AA5.7090408@redhat.com> (raw)
In-Reply-To: <20100505182719.GA8067@lst.de>
Am 05.05.2010 20:27, schrieb Christoph Hellwig:
> Currently we have four very simple, read-only block drivers in the
> tree:
>
> - cloop:
> This one is known buggy for non-trivial use and didn't get
> any chance but the usual API changes and cleanup sweeps
> since it was commited in 2004.
>
> - dmg:
> This one is really grotty and by auditing the code and comparing
> it to dmg2img completely buggy for non-compressed chunks. It's
> also missing lots of the features in modern dmg image. Also
> there's no creation tool for Linux. No non-trivial commits
> since the initial import in 2004.
>
> - bochs:
> There is an bximage tools to actually create images for it,
> but not to actually add any content to them. It had one
> non-trivial commit in 2007 to add support for growable formats
> since it's initial commit in 2004.
>
> - parallels:
> I can't find any way to actually create the image except with
> the parallels image tool which seems to require a commercial
> parallels license.
> No non-trivial commits since the initial import in 2007.
>
> At this point I'm not sure if it's worth bothering to fix these up,
> as they're bitrotted and except for cloop there's no reasy way to
> actually create test images for them.
We can create images at least for cloop and bochs, which is 50%, even
though the latter not automated. (The only way I found was using bochs,
and the biggest challenge there is finding a guest OS that boots up in
finite time. A FreeDOS floppy did the trick for my manual test.)
Likewise, not all of them are known broken, it's only cloop and one path
in dmg. I'm not sure about the good reasons to keep them, but I guess
the code wouldn't exist in the first place if nobody had cared about the
functionality. It's probably easy to remove code that can't possibly
work today, but that's true only for part of this code.
> Any good reason to keep them, and if yes any good idea for a test plan
> to keep them working?
Basically I see two options for testing them:
a) Make the read-write, so you can test consistency of qemu's
implementation. This is what we're doing for formats like VMDK. Probably
not worth it.
b) Put some binary images in the qemu-iotests repository. For each
format we would need someone who owns the respective software and can
convert our test image to that format. For cloop and bochs we can
probably do it ourselves, for dmg and parallels we would need help.
Kevin
prev parent reply other threads:[~2010-05-06 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 18:27 [Qemu-devel] Fate of the read-only block drivers? Christoph Hellwig
2010-05-06 9:23 ` Kevin Wolf [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=4BE28AA5.7090408@redhat.com \
--to=kwolf@redhat.com \
--cc=hch@lst.de \
--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).