Re: [Qemu-devel] [PATCH 08/18] nbd: Limit nbdflags to 16 bits

2016-04-09 Thread Alex Bligh
On 8 Apr 2016, at 23:05, Eric Blake wrote: > Rather than asserting that nbdflags is within range, just give > it the correct type to begin with :) nbdflags corresponds to > the per-export portion of NBD Protocol "transmission flags", which > is 16 bits in response to NBD_OPT_EXPORT_NAME and NBD

[Qemu-devel] [PATCH 08/18] nbd: Limit nbdflags to 16 bits

2016-04-08 Thread Eric Blake
Rather than asserting that nbdflags is within range, just give it the correct type to begin with :) nbdflags corresponds to the per-export portion of NBD Protocol "transmission flags", which is 16 bits in response to NBD_OPT_EXPORT_NAME and NBD_OPT_GO. Signed-off-by: Eric Blake --- include/bloc