block/qapi: allow best-effort query
commita5002d53029df4d7ebaf87c821b3dc07b65e5e52
authorJohn Snow <jsnow@redhat.com>
Mon, 14 Dec 2015 19:55:16 +0000 (14 14:55 -0500)
committerMax Reitz <mreitz@redhat.com>
Fri, 18 Dec 2015 13:36:17 +0000 (18 14:36 +0100)
tree4d187ad9aab5ad2528baeecc7c28ee21d0a62274
parent92d617abc53180cbfa88482382e8f0c13853cc1d
block/qapi: allow best-effort query

For more complex BDS trees that can be created under normal circumstances,
we lose the ability to issue query commands because of our inability to
re-construct the absolute filename.

Instead, omit this field when it is a problem and present as much information
as we can.

This will change the expected output in iotest 110, where we will now see a
json filename and the lack of an absolute filename instead of an error.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1450122916-4706-6-git-send-email-jsnow@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qapi.c
tests/qemu-iotests/110.out