]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
Revert "qemu-xen-traditional: use O_DIRECT to open disk images for IDE" xen-4.2.0-rc3
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, 14 Aug 2012 14:57:49 +0000 (15:57 +0100)
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.

xenstore.c

index 8ab9ed4e24a42408f3b2051d4d1a797c9b586294..1857160d8e7e6ecc02a0a67978819579cada5edd 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;