qemu/block
Kevin Wolf ac48e389d0 vvfat: Fix segfault on write to read-only disk
vvfat tries to set the readonly flag in its open function, but nowadays
this is overwritted with the readonly=... command line option. Check in
bdrv_write if the vvfat was opened read-only and return an error in this
case.

Without this check, vvfat tries to access the qcow bs, which is NULL
without enabled write support.

Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
2010-09-21 15:39:42 +02:00
..
blkdebug.c blkdebug: fix enum comparison 2010-09-18 05:53:15 +00:00
bochs.c bochs: use qemu block API 2010-05-17 10:20:05 +02:00
cloop.c cloop: use qemu block API 2010-05-17 10:20:04 +02:00
cow.c cow: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
curl.c Fix %lld or %llx printf format use 2010-05-22 08:02:12 +00:00
dmg.c dmg: use qemu block API 2010-05-17 10:20:05 +02:00
nbd.c nbd: Introduce NBD named exports. 2010-08-30 18:29:22 +02:00
parallels.c parallels: use qemu block API 2010-05-17 10:20:05 +02:00
qcow2-cluster.c qcow2: Remove unnecessary flush after L2 write 2010-09-08 12:39:24 +02:00
qcow2-refcount.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow2-snapshot.c qcow2: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
qcow2.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow2.h qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
qcow.c qcow: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
raw-posix-aio.h Remove aio_ctx from paio_* interface 2009-10-30 08:39:34 -05:00
raw-posix.c raw-posix: improve detection of scsi-generic devices 2010-09-08 12:39:19 +02:00
raw-win32.c block: Fix bdrv_has_zero_init 2010-08-03 15:57:22 +02:00
raw.c Revert "Make default invocation of block drivers safer (v3)" 2010-09-08 17:09:15 -05:00
sheepdog.c sheepdog: remove unnecessary includes 2010-08-30 18:29:22 +02:00
vdi.c qcow2/vdi: Change check to distinguish error cases 2010-07-06 17:05:49 +02:00
vmdk.c vmdk: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
vpc.c vpc: Use bdrv_(p)write_sync for metadata writes 2010-06-22 14:38:02 +02:00
vvfat.c vvfat: Fix segfault on write to read-only disk 2010-09-21 15:39:42 +02:00