qemu/block
Avi Kivity 11a1feb655 raw-posix: Remove O_RDWR when attempting to open a file read-only
When we open a file, we first attempt to open it read-write, then fall back
to read-only.  Unfortunately we reuse the flags from the previous attempt,
so both attempts try to open the file with write permissions, and fail.

Fix by clearing the O_RDWR flag from the previous attempt.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-06-16 15:18:35 -05:00
..
bochs.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
cloop.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
cow.c qemu-img: Print available options with -o ? 2009-06-06 18:38:57 +03:00
curl.c fully split aio_pool from BlockDriver 2009-05-27 09:46:03 -05:00
dmg.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
nbd.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
parallels.c Move block drivers into their own directory 2009-05-14 16:13:46 -05:00
qcow2.c qemu-img: Print available options with -o ? 2009-06-06 18:38:57 +03:00
qcow.c qemu-img: Print available options with -o ? 2009-06-06 18:38:57 +03:00
raw-posix.c raw-posix: Remove O_RDWR when attempting to open a file read-only 2009-06-16 15:18:35 -05:00
raw-win32.c block: add bdrv_probe_device method 2009-06-15 14:04:22 +02:00
vmdk.c qemu-img: Print available options with -o ? 2009-06-06 18:38:57 +03:00
vpc.c qemu-img: Print available options with -o ? 2009-06-06 18:38:57 +03:00
vvfat.c vvfat: one more missing BlockDriver C99 initializer conversion 2009-05-28 02:14:56 -05:00