Patent ID: 10445231

Abstract:
A method and system provide for storage device metadata management. The storage device metadata management method comprises: a superblock is formed of at least one erase block; the superblock reserves a space for storing metadata related to the superblock; the metadata related to the superblock comprises a serial number distributed to the superblock and address mapping information in the superblock; the address mapping information stores a mapping relationship of a physical block address to a logic block address (S1); when data is written into the superblock, the address mapping information corresponding to the data is also written into the superblock (S2); when a system is recovered, a page table of the storage system is recovered according to the address mapping information of the superblock; the page table marks a mapping relationship of a logic block address to a physical block address (S3). The above technical solution can ensure a complete recovery of the page table during startup, as well as ensure a normal operation of the storage device when started.