[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] live block copy/stream/snapshot discussion
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] live block copy/stream/snapshot discussion |
Date: |
Thu, 14 Jul 2011 11:00:40 +0100 |
On Thu, Jul 14, 2011 at 10:55 AM, Kevin Wolf <address@hidden> wrote:
> Am 14.07.2011 11:39, schrieb Stefan Hajnoczi:
>> Events:
>>
>> On completion the BLOCK_STREAM_COMPLETED event is raised with the following
>> fields:
>>
>> - device: device name (json-string)
>> - len: size of the device, in bytes (json-int)
>> - offset: last offset of completed I/O, in bytes (json-int)
>> - error: error message (json-string, only on error)
>>
>> The completion event is raised both on success and on failure.
>
> Why do len/offset matter in a completion event?
For completeness. You could see it as telling you how much progress
was made before an error occurred. In the success case offset will
always be equal to len. But in the error case you get the last
completed progress before error, which could be useful (for example if
you weren't polling but want to display "Streaming virtio-blk0 failed
at 33%").
Stefan
- [Qemu-devel] live block copy/stream/snapshot discussion, Dor Laor, 2011/07/05
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Stefan Hajnoczi, 2011/07/11
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Stefan Hajnoczi, 2011/07/11
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Marcelo Tosatti, 2011/07/11
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Kevin Wolf, 2011/07/12
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Stefan Hajnoczi, 2011/07/12
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Kevin Wolf, 2011/07/12
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Stefan Hajnoczi, 2011/07/13
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Stefan Hajnoczi, 2011/07/14
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Kevin Wolf, 2011/07/14
- Re: [Qemu-devel] live block copy/stream/snapshot discussion,
Stefan Hajnoczi <=
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Kevin Wolf, 2011/07/14
- Re: [Qemu-devel] live block copy/stream/snapshot discussion, Adam Litke, 2011/07/12