nbd: Forbid nbd-server-stop when server is not running
commit7801c3a7fd7042fd2f9435af4b9a6d2094073174
authorEric Blake <eblake@redhat.com>
Fri, 11 Jan 2019 19:47:14 +0000 (11 13:47 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jan 2019 16:09:46 +0000 (14 10:09 -0600)
treee5a928e2006700b12b5b5b67c3073931972801d3
parent2d2fd67428f0cfbffea16969d2635af3e2d78d3d
nbd: Forbid nbd-server-stop when server is not running

Since we already forbid other nbd-server commands when not
in the right state, it is unlikely that any caller was relying
on a second stop to behave as a silent no-op.  Update iotest
223 to show the improved behavior.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190111194720.15671-3-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
blockdev-nbd.c
tests/qemu-iotests/223
tests/qemu-iotests/223.out