xen_disk: open disk with BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
33cf629a37
commit
820914103c
@ -584,10 +584,10 @@ static int blk_init(struct XenDevice *xendev)
|
||||
}
|
||||
|
||||
/* read-only ? */
|
||||
qflags = BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO;
|
||||
if (strcmp(blkdev->mode, "w") == 0) {
|
||||
qflags = BDRV_O_RDWR;
|
||||
qflags |= BDRV_O_RDWR;
|
||||
} else {
|
||||
qflags = 0;
|
||||
info |= VDISK_READONLY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user