Re: [Qemu-devel] [PATCH 1/2] Add dd-style SIGUSR1 progress reporting

2011-04-28 Thread Paolo Bonzini
On 04/28/2011 09:18 AM, Jes Sorensen wrote: On 04/27/11 18:14, Markus Armbruster wrote: +static void progress_simple_init(void) +{ +state.print = progress_simple_print; +state.end = progress_simple_end; +} + +#ifdef CONFIG_POSIX +static void sigusr_print(int signal) +{ +printf("(

Re: [Qemu-devel] [PATCH 1/2] Add dd-style SIGUSR1 progress reporting

2011-04-28 Thread Jes Sorensen
On 04/27/11 18:14, Markus Armbruster wrote: >> +static void progress_simple_init(void) >> +{ >> +state.print = progress_simple_print; >> +state.end = progress_simple_end; >> +} >> + >> +#ifdef CONFIG_POSIX >> +static void sigusr_print(int signal) >> +{ >> +printf("(%3.2f/100%%)\n",

Re: [Qemu-devel] [PATCH 1/2] Add dd-style SIGUSR1 progress reporting

2011-04-27 Thread Markus Armbruster
jes.soren...@redhat.com writes: > From: Jes Sorensen > > This introduces support for dd-style progress reporting on POSIX > systems, if the user hasn't specified -p to report progress. If sent a > SIGUSR1, qemu-img will report current progress for commands that > support progress reporting. > > S

[Qemu-devel] [PATCH 1/2] Add dd-style SIGUSR1 progress reporting

2011-04-27 Thread Jes . Sorensen
From: Jes Sorensen This introduces support for dd-style progress reporting on POSIX systems, if the user hasn't specified -p to report progress. If sent a SIGUSR1, qemu-img will report current progress for commands that support progress reporting. Signed-off-by: Jes Sorensen --- qemu-progress.