Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: FAT file system ==>warning

2004-09-24 by Alaric Snell-Pym

Gus wrote:
> Hi,
> 
> ALFAT chip does save both FAT tables (if media is formatted with 2 
> tables) so if one got corrupted the second will be fine. I can't see 
> how FAT can be a problem! If you lose power on ANY file system you 
> will lose data. Simply close all open file handles and no data would 
> be lost.

There are file system layouts that avoid that problem - transactional 
ones, for example, tend to have a commit operation. If the power fails 
before you commit, or during the commit, then when it comes back up the 
filesystem is untouched - it was as it was at the end of the last 
successful commit. Changes made since that commit are lost, yes, but 
they weren't comitted, so the filesystem has not yet "promised" their 
safekeeping, and the existing data is never mangled due to filesystem 
inconsistency caused by the power failure.

Log-structured and journalling filesystems have this property - and log 
structured file systems can be good for FLASH memory, too, since they 
tend to spread writes out evenly!

However, they're not as widely supported as FAT, by any stretch of the 
imagination. So good for local storage only, rather than interchange, in 
general.

ABS

-- 
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/categories/alaric/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.