Effective data search method and nandflash storage device based on nandflash
A technology for effective data and storage devices, applied in the field of memory, can solve the problems of slow search for effective data, waste of resources, etc., and achieve the effects of strong practicability, improved efficiency, and improved performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] figure 1 This is a flowchart of a method for searching valid data based on NAND flash provided in Embodiment 1 of the present invention. This embodiment can be applied to a NAND flash storage device, and the method can be executed by the firmware of the NAND flash storage device.
[0043] The method of Embodiment 1 of the present invention specifically includes:
[0044] S101. Acquire the reverse mapping relationship between the physical address and the logical address of the target data stored in the data block according to the reverse mapping table stored in the data block.
[0045] Specifically, in a NAND flash storage device, at least one data block is included, and data in the data block is accessed in units of pages. Each block can include multiple programmable pages, such as 32 pages, 64 pages, etc., each A page can contain 528 bytes, 2112 bytes, etc. Each data block includes a mapping table of the reverse mapping relationship of the data in the data block, tha...
Embodiment 2
[0055] figure 2 This is a flowchart of a method for finding valid data in a NAND flash provided in Embodiment 2 of the present invention. In Embodiment 2, on the basis of Embodiment 1, the data blocks are The operation of the reverse mapping relationship between the physical address and the logical address of the stored target data will be further described. In this embodiment, the reverse mapping table is stored as an array of reverse mapping tables, and each item of the array is a logical address of data stored in the data block.
[0056] like figure 2 As shown, the method of the second embodiment of the present invention specifically includes:
[0057] S1011. Acquire, according to the reverse mapping table array, the number of items of the target data in the reverse mapping table array and the logical address of the target data.
[0058] Specifically, according to the reverse mapping table array stored in the data block, and according to the rule that the page where th...
Embodiment 3
[0066] image 3 This is a flow chart of a method for finding valid data of a NAND flash provided in Embodiment 3 of the present invention. On the basis of Embodiment 1, Embodiment 3 maps the forward mapping stored from the mapping table block according to the reverse mapping relationship. The operation of obtaining the forward mapping relationship between the logical address and the physical address of the target data in the table will be further described. like image 3 As shown, the method of the third embodiment of the present invention specifically includes:
[0067] S101. Acquire the reverse mapping relationship between the physical address and the logical address of the target data stored in the data block according to the reverse mapping table stored in the data block.
[0068] S1021. Obtain an index table of a forward mapping table, wherein the index table uses a logical address as an index to record the position of the mapping table entry in the mapping table block ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


