From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: Kevin Wolf <kwolf@redhat.com>, Eric Blake <eblake@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] qemu-iotests: Fix call syntax for qemu-img
Date: Wed, 28 Mar 2012 11:32:47 +0100 [thread overview]
Message-ID: <CAJSP0QVDyNumf5N1-74fn77TrXf19h0cdUGKGoLQ5-WHPRS8Fw@mail.gmail.com> (raw)
In-Reply-To: <4F722982.5020303@weilnetz.de>
On Tue, Mar 27, 2012 at 9:56 PM, Stefan Weil <sw@weilnetz.de> wrote:
> Am 14.03.2012 21:48, schrieb Stefan Weil:
>
>> Am 14.03.2012 20:08, schrieb Eric Blake:
>>>
>>> On 03/14/2012 12:57 PM, Stefan Weil wrote:
>>>>
>>>> qemu-img requires first options, then file name, then size.
>>>>
>>>> GNU getopt also allows options at the end, but POSIX getopt
>>>> doesn't. Try "export POSIXLY_CORRECT=y" to get the POSIX
>>>> behaviour with GNU getopt, too.
>>>
>>>
>>> That's a heavy sledgehammer, that has the potential to affect a lot of
>>> other programs called alongside qemu-img. Simpler would be to just pass
>>> -- in the command line at the point where you want to force qemu to
>>> treat all further arguments without getopt reordering them, as in:
>>
>>
>> I did not want to suggest that POSIXLY_CORRECT should always
>> be set. It's just a way how maintainers can test that there is
>> a problem with the current code, and that this problem is
>> fixed by my patch.
>>
>> Passing -- in the command line will not only stop argument
>> reordering, it also stops argument parsing which is not
>> what we need here.
>>
>> Regards,
>>
>> Stefan W.
>
>
> Ping? These two patches for qemu-iotests are still missing
> in QEMU git master. Are there any open questions, or can
> they be committed? Should they go through qemu-trivial?
Kevin on IRC yesterday:
<kwolf> Last week was rather busy, and I'll be on vacation from
tomorrow until Friday, so don't expect feedback from me before some
time next week
Stefan
next prev parent reply other threads:[~2012-03-28 10:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 18:57 [Qemu-devel] [PATCH 1/2] qemu-iotests: Fix call syntax for qemu-img Stefan Weil
2012-03-14 18:57 ` [Qemu-devel] [PATCH 2/2] qemu-iotests: Fix call syntax for qemu-io Stefan Weil
2012-03-14 19:08 ` [Qemu-devel] [PATCH 1/2] qemu-iotests: Fix call syntax for qemu-img Eric Blake
2012-03-14 20:48 ` Stefan Weil
2012-03-27 20:56 ` Stefan Weil
2012-03-28 10:32 ` Stefan Hajnoczi [this message]
2012-04-05 13:11 ` Kevin Wolf
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=CAJSP0QVDyNumf5N1-74fn77TrXf19h0cdUGKGoLQ5-WHPRS8Fw@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/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).