]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Handle null backing link
authorMax Reitz <mreitz@redhat.com>
Sat, 24 Feb 2018 15:40:32 +0000 (16:40 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 19:58:36 +0000 (14:58 -0500)
commite59a0cf17b1b9932b65e6fc25d6856976f5e4831
treef303124257a396e0705ad0231d29c1d428adcbb3
parent532fb532847365f61a9c6e1291b6588a43bc1cc4
block: Handle null backing link

Instead of converting all "backing": null instances into "backing": "",
handle a null value directly in bdrv_open_inherit().

This enables explicitly null backing links for json:{} filenames.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20180224154033.29559-7-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: rebase to qobject_to() parameter order and qapi headers split]
Signed-off-by: Eric Blake <eblake@redhat.com>
block.c
blockdev.c
tests/qemu-iotests/089
tests/qemu-iotests/089.out