Max Reitz eedff66f21 qcow2: Restore total_sectors value in save_vmstate
Since df2a6f29a5, bdrv_co_do_writev increases the total_sectors value of
a growable block devices on writes after the current end. This leads to
the virtual disk apparently growing in qcow2_save_vmstate, which in turn
affects the disk size captured by the internal snapshot taken directly
afterwards through e.g. the HMP savevm command. Such a "grown" snapshot
cannot be loaded after reopening the qcow2 image, since its disk size
differs from the actual virtual disk size (writing a VM state does not
actually increase the virtual disk size).

Fix this by restoring total_sectors at the end of qcow2_save_vmstate.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-10-24 11:45:06 +02:00
2013-10-21 16:49:35 +02:00
2013-04-18 13:50:53 +02:00
2013-07-09 13:38:56 -05:00
2013-10-11 09:34:56 -07:00
2013-08-07 12:48:00 -05:00
2013-10-03 00:04:20 +01:00
2013-10-11 09:34:56 -07:00
2013-10-12 16:19:20 -07:00
2013-05-03 13:58:09 +02:00
2013-10-17 17:30:55 +02:00
2012-09-07 09:02:44 +03:00
2013-10-11 09:34:56 -07:00
2013-09-05 09:40:31 -05:00
2013-09-30 17:15:01 -05:00
2013-10-17 10:19:59 +02:00
2013-10-11 10:52:54 +02:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2013-10-17 17:31:00 +02:00
2013-09-03 12:25:55 +02:00
2013-10-17 17:31:00 +02:00
2013-07-23 02:41:31 +02:00
2013-10-17 10:10:14 +02:00
2013-02-21 16:17:31 -06:00
2013-08-12 09:15:12 -05:00
2013-10-11 16:50:01 +02:00
2013-09-03 12:25:55 +02:00
2013-09-03 12:33:32 -05:00
2013-09-06 15:25:08 +02:00
2013-05-18 16:35:12 +04:00
2013-09-12 13:49:50 +02:00
2013-10-11 09:34:56 -07:00
2013-07-19 12:52:03 +04:00
2013-05-01 13:06:07 +02:00
2013-09-02 09:08:29 -07:00
2013-10-11 09:34:56 -07:00
2013-09-25 21:23:05 +02:00
2013-08-15 15:41:13 -05:00
2013-10-11 09:34:56 -07:00
2013-10-17 12:42:54 +02:00
2013-04-08 18:13:10 +02:00

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

- QEMU team
Description
No description provided
Readme 418 MiB
Languages
Rust 68.8%
C 26.3%
C++ 3%
Python 0.9%
Shell 0.5%
Other 0.3%