On 28.02.2012 17:03, Paolo Bonzini wrote:
> Il 28/02/2012 13:35, Michael Tokarev ha scritto:
>> On 28.02.2012 15:35, Paolo Bonzini wrote:
>>> Il 28/02/2012 11:24, Michael Tokarev ha scritto:
This removes quite some duplicated code.
>> []
+static int nbd_co_rwv(BlockDriverState *bs, int64_
Il 28/02/2012 13:35, Michael Tokarev ha scritto:
> On 28.02.2012 15:35, Paolo Bonzini wrote:
>> Il 28/02/2012 11:24, Michael Tokarev ha scritto:
>>> This removes quite some duplicated code.
> []
>>> +static int nbd_co_rwv(BlockDriverState *bs, int64_t sector_num,
>>> + int nb_s
On 28.02.2012 15:35, Paolo Bonzini wrote:
> Il 28/02/2012 11:24, Michael Tokarev ha scritto:
>> This removes quite some duplicated code.
[]
>> +static int nbd_co_rwv(BlockDriverState *bs, int64_t sector_num,
>> + int nb_sectors, QEMUIOVector *qiov, int iswrite)
>
> Call this n
Il 28/02/2012 11:24, Michael Tokarev ha scritto:
> This removes quite some duplicated code.
>
> v2 fixes a bug (uninitialized reply.error) and makes the loop more natural.
>
> Signed-off-By: Michael Tokarev
> ---
> block/nbd.c | 95 +++---
>
This removes quite some duplicated code.
v2 fixes a bug (uninitialized reply.error) and makes the loop more natural.
Signed-off-By: Michael Tokarev
---
block/nbd.c | 95 +++---
1 files changed, 31 insertions(+), 64 deletions(-)
diff --git a