nbd: Add max-connections to nbd-server-start
commit1c8222b014484145d66740d0597ae86b4a989b73
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 Sep 2020 15:26:54 +0000 (24 17:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2020 13:46:40 +0000 (2 15:46 +0200)
treea91df444a4a456de4c3c423b5ed0ce4d42f42ce1
parent9b562c646bc0ad5fca3cfa00720e431c7e72769a
nbd: Add max-connections to nbd-server-start

This is a QMP equivalent of qemu-nbd's --shared option, limiting the
maximum number of clients that can attach at the same time.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200924152717.287415-9-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/monitor/block-hmp-cmds.c
blockdev-nbd.c
include/block/nbd.h
qapi/block-export.json
storage-daemon/qemu-storage-daemon.c