Received: from [140.186.70.92] (port=34660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgI0E-0001fd-9z for qemu-devel@nongnu.org; Tue, 03 Aug 2010 09:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgI0C-0004iP-7d for qemu-devel@nongnu.org; Tue, 03 Aug 2010 09:57:58 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:37110) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgI0B-0004ht-V1 for qemu-devel@nongnu.org; Tue, 03 Aug 2010 09:57:56 -0400 Received: by fxm7 with SMTP id 7so1309083fxm.4 for ; Tue, 03 Aug 2010 06:57:54 -0700 (PDT) Message-ID: <4c582061.5b11df0a.5c71.5cb2@mx.google.com> MIME-Version: 1.0 content-class: From: Aaron Mason Date: Tue, 3 Aug 2010 23:57:29 +1000 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: [Qemu-devel] RE: [PATCH] Block: Support creation of SCSI VMDK images in qemu-img. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Alexander Graf Cc: qemu-devel List Hi Kevin, Yep, I'll be resubmitting that patch in the coming days. I thought I'd nuk= ed all of the tabs but neglected to check if I was editing the file in the = git repo and not the 0.12.5 stable branch... Also, I'm new to using git so I'm picking this up as I go along. Expect a = patch from me in the coming days. Cheers sent from my Telstra NEXTG=99 handset -----Original Message----- From: Kevin Wolf Sent: Tuesday, 3 August 2010 10:47 PM To: Alexander Graf Cc: qemu-devel List ; Aaron Mason Subject: Re: [PATCH] Block: Support creation of SCSI VMDK images in qemu-im= g. Hi Alex, Am 03.08.2010 14:17, schrieb Alexander Graf: > While looking through patches we have not upstreamed yet, I stumbled over= this > trivial patch that Kevin created back in the day. It allows to specify th= e > creation of scsi type vmdk images. >=20 > Signed-off-by: Alexander Graf Aaron (CCed) sent a similar patch only a few days ago (subject "[Qemu-devel] PATCH: Adding options to generate SCSI based VMDK images"). The only difference I see is that his option went like interface=3D[ide|lsilogic|buslogic] instead of hard-coding lsilogic. I think this is a better interface. Aaron, I asked you to fix some formal things (including tabs and SoB), but you haven't resubmitted the patch yet. Are you going to send a fixed version, or should I rather take Alex' patch? Kevin > --- > block/vmdk.c | 12 ++++++++++-- > block_int.h | 2 ++ > 2 files changed, 12 insertions(+), 2 deletions(-) >=20 > diff --git a/block/vmdk.c b/block/vmdk.c > index 2d4ba42..64f1c88 100644 > --- a/block/vmdk.c > +++ b/block/vmdk.c > @@ -686,7 +686,7 @@ static int vmdk_create(const char *filename, QEMUOpti= onParameter *options) > "ddb.geometry.cylinders =3D \"%" PRId64 "\"\n" > "ddb.geometry.heads =3D \"16\"\n" > "ddb.geometry.sectors =3D \"63\"\n" > - "ddb.adapterType =3D \"ide\"\n"; > + "ddb.adapterType =3D \"%s\"\n"; > char desc[1024]; > const char *real_filename, *temp_str; > int64_t total_size =3D 0; > @@ -702,6 +702,8 @@ static int vmdk_create(const char *filename, QEMUOpti= onParameter *options) > backing_file =3D options->value.s; > } else if (!strcmp(options->name, BLOCK_OPT_COMPAT6)) { > flags |=3D options->value.n ? BLOCK_FLAG_COMPAT6: 0; > + } else if (!strcmp(options->name, BLOCK_OPT_SCSI)) { > + flags |=3D options->value.n ? BLOCK_FLAG_SCSI: 0; > } > options++; > } > @@ -799,7 +801,8 @@ static int vmdk_create(const char *filename, QEMUOpti= onParameter *op [The entire original message is not included]=