blockdev: check dinfo ptr before using
If a user decides to punish a guest by revoking its block device viadrive_del, and subsequently also attempts to remove the pci devicebacking it, and the device is using blockdev_auto_del() then we get asegfault when we attempt to access dinfo->auto_del.[1]...
block: Introduce path_has_protocol() function
The bdrv_find_protocol() function returns NULL if an unknown protocolname is given. It returns the "file" protocol when the filenamecontains no protocol at all. This makes it difficult to distinguishbetween paths which contain a protocol and those which do not....
block: Fix the use of protocols in backing files
Backing filenames may contain a protocol. The code currently doesn'tconsider this case and produces filenames that embed "<protocol>:".Don't combine filenames if the backing filename contains a protocol....
Merge remote branch 'arm/for-anthony' into staging
Merge remote branch 'kwolf/for-anthony' into staging
Merge remote branch 'qmp/for-anthony' into staging
Merge remote branch 'jvrao/for-anthony' into staging
Merge remote branch 'mst/for_anthony' into staging
qemu-img: Free option parameter lists in img_create()
Free option parameter lists in the img_create() error return path.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img: Fail creation if backing format is invalid
The qemu-img create command should check the backing format to ensureonly image files with valid backing formats are created. By checking inqemu-img.c we can print a useful error message.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
View all revisions | View revisions
Also available in: Atom