61f585cdc1
for install guest on tapdisk very very slow. - bnc#542525 - VUL-1: xen pygrub vulnerability 20099-pygrub-security.patch 20107-pygrub-security.patch 20146-pygrub-security.patch 20174-pygrub-security.patch 20201-pygrub-security.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=22
17 lines
702 B
Diff
17 lines
702 B
Diff
--- xen-3.4.1-testing/tools/ioemu-remote/hw/xen_blktap.c 2009-09-21 13:26:03.000000000 +0800
|
|
+++ xen-3.4.1-testing/tools/ioemu-remote/hw/xen_blktap.c 2009-09-28 16:30:13.000000000 +0800
|
|
@@ -249,8 +249,11 @@ static int open_disk(struct td_state *s,
|
|
drv = blktap_drivers[i].drv;
|
|
DPRINTF("%s driver specified\n", drv ? drv->format_name : "No");
|
|
|
|
- /* Open the image */
|
|
- if (bdrv_open2(bs, path, flags, drv) != 0) {
|
|
+ /* Open the image
|
|
+ * Use BDRV_O_CACHE_WB for write-through caching,
|
|
+ * no flags for write-back caching
|
|
+ */
|
|
+ if (bdrv_open2(bs, path, flags|BDRV_O_CACHE_WB, drv) != 0) {
|
|
fprintf(stderr, "Could not open image file %s\n", path);
|
|
return -ENOMEM;
|
|
}
|