From: mtd@johnea.net
To: linux-mtd@lists.infradead.org
Subject: jffs2 minimum erase block count
Date: Wed, 16 Jan 2013 13:48:32 -0800 [thread overview]
Message-ID: <50F72030.6000809@johnea.net> (raw)
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
reply other threads:[~2013-01-16 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F72030.6000809@johnea.net \
--to=mtd@johnea.net \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.