Am 01.08.2011 11:39, schrieb Stefan Hajnoczi: > This patch adds -drive cache=directsync for O_DIRECT | O_SYNC host file > I/O with no disk write cache presented to the guest. > > This mode is useful when guests may not be sending flushes when > appropriate and therefore leave data at risk in case of power failure. > When cache=directsync is used, write operations are only completed to > the guest when data is safely on disk. > > This new mode is like cache=writethrough but it bypasses the host page > cache. > > Signed-off-by: Stefan Hajnoczi <stefa...@linux.vnet.ibm.com>
qemu-img has another parser for cache options that must be changed. This should probably be refactored to a single implementation in block.c. Kevin