Revision 0aa217e4 vl.c
b/vl.c | ||
---|---|---|
2239 | 2239 |
unit_id = -1; |
2240 | 2240 |
translation = BIOS_ATA_TRANSLATION_AUTO; |
2241 | 2241 |
index = -1; |
2242 |
cache = 3;
|
|
2242 |
cache = 1;
|
|
2243 | 2243 |
|
2244 | 2244 |
if (machine->use_scsi) { |
2245 | 2245 |
type = IF_SCSI; |
... | ... | |
2557 | 2557 |
bdrv_flags |= BDRV_O_NOCACHE; |
2558 | 2558 |
else if (cache == 2) /* write-back */ |
2559 | 2559 |
bdrv_flags |= BDRV_O_CACHE_WB; |
2560 |
else if (cache == 3) /* not specified */ |
|
2561 |
bdrv_flags |= BDRV_O_CACHE_DEF; |
|
2562 | 2560 |
if (bdrv_open2(bdrv, file, bdrv_flags, drv) < 0) { |
2563 | 2561 |
fprintf(stderr, "qemu: could not open disk image %s\n", |
2564 | 2562 |
file); |
Also available in: Unified diff