nbd/server: Include human-readable message in structured errors
authorEric Blake <eblake@redhat.com>
Fri, 27 Oct 2017 10:40:33 +0000 (12:40 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 30 Oct 2017 20:48:11 +0000 (21:48 +0100)
commita57f6dea02cdcf7733786f15bab6665ecfc1033b
tree99358090146341641505bbcf6204eae5fbcfa5aa
parent5c54e7fa714fdee68ede764610adda806162080f
nbd/server: Include human-readable message in structured errors

The NBD spec permits including a human-readable error string if
structured replies are in force, so we might as well send the
client the message that we logged on any error.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20171027104037.8319-9-eblake@redhat.com>
nbd/server.c
nbd/trace-events