* two questions about jffs2
@ 2005-05-04 0:15 Vahid Fereydunkolahi
2005-05-04 8:39 ` Artem B. Bityuckiy
0 siblings, 1 reply; 7+ messages in thread
From: Vahid Fereydunkolahi @ 2005-05-04 0:15 UTC (permalink / raw)
To: linux-mtd
Hi,
How does jffs2 handle the bad blocks on the NAND
flash? ( I noticed that at initialization jffs2 scans
the devivce and creates a bad block list, but it never
uses the bad block list. It seems that if the block is
bad it is not put into the block list).
Does current jffs2 and mtd support the NAND devices
with Page size more than 528 bytes?
Regards,
--vahid
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
2005-05-04 0:15 Vahid Fereydunkolahi
@ 2005-05-04 8:39 ` Artem B. Bityuckiy
0 siblings, 0 replies; 7+ messages in thread
From: Artem B. Bityuckiy @ 2005-05-04 8:39 UTC (permalink / raw)
To: Vahid Fereydunkolahi; +Cc: linux-mtd
On Tue, 2005-05-03 at 17:15 -0700, Vahid Fereydunkolahi wrote:
> Hi,
> How does jffs2 handle the bad blocks on the NAND
> flash? ( I noticed that at initialization jffs2 scans
> the devivce and creates a bad block list, but it never
> uses the bad block list. It seems that if the block is
> bad it is not put into the block list).
JFFS2 handles bad blocks just fine. Some info may be found at the MTD
web site. Visit it please.
> Does current jffs2 and mtd support the NAND devices
> with Page size more than 528 bytes?
Yes, it does.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
@ 2005-05-04 17:32 Vahid Fereydunkolahi
0 siblings, 0 replies; 7+ messages in thread
From: Vahid Fereydunkolahi @ 2005-05-04 17:32 UTC (permalink / raw)
To: dedekind; +Cc: linux-mtd
The comment "JFFS2 handles bad blocks just fine." is
an strange comment. As far as I know the handling of
the bad blocks must be managed by the file system and
mtd device will only check for bad blocks for erase operation.
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
@ 2005-05-04 19:07 Michael
0 siblings, 0 replies; 7+ messages in thread
From: Michael @ 2005-05-04 19:07 UTC (permalink / raw)
To: Vahid Fereydunkolahi, dedekind; +Cc: linux-mtd
--- Vahid Fereydunkolahi <fereydunk@yahoo.com> wrote:
> The comment "JFFS2 handles bad blocks just fine." is
> an strange comment. As far as I know the handling of
> the bad blocks must be managed by the file system and
> mtd device will only check for bad blocks for erase operation.
>
I think you just embarrased yourself. JFFS2 is Journalling Flash
File System 2, which works overtop of MTD, the Memory Technology
Devices [driver layer].
And I think it handles them just fine, too. Did you look at
linux-mtd.infradead.org? There's lots of good info there, and it's
a lot easier than searching the mailing list. (which is useful as
well)
Mike
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
@ 2005-05-04 20:18 Vahid Fereydunkolahi
2005-05-04 20:43 ` Josh Boyer
0 siblings, 1 reply; 7+ messages in thread
From: Vahid Fereydunkolahi @ 2005-05-04 20:18 UTC (permalink / raw)
To: Michael, dedekind; +Cc: linux-mtd
I am not sure if you even understand the question, so
please behave.
The question is: if the file system supposed to
address the issue of the bad blocks then JFFS2, which
is the file system must handle the bad blocks, This
includes all the read and write operations. The only
thing MTD checks is the erase operation on the blocks.
--vahid
--- Michael <xemc@yahoo.com> wrote:
>
> --- Vahid Fereydunkolahi <fereydunk@yahoo.com>
> wrote:
> > The comment "JFFS2 handles bad blocks just fine."
> is
> > an strange comment. As far as I know the handling
> of
> > the bad blocks must be managed by the file system
> and
> > mtd device will only check for bad blocks for
> erase operation.
> >
>
> I think you just embarrased yourself. JFFS2 is
> Journalling Flash
> File System 2, which works overtop of MTD, the
> Memory Technology
> Devices [driver layer].
>
> And I think it handles them just fine, too. Did you
> look at
> linux-mtd.infradead.org? There's lots of good info
> there, and it's
> a lot easier than searching the mailing list. (which
> is useful as
> well)
>
> Mike
>
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
2005-05-04 20:18 two questions about jffs2 Vahid Fereydunkolahi
@ 2005-05-04 20:43 ` Josh Boyer
2005-05-11 21:51 ` Thomas Gleixner
0 siblings, 1 reply; 7+ messages in thread
From: Josh Boyer @ 2005-05-04 20:43 UTC (permalink / raw)
To: Vahid Fereydunkolahi; +Cc: linux-mtd
On Wed, 2005-05-04 at 13:18 -0700, Vahid Fereydunkolahi wrote:
> I am not sure if you even understand the question, so
> please behave.
Speaking of behaving, please don't top post on this list.
>
> The question is: if the file system supposed to
> address the issue of the bad blocks then JFFS2, which
> is the file system must handle the bad blocks, This
> includes all the read and write operations. The only
> thing MTD checks is the erase operation on the blocks.
Perhaps if you restate the question someone may be able to help you.
The above isn't very clear.
JFFS2 handles bad blocks. It does this by detecting a block is bad, and
then never doing anything with said block. The definition of a bad
block is that it is marked as such in the spare area at manufacturing
time. Any write/erase operation to such a block would cause this
information to be lost. Therefore, JFFS2 does not touch these blocks
during runtime.
josh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: two questions about jffs2
2005-05-04 20:43 ` Josh Boyer
@ 2005-05-11 21:51 ` Thomas Gleixner
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2005-05-11 21:51 UTC (permalink / raw)
To: Josh Boyer; +Cc: Vahid Fereydunkolahi, linux-mtd
On Wed, 2005-05-04 at 15:43 -0500, Josh Boyer wrote:
> JFFS2 handles bad blocks. It does this by detecting a block is bad, and
> then never doing anything with said block. The definition of a bad
> block is that it is marked as such in the spare area at manufacturing
> time. Any write/erase operation to such a block would cause this
> information to be lost. Therefore, JFFS2 does not touch these blocks
> during runtime.
Even if the filesystem misbehaves the nand driver in the mtd layer
refuses to write/erase bad blocks.
tglx
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-05-11 21:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-04 20:18 two questions about jffs2 Vahid Fereydunkolahi
2005-05-04 20:43 ` Josh Boyer
2005-05-11 21:51 ` Thomas Gleixner
-- strict thread matches above, loose matches on Subject: below --
2005-05-04 19:07 Michael
2005-05-04 17:32 Vahid Fereydunkolahi
2005-05-04 0:15 Vahid Fereydunkolahi
2005-05-04 8:39 ` Artem B. Bityuckiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox