mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue