From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "Artem B. Bityutskiy" <dedekind@yandex.ru>
Cc: Peter Menzebach <pm-mtd@mw-itcon.de>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: data loss on jffs2 filesystem on dataflash
Date: Tue, 20 Sep 2005 15:32:44 +0200 [thread overview]
Message-ID: <20050920133244.GC4634@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <433006D8.4010502@yandex.ru>
On Tue, 20 September 2005 16:55:52 +0400, Artem B. Bityutskiy wrote:
> Peter Menzebach wrote:
> >No, not at then moment. If I have some time, I can try to rewrite the
> >chipset driver, that it reports a sector size of 1024.
Don't. I'm actually glad about some flash with sizes not exactly
matching a power of two. It causes you some pain, but generally helps
to find bugs.
> I glanced at the manual. Uhh, DataFlash is very specific beast. It
> suppoers page program with built-in erase command... So DataFlash
> effectively may be considered as a block device. Then you may use any FS
> on it providing you have wrote proper driver? Why do you need JFFS2 then
> :-) ?
Still can't. Block devices have the attribute that writing AAA... to
a block containing BBB... gives you one of three possible results in
case of power failure:
1. BBB...BBB all written
2. AAA...AAA nothing written
3. AAA...BBB partially written.
Flash doesn't have 3, but two more cases:
4. FFF...FFF erased, nothing written
5. AAA...FFF erased, partially written
Plus the really obnoxious
6. FFF...FFF partially erased. Looks fine but some bits may flip
randomly, writes may not stick, etc.
Now try finding a filesystem that is robust if 4-6 happens. ;)
> JFFS2 orients to "classical" flashes. They have no "write page with
> built-in erase" operation.
What does this thing do?
> BTW, having 8*1056 write buffer is not perfect ides, better make it as
> small as possible, i.e., 1056 bytes.
Definitely.
Jörn
--
You can't tell where a program is going to spend its time. Bottlenecks
occur in surprising places, so don't try to second guess and put in a
speed hack until you've proven that's where the bottleneck is.
-- Rob Pike
next prev parent reply other threads:[~2005-09-20 13:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <432812E8.2030807@mw-itcon.de>
[not found] ` <432817FF.10307@yandex.ru>
[not found] ` <4329251C.7050102@mw-itcon.de>
[not found] ` <4329288B.8050909@yandex.ru>
[not found] ` <43292AC6.40809@mw-itcon.de>
[not found] ` <43292E16.70401@yandex.ru>
[not found] ` <43292F91.9010302@mw-itcon.de>
[not found] ` <432FE1EF.9000807@yandex.ru>
[not found] ` <432FEF55.5090700@mw-itcon.de>
2005-09-20 12:55 ` Artem B. Bityutskiy
2005-09-20 13:32 ` Jörn Engel [this message]
2005-09-20 14:11 ` Artem B. Bityutskiy
2005-09-21 19:07 ` Pavel Machek
2005-09-22 10:48 ` Artem B. Bityutskiy
2005-09-22 16:46 ` Valdis.Kletnieks
2005-09-22 17:03 ` Artem B. Bityutskiy
2005-09-22 17:22 ` linux-os (Dick Johnson)
2005-09-22 18:43 ` jscottkasten
2005-09-23 8:51 ` Jörn Engel
2005-09-22 11:34 ` Jörn Engel
2005-09-22 11:54 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050920133244.GC4634@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=dedekind@yandex.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=pm-mtd@mw-itcon.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®