Skip to contentSkip to conversation

What is smallest JFFS2 size (#blocks)

DISCUSSION Derek Ross 2 participants 2 messages Apr 10, 2002 – Apr 11, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Derek Ross

author
#0 lore raw

Hello,

We plan to use JFFS2 to store several text configuration files, but we don't expect the total size of the files to be more than 10k or so.

What is the smallest possible size for a JFFS2 file system, in number of blocks? I'm sure it's at least 2...

Thanks,
Derek Ross.

#1 lore raw
Quoted 8 lines · Derek Ross

We plan to use JFFS2 to store several text configuration files, but we don't expect the total size of the files to be more than 10k or so.

What is the smallest possible size for a JFFS2 file system, in number of blocks? I'm sure it's at least 2...

joern@dublin:/usr/src/linux/fs/jffs2> grep "#define" *.h
...
nodelist.h:#define ALLOC_GC 2 /* Space requested for GC. Give it or die */
nodelist.h:#define JFFS2_RESERVED_BLOCKS_BASE 3

Looks like 6 is the correct answer. But you can reduce JFFS2_RESERVED_BLOCKS_BASE down to 0 - at your own risk of course.

Jörn

Signature · 3 lines
Smart data structures and dumb code works a lot better than the other
way around.
-- Eric Raymond in "The cathedral and the bazaar"