qapi: add nbd-server-remove
commita3b0dc75829d910073e841539cb5ae4e6f75c09b
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 19 Jan 2018 13:57:16 +0000 (19 16:57 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jan 2018 15:37:20 +0000 (26 09:37 -0600)
treed2554b82e6bfe8ab281d255916019b688708d162
parentdba49323ea83c8e661a279e8b69737fd18783a19
qapi: add nbd-server-remove

Add command for removing an export. It is needed for cases when we
don't want to keep the export after the operation on it was completed.
The other example is a temporary node, created with blockdev-add.
If we want to delete it we should firstly remove any corresponding
NBD export.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180119135719.24745-3-vsementsov@virtuozzo.com>
[eblake: drop dead nb_clients code]
Signed-off-by: Eric Blake <eblake@redhat.com>
blockdev-nbd.c
include/block/nbd.h
nbd/server.c
qapi/block.json