Re: [Qemu-devel] [PATCH 10/18] nbd: Share common option-sending code in client

2016-04-09 Thread Alex Bligh
On 8 Apr 2016, at 23:05, Eric Blake wrote: > Rather than open-coding each option request, it's easier to > have common helper functions do the work. That in turn requires > having convenient packed types for handling option requests > and replies. > > Signed-off-by: Eric Blake Reviewed-by: A

[Qemu-devel] [PATCH 10/18] nbd: Share common option-sending code in client

2016-04-08 Thread Eric Blake
Rather than open-coding each option request, it's easier to have common helper functions do the work. That in turn requires having convenient packed types for handling option requests and replies. Signed-off-by: Eric Blake --- include/block/nbd.h | 29 +- nbd/nbd-internal.h | 2 +- nbd/