public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: "dibacco@inwind.it" <dibacco@inwind.it>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: mmap on jffs2
Date: Wed, 21 Jul 2004 14:37:19 -0400	[thread overview]
Message-ID: <1090435039.4245.11.camel@localhost.localdomain> (raw)
In-Reply-To: <I17SEM$1DC26B36820863BFFC1F5CC60A6B7223@libero.it>

On Wed, 2004-07-21 at 20:23 +0200, dibacco@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

  parent reply	other threads:[~2004-07-21 18:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-21 18:23 mmap on jffs2 dibacco
2004-07-21 12:52 ` Carlos Manuel Duclos Vergara
2004-07-21 18:37 ` David Woodhouse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-20 14:00 leeyang
2003-04-22  9:33 ` Jörn Engel
2003-04-23  7:30   ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1090435039.4245.11.camel@localhost.localdomain \
    --to=dwmw2@infradead.org \
    --cc=dibacco@inwind.it \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox