* JFFS & MTDBLOCK
@ 2002-06-18 15:29 Chris AtLee
2002-06-18 15:37 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Chris AtLee @ 2002-06-18 15:29 UTC (permalink / raw)
To: Linux MTD
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
Hi,
Just re-reading the mtd-jffs HOWTO to see if I can glean any additional
information from it and I noticed the paragraphs that read,
"You must use (for all practical purposes that involve writing) JFFS on
raw flash MTD devices. This is because JFFS provides a robust writing
and wear leveling mechanism. See FAQ for more info.
If you only want the file-system to be writable while you're developing,
but will ship the units read-only, it's acceptable to use the MTDBLOCK
device, which performs writes by reading the entire erase block, erasing
it, changing the range of bytes which were written to, and writes it
back to the flash. Obviously that's not something you want happening in
production, but for development it's OK."
I'm not sure that I understand what this means...
Does it mean that for production units where you want the filesystem to
be writeable you should use JFFS on a non-MTDBLOCK device?
Or does it mean that using a filesystem other than JFFS for writing to a
MTDBLOCK device is probably a bad idea?
Thanks,
Chris
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: JFFS & MTDBLOCK
2002-06-18 15:29 JFFS & MTDBLOCK Chris AtLee
@ 2002-06-18 15:37 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2002-06-18 15:37 UTC (permalink / raw)
To: Chris AtLee; +Cc: Linux MTD
catlee@canada.com said:
> I'm not sure that I understand what this means...
> Does it mean that for production units where you want the filesystem
> to be writeable you should use JFFS on a non-MTDBLOCK device?
> Or does it mean that using a filesystem other than JFFS for writing to
> a MTDBLOCK device is probably a bad idea?
It means the latter. When you mount JFFS/JFFS2 on an mtdblock device, it
doesn't actually _use_ the read/modify/erase/writeback algorithm described
-- or indeed use the mtdblock driver at all -- it just uses the minor
number of the mtdblock device you specified to get a handle on the real
underlying MTD device.
Using any _other_ file system than JFFS/JFFS2 on the mtdblock device other
than in read-only mode is a bad idea.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-18 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-18 15:29 JFFS & MTDBLOCK Chris AtLee
2002-06-18 15:37 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox