* CLEANMARKER!!
@ 2005-12-22 15:38 Nikhil
2005-12-22 16:29 ` CLEANMARKER!! Artem B. Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Nikhil @ 2005-12-22 15:38 UTC (permalink / raw)
To: linux-mtd
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?
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?
--
Thanks & Regards
Nikhil
Project Engineer
NISG, CDAC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CLEANMARKER!!
2005-12-22 15:38 CLEANMARKER!! Nikhil
@ 2005-12-22 16:29 ` Artem B. Bityutskiy
2005-12-22 17:02 ` CLEANMARKER!! Josh Boyer
0 siblings, 1 reply; 4+ messages in thread
From: Artem B. Bityutskiy @ 2005-12-22 16:29 UTC (permalink / raw)
To: Nikhil; +Cc: linux-mtd
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.
Right.
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CLEANMARKER!!
2005-12-22 16:29 ` CLEANMARKER!! Artem B. Bityutskiy
@ 2005-12-22 17:02 ` Josh Boyer
2005-12-22 17:07 ` CLEANMARKER!! Artem B. Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Josh Boyer @ 2005-12-22 17:02 UTC (permalink / raw)
To: Artem B. Bityutskiy; +Cc: linux-mtd, Nikhil
On 12/22/05, Artem B. Bityutskiy <dedekind@yandex.ru> 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
omitted.
josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: CLEANMARKER!!
2005-12-22 17:02 ` CLEANMARKER!! Josh Boyer
@ 2005-12-22 17:07 ` Artem B. Bityutskiy
0 siblings, 0 replies; 4+ messages in thread
From: Artem B. Bityutskiy @ 2005-12-22 17:07 UTC (permalink / raw)
To: Josh Boyer; +Cc: linux-mtd, Nikhil
Josh Boyer wrote:
> 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
> omitted.
Well, this is for empty eraseblocks. Those with data could be devoid of
cleanmarkers.
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-12-22 17:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-22 15:38 CLEANMARKER!! Nikhil
2005-12-22 16:29 ` CLEANMARKER!! Artem B. Bityutskiy
2005-12-22 17:02 ` CLEANMARKER!! Josh Boyer
2005-12-22 17:07 ` CLEANMARKER!! Artem B. Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox