]> git.proxmox.com Git - mirror_qemu.git/commit - include/block/block_int.h
block: Introduce bdrv_co_flush_to_os
authorKevin Wolf <kwolf@redhat.com>
Thu, 10 Nov 2011 17:10:11 +0000 (18:10 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Nov 2011 13:02:59 +0000 (14:02 +0100)
commiteb489bb1eceea0d710cd5f5122d37213300ceef6
treea4f6ea0374bdd83c83ebe7391c56211c7190ed71
parentc68b89acd636ff545bc7cb92739c41999291ce3c
block: Introduce bdrv_co_flush_to_os

qcow2 has a writeback metadata cache, so flushing a qcow2 image actually
consists of writing back that cache to the protocol and only then flushes the
protocol in order to get everything stable on disk.

This introduces a separate bdrv_co_flush_to_os to reflect the split.

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