Re: Writing large files onto sync mounted MMC corrupts the FS

From: Artem B. Bityuckiy
Date: Thu Jun 02 2005 - 01:54:24 EST


Lennart Sorensen wrote:
In other words: Don't use sync with flash media. It's a horribly bad
idea, and if you look into how flash works (at least the cheaper ones)
you will realize why. Anything with a limited number of writes allowed
to each sector should avoid rewriting the same sector again and again,
and that is what sync does when you use filesystems designed for disks
rather than flash. JFFS was designed for flash use and rotates the
sectors it uses to store filesystem meta data and has spare space in the
filesystem to do wearleveling at the filesystem level. vfat and ext2/3
do not, and it shows. At least write caching/delayed write back
elliminates the worst of the rewriting of the meta data sectors.

So, we should first ask whether this happens with *new* MMC cards or not.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
-
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/