What is smallest JFFS2 size (#blocks)
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.
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"