jffs2 minimum mtd block size

David Woodhouse dwmw2 at infradead.org
Wed Dec 1 04:48:18 EST 2004

On Wed, 2004-12-01 at 16:35 +0800, mike wrote:
> Dear all
>     I want to ask about minimum mtdblock size which jffs2 need . Why i 
> ask is because i try to make a 128kbyte mtdblock for my system status 
> storage, it fails. And i repartition to 1MB, it consumes the flash 
> nearly 600KB without any data.
>     Am i do something wrong? or there is a minimum size for jffs2.
>     If it is, Could i conclude that jffs2 do not suit to store small 
> size of data. And which filesystem expertise can suggest me for this 
> purpose?

It needs at least one or two eraseblocks free for garbage collection;
currently it's a little more conservative than that though. You can
reduce the reserved space in jffs2_calc_trigger_levels() in build.c


More information about the linux-mtd mailing list