]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: JSON filenames and relative backing files
authorMax Reitz <mreitz@redhat.com>
Wed, 26 Nov 2014 16:20:26 +0000 (17:20 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (11:47 +0000)
commit9f07429e8873124c588847b0d499cb32b9410bdd
treef5de29af3815e86167edb769feddd6013ab32d12
parent0a82855a1a819f3de49781d42728f485fbd64284
block: JSON filenames and relative backing files

When using a relative backing file name, qemu needs to know the
directory of the top image file. For JSON filenames, such a directory
cannot be easily determined (e.g. how do you determine the directory of
a qcow2 BDS directly on top of a quorum BDS?). Therefore, do not allow
relative filenames for the backing file of BDSs only having a JSON
filename.

Furthermore, BDS::exact_filename should be used whenever possible. If
BDS::filename is not equal to BDS::exact_filename, the former will
always be a JSON object.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/qapi.c
include/block/block.h