Re: [Qemu-devel] [PATCH v3 29/44] nbd: Avoid magic number for NBD max name size

2016-04-25 Thread Alex Bligh
On 23 Apr 2016, at 00:40, Eric Blake wrote: > Declare a constant and use that when determining if an export > name fits within the constraints we are willing to support. > > Note that upstream NBD recently documented that clients MUST > support export names of 256 bytes (not including trailing

[Qemu-devel] [PATCH v3 29/44] nbd: Avoid magic number for NBD max name size

2016-04-22 Thread Eric Blake
Declare a constant and use that when determining if an export name fits within the constraints we are willing to support. Note that upstream NBD recently documented that clients MUST support export names of 256 bytes (not including trailing NUL), and SHOULD support names up to 4096 bytes. 4096 is