mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
* src/qemu_conf.c: switch off cache if disk is shared and not read-only
patch by Charles Duffy Daniel
This commit is contained in:
parent
c1a9be4c1b
commit
d9c75acde1
@ -1,3 +1,8 @@
|
||||
Mon Nov 3 16:54:39 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/qemu_conf.c: switch off cache if disk is shared and not read-only
|
||||
patch by Charles Duffy
|
||||
|
||||
Mon Nov 3 16:52:12 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: oops trailing blanks
|
||||
|
@ -960,13 +960,15 @@ int qemudBuildCommandLine(virConnectPtr conn,
|
||||
break;
|
||||
}
|
||||
|
||||
snprintf(opt, PATH_MAX, "file=%s,if=%s,%sindex=%d%s",
|
||||
snprintf(opt, PATH_MAX, "file=%s,if=%s,%sindex=%d%s%s",
|
||||
disk->src ? disk->src : "", bus,
|
||||
media ? media : "",
|
||||
idx,
|
||||
bootable &&
|
||||
disk->device == VIR_DOMAIN_DISK_DEVICE_DISK
|
||||
? ",boot=on" : "");
|
||||
? ",boot=on" : "",
|
||||
disk->shared && ! disk->readonly
|
||||
? ",cache=off" : "");
|
||||
|
||||
ADD_ARG_LIT("-drive");
|
||||
ADD_ARG_LIT(opt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user