qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Cleanup qemu-img code
@ 2010-12-02 17:46 Jes.Sorensen
  2010-12-02 17:46 ` [Qemu-devel] [PATCH 1/3] Consolidate printing of block driver options Jes.Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Jes.Sorensen @ 2010-12-02 17:46 UTC (permalink / raw)
  To: kwolf; +Cc: qemu-devel

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

These patches moves the handling of block help printing to shared
code, which allows the "?" detection to happen early in the parsing,
instead of half way down img_create() and img_convert(). I would like
to see this happen as I would like to pull some of the code out of
img_create() and into block.c so it can be shared with qemu and
qemu-img.

The formatting patch is solely because the third patch wanted to
change code next to the badly formatted code, and I didn't want to
pollute the patch with the formatting fixed.

The third patch fixes qemu-img to exit on detection of unknown options
instead of continuing with a potentially wrong set of arguments.

Cheers,
Jes


Jes Sorensen (3):
  Consolidate printing of block driver options
  Fix formatting and missing braces in qemu-img.c
  Fail if detecting an unknown option

 qemu-img.c |  171 +++++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 136 insertions(+), 35 deletions(-)

-- 
1.7.3.2

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH v2 0/3] Cleanup qemu-img code
@ 2010-12-06  8:17 Jes.Sorensen
  2010-12-06  8:17 ` [Qemu-devel] [PATCH 3/3] Fail if detecting an unknown option Jes.Sorensen
  0 siblings, 1 reply; 16+ messages in thread
From: Jes.Sorensen @ 2010-12-06  8:17 UTC (permalink / raw)
  To: kwolf; +Cc: stefanha, qemu-devel

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

These patches moves the handling of block help printing to shared
code, which allows the "?" detection to happen early in the parsing,
instead of half way down img_create() and img_convert(). I would like
to see this happen as I would like to pull some of the code out of
img_create() and into block.c so it can be shared with qemu and
qemu-img.

The formatting patch is solely because the third patch wanted to
change code next to the badly formatted code, and I didn't want to
pollute the patch with the formatting fixed.

The third patch fixes qemu-img to exit on detection of unknown options
instead of continuing with a potentially wrong set of arguments.

New in v2: Add missing free_option_parameters() and handle the help()
case in the general switch() statements for the getopt() output.

Cheers,
Jes

Jes Sorensen (3):
  Consolidate printing of block driver options
  Fix formatting and missing braces in qemu-img.c
  Fail if detecting an unknown option

 qemu-img.c |  132 ++++++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 97 insertions(+), 35 deletions(-)

-- 
1.7.3.2

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-12-06 10:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 17:46 [Qemu-devel] [PATCH 0/3] Cleanup qemu-img code Jes.Sorensen
2010-12-02 17:46 ` [Qemu-devel] [PATCH 1/3] Consolidate printing of block driver options Jes.Sorensen
2010-12-03 10:57   ` Stefan Hajnoczi
2010-12-03 10:59     ` Jes Sorensen
2010-12-03 10:59     ` Stefan Hajnoczi
2010-12-02 17:46 ` [Qemu-devel] [PATCH 2/3] Fix formatting and missing braces in qemu-img.c Jes.Sorensen
2010-12-03 11:04   ` Stefan Hajnoczi
2010-12-02 17:46 ` [Qemu-devel] [PATCH 3/3] Fail if detecting an unknown option Jes.Sorensen
2010-12-03 11:46   ` Stefan Hajnoczi
2010-12-06  8:01     ` Jes Sorensen
2010-12-03 12:30   ` [Qemu-devel] " Kevin Wolf
2010-12-06  8:02     ` Jes Sorensen
2010-12-06  9:37       ` Kevin Wolf
2010-12-06 10:20         ` Jes Sorensen
  -- strict thread matches above, loose matches on Subject: below --
2010-12-06  8:17 [Qemu-devel] [PATCH v2 0/3] Cleanup qemu-img code Jes.Sorensen
2010-12-06  8:17 ` [Qemu-devel] [PATCH 3/3] Fail if detecting an unknown option Jes.Sorensen
2010-12-06  9:24   ` Stefan Hajnoczi

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).