Josh Boyer jwboyer at
Thu Dec 22 12:02:40 EST 2005

On 12/22/05, Artem B. Bityutskiy <dedekind at> wrote:
> Nikhil wrote:
> > jffs2dump of an image shows the presence of cleanmarker at the beginning
> > of all the eraseblocks (even if the block contains some valid data). why
> > is there a need to write cleanmarker in each erase block while creating
> > image using mkfs.jffs2?
> There is no real need. mkfs.jffs2 just implemented that way. It just
> tries to be the same as if the same image would be created by means of
> copying files t oa mounted JFFS2, then dumping /dev/mtdX...

It's an optimization of mkfs.jffs2.  If it didn't write those
cleanmarkers in the image, JFFS2 would scan flash, find free
eraseblocks, and go erase them again since the cleanmarker is missing.
 With the cleanmarkers there, the erase of already erased blocks is


More information about the linux-mtd mailing list