]> git.proxmox.com Git - mirror_qemu.git/commit
cow: Use bdrv_(p)write_sync for metadata writes
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Jun 2010 14:31:14 +0000 (16:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 12:38:02 +0000 (14:38 +0200)
commitb0ad5a455d7e5352d4c86ba945112011dbeadfb8
tree8a39d9508ad5b25ddb4d9cec6957625349587958
parentf08145fe16470aca09304099888f68cfbc5d1de7
cow: Use bdrv_(p)write_sync for metadata writes

Use bdrv_(p)write_sync to ensure metadata integrity in case of a crash.
While at it, correct the wrong usage of errno.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/cow.c