From: Carlos Manuel Duclos Vergara <carlos@embedded.cl>
To: linux-mtd@lists.infradead.org
Subject: Re: mmap on jffs2
Date: Wed, 21 Jul 2004 14:52:02 +0200 [thread overview]
Message-ID: <200407211452.02227.carlos@embedded.cl> (raw)
In-Reply-To: <I17SEM$1DC26B36820863BFFC1F5CC60A6B7223@libero.it>
El Miércoles, 21 de Julio de 2004 20:23, dibacco@inwind.it escribió:
> Hi,
>
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.
>
i'm not sure, but it could be because of the 'j' (Journaling). A journaling
filesystem is different from another kind of filesystem, and i'm not sure
about what it could mean mmap for a file in a journal filesystem.
A journal filesystem uses two stages for writing, the journal and the real
data. So when you try to mmap a file for writing in a journal filesystem it
can be very tricky to implement, but for reading there is no problem because
when you read a file you get the file from the data, not from the journal.
My $1
--
Carlos Manuel Duclos Vergara
carlos@embedded.cl
next prev parent reply other threads:[~2004-07-21 18:44 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 [this message]
2004-07-21 18:37 ` David Woodhouse
-- 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=200407211452.02227.carlos@embedded.cl \
--to=carlos@embedded.cl \
--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