public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 internals question
@ 2003-08-14 11:42 "David Müller (ELSOFT AG)"
  2003-08-14 11:47 ` David Woodhouse
  0 siblings, 1 reply; 7+ messages in thread
From: "David Müller (ELSOFT AG)" @ 2003-08-14 11:42 UTC (permalink / raw)
  To: linux-mtd

Hello

As i'm not a JFFS2 guru i hope someone familar with the JFFS2 internals
could answer this question:

Situation:

JFFS2 filesystem on a NAND flash device:


Is it true that the read calls emitted from the JFFS2 code to the MTD HW
driver do not cross NAND block boundries (nand_read_ecc() has its start
and end point of reading in the same NAND block)?

TIA

Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 11:42 JFFS2 internals question "David Müller (ELSOFT AG)"
@ 2003-08-14 11:47 ` David Woodhouse
  2003-08-14 12:15   ` "David Müller (ELSOFT AG)"
  0 siblings, 1 reply; 7+ messages in thread
From: David Woodhouse @ 2003-08-14 11:47 UTC (permalink / raw)
  To: "David Müller (ELSOFT AG)"; +Cc: linux-mtd

On Thu, 2003-08-14 at 12:42, "David Müller (ELSOFT AG)" wrote:
> Is it true that the read calls emitted from the JFFS2 code to the MTD HW
> driver do not cross NAND block boundries (nand_read_ecc() has its start
> and end point of reading in the same NAND block)?

I'd first like to know why you think you need the answer to this... :)

-- 
dwmw2

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 11:47 ` David Woodhouse
@ 2003-08-14 12:15   ` "David Müller (ELSOFT AG)"
  2003-08-14 12:21     ` David Woodhouse
  0 siblings, 1 reply; 7+ messages in thread
From: "David Müller (ELSOFT AG)" @ 2003-08-14 12:15 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-mtd

David Woodhouse wrote:
> On Thu, 2003-08-14 at 12:42, "David Müller (ELSOFT AG)" wrote:
> 
>>Is it true that the read calls emitted from the JFFS2 code to the MTD HW
>>driver do not cross NAND block boundries (nand_read_ecc() has its start
>>and end point of reading in the same NAND block)?
> 
> 
> I'd first like to know why you think you need the answer to this... :)
> 

I need it to test a theory.


Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 12:15   ` "David Müller (ELSOFT AG)"
@ 2003-08-14 12:21     ` David Woodhouse
  2003-08-14 12:34       ` jasmine
  2003-08-14 12:35       ` "David Müller (ELSOFT AG)"
  0 siblings, 2 replies; 7+ messages in thread
From: David Woodhouse @ 2003-08-14 12:21 UTC (permalink / raw)
  To: "David Müller (ELSOFT AG)"; +Cc: linux-mtd

On Thu, 2003-08-14 at 13:15, "David Müller (ELSOFT AG)" wrote:
> David Woodhouse wrote:
> > On Thu, 2003-08-14 at 12:42, "David Müller (ELSOFT AG)" wrote:
> > 
> >>Is it true that the read calls emitted from the JFFS2 code to the MTD HW
> >>driver do not cross NAND block boundries (nand_read_ecc() has its start
> >>and end point of reading in the same NAND block)?
> > 
> > 
> > I'd first like to know why you think you need the answer to this... :)
> > 
> 
> I need it to test a theory.

I think we do make read calls which cross a page boundary, yes.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 12:21     ` David Woodhouse
@ 2003-08-14 12:34       ` jasmine
  2003-08-14 12:35       ` "David Müller (ELSOFT AG)"
  1 sibling, 0 replies; 7+ messages in thread
From: jasmine @ 2003-08-14 12:34 UTC (permalink / raw)
  To: David Woodhouse; +Cc: "David Müller, linux-mtd


David wrote:

> I think we do make read calls which cross a page boundary, yes.

And the inability to handle such calls was the reason that the
old DiskOnChip driver didn't work with jffs2, as I recall.

-Jasmine.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 12:21     ` David Woodhouse
  2003-08-14 12:34       ` jasmine
@ 2003-08-14 12:35       ` "David Müller (ELSOFT AG)"
  2003-08-14 12:56         ` David Woodhouse
  1 sibling, 1 reply; 7+ messages in thread
From: "David Müller (ELSOFT AG)" @ 2003-08-14 12:35 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-mtd

David Woodhouse wrote:
> On Thu, 2003-08-14 at 13:15, "David Müller (ELSOFT AG)" wrote:
> 
>>David Woodhouse wrote:
>>
>>>On Thu, 2003-08-14 at 12:42, "David Müller (ELSOFT AG)" wrote:
>>>
>>>
>>>>Is it true that the read calls emitted from the JFFS2 code to the MTD HW
>>>>driver do not cross NAND block boundries (nand_read_ecc() has its start
>>>>and end point of reading in the same NAND block)?
>>>
>>>
>>>I'd first like to know why you think you need the answer to this... :)
>>>
>>
>>I need it to test a theory.
> 
> 
> I think we do make read calls which cross a page boundary, yes.
> 

Sorry, i was talking about block boundary, not page boundary. Or is it
just a typo?


Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: JFFS2 internals question
  2003-08-14 12:35       ` "David Müller (ELSOFT AG)"
@ 2003-08-14 12:56         ` David Woodhouse
  0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2003-08-14 12:56 UTC (permalink / raw)
  To: "David Müller (ELSOFT AG)"; +Cc: linux-mtd

On Thu, 2003-08-14 at 13:35, "David Müller (ELSOFT AG)" wrote:
> Sorry, i was talking about block boundary, not page boundary. Or is it
> just a typo?

Oh, sorry. We'll not read over _logical_ eraseblock boundaries but on
large chips we may artificially increase the eraseblock size to be 2* or
4* the physical eraseblock size, to reduce the number of 'struct
jffs2_eraseblock' we have to allocate. In that case, yes, we'll be
reading across eraseblock boundaries.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-14 12:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14 11:42 JFFS2 internals question "David Müller (ELSOFT AG)"
2003-08-14 11:47 ` David Woodhouse
2003-08-14 12:15   ` "David Müller (ELSOFT AG)"
2003-08-14 12:21     ` David Woodhouse
2003-08-14 12:34       ` jasmine
2003-08-14 12:35       ` "David Müller (ELSOFT AG)"
2003-08-14 12:56         ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox