/[qemu]
ViewVC logotype

Revision 5485


Jump to revision: Previous Next
Author: aliguori
Date: Tue Oct 14 14:42:54 2008 UTC (15 years, 1 month ago)
Changed paths: 7
Log Message:
Expand cache= option and use write-through caching by default

This patch changes the cache= option to accept none, writeback, or writethough
to control the host page cache behavior.  By default, writethrough caching is
now used which internally is implemented by using O_DSYNC to open the disk
images.  When using -snapshot, writeback is used by default since data integrity
it not at all an issue.

cache=none has the same behavior as cache=off previously.  The later syntax is
still supported by now deprecated.  I also cleaned up the O_DIRECT
implementation to avoid many of the #ifdefs.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


Changed paths:

Path Details
Directorytrunk/block-raw-posix.c modified , text changed
Directorytrunk/block-raw-win32.c modified , text changed
Directorytrunk/block.c modified , text changed
Directorytrunk/block.h modified , text changed
Directorytrunk/qemu-doc.texi modified , text changed
Directorytrunk/qemu-nbd.c modified , text changed
Directorytrunk/vl.c modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5