RE: How does mmap work?

"Scott Thibault" <[email protected]> Fri, 15 Aug 2003 12:01:39 -0400
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
So basically, you're saying no.  Is the root filesystem jffs2?  My interest
is for large read only files that are already compressed.  That's one thing
I really like about PalmOS (in memory DB with variable size records).
Pocket PC has a DB, but fixed records:(

--Scott


> -----Original Message-----
> From: Tim Riker [mailto:[email protected]]
> Sent: Friday, August 15, 2003 10:49 AM
> To: Scott Thibault
> Cc: [email protected]
> Subject: Re: [Zaurus-devel] How does mmap work?
>
>
> except that jffs2 is compressed, so you can't directly map anyway.
>
> iirc mmap will return an error for any file on jffs2
>
> one byte changes would still mean a block write. that could eat up flash
> quickly. large writes or even writev() would be much faster on jffs2.
>
> Scott Thibault wrote:
> > Hello,
> >
> > I assume mmap just gives me a pointer to the actual memory location of a
> > file, since files are all in memory anyway.  Is that correct?
> So, I should
> > be able to access files with zero memory usage and copying
> right (unless its
> > on a card, of course), right?
> >
> > --Scott Thibault
> > AcroDesign Technologies
> > http://www.acrodesigntech.com
> >
> > _______________________________________________
> > Zaurus-devel mailing list
> > [email protected]
> > http://lists.zaurus.com/mailman/listinfo/zaurus-devel
>
>
> --
> Tim Riker - http://rikers.org/ - [email protected]
> Linux Technologist - [email protected] - http://www.TI.com/
> BZFlag maintainer - http://BZFlag.org/ - for fun!
>