Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A flash file
system is a file system designed for storing files on flash memory
devices. These are becoming more prevalent as the number of mobile
devices is increasing, the cost per memory size decreases, and the
capacity of flash memories increases. While a block device layer can
emulate a disk drive so that a disk file system can be used on a flash
device, this is suboptimal for several reasons: Erasing blocks: Flash
memory blocks have to be explicitly erased before they can be written
to. The time taken to erase blocks can be significant, thus it is
beneficial to erase unused blocks while the device is idle. Random
access: Disk file systems are optimized to avoid disk seeks whenever
possible, due to the high cost of seeking. Flash memory devices impose
no seek latency. Wear leveling: Flash memory devices tend to wear out
when a single block is repeatedly overwritten; flash file systems are
designed to spread out writes evenly. Log-structured file systems have
all the desirable properties for a flash file system. Such file systems
include JFFS2 and YAFFS.