Re: [Qemu-devel] [PATCH 14/47] stream: add on-error argument

2012-08-01 Thread Kevin Wolf
Am 01.08.2012 13:11, schrieb Paolo Bonzini: > Il 01/08/2012 12:29, Kevin Wolf ha scritto: +if ((on_error == BLOCKDEV_ON_ERROR_STOP || + on_error == BLOCKDEV_ON_ERROR_ENOSPC) && +!bdrv_iostatus_is_enabled(bs)) { +error_set(errp, QERR_INVALID_PARAMETER,

Re: [Qemu-devel] [PATCH 14/47] stream: add on-error argument

2012-08-01 Thread Paolo Bonzini
Il 01/08/2012 12:29, Kevin Wolf ha scritto: >> > +if ((on_error == BLOCKDEV_ON_ERROR_STOP || >> > + on_error == BLOCKDEV_ON_ERROR_ENOSPC) && >> > +!bdrv_iostatus_is_enabled(bs)) { >> > +error_set(errp, QERR_INVALID_PARAMETER, "on-error"); >> > +return; >> > +

Re: [Qemu-devel] [PATCH 14/47] stream: add on-error argument

2012-08-01 Thread Kevin Wolf
Am 24.07.2012 13:03, schrieb Paolo Bonzini: > This patch adds support for error management to streaming. > > Signed-off-by: Paolo Bonzini > --- > block/stream.c | 28 +++- > block_int.h |3 ++- > blockdev.c | 11 --- > hmp.c|3

Re: [Qemu-devel] [PATCH 14/47] stream: add on-error argument

2012-07-31 Thread Eric Blake
On 07/24/2012 05:03 AM, Paolo Bonzini wrote: > This patch adds support for error management to streaming. > > Signed-off-by: Paolo Bonzini > --- > +++ b/qapi-schema.json > @@ -1656,17 +1656,23 @@ > # > # @speed: #optional the maximum speed, in bytes per second > # > +# @on-error: #optional t

[Qemu-devel] [PATCH 14/47] stream: add on-error argument

2012-07-24 Thread Paolo Bonzini
This patch adds support for error management to streaming. Signed-off-by: Paolo Bonzini --- block/stream.c | 28 +++- block_int.h |3 ++- blockdev.c | 11 --- hmp.c|3 ++- qapi-schema.json | 10 -- qmp-commands.hx |