This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: jffs2 write in 4kB blocks over the network?


Hi, Gary,

Gary Thomas <gary@mlbassoc.com> wrote:

> Markus Schaber wrote:
> >> the default block size in jffs2 is 4kB. But with FTP, packets have at 
> >> most 1448 B payload.
> >> If I put a file of 12kB, is the file then put in 3 nodes if 4kB, or is 
> >> it put in 9 nodes (because FTP uses 9 packets) ?
> > 
> > Besides what JÃrgen wrote, it also depends on how your FTP program
> > buffers, which parts it writes in a single write call, and when it
> > syncs/flushes buffers.
> 
> It still doesn't matter because the file system and/or JFFS2 will
> be buffering it to suit their needs.

Do you really say that JFFS2 on eCos ignores calls to fflush() & co?

So then it is unusable for every application that needs transactional
consistency.

Regards,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]