Not updating the fat right away is key. If done right, you will only lose the file(s) you were writing if you kill power to the device.
On Wed, Apr 1, 2009 at 10:51 AM, Lennart Sorensen < [email protected]> wrote: > On Wed, Apr 01, 2009 at 04:46:34PM +0200, Michael Schnell wrote: > > Jim Donelson wrote: > >> No, it is not the erase block size. Yes, the _erase_ blocks are much > >> larger, and there lies the problem. If you don't do multiple block > >> writes for consecutive sectors, you will end up causing an erase for > >> each block you write on the erase sized block. > >> It will also be very slow. > > .... and when the FAT file system writes updates to the FAT with every > > 512by of data these FAT entries are all done to the same erase block, > > killing a non-wear-leveling device very quickly and causing a more > > intelligent device do long lasting housekeeping. > > Which is why mounting flash cards with the sync option is a very bad idea. > So don't do that. The fat filesystem doesn't require updating the fat > right away. Certainly on linux the fat filesystem driver doesn't do it, > unless you enable sync as well. > > -- > Len Sorensen > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev >
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
