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:
M. Mohan Kumar 2013-08-14 17:56:41 +05:30 committed by Anthony Liguori
parent 3a3567d337
commit 8b7a5415f9

View File

@ -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;
}