block: Dont ignore previously set bdrv_flags
bdrv_flags is set by bdrv_parse_discard_flags(), but later it is reset to zero. Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Message-id: 1376483201-13466-1-git-send-email-mohan@in.ibm.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3a3567d337
commit
8b7a5415f9
@ -454,7 +454,6 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts,
|
||||
}
|
||||
}
|
||||
|
||||
bdrv_flags = 0;
|
||||
if (qemu_opt_get_bool(opts, "cache.writeback", true)) {
|
||||
bdrv_flags |= BDRV_O_CACHE_WB;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user