server: Allow longer NBD_OPT
commitfaf614e3b5caed56fd19c6cafa7f8670c28a14e8
authorEric Blake <eblake@redhat.com>
Fri, 27 Sep 2019 20:59:41 +0000 (27 15:59 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 30 Sep 2019 21:29:47 +0000 (30 16:29 -0500)
tree2b350dd12eb365fb0af12e276403079011ac0a6f
parent1913af3f1ec8b5aaecffb2129ff859410ad0e3d3
server: Allow longer NBD_OPT

Fixes the fact that clients could not request the maximum string
length except with NBD_OPT_EXPORT_LEN.  Updates the testsuite to
match.  Note that SET_CONTEXT_LENGTH can request an arbitrary number
of strings, each up to 4k in length; so we raise the cap to the same
size as we enforce for NBD_CMD_WRITE.

Signed-off-by: Eric Blake <eblake@redhat.com>
server/protocol-handshake-newstyle.c
tests/test-long-name.sh