Data checking method and controller

By dividing the data verification range of NAND flash memory into hot and cold zones and processing them differently, the difficulty of assigning responsibility for data anomalies caused by voltage deviation is solved, and full-disk coverage verification and efficient problem localization are achieved.

CN123182738APending Publication Date: 2026-11-27ARTMEM TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611197494.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In NAND flash memory, voltage bias makes it difficult to determine responsibility for data anomalies. Existing solutions lack risk classification and global investigation, resulting in low location efficiency and blind spots in damage detection.

Method used

The data verification range is divided into cold data area and hot data area, and differentiated preprocessing and verification are performed on each, including data erasure, bitmap mechanism pre-writing and frequent operations. The positioning efficiency is improved by verifying the results from multiple dimensions.

Benefits of technology

It achieves full-coverage verification, accurately identifies the root cause of data loss in voltage deviation scenarios, and improves the efficiency and accuracy of problem location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182738A_ABST
    Figure CN123182738A_ABST
Patent Text Reader

Abstract

The application provides a data verification method and a controller, and is applied to the technical field of data verification. The method comprises the following steps: dividing a verification range into a cold data area and a hot data area; performing different preprocessing operations on the cold data area and the hot data area respectively; and performing data verification on the cold data area and the hot data area after the preprocessing operation respectively to obtain verification results. According to the application, the storage area is divided into the cold data area and the hot data area, and the differential preprocessing is performed on the cold data area and the hot data area respectively, so that the data storage state under different access frequencies can be simulated, full-disk coverage verification is realized, and the limitation of checking only the current writing area is effectively avoided. Meanwhile, the regional verification results can provide multi-dimensional reference basis for data anomalies, which is helpful to accurately define the root cause of data loss in the voltage pull-off scene, and the problem positioning efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data verification technology, and in particular to a data verification method and controller. Background Technology

[0002] In related technologies, in the actual application of NAND flash memory, voltage bias can cause data anomalies. However, existing solutions are difficult to assign responsibility, rely solely on whether the data is completely consistent for binary judgment without risk classification, and limit the scope of investigation to the current write operation, ignoring potential data risks in non-directly operated areas. This results in low efficiency in problem localization and the existence of damage blind spots. Summary of the Invention

[0003] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a data verification method and controller to achieve data verification.

[0004] In a first aspect, embodiments of this application provide a data verification method, the method comprising: A data verification method, characterized in that the method includes: The verification range is divided into cold data area and hot data area; Different preprocessing operations are performed on the cold data region and the hot data region respectively; Data verification is performed on the cold data region and the hot data region after preprocessing to obtain verification results.

[0005] According to some embodiments of this application, the different preprocessing operations performed on the cold data region and the hot data region include: Perform data erasure and bitmap mechanism pre-write operations or data erasure operations on the cold data area; Data erasure and bitmap mechanism pre-write operations are performed on the hot data region, and frequent operations are performed on the hot data region, including data writing, data erasure and data reading.

[0006] According to some embodiments of this application, the cold data region includes a first cold data region and a second cold data region, and the step of performing data erasure and bitmap mechanism pre-write operation or data erasure operation on the cold data region includes: Perform data erasure and bitmap pre-write operations on the first cold data area; Perform a data erasure operation on the second cold data area.

[0007] According to some embodiments of this application, the step of performing data verification on the cold data region and the hot data region after preprocessing to obtain verification results includes: Perform a data reading operation on the first cold data area to obtain the first read data; Data verification is performed based on the first read data to obtain the verification result of the first cold data area; Perform a data reading operation on the second cold data area to obtain the second read data; Data verification is performed based on the second read data to obtain the verification result of the second cold data area; A data reading operation is performed on the aforementioned hot data area to obtain the third read data; Data verification is performed based on the third read data to obtain the verification result of the hot data area.

[0008] According to some embodiments of this application, the step of performing data verification based on the first read data to obtain the verification result of the cold data area includes: When the first read data does not conform to the first rule, the risk level of the first cold data area is determined to be high, wherein the first rule is that the first read data cannot be zero; If the first read data does not match the reference bitmap data, the risk level of the first cold data area is determined to be high.

[0009] According to some embodiments of this application, the step of performing data verification based on the second read data to obtain the verification result of the second cold data area includes: If the second read data does not conform to the second rule, the risk level of the second cold data area is determined to be high, wherein the second rule is that the second read data must be zero.

