qcow2: Really use cache=unsafe for image creation
authorKevin Wolf <kwolf@redhat.com>
Thu, 27 Jan 2011 15:46:01 +0000 (16:46 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Feb 2011 08:44:22 +0000 (09:44 +0100)
commite1a7107f2d92af646ec37b74d074dc150e688559
tree4016c9de0053b3cb87e9bebdfc159acea7a55163
parentad36ce8ba95a756ef558579c6e9ecedfae4dfd0b
qcow2: Really use cache=unsafe for image creation

For cache=unsafe we also need to set BDRV_O_CACHE_WB, otherwise we have some
strange unsafe writethrough mode.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2.c