Messages in this thread | | | From | (Miquel van Smoorenburg) | Subject | mmap() on a block device | Date | 29 Mar 1998 19:58:33 +0200 |
| |
I've just noticed that Linux doesn't support mmap() on a block device. I tried to hack around a bit, filling in generic_file_mmap in drivers/scsi/sd.c, but that doesn't work as-is.
Because I don't know this area of the kernel, is there someone who could give me a hint how to implement this?
I've been thinking of writing a small filesystem a la romfs that could be mounted and then shows all partitions of a blockdevice in files 1, 2, 3, etc, and those files would be mmap()able again. Is there a simpler / quicker / easier way?
(I'm trying to use INN+CNFS with mmap()ed block devices instead of big files).
Mike. -- Miquel van Smoorenburg | Our vision is to speed up time, miquels@cistron.nl | eventually eliminating it.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |