Skip to contentSkip to conversation

block: Dont ignore previously set bdrv_flags

PATCH In review M. Mohan Kumar 2 participants 2 messages Aug 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Dont ignore previously set bdrv_flags

From: "M. Mohan Kumar" <[email protected]>

bdrv_flags is set by bdrv_parse_discard_flags(), but later it is reset to zero.

---
 blockdev.c | 1 -
 1 file changed, 1 deletion(-)
blockdev.c +0 -1
index e174b7d..bc7016a 100644
@@ -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;
     }
Signature · 1 line
1.7.11.7