* jffs2 minimum erase block count
@ 2013-01-16 21:48 mtd
0 siblings, 0 replies; only message in thread
From: mtd @ 2013-01-16 21:48 UTC (permalink / raw)
To: linux-mtd
Hello,
While recently debugging an issue mounting an mtdblock device via jffs2, we discovered a minimum erase block count requirement in fs/jffs2/fs.c:
#if 0
if (c->flash_size < 5*c->sector_size) {
printk(KERN_ERR "jffs2: Too few erase blocks (%d)\n", c->flash_size / c->sector_size);
return -EINVAL;
}
#endif
Which we disabled by wrapping it with #if 0 as shown.
For our particular application, the mounted mtdblock partition is for very rarely written user data, and is implemented over high endurance NOR flash.
After disabling this check the mounted partition seems to be working.
However it would be reassuring to know if violating this minimum erase block count will have other repercussions.
Thank You...
John Andrews
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-16 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 21:48 jffs2 minimum erase block count mtd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.