diff options
| author | Jeff Cody | 2012-09-20 21:13:18 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2012-09-24 15:15:11 +0200 |
| commit | 55b110f24ec765a09cfb7f4c013fcd90dd807628 (patch) | |
| tree | 34441cd2f0daa6a5b77b98eab17a97c1e61267db /block | |
| parent | block: correctly set the keep_read_only flag (diff) | |
| download | qemu-55b110f24ec765a09cfb7f4c013fcd90dd807628.tar.gz qemu-55b110f24ec765a09cfb7f4c013fcd90dd807628.tar.xz qemu-55b110f24ec765a09cfb7f4c013fcd90dd807628.zip | |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
