Commit 8b7a5415 authored by M. Mohan Kumar's avatar M. Mohan Kumar Committed by Anthony Liguori
Browse files

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: default avatarM. Mohan Kumar <mohan@in.ibm.com>
Message-id: 1376483201-13466-1-git-send-email-mohan@in.ibm.com
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 3a3567d3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
    }