Re: data loss on jffs2 filesystem on dataflash

From: Jörn Engel
Date: Fri Sep 23 2005 - 03:52:14 EST


On Thu, 22 September 2005 12:46:33 -0400, Valdis.Kletnieks@xxxxxx wrote:
> On Thu, 22 Sep 2005 14:48:39 +0400, "Artem B. Bityutskiy" said:
>
> > Joern meant that if HDD starts a block write operation, it will
> > accomplish it even if power-fail happens (probably there are some
> > capacitors there). So, it is impossible, say, that HDD has written one
> > half of a sector and has not written the other half.
>
> Hard drives contain capacitors to prevent writing of runt sectors on
> a powerfail? Didn't we go around this a while ago and decide it's mostly
> urban legend, and that plenty of people have seen runt/bad sectors?

Yep. I did _not_ say anything about finishing to write a sector.
What I said was that there is only one case of a started and
unfinished sector: it contains partially old and partially new data
and nothing else.

And the difference (one of them, at least) between hard disks and
flash is the "and nothing else" part. Flash may contain other
information as well or even be in a partially erased state, randomly
flipping bits in the future or not accepting writes.

Jörn

--
When in doubt, use brute force.
-- Ken Thompson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/