This patch makes the 'device' paramater of the 'block-stream' command
accept a node name as well as a device name.
In addition to that, operation blockers will be checked in all
intermediate nodes between the top and the base node.
Since qmp_block_stream() now uses the error from bdrv_lookup_bs() and
no longer returns DeviceNotFound, iotest 030 is updated to expect
GenericError instead.
Signed-off-by: Alberto Garcia <address@hidden>
---
blockdev.c | 20 ++++++++++----------
qapi/block-core.json | 10 +++++++---
tests/qemu-iotests/030 | 2 +-
3 files changed, 18 insertions(+), 14 deletions(-)