why erase block size can not be less than 8KiB

Michael Zhu boot2linux at gmail.com
Tue Feb 18 21:54:50 EST 2014


Dear all,

I want to make a jffs2 filesystem using 4KiB, but mkfs.jffs2 tell min
erase block size is 8KiB. Why have this limitation ?

I dug the source code, and find code snippet below:

/* If it's less than 8KiB, they're not allowed */
if (erase_block_size < 0x2000) {
  fprintf(stderr, "Erase size 0x%x too small. Increasing to 8KiB minimum\n",
 erase_block_size);
  erase_block_size = 0x2000;
}

If skipping  this check, is there any other side effect ?


B.R.

Michael



More information about the linux-mtd mailing list