Revision a6599793 blockdev.c

b/blockdev.c
326 326

  
327 327
    if ((buf = qemu_opt_get(opts, "cache")) != NULL) {
328 328
        if (!strcmp(buf, "off") || !strcmp(buf, "none")) {
329
            bdrv_flags |= BDRV_O_NOCACHE;
329
            bdrv_flags |= BDRV_O_NOCACHE | BDRV_O_CACHE_WB;
330 330
        } else if (!strcmp(buf, "writeback")) {
331 331
            bdrv_flags |= BDRV_O_CACHE_WB;
332 332
        } else if (!strcmp(buf, "unsafe")) {

Also available in: Unified diff