qemu/block
Christoph Hellwig 893a9cb47c cow: stop using mmap
We don't have an equivalent to mmap in the qemu block API, so read and
write the bitmap directly.  At least in the dumb implementation added
in this patch this is a lot less efficient, but it means cow can also
work on windows, and over nbd or curl.  And it fixes qemu-iotests testcase
012 which did not work properly due to issues with read-only mmap access.

In addition we can also get rid of the now unused get_mmap_addr function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-06-15 09:41:59 +02:00
..
blkdebug.c Move stdbool.h 2010-06-13 19:00:50 +01: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: stop using mmap 2010-06-15 09:41:59 +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 block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
parallels.c parallels: use qemu block API 2010-05-17 10:20:05 +02:00
qcow2-cluster.c qcow2: Restore L1 entry on l2_allocate failure 2010-06-15 09:41:58 +02:00
qcow2-refcount.c qcow2: Return real error code in load_refcount_block 2010-06-15 09:41:58 +02:00
qcow2-snapshot.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow2.c qcow2: Allow qcow2_get_cluster_offset to return errors 2010-05-28 13:29:11 +02:00
qcow2.h qcow2: Allow qcow2_get_cluster_offset to return errors 2010-05-28 13:29:11 +02:00
qcow.c block: Avoid unchecked casts for AIOCBs 2010-05-17 10:20:05 +02:00
raw-posix-aio.h Remove aio_ctx from paio_* interface 2009-10-30 08:39:34 -05:00
raw-posix.c Cleanup: raw-posix.c: Be more consistent using BDRV_SECTOR_SIZE instead of 512 2010-06-04 11:43:39 +02:00
raw-win32.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
raw.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
vdi.c block/vdi: Fix image opening and creation for odd disk sizes 2010-05-17 10:20:05 +02:00
vmdk.c vmdk: Convert to bdrv_open 2010-05-03 10:07:31 +02:00
vpc.c vpc: Read/write multiple sectors at once 2010-06-15 09:41:58 +02:00
vvfat.c vvfat: More build fixes with DEBUG 2010-05-21 11:49:19 +02:00