Re: [Qemu-devel] [PATCH] nbd/server: Reject 0-length block status request

2018-06-21 Thread John Snow
On 06/21/2018 08:49 AM, Eric Blake wrote: > The NBD spec says that behavior is unspecified if the client > requests 0 length for block status; but since the structured > reply is documenting as returning a non-zero length, it's > easier to just diagnose this with an EINVAL error than to > figure

Re: [Qemu-devel] [PATCH] nbd/server: Reject 0-length block status request

2018-06-21 Thread Eric Blake
On 06/21/2018 07:52 AM, Vladimir Sementsov-Ogievskiy wrote: 21.06.2018 15:49, Eric Blake wrote: The NBD spec says that behavior is unspecified if the client requests 0 length for block status; but since the structured reply is documenting as returning a non-zero length, it's easier to just diagn

Re: [Qemu-devel] [PATCH] nbd/server: Reject 0-length block status request

2018-06-21 Thread Vladimir Sementsov-Ogievskiy
21.06.2018 15:49, Eric Blake wrote: The NBD spec says that behavior is unspecified if the client requests 0 length for block status; but since the structured reply is documenting as returning a non-zero length, it's easier to just diagnose this with an EINVAL error than to figure out what to retu

[Qemu-devel] [PATCH] nbd/server: Reject 0-length block status request

2018-06-21 Thread Eric Blake
The NBD spec says that behavior is unspecified if the client requests 0 length for block status; but since the structured reply is documenting as returning a non-zero length, it's easier to just diagnose this with an EINVAL error than to figure out what to return. CC: qemu-sta...@nongnu.org Signed