From 893a9cb47c767adfbc22357e33e784e7137392df Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 7 Jun 2010 12:06:37 +0200 Subject: 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 Signed-off-by: Kevin Wolf --- qemu-common.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index d133f35f4c..00998c3af5 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -164,9 +164,6 @@ void qemu_free(void *ptr); char *qemu_strdup(const char *str); char *qemu_strndup(const char *str, size_t size); -void *get_mmap_addr(unsigned long size); - - void qemu_mutex_lock_iothread(void); void qemu_mutex_unlock_iothread(void); -- cgit v1.2.3