qcow2: Use bdrv_(p)write_sync for metadata writes
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Jun 2010 15:44:35 +0000 (17:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 12:38:02 +0000 (14:38 +0200)
commit3f1fa916ceee2a37faadc0b65603fea4a5dbdad2
treedc1969b634bd85275c343f16b90af598689a6951
parentba7e47e286be4392e0097a5399d48dbba14f3239
qcow2: Use bdrv_(p)write_sync for metadata writes

Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2-snapshot.c
block/qcow2.c