]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev-nbd.c
nbd: disallow nbd-server-add before nbd-server-start
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 13:25:17 +0000 (14:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 13:38:29 +0000 (14:38 +0100)
commit17b6be4a7fc9db4f4c56908bab137d4c491471f1
tree0dd312f683c3514895c264d8337604758b4215b8
parente644473445177671ec408dfdec705cf931657998
nbd: disallow nbd-server-add before nbd-server-start

It works nicely with the QMP commands, but it adds useless complication
with HMP.  In particular, see the following:

    (qemu) nbd_server_add -w scsi0-hd0
    (qemu) nbd_server_start -a localhost:10809
    NBD server already exporting device scsi0-hd0

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
blockdev-nbd.c