[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-img resize: Fix option parsing
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] qemu-img resize: Fix option parsing |
Date: |
Tue, 3 May 2011 12:22:13 +0100 |
On Fri, Apr 29, 2011 at 10:06 AM, Kevin Wolf <address@hidden> wrote:
> For shrinking images, you're supposed to use a negative size. However, the
> leading minus makes getopt think that it's an option and so you get the help
> text if you don't use -- like in 'qemu-img resize test.img -- -1G'.
>
> This patch handles the size first and removes it from the argument list so
> that
> getopt won't even try to interpret it and you don't need -- any more.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> qemu-img.c | 13 +++++++++++--
> 1 files changed, 11 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH] qemu-img resize: Fix option parsing,
Stefan Hajnoczi <=