[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 14/19] nbd/client: Pull out oldstyle size det
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3 14/19] nbd/client: Pull out oldstyle size determination |
Date: |
Wed, 16 Jan 2019 13:47:50 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 1/15/19 9:35 AM, Vladimir Sementsov-Ogievskiy wrote:
> 12.01.2019 20:58, Eric Blake wrote:
>> Another refactoring creating nbd_negotiate_finish_oldstyle()
>> for further reuse during 'qemu-nbd --list'.
>>
>> Signed-off-by: Eric Blake <address@hidden>
>> Message-Id: <address@hidden>
>> Reviewed-by: Richard W.M. Jones <address@hidden>
>
> Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
>
> Hmm, looking at this, I found that nbd_start_negotiate() has very unusual
> semantics
> for @zeroes field, without any comment about it:
>
> It must be set to true before calling, and nbd_start_negotiate may set it to
> true.
>
> I think better is not to rely on caller initialization and set zeroes to true
> at the
> beginning of nbd_start_negotiate().
Makes sense; done in my local tree.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v3 05/19] nbd/server: Favor [u]int64_t over off_t, (continued)
- [Qemu-devel] [PATCH v3 03/19] qemu-nbd: Sanity check partition bounds, Eric Blake, 2019/01/12
- [Qemu-devel] [PATCH v3 14/19] nbd/client: Pull out oldstyle size determination, Eric Blake, 2019/01/12
- [Qemu-devel] [PATCH v3 08/19] nbd/client: Move export name into NBDExportInfo, Eric Blake, 2019/01/12
- [Qemu-devel] [PATCH v3 12/19] nbd/client: Refactor return of nbd_receive_negotiate(), Eric Blake, 2019/01/12
- [Qemu-devel] [PATCH v3 11/19] nbd/client: Split out nbd_receive_one_meta_context(), Eric Blake, 2019/01/12
- [Qemu-devel] [PATCH v3 01/19] maint: Allow for EXAMPLES in texi2pod, Eric Blake, 2019/01/12
- Re: [Qemu-devel] [PATCH v3 00/19] nbd: add qemu-nbd --list, Vladimir Sementsov-Ogievskiy, 2019/01/14