[OBORONA-SPAM] Re: jffs2

Artem B. Bityuckiy abityuckiy at yandex.ru
Tue Sep 28 02:54:53 EDT 2004



Artem B. Bityuckiy wrote:
> Kornel Masłowski wrote:
> 
>> I'm not sure how jffs2 works.
>> I have jffs2 on  8bit NAND flash (page 512 B).
>> I want to append record 32B to the file on flash which current size is 
>> 10kB.
>> Flash device is almost empty.
>> How many pages will be written by jffs2?
> 
> If your 10K file was created by one go and there is no compression, the 
> file will consist of 3 JFFS2 nodes (4K + 4K + 2K) and fit into 9 + 9 + 5 
> = 23 NAND pageg
>(4K data = 4 NAND pages and one is needed for node
Ops, 4K data = 8 NAND pages.
> header; the rest of page won't be used since the next node isn't fit to 
> it).
> 


-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.





More information about the linux-mtd mailing list