[0010] According to some embodiments of this application, the step of performing data verification based on the third read data to obtain the verification result of the hot data area includes: If the third read data does not conform to the third rule, the risk level of the hot data area is determined to be high. The third rule states that the third read data cannot be zero. When the address of the third read data is inconsistent with the address recorded in the host bitmap, the risk level of the hot data area is determined to be low.

[0011] According to some embodiments of this application, the method further includes: If the first cold data region does not return the first read data within a first preset time range, the risk level of the first cold data region is determined to be high. If the second cold data area does not return the second read data within the second preset time range, the risk level of the second cold data area is determined to be high; If the hot data area does not return the third read data within the third preset time range, the risk level of the hot data area is determined to be high.

[0012] Secondly, embodiments of this application provide a controller, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data verification method described in the first aspect when running the computer program.

[0013] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the data verification method as described in the first aspect above.

[0014] Fourthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the data verification method as described in the first aspect above.

[0015] According to the technical solution of the embodiments of this application, at least the following beneficial effects are achieved: This application proposes a data verification method and controller, applied in the field of data verification technology. The method includes: dividing the verification range into a cold data region and a hot data region; performing different preprocessing operations on the cold data region and the hot data region respectively; and performing data verification on the cold data region and the hot data region after the preprocessing operations to obtain verification results. By dividing the storage area into cold and hot data regions and performing differentiated preprocessing on each, this application can simulate the data storage state under different access frequencies, achieve full-disk coverage verification, and effectively avoid the limitations of only checking the current write area. At the same time, the regional verification results can provide multi-dimensional reference for data anomalies, which helps to accurately determine the root cause of data loss in voltage deviation scenarios and improves the efficiency of problem location.

[0016] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0017] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0018] Figure 1This is a flowchart illustrating a data verification method provided in one embodiment of this application; Figure 2 This is a flowchart illustrating a data verification method provided in another embodiment of this application; Figure 3 This is a flowchart illustrating a data verification method provided in another embodiment of this application; Figure 4 This is a flowchart illustrating a data verification method provided in another embodiment of this application; Figure 5 This is a flowchart illustrating a data verification method provided in an overall embodiment of this application; Figure 6 This is a schematic diagram of a controller for performing a data verification method according to an embodiment of this application. Detailed Implementation

[0019] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0020] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0021] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0022] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.

[0023] In some cases, voltage bias is one of the important causes of data anomalies or loss in the actual application of NAND flash memory.

[0024] The following technical issues exist: 1. Difficulty in assigning blame: When the host detects suspected data loss, it is difficult to quickly determine whether the root cause is an abnormality in data management on the host side or an abnormality in storage control at the firmware level. This results in a significant time cost being spent on assigning blame and troubleshooting, leading to low efficiency in problem localization.

[0025] 2. The current data verification method uses a simplistic "binary judgment" model, comparing the read data bit-by-bit with the bitmap data recorded on the host, focusing solely on whether the data is completely identical. This either-or approach has significant flaws: Furthermore, the lack of quantitative grading of data error severity means that the risk level of all data anomalies cannot be determined. 3. Limited scope of troubleshooting voltage bias: Current technology for troubleshooting the impact of voltage bias only focuses on whether a problem has occurred in the "current write operation," which is a passive "point-to-point" troubleshooting mode. However, voltage bias during the write process may cause data corruption of existing data.

[0026] The relevant technologies neglect data monitoring in these "non-operational data" areas, resulting in blind spots that pose a risk of data corruption.

[0027] Based on the above, this application proposes a data verification method and controller, which aims to achieve data verification.

[0028] The following description, in conjunction with the accompanying drawings, further elaborates on various embodiments of a data verification method according to this application.

[0029] like Figure 1 As shown, Figure 1 This is a flowchart illustrating a data verification method provided in one embodiment of this application; the data verification method may include, but is not limited to, steps S110, S120, and S130.

[0030] Step S110: Divide the verification range into cold data area and hot data area; Step S120: Perform different preprocessing operations on the cold data region and the hot data region respectively; Step S130: Perform data verification on the cold data area and hot data area after preprocessing to obtain the verification results.

[0031] In one embodiment, the verification range is divided into a cold data region and a hot data region; different preprocessing operations are performed on the cold data region and the hot data region respectively; data verification is then performed on the cold data region and the hot data region after the preprocessing operations to obtain the verification results. This application, by dividing the storage area into cold and hot data regions and performing differentiated preprocessing on each, can simulate data storage states under different access frequencies, achieving full-disk coverage verification and effectively avoiding the limitations of only checking the currently written area. Simultaneously, the regional verification results can provide multi-dimensional reference for data anomalies, helping to accurately determine the root cause of data loss in voltage deviation scenarios and improving problem location efficiency.

