]> git.proxmox.com Git - qemu.git/commitdiff
block: Dont ignore previously set bdrv_flags
authorM. Mohan Kumar <mohan@in.ibm.com>
Wed, 14 Aug 2013 12:26:41 +0000 (17:56 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 14 Aug 2013 13:34:00 +0000 (08:34 -0500)
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>
blockdev.c

index e174b7d02d39ea0f56a63a36a98e8664cf39e645..bc7016a8d4bb50689ff43b4029f8af23eb7ed1c0 100644 (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;
     }