The application provides a
file management method based on a
soft core on-board high-speed
solid storage, which comprises the following steps: dividing a
solid storage logical space into a
metadata fixed block area and a data block area, dividing the data block area according to a fixed
block size and managing the data block area according to a
block number; establishing a super block, a
directory table, a file table, a free block
linked list and a file
block number sequence of each file in a memory; serializing the above structure to generate a
metadata mirror, writing the
metadata mirror into the metadata fixed block area and saving multiple redundant copies; when power is restored, reading the multiple copies to make a consistency judgment, selecting an effective mirror to analyze and rebuilding a memory index structure. Through integrated storage of metadata and data, the application avoids the life and reliability risks caused by storing metadata in an independent and vulnerable medium in a traditional scheme; a multiple-copy redundancy and consistency judgment mechanism is adopted to realize quick
recovery after power failure; through a rebuilding mechanism of the memory index, the consistency of a
file system state and physical data is ensured, and the reliability of an on-board storage
system is improved.