]> git.proxmox.com Git - qemu.git/commit - block.c
block: make bdrv_set_enable_write_cache() modify open_flags
authorJeff Cody <jcody@redhat.com>
Thu, 20 Sep 2012 19:13:18 +0000 (15:13 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Sep 2012 13:15:11 +0000 (15:15 +0200)
commit55b110f24ec765a09cfb7f4c013fcd90dd807628
tree34441cd2f0daa6a5b77b98eab17a97c1e61267db
parentbe028adcedd68ca4d78fdc43e7e2fa4f1cdbc653
block: make bdrv_set_enable_write_cache() modify open_flags

bdrv_set_enable_write_cache() sets the bs->enable_write_cache flag,
but without the flag recorded in bs->open_flags, then next time
a reopen() is performed the enable_write_cache setting may be
inadvertently lost.

This will set the flag in open_flags, so it is preserved across
reopens.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c