Personal tools
You are here: Home Products File Systems Safe FAT File System

Safe FAT File System

Overview

In the embedded industry FAT file systems are commonly used on removable memory that needs to be read by/written to by a PC. However typical FAT (File Allocation Table) file system implementations have inherent weaknesses which can lead to file and directory corruption if the system is interrupted during a write routine. When you open a file to modify it, the normal FAT process overwrites the existing data. If the system were to reset during that process a portion of the file would have been changed before a new image was built.

RTXCfatfile-safe is a PC-compatible file system that includes a journaling system to guarantee that all file system operations will be carried out in a failsafe manner. If the system resets or loses power unexpectedly, it will return to a coherent, consistent and usable state.  The original file remains unchanged until either a file flush or file close is called. At that point the system performs an atomic switch of the file state and the new data become valid.

Features

  • FAT12, FAT16 and FAT32
  • Long filenames
  • Multiple volumes
  • Mix of media types
  • Unicode16 support
  • Media error handling
  • PC compatible
  • Multiple open files for reading/writing
  • Multiple simultaneous users of open files
  • ANSI C compliant C source
  • Standard API (fopen, fclose, fwrite, etc.)
  • Efficient zero-copy read/write
  • Caching options
  • CheckDisk utility
  • Detailed user guide

Need_help