diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2013-08-14 17:56:41 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-08-14 08:34:00 -0500 |
commit | 8b7a5415f9297c1fbae5bff28dcb059d50c1b045 (patch) | |
tree | e4a1a33aed6ab5fb246c3a83c15a35ecfd8e5ff5 | |
parent | 3a3567d337d3ee6fb2e2fcc1d27cd045ed97ae9b (diff) |
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>
-rw-r--r-- | blockdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index e174b7d02d..bc7016a8d4 100644 --- a/blockdev.c +++ b/blockdev.c @@ -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; } |