From: "Daniel P. Berrange" <berrange@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Kevin Wolf <kwolf@redhat.com>,
Aaron Mason <absorbentshoulderman@gmail.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Patch: Adding ability for qemu-img to create SCSI VMware disk images
Date: Tue, 26 May 2009 20:58:19 +0100 [thread overview]
Message-ID: <20090526195819.GD13938@redhat.com> (raw)
In-Reply-To: <4A1C487B.90908@codemonkey.ws>
On Tue, May 26, 2009 at 02:52:27PM -0500, Anthony Liguori wrote:
> Kevin Wolf wrote:
>
> >FWIW, I know that SUSE had a use for these SCSI VMDKs and they carry a
> >local patch for it. I would prefer to have such things upstream, even if
> >it's just for exporting. After all, qemu-img is the Swiss army knife for
> >images.
> >
>
> If there's support for it, we can take it. I worry about adding
> features that aren't widely useful as they add complexity and make it
> hard to refactor things.
>
> Introducing BLOCK_FLAG_BUSLOGIC and BLOCK_FLAG_LSILOGIC seems very wrong
> to me. You're happy with it?
I think the addition of new VMDK specific flags to qemu-img is pretty
wrong too
- " create [-e] [-6] [-b base_image] [-f fmt] filename [size]\n"
+ " create [-e] [-6] [-S] [-L] [-b base_image] [-f fmt] filename
....
+ " '-S' indicates that the target image must be a BusLogic SCSI
virtual disk (vmdk format only)\n"
+ " '-L' indicates that the target image must be a LSI Logic SCSI
virtual disk (vmdk format only)\n"
If we want to expose this capability, then I think we should have some
kind of generic 'feature' string that can be passed through to the specific
block driver, without needing an unbounded number of qemu-img args to be
added. eg.
qemu-img create -o target=buslogic foo.vmdk
qemu-img create -o target=lsilogic foo.vmdk
And just pass the whole value from '-o' through to the block layer's
create method.
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 :|
next prev parent reply other threads:[~2009-05-26 19:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-22 10:29 [Qemu-devel] Patch: Adding ability for qemu-img to create SCSI VMware disk images Aaron Mason
2009-05-22 16:41 ` Anthony Liguori
[not found] ` <e869674d0905240116n3245c5bdxf66552984a4037f5@mail.gmail.com>
2009-05-26 8:02 ` Anthony Liguori
2009-05-26 9:09 ` Kevin Wolf
2009-05-26 19:52 ` Anthony Liguori
2009-05-26 19:58 ` Daniel P. Berrange [this message]
2009-05-26 20:01 ` Anthony Liguori
2009-05-27 7:29 ` Kevin Wolf
2009-05-27 7:40 ` Christoph Hellwig
2009-05-27 8:23 ` Anthony Liguori
2009-05-26 18:17 ` Robert Riebisch
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=20090526195819.GD13938@redhat.com \
--to=berrange@redhat.com \
--cc=absorbentshoulderman@gmail.com \
--cc=anthony@codemonkey.ws \
--cc=kwolf@redhat.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).