summary refs log tree commit diff stats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-12-05 13:46:46 +0000
committerKevin Wolf <kwolf@redhat.com>2019-12-18 11:20:57 +0100
commit0da7d13a4c2ff8ac40aeb1bd24c5564c82624555 (patch)
tree581f9e37bbbcfb0c63cd66334e03760d2155bd77 /scripts/qapi/source.py
parentecaf647f300d69271c245a67adca9c3a89d9463a (diff)
downloadfocaccia-qemu-0da7d13a4c2ff8ac40aeb1bd24c5564c82624555.tar.gz
focaccia-qemu-0da7d13a4c2ff8ac40aeb1bd24c5564c82624555.zip
qemu-img: fix info --backing-chain --image-opts
Only apply --image-opts to the topmost image when listing an entire
backing chain.  It is incorrect to treat backing filenames as image
options.  Assuming we have the backing chain t.IMGFMT.base <-
t.IMGFMT.mid <- t.IMGFMT, qemu-img info fails as follows:

  $ qemu-img info --backing-chain --image-opts \
      driver=qcow2,file.driver=file,file.filename=t.IMGFMT
  qemu-img: Could not open 'TEST_DIR/t.IMGFMT.mid': Cannot find device=TEST_DIR/t.IMGFMT.mid nor node_name=TEST_DIR/t.IMGFMT.mid

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions