]> git.proxmox.com Git - qemu.git/blobdiff - blockdev.c
net: Warn about "-net nic" options which were ignored
[qemu.git] / blockdev.c
index 6e0eb831c11ac6ce81db56e3443f6c6d54179dc2..1502575acb9d359aec4c66940b7cc28d2ea2b9ef 100644 (file)
@@ -326,7 +326,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
 
     if ((buf = qemu_opt_get(opts, "cache")) != NULL) {
         if (!strcmp(buf, "off") || !strcmp(buf, "none")) {
-            bdrv_flags |= BDRV_O_NOCACHE;
+            bdrv_flags |= BDRV_O_NOCACHE | BDRV_O_CACHE_WB;
         } else if (!strcmp(buf, "writeback")) {
             bdrv_flags |= BDRV_O_CACHE_WB;
         } else if (!strcmp(buf, "unsafe")) {