diff options
author | Naphtali Sprei <nsprei@redhat.com> | 2010-01-17 16:48:13 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-20 08:25:22 -0600 |
commit | f5edb014ed221db6942225ec675aafe2675632dd (patch) | |
tree | 8c4d10e0d64b55c4320e1837749fc03cbf80941e /monitor.c | |
parent | b196b1532f2981e9c811c96214a44ee9e7d12af3 (diff) |
Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to explicitly request READ-WRITE.
Instead of using the field 'readonly' of the BlockDriverState struct for passing the request,
pass the request in the flags parameter to the function.
Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -927,7 +927,7 @@ static void do_change_block(Monitor *mon, const char *device, } if (eject_device(mon, bs, 0) < 0) return; - bdrv_open2(bs, filename, 0, drv); + bdrv_open2(bs, filename, BDRV_O_RDWR, drv); monitor_read_bdrv_key_start(mon, bs, NULL, NULL); } |