qemu-e2k/include
Kevin Wolf b998875dcf block: Fix snapshot=on for protocol parsed from filename
Since commit 9fd3171a, BDRV_O_SNAPSHOT uses an option QDict to specify
the originally requested image as the backing file of the newly created
temporary snapshot. This means that the filename is stored in
"file.filename", which is an option that is not parsed for protocol
names. Therefore things like -drive file=nbd:localhost:10809 were
broken because it looked for a local file with the literal name
'nbd:localhost:10809'.

This patch changes the way BDRV_O_SNAPSHOT works once again. We now open
the originally requested image as normal, and then do a similar
operation as for live snapshots to put the temporary snapshot on top.
This way, both driver specific options and parsed filenames work.

As a nice side effect, this results in code movement to factor
bdrv_append_temp_snapshot() out. This is a good preparation for moving
its call to drive_init() and friends eventually.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
2014-04-04 19:35:51 +02:00
..
block block: Fix snapshot=on for protocol parsed from filename 2014-04-04 19:35:51 +02:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec exec-all.h: Increase MAX_OP_PER_INSTR for ARM A64 decoder 2014-03-17 16:31:51 +00:00
fpu softfloat: export squash_input_denormal functions 2014-03-17 16:31:51 +00:00
hw acpi,pc,test bug fixes 2014-03-24 19:00:02 +00:00
migration scsi: Fix migration of scsi sense data 2014-03-14 10:06:55 +01:00
monitor quorum: Add quorum mechanism. 2014-02-21 22:29:50 +01:00
net net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
qapi qapi script: do not add "_" for every capitalized char in enum 2014-03-11 09:07:42 -04:00
qemu bswap: Fix build on FreeBSD 10.0 2014-04-03 13:44:25 +01:00
qom cpu: Avoid QOM casts for CPU() 2014-03-31 19:28:38 +02:00
sysemu acpi,pc,test bug fixes 2014-03-24 19:00:02 +00:00
ui gtk: Allow to activate grab-on-hover from the command line 2014-03-17 14:33:55 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h tcg-s390: Use qemu_getauxval in query_facilities 2013-11-30 07:45:30 +13:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
qemu-common.h util: add qemu_ether_ntoa 2014-03-27 15:18:45 +05:30
qemu-io.h qemu-io: Fix warnings from static code analysis 2014-03-13 14:42:24 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00