Changing the number of JFFS2 erasblocks?

Steven Scholz steven.scholz at imc-berlin.de
Thu Apr 8 09:10:31 EDT 2004


Thomas Gleixner wrote:

>>>Could I hardcode the number of eraseblocks to 1 in my new (but still old
>>>2.4.20) kernel? Where is it defined?
>>>And what happens to my root fs which is JFFS2 when I change that?
>>
>>Is it enough and ok to just change the
>>
>>/* Number of free blocks there must be before we... */
>>#define JFFS2_RESERVED_BLOCKS_BASE 3
> 
> You can do this, but it will break and it will break your root jffs2 too, as 
> there is no way to have this per partition...
:-(

> 320K is not really useful for a filesystem IMHO. 
> What do you want to do with it ?

We need some place to store a few configuration files (ca. 50KB compressed 
each) for our application. These 320KB are unused so I thought we could use 
it for this dedicated purpose instead of wasting space (and poluting) on our 
root fs...

Steven



More information about the linux-mtd mailing list