Artem B. Bityutskiy dedekind at
Thu Dec 22 11:29:44 EST 2005

Nikhil wrote:
> hi all,
> I am a bit confused regarding the cleanmarker stuff in JFFS2. I understand
> that cleanmarker is written to the eraseblock immediately after a
> successfull erase, which indicates that the block is empty and can be used
> for writes.

> Is there any other situation when the cleanmarker has to be added at the
> beginning of the eraseblock?
No, only after erase.

> 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...

Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.

More information about the linux-mtd mailing list