Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-18 Thread Alberto Garcia
On Thu, Mar 12, 2015 at 04:45:17PM +0100, Kevin Wolf wrote: One issue that I'm finding is that when we move the block-stream job to an intermediate node, where the device name is empty, we get messages like Device '' is busy. My first thought was then make it 'Source/Target device is

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-17 Thread Alberto Garcia
On Thu, Mar 12, 2015 at 04:45:17PM +0100, Kevin Wolf wrote: One issue that I'm finding is that when we move the block-stream job to an intermediate node, where the device name is empty, we get messages like Device '' is busy. I can use node names instead, but they are also not

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-17 Thread Alberto Garcia
On Tue, Mar 17, 2015 at 09:22:55AM -0600, Eric Blake wrote: The BlockJobInfo object returned by query-block-jobs identifies the owner of the job using the 'device' field. If jobs can be in any intermediate node then we cannot simply rely on the device name. We also cannot simply replace

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-17 Thread Kevin Wolf
Am 17.03.2015 um 16:00 hat Alberto Garcia geschrieben: On Thu, Mar 12, 2015 at 04:45:17PM +0100, Kevin Wolf wrote: One issue that I'm finding is that when we move the block-stream job to an intermediate node, where the device name is empty, we get messages like Device '' is busy.

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-17 Thread Eric Blake
On 03/17/2015 09:00 AM, Alberto Garcia wrote: The BlockJobInfo object returned by query-block-jobs identifies the owner of the job using the 'device' field. If jobs can be in any intermediate node then we cannot simply rely on the device name. We also cannot simply replace it with a node name

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-12 Thread Kevin Wolf
Am 11.03.2015 um 17:38 hat Alberto Garcia geschrieben: On Thu, Mar 05, 2015 at 03:09:58PM +0100, Kevin Wolf wrote: { 'command': 'block-stream', - 'data': { 'device': 'str', '*base': 'str', '*backing-file': 'str', -'*speed': 'int', '*on-error': 'BlockdevOnError' } } +

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-11 Thread Alberto Garcia
On Thu, Mar 05, 2015 at 03:09:58PM +0100, Kevin Wolf wrote: { 'command': 'block-stream', - 'data': { 'device': 'str', '*base': 'str', '*backing-file': 'str', -'*speed': 'int', '*on-error': 'BlockdevOnError' } } + 'data': { 'device': 'str', '*base': 'str', '*top': 'str', +

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-05 Thread Alberto Garcia
On Thu, Mar 05, 2015 at 03:09:58PM +0100, Kevin Wolf wrote: { 'command': 'block-stream', - 'data': { 'device': 'str', '*base': 'str', '*backing-file': 'str', -'*speed': 'int', '*on-error': 'BlockdevOnError' } } + 'data': { 'device': 'str', '*base': 'str', '*top': 'str', +

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-03-05 Thread Kevin Wolf
Am 20.02.2015 um 14:53 hat Alberto Garcia geschrieben: This adds the 'top' parameter to the 'block-stream' QMP command and checks that its value is valid before passing it to stream_start(). Signed-off-by: Alberto Garcia be...@igalia.com --- a/qapi/block-core.json +++

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-02-24 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 23.02.2015 um 13:23 hat Alberto Garcia geschrieben: On Fri, Feb 20, 2015 at 03:38:04PM -0700, Eric Blake wrote: +if (has_top) { +top_bs = bdrv_find_backing_image(bs, top); +if (top_bs == NULL) { +

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-02-23 Thread Alberto Garcia
On Fri, Feb 20, 2015 at 03:38:04PM -0700, Eric Blake wrote: +if (has_top) { +top_bs = bdrv_find_backing_image(bs, top); +if (top_bs == NULL) { +error_set(errp, QERR_TOP_NOT_FOUND, top); +goto out; +} If I understand correctly,

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-02-23 Thread Kevin Wolf
Am 23.02.2015 um 13:23 hat Alberto Garcia geschrieben: On Fri, Feb 20, 2015 at 03:38:04PM -0700, Eric Blake wrote: +if (has_top) { +top_bs = bdrv_find_backing_image(bs, top); +if (top_bs == NULL) { +error_set(errp, QERR_TOP_NOT_FOUND, top); +

[Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-02-20 Thread Alberto Garcia
This adds the 'top' parameter to the 'block-stream' QMP command and checks that its value is valid before passing it to stream_start(). Signed-off-by: Alberto Garcia be...@igalia.com --- blockdev.c| 19 +++ hmp.c | 2 +-

Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer

2015-02-20 Thread Eric Blake
On 02/20/2015 06:53 AM, Alberto Garcia wrote: This adds the 'top' parameter to the 'block-stream' QMP command and checks that its value is valid before passing it to stream_start(). Signed-off-by: Alberto Garcia be...@igalia.com --- blockdev.c| 19 +++