mmap on jffs2

David Woodhouse dwmw2 at infradead.org
Wed Jul 21 14:37:19 EDT 2004


On Wed, 2004-07-21 at 20:23 +0200, dibacco at inwind.it wrote:
> Hi,
> 
> I have a problem mapping a file opened with flag O_RDWR. This file is
> housed on a jffs2 file system that currently lives on simple ram.
> Could you give me an hint where to search for a possible solution? If
> I open the file in O_RDONLY mode the mapping is done, instead with
> O_RDWR mmap returns -EINVAL.

JFFS2 does not support shared writable mapping. This is a feature :)

Use MAP_PRIVATE instead of MAP_SHARED.

-- 
dwmw2





More information about the linux-mtd mailing list