diff options
author | John Snow <jsnow@redhat.com> | 2015-12-14 14:55:16 -0500 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2015-12-18 14:36:17 +0100 |
commit | a5002d53029df4d7ebaf87c821b3dc07b65e5e52 (patch) | |
tree | 4d187ad9aab5ad2528baeecc7c28ee21d0a62274 /tests | |
parent | 92d617abc53180cbfa88482382e8f0c13853cc1d (diff) | |
download | qemu-a5002d53029df4d7ebaf87c821b3dc07b65e5e52.zip qemu-a5002d53029df4d7ebaf87c821b3dc07b65e5e52.tar.gz qemu-a5002d53029df4d7ebaf87c821b3dc07b65e5e52.tar.bz2 |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qemu-iotests/110.out | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/qemu-iotests/110.out b/tests/qemu-iotests/110.out index 0270980..b3584ff 100644 --- a/tests/qemu-iotests/110.out +++ b/tests/qemu-iotests/110.out @@ -11,7 +11,10 @@ backing file: t.IMGFMT.base (actual path: TEST_DIR/t.IMGFMT.base) === Non-reconstructable filename === -qemu-img: Cannot use relative backing file names for 'json:{"driver": "IMGFMT", "file": {"set-state.0.event": "read_aio", "image": {"driver": "file", "filename": "TEST_DIR/t.IMGFMT"}, "driver": "blkdebug", "set-state.0.new_state": 42}}' +image: json:{"driver": "IMGFMT", "file": {"set-state.0.event": "read_aio", "image": {"driver": "file", "filename": "TEST_DIR/t.IMGFMT"}, "driver": "blkdebug", "set-state.0.new_state": 42}} +file format: IMGFMT +virtual size: 64M (67108864 bytes) +backing file: t.IMGFMT.base (cannot determine actual path) === Backing name is always relative to the backed image === |