Re: [Qemu-devel] [PATCH v2 2/3] block: Introduce bdrv_co_flush_to_os

2011-11-12 Thread Zhi Yong Wu
On Fri, Nov 11, 2011 at 5:10 PM, Kevin Wolf wrote: > Am 11.11.2011 05:06, schrieb Zhi Yong Wu: >> On Fri, Nov 11, 2011 at 1:32 AM, Kevin Wolf wrote: >>> qcow2 has a writeback metadata cache, so flushing a qcow2 image actually >>> consists of writing back that cache to the protocol and only then f

Re: [Qemu-devel] [PATCH v2 2/3] block: Introduce bdrv_co_flush_to_os

2011-11-11 Thread Kevin Wolf
Am 11.11.2011 05:06, schrieb Zhi Yong Wu: > On Fri, Nov 11, 2011 at 1:32 AM, Kevin Wolf wrote: >> 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

Re: [Qemu-devel] [PATCH v2 2/3] block: Introduce bdrv_co_flush_to_os

2011-11-10 Thread Zhi Yong Wu
On Fri, Nov 11, 2011 at 1:32 AM, Kevin Wolf wrote: > 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

[Qemu-devel] [PATCH v2 2/3] block: Introduce bdrv_co_flush_to_os

2011-11-10 Thread Kevin Wolf
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