[0032] For example, the data verification range can be the entire size of the eMMC, thereby dividing the verification range into regions, namely cold data regions and hot data regions.

[0033] In addition, it is understandable that, such as Figure 2 As shown, Figure 2 This is a flowchart illustrating a data verification method provided in another embodiment of this application; regarding the above step S120, steps S210 and S220 may also be included, but are not limited to.

[0034] Step S210: Perform data erasure and bitmap mechanism pre-write operation or data erasure operation on the cold data area; Step S220: Perform data erasure and bitmap mechanism pre-write operations on the hot data area, and perform frequent operations on the hot data area, including data writing, data erasure and data reading.

[0035] It is understandable that after the data erasure operation is performed on the cold data area, a bitmap mechanism pre-write operation is also performed; or, only the data erasure operation is performed on the cold data area; after the data erasure and bitmap mechanism pre-write operation are performed on the hot data area, frequent operations are still required, including data writing, data erasure and data reading.

[0036] In addition, it is understandable that, such as Figure 3 As shown, Figure 3 This is a flowchart illustrating a data verification method provided in another embodiment of this application; regarding the above step S210, steps S310 and S320 may also be included, but are not limited to.

[0037] Step S310: Perform data erasure and bitmap mechanism pre-write operations on the first cold data area; Step S320: Perform a data erasure operation on the second cold data area.

[0038] It is understandable that the cold data area is divided into a first cold data area and a second cold data area. After the data erasure operation is performed in the first cold data area, a bitmap mechanism pre-write operation is also required; while the second cold data area only performs a data erasure operation.

[0039] In addition, it is understandable that, such as Figure 4 As shown, Figure 4 This is a flowchart illustrating a data verification method provided in another embodiment of this application; regarding the above step S130, it may also include, but is not limited to, steps S410, S420, S430, S440, S450 and S460.

[0040] Step S410: Perform a data reading operation on the first cold data area to obtain the first read data; Step S420: Perform data verification based on the first read data to obtain the verification result of the first cold data area; Step S430: Perform a data reading operation on the second cold data area to obtain the second read data; Step S440: Perform data verification based on the second read data to obtain the verification result of the second cold data area; Step S450: Perform a data reading operation on the hot data area to obtain the third read data; Step S460: Perform data verification based on the third read data to obtain the verification result of the hot data area.

[0041] It is understandable that by performing data reading operations on the first cold data region, the second cold data region, and the hot data region respectively, the obtained data reading results are verified to obtain the verification results.

[0042] Understandably, if the first read data does not conform to the first rule, the risk level of the first cold data region is determined to be high. The first rule states that the first read data cannot be zero. For example, if the first read data is zero, it indicates a failure in the eMMC's data persistence or data integrity functions, and the risk level is high.

[0043] Understandably, if the first read data does not match the reference bitmap data, the risk level of the first cold data area is determined to be high. For example, if the first read data does not match the reference bitmap data, it indicates that the eMMC has a failure in data persistence or data integrity functionality, and the risk level is high. The reference bitmap data can be bitmap data recorded by the host.

[0044] Understandably, if the second read data does not conform to the second rule, the risk level of the second cold data region is determined to be high, whereby the second read data must be zero. For example, after frequent operations in the hot data region, if the second cold data region shows a non-zero, non-one value, it indicates a potential problem such as damage to the mapping table due to voltage drops or charge leakage, thus indicating a high risk level.

[0045] Understandably, if the third read data does not conform to the third rule, the risk level of the hot data area is determined to be high. The third rule is that the third read data cannot be zero.

[0046] Understandably, if the address of the third read data does not match the address recorded in the host bitmap, the risk level of the hot data area is determined to be low. For example, if the address of the third read data does not match the address recorded in the host bitmap, it indicates that the hot data area may have experienced occasional write errors due to frequent operations, and the risk level is low.

[0047] It is understandable that if the first cold data area does not return the first read data within the first preset time range, the risk level of the first cold data area is determined to be high; for example, if the first cold data area does not return the first read data within the first preset time range, that is, the timeout occurs when reading data from the first cold data area, the risk level of the first cold data area is determined to be high.

