]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
Revert "qemu-xen-traditional: use O_DIRECT to open disk images for IDE"
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 14 Aug 2012 14:57:49 +0000 (15:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 13 Nov 2012 18:17:29 +0000 (18:17 +0000)
This reverts commit 1307e42a4b3c1102d75401bc0cffb4eb6c9b7a38.

In fact after a lengthy discussion, we came up with the conclusion
that WRITEBACK is OK for IDE.
See: http://marc.info/?l=xen-devel&m=133311527009773

Therefore revert this which was committed in error.
(cherry picked from commit effd5676225761abdab90becac519716515c3be4)

xenstore.c

index ac90366f0d9463ca407ccb14150edde42a34f725..4c483e29523129f825e7b889555ff88be5952edf 100644 (file)
@@ -643,7 +643,7 @@ void xenstore_parse_domain_config(int hvm_domid)
            }
             pstrcpy(bs->filename, sizeof(bs->filename), params);
 
-            flags = BDRV_O_NOCACHE;
+            flags = BDRV_O_CACHE_WB; /* snapshot and write-back */
             is_readonly = 0;
             if (pasprintf(&buf, "%s/mode", bpath) == -1)
                 continue;