]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-nbd: drop old-style negotiation
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 3 Oct 2018 17:02:27 +0000 (20:02 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 3 Oct 2018 20:48:31 +0000 (15:48 -0500)
commitf5cd0bb5174dcd6e8c160d7992fb89f09f264ef0
tree4aa9a594c771a186c45ec7e8ebe1f5b64f3aaecc
parentf7812df77d7830c6b375066a4e656f3b79232c13
qemu-nbd: drop old-style negotiation

Use new-style negotiation always, with default "" (empty) export name
if it is not specified with '-x' option.

qemu as client can manage either style since 2.6.0, commit 69b49502d8

For comparison:

nbd 3.10 dropped oldstyle long ago (Mar 2015):
https://github.com/NetworkBlockDevice/nbd/commit/36940193

nbdkit 1.3 switched its default to newstyle (Jan 2018):
https://github.com/libguestfs/nbdkit/commit/b2a8aecc
https://github.com/libguestfs/nbdkit/commit/8158e773

Furthermore, if a client that only speaks oldstyle still needs to
communicate to qemu, nbdkit remains available to perform the
translation between the two protocols.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181003170228.95973-2-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: enhance commit message]
Signed-off-by: Eric Blake <eblake@redhat.com>
qemu-nbd.c