A system for enhancing the reliability of file systems is provided. In
particular embodiments, the system includes a data storage device that
includes one or more journal blocks, one or more primary metadata blocks,
and one or more mirror metadata blocks. The system also includes a file
system that writes metadata to the one or more journal blocks before
writing the metadata to both the one or more primary metadata blocks and
to the one or more mirror metadata blocks.