From 6340472c54529c5b703deec3ab0d6bdfe644f11e Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 4 Mar 2016 14:53:50 +0100 Subject: block: Use writeback in .bdrv_create() implementations There's no reason to use a writethrough cache mode while creating an image. Signed-off-by: Kevin Wolf --- block/parallels.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'block/parallels.c') diff --git a/block/parallels.c b/block/parallels.c index 645521d783..3f9fd48cc6 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -479,7 +479,8 @@ static int parallels_create(const char *filename, QemuOpts *opts, Error **errp) file = NULL; ret = bdrv_open(&file, filename, NULL, NULL, - BDRV_O_RDWR | BDRV_O_PROTOCOL, &local_err); + BDRV_O_RDWR | BDRV_O_CACHE_WB | BDRV_O_PROTOCOL, + &local_err); if (ret < 0) { error_propagate(errp, local_err); return ret; -- cgit v1.2.3