lkml.org 
[lkml]   [1998]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectmmap() on a block device
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.027 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site