[0048] It is understandable that if the second cold data area does not return the second read data within the second preset time range, the risk level of the second cold data area is determined to be high; for example, if the second cold data area does not return the second read data within the second preset time range, that is, the data read from the second cold data area times out, the risk level of the second cold data area is determined to be high.

[0049] Understandably, if the hot data area does not return the third read data within the third preset time range, the risk level of the hot data area is determined to be high; for example, if the hot data area does not return the third read data within the third preset time range, i.e., the data read from the hot data area times out, the risk level of the hot data area is determined to be high.

[0050] It is understood that the first preset time range, the second preset time range, and the third preset time range mentioned above can be set according to actual needs, and the embodiments of this application do not impose specific limitations on them.

[0051] Based on the data verification methods described in the above embodiments, the following presents various overall embodiments of the data verification methods.

[0052] like Figure 5 As shown, Figure 5This is a flowchart illustrating a data verification method provided in an overall embodiment of this application.

[0053] The data verification range is the entire size of the eMMC disk, and the entire disk is divided into: cold data areas (i.e. Figure 5 Regions 1 and 3 in the data) and the hot data region (i.e. Figure 5 Region 2 in the middle).

[0054] Area 1: After a full data erase (ERASE) is performed, a bitmap mechanism is used to perform a write-ahead operation.

[0055] Area 2: After a full data erase and a bitmap mechanism pre-write, operations are frequently performed in this area.

[0056] Area 3: Only a full data erase operation was performed.

[0057] Data validation rules: 1. If a read timeout occurs in any area, the risk level of data error is marked as high.

[0058] 2. Data in Region 1 and Region 2 must never be 0. Also, as Region 1 is an area that is only operated on once, the data must conform to the bitmap data recorded on the host. If the data verification finds that it does not conform to the rules, the risk level of the data error will be marked as high.

[0059] 3. Data in region 3 must be 0; no data is allowed. If data verification finds that the data does not conform to the rules, the risk level of the data error will be marked as high.

[0060] 4. The address in the data read from region 2 must be consistent with the address recorded in the host bitmap. If the data verification finds that it does not conform to the rules, it indicates that there may be occasional write errors due to frequent operations, and the risk level of the data error is marked as low.

[0061] High-risk assessment principles: The level of risk is determined by relating it to real-world usage scenarios: 1. After frequent voltage drops in region 2, the read timeout during full disk read verification is likely related to ECC errors. In a real-world scenario, this would indicate a risk of application crashes and system lag.

[0062] 2. After a full data erase, region 1, which has only been written to once, is equivalent to simulating the system region. If the eMMC modifies the data without notification from the host, or if data is zeroed out, it will be considered that the eMMC has failed in its data persistence or data integrity functions. In a real-world scenario, this is considered a risk of the eMMC becoming unusable (or bricked).

[0063] The data in region 3 has remained inactive since the data was erased. If frequent voltage drops occur in region 2, resulting in non-zero and non-1 values ​​in the addresses of region 3, this could be due to issues such as corrupted mapping tables or charge leakage caused by the voltage drops. In a real-world scenario, this suggests a risk of old and new data being mixed, and corruption of file system metadata.

[0064] For example, after obtaining the eMMC capacity, and planning the sizes of the three regions for the entire disk, pre-writing with a bitmap mechanism is performed on regions 1 and 2. The data is unique because it contains addresses. After performing a voltage drop test (during the write process) on region 2, where the VCC voltage ranges from 1.8V to 3.3V and the VCCQ voltage ranges from 1.5V to 1.8V, data verification is performed on regions 1, 2, and 3. The verification rules are: The data read from region 1 should match the bitmap data recorded on the host (i.e., not 0).

[0065] The data read from region 3 should be the data specified in the ERASE protocol, and cannot be a value that is neither 0 nor 1.

[0066] The address in the data read from region 2 (i.e., non-zero) should be the same as the address recorded in the host bitmap.

[0067] Based on the data verification methods of the above embodiments, the following presents various embodiments of the controller, computer-readable storage medium, and computer program product of this application.

[0068] like Figure 6 As shown, Figure 6 This is a schematic diagram of a controller for performing a data verification method according to an embodiment of this application. The controller 700 implemented in this application includes: a processor 710, a memory 720, and a computer program stored in the memory 720 and executable on the processor 710, wherein... Figure 6 The example uses a processor 710 and a memory 720.

[0069] The processor 710 and memory 720 can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.

