This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: jffs2 write in 4kB blocks over the network?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Jürgen Lambrecht <J dot Lambrecht at televic dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 07 Apr 2008 06:18:00 -0600
- Subject: Re: [ECOS] jffs2 write in 4kB blocks over the network?
- References: <47F9DD83.30800@televic.com>
Jürgen Lambrecht wrote:
Hello,
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) ?
JFFS2 will pack your data in the most efficient way into your
actual FLASH blocks. In fact, depending on configuration and
settings, it will even compress it along the way, so you've
no real idea how many FLASH blocks a given set of data will
require (except that it will be less than the actual data
size divided by the FLASH block size - compression is never
used if it causes the data to grow).
The fact that your incoming data via FTP or whatever comes
in smaller chunks is irrelevant - writes are buffered as
needed.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss