From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24062 invoked by alias); 7 Apr 2008 12:18:27 -0000 Received: (qmail 24053 invoked by uid 22791); 7 Apr 2008 12:18:27 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Apr 2008 12:18:05 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 8236533791E1; Mon, 7 Apr 2008 06:18:03 -0600 (MDT) Received: from hermes.chez-thomas.org (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 7D5FD337907A; Mon, 7 Apr 2008 06:18:01 -0600 (MDT) Message-ID: <47FA10F8.8080602@mlbassoc.com> Date: Mon, 07 Apr 2008 13:08:00 -0000 From: Gary Thomas User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: =?ISO-8859-1?Q?J=FCrgen_Lambrecht?= CC: eCos Discussion References: <47F9DD83.30800@televic.com> In-Reply-To: <47F9DD83.30800@televic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] jffs2 write in 4kB blocks over the network? X-SW-Source: 2008-04/txt/msg00103.txt.bz2 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