All of lore.kernel.org
 help / color / mirror / Atom feed
* mmap on jffs2(2.4.19)
@ 2003-04-21  6:01 leeyang
  0 siblings, 0 replies; only message in thread
From: leeyang @ 2003-04-21  6:01 UTC (permalink / raw)
  To: linux-mtd

I need mmap a "writable" file,
and it fails.My code is as below:

 fd = open("/usr/dat/sot.dat",O_RDWR,FILEMODE);
 
 ptr1=mmap(NULL,filesize,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0);

fd returns 3,but ptr1 returns -1 and 
mmap errno says invalid agrument.
These codes runs well on ext2.

Then I checked the old maillist and source code.
It seems jffs2 currently not support mmap writable.
Am I right?

In
http://lists.infradead.org/pipermail/linux-mtd/2002-July/005436.html
dw said "some kind of mtd_remap()",
Has it been implemented now? 


BTW:
My last msg was blocked by 
"Message has a suspicious header"

I'm not sure the reason,I guess 
the smtp server I used is broken,
and I change to another one,
hope this one works.

leeyang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-21  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-21  6:01 mmap on jffs2(2.4.19) leeyang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.