]> git.proxmox.com Git - qemu.git/commit - qemu-img.c
Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and...
authorNaphtali Sprei <nsprei@redhat.com>
Sun, 17 Jan 2010 14:48:13 +0000 (16:48 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Jan 2010 14:25:22 +0000 (08:25 -0600)
commitf5edb014ed221db6942225ec675aafe2675632dd
tree8c4d10e0d64b55c4320e1837749fc03cbf80941e
parentb196b1532f2981e9c811c96214a44ee9e7d12af3
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>
block.c
block.h
block/raw-posix.c
block/raw-win32.c
block/vmdk.c
hw/xen_disk.c
monitor.c
qemu-img.c
qemu-io.c
qemu-nbd.c
vl.c