Re: [Qemu-devel] [PATCH 06/18] nbd: Avoid magic number for NBD max name size

2016-04-09 Thread Eric Blake
On 04/09/2016 04:35 AM, Alex Bligh wrote: > > On 8 Apr 2016, at 23:05, Eric Blake wrote: > >> Declare a constant and use that when determining if an export >> name fits within the constraints we are willing to support. >> >> Signed-off-by: Eric Blake >>

Re: [Qemu-devel] [PATCH 06/18] nbd: Avoid magic number for NBD max name size

2016-04-09 Thread Alex Bligh
On 8 Apr 2016, at 23:05, Eric Blake wrote: > Declare a constant and use that when determining if an export > name fits within the constraints we are willing to support. > > Signed-off-by: Eric Blake > --- > include/block/nbd.h | 2 ++ > nbd/client.c

[Qemu-devel] [PATCH 06/18] nbd: Avoid magic number for NBD max name size

2016-04-08 Thread Eric Blake
Declare a constant and use that when determining if an export name fits within the constraints we are willing to support. Signed-off-by: Eric Blake --- include/block/nbd.h | 2 ++ nbd/client.c| 2 +- nbd/server.c| 4 ++-- 3 files changed, 5 insertions(+), 3