diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2019-12-05 13:46:46 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-12-18 11:20:57 +0100 |
commit | 0da7d13a4c2ff8ac40aeb1bd24c5564c82624555 (patch) | |
tree | 581f9e37bbbcfb0c63cd66334e03760d2155bd77 /block.c | |
parent | ecaf647f300d69271c245a67adca9c3a89d9463a (diff) | |
download | qemu-0da7d13a4c2ff8ac40aeb1bd24c5564c82624555.zip qemu-0da7d13a4c2ff8ac40aeb1bd24c5564c82624555.tar.gz qemu-0da7d13a4c2ff8ac40aeb1bd24c5564c82624555.tar.bz2 |
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 'block.c')
0 files changed, 0 insertions, 0 deletions