Stefan Hajnoczi 4d70655bcb block: fix BDRV_O_SNAPSHOT protocol detection
realpath(3) is used to get an absolute path to the image file when
creating a -drive snapshot=on temporary qcow2.  This does not work for
protocols since their filenames ("proto:foo:...") do not correspond to
file system paths.

Commit 7c96d46ec245d73fd76726588409f9abe4bd5dc1 ("Let snapshot work with
protocols") skipped realpath(3) for protocols.  Later on the "raw"
format was introduced and broke the check.

Use path_has_protocol(filename) to decide if this image uses a protocol
or a filename.

Reported-by: Richard Jones <rjones@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-03-19 11:48:37 +01:00
2013-03-15 16:41:58 +00:00
2012-12-19 08:29:06 +01:00
2013-02-28 09:19:00 +01:00
2012-10-24 10:26:22 +02:00
2013-03-15 16:07:49 +01:00
2013-02-28 09:19:00 +01:00
2013-03-04 09:54:17 +01:00
2013-03-15 16:41:58 +00:00
2012-09-07 09:02:44 +03:00
2013-02-21 10:38:07 +01:00
2012-11-01 13:10:06 +01:00
2013-02-21 16:17:31 -06:00
2013-03-11 13:32:03 +01:00
2012-05-14 07:27:24 +02:00
2008-10-12 17:54:42 +00:00
2013-03-12 10:35:55 +01:00
2013-02-16 14:50:59 +01:00
2013-03-12 13:40:11 -05:00
2013-03-12 13:40:11 -05:00
2013-02-21 16:17:31 -06:00
2011-12-09 11:25:22 +00:00
2013-03-08 21:17:46 +01:00
2013-03-15 11:36:49 -05:00
2013-02-16 11:12:13 +00:00
2013-03-11 13:32:03 +01:00
2013-03-11 13:32:03 +01:00
2013-02-22 21:21:10 +01:00
2013-02-22 21:29:43 +01:00
2013-02-18 08:39:10 -06:00
2011-12-11 17:50:43 -06:00
2013-02-15 17:40:56 -06:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 431 MiB
Languages
C 82.9%
C++ 6.4%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%