]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: make server compliant with fixed newstyle spec
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Feb 2016 18:41:06 +0000 (18:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Feb 2016 16:14:24 +0000 (17:14 +0100)
commit26afa868dbd8641070c0a8d851b082b603c04fa1
treeaf567dd067938490c0c153465dda08ba947230d6
parentf72d705f0de9ec49248e72cf888624994f09eda2
nbd: make server compliant with fixed newstyle spec

If the client does not request the fixed new style protocol,
then we should only accept NBD_OPT_EXPORT_NAME. All other
options are only valid when fixed new style has been activated.

The qemu-nbd client doesn't currently request fixed new style
protocol, but this change won't break qemu-nbd, because it
fortunately only ever uses NBD_OPT_EXPORT_NAME, so was never
triggering the non-compliant server behaviour.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1455129674-17255-9-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/server.c