data loss on jffs2 filesystem on dataflash
Artem B. Bityutskiy
dedekind at infradead.org
Tue Sep 20 10:48:04 EDT 2005
On Tue, 2005-09-20 at 16:36 +0200, Jörn Engel wrote:
> Image this block contains the used block bitmap of ext2. All blocks
> handled with this bitmap are free, so the complete block contains
> zeroes. Now we allocate a single block, writing a single one to the
> bitmap. When writing, a power failure happens right after the erase:
>
> Before:
> 00000000000
>
> After:
> FFFFFFFFFF
>
> Gee, every single block is used now. Good thing this happened to the
> block bitmap, so we only lost some space on the fs. Somewhere else,
> we'd have data corruption.
>
> Any hard disk filesystem will suffer some kind of corruption in such a
> case. They heavily depend on the non-existance of 4-6.
Oh OK, Got it, thanks.
> > P.S. I actually missed the mailing list, this should have gone to the
> > MTD ML. So let's move there please.
>
> As always. You fuck it up, I get to fix it. ;)
hehe :-)
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
More information about the linux-mtd
mailing list