At step S1, file reconfiguration starts. At step S2, a block is fetched, and at step S3, a determination is made as to whether or not the fetched block is a valid block. If the block is not a valid block (NO), the process proceeds to step S8. If the block is a valid block (YES), the process proceeds to step S4, at which block information is read in. At step S5, a determination is made as to whether or not the file ID written in the read block information is a new file ID. If the file ID is a new file ID (YES), the file ID is registered at step S6, and the process proceeds to step S7. If the file ID is not a new file ID (NO), the process likewise proceeds to step S7, at which this block is added to the corresponding file ID. Then, at step S8, a determination is made as to whether or not the
processing of all blocks is completed. If the
processing of all blocks is not completed (NO), the process returns to step S2. If the
processing of all blocks is completed (YES), the generation processing for the file configuration information is terminated. These information items are registered in a file configuration
information storage area of RAM. At step S9, the information registered in the file configuration
information storage area of the RAM is read out, and the file ID is taken out. A determination is made as to whether or not all blocks are present in the file having this file ID (at step S10). If all blocks are present (YES), the process proceeds to step S11, at which the file configuration information of the corresponding file ID is validated. Then, or also when all blocks are not present (NO), the process proceeds to step S12, at which a determination is made as to whether or not the processing of all file IDs is completed. If the processing of all file IDs is not completed (NO), the process returns to step S9, and the same processing is repeated. If the processing of all file IDs is completed (YES), the file reconfiguration is completed at step S13. This enables providing a
file system capable of executing a high-speed initialization processing.