]> Git Repo - qemu.git/commit
nbd/server: Reject 0-length block status request
authorEric Blake <[email protected]>
Thu, 21 Jun 2018 12:49:37 +0000 (07:49 -0500)
committerEric Blake <[email protected]>
Thu, 21 Jun 2018 14:21:34 +0000 (09:21 -0500)
commitd8b20291cba6aa9bb295885a34f2b5f05d59d1b2
tree0e9c8106d6cc7a9e1b7798bf48a9301f97a599a2
parentac5de4984df282d64feb4af33b92e0a75652e2b6
nbd/server: Reject 0-length block status request

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: [email protected]
Signed-off-by: Eric Blake <[email protected]>
Message-Id: <20180621124937[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
nbd/server.c
This page took 0.025808 seconds and 4 git commands to generate.