qapi: add name parameter to nbd-server-add
commit902a1f94bee2f5c633bb623baf2160c0a6da097c
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 19 Jan 2018 13:57:15 +0000 (19 16:57 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jan 2018 15:37:20 +0000 (26 09:37 -0600)
tree172642330cb8ede5ad843ee82de7cc2179e5f754
parente607bbee553cfe73072870cef458cfa4e78133e2
qapi: add name parameter to nbd-server-add

Allow user to specify name for new export, to not reuse internal
node name and to not show it to clients.

This also allows creating several exports per device.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180119135719.24745-2-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
blockdev-nbd.c
hmp.c
qapi/block.json