Max Reitz ba2ab2f2ca qcow2: Flush image after creation
Opening the qcow2 image with BDRV_O_NO_FLUSH prevents any flushes during
the image creation. This means that the image has not yet been flushed
to disk when qemu-img create exits. This flush is delayed until the next
operation on the image involving opening it without BDRV_O_NO_FLUSH and
closing (or directly flushing) it. For large images and/or images with a
small cluster size and preallocated metadata, this flush may take a
significant amount of time and may occur unexpectedly.

Reopening the image without BDRV_O_NO_FLUSH right before the end of
qcow2_create2() results in hoisting the potentially costly flush into
the image creation, which is expected to take some time (whereas
successive image operations may be not).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-10-28 17:34:32 +01:00
2013-10-28 17:34:32 +01:00
2013-10-21 16:49:35 +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
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
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-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-10-11 09:34:56 -07:00
2013-07-19 12:52:03 +04: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

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

- QEMU team
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%