[0070] Memory 720, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 720 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 720 may optionally include remotely located memories 720 relative to processor 710, which can be connected to controller 700 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0071] Those skilled in the art will understand that Figure 6 The device structure shown does not constitute a limitation on the controller 700 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0072] exist Figure 6 In the controller 700 shown, the processor 710 can be used to call the control program stored in the memory 720 to implement the data verification method described above. Specifically, the non-transitory software program and instructions required to implement the data verification method of the above embodiment are stored in the memory 720, and when executed by the processor 710, the data verification method of the above embodiment is executed.

[0073] It is worth noting that since the controller 700 of this application embodiment can execute the data verification method of any of the above embodiments, the specific implementation method and technical effect of the controller 700 of this application embodiment can refer to the specific implementation method and technical effect of the data verification method of any of the above embodiments.

[0074] Furthermore, one embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions for performing the data verification method described above. Exemplarily, the above-described method is executed... Figures 1 to 5 The methods and steps in the text.

[0075] It is worth noting that, since the computer-readable storage medium of this application embodiment can execute the data verification method of any of the above embodiments, the specific implementation and technical effects of the computer-readable storage medium of this application embodiment can be referred to the specific implementation and technical effects of the data verification method of any of the above embodiments.

[0076] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the data verification method described above. Exemplarily, the above-described method is performed... Figures 1 to 5 The methods and steps in the text.

[0077] It is worth noting that, since the computer program product of this application embodiment can execute the data verification method of any of the above embodiments, the specific implementation method and technical effect of the computer program product of this application embodiment can refer to the specific implementation method and technical effect of the data verification method of any of the above embodiments.

[0078] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0079] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0080] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0081] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.

[0082] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.

Claims

1. A data verification method, characterized in that, The method includes: The verification range is divided into cold data area and hot data area; Different preprocessing operations are performed on the cold data region and the hot data region respectively; Data verification is performed on the cold data region and the hot data region after preprocessing to obtain verification results.

2. The method according to claim 1, characterized in that, The different preprocessing operations performed on the cold data region and the hot data region include: Perform data erasure and bitmap mechanism pre-write operations or data erasure operations on the cold data area; Data erasure and bitmap mechanism pre-write operations are performed on the hot data region, and frequent operations are performed on the hot data region, including data writing, data erasure and data reading.

3. The method according to claim 2, characterized in that, The cold data region includes a first cold data region and a second cold data region. The step of performing data erasure and bitmap mechanism pre-write operations or data erasure operations on the cold data region includes: Perform data erasure and bitmap pre-write operations on the first cold data area; Perform a data erasure operation on the second cold data area.

4. The method according to claim 3, characterized in that, The process of performing data verification on the cold data region and the hot data region after preprocessing to obtain verification results includes: Perform a data reading operation on the first cold data area to obtain the first read data; Data verification is performed based on the first read data to obtain the verification result of the first cold data area; Perform a data reading operation on the second cold data area to obtain the second read data; Data verification is performed based on the second read data to obtain the verification result of the second cold data area; A data reading operation is performed on the aforementioned hot data area to obtain the third read data; Data verification is performed based on the third read data to obtain the verification result of the hot data area.

5. The method according to claim 4, characterized in that, The step of performing data verification based on the first read data to obtain the verification result of the cold data area includes: When the first read data does not conform to the first rule, the risk level of the first cold data area is determined to be high, wherein the first rule is that the first read data cannot be zero; If the first read data does not match the reference bitmap data, the risk level of the first cold data area is determined to be high.

6. The method according to claim 5, characterized in that, The step of performing data verification based on the second read data to obtain the verification result of the second cold data area includes: If the second read data does not conform to the second rule, the risk level of the second cold data area is determined to be high, wherein the second rule is that the second read data must be zero.

7. The method according to claim 4, characterized in that, The step of performing data verification based on the third read data to obtain the verification result of the hot data area includes: If the third read data does not conform to the third rule, the risk level of the hot data area is determined to be high. The third rule states that the third read data cannot be zero. When the address of the third read data is inconsistent with the address recorded in the host bitmap, the risk level of the hot data area is determined to be low.

8. The method according to claim 4, characterized in that, The method further includes: If the first cold data region does not return the first read data within a first preset time range, the risk level of the first cold data region is determined to be high. If the second cold data area does not return the second read data within the second preset time range, the risk level of the second cold data area is determined to be high; If the hot data area does not return the third read data within the third preset time range, the risk level of the hot data area is determined to be high.

9. A controller, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the data verification method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The device stores computer-executable instructions for performing the data verification method as described in any one of claims 1 to 8.