Method for processing data errors, and device and system for checking and correcting data errors
A technology for data errors and processing methods, applied in the storage field, can solve the problems of inability to correct errors, data unrecoverable, data error correction, etc., and achieve the effect of avoiding irreversible errors
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2010-06-16
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of storage technology, in particular to a data error processing method, a data error checking and correcting device and system. Background technique
[0002] Error Checking and Correcting (ECC) is an algorithm that can judge and correct data errors, and the number of data error bits that it can correct is fixed. When the number of erroneous bits in the data block exceeds the number of bits that can be corrected by the ECC module, the ECC cannot correct the data error, which will cause the loss of user data block data, which cannot be recovered.
[0003] In the prior art, when the ECC module checks out data bit errors, if the number of erroneous bits is less than the maximum number of bits that can be corrected by the ECC module, the ECC module automatically repairs the corresponding erroneous bits; if the number of erroneous bits is greater than the ECC If the module can correct the maximum number of bits, the physic...
Examples
Embodiment 1
[0030] This embodiment describes a data error processing method, which is a method of processing according to the number of erroneous bits in a data block when ECC is used for error correction, and will be described in detail below with reference to the accompanying drawings.
[0031] see figure 1 , the method of this embodiment may include the following steps:
[0032] Step 101: Acquiring the number of bits with errors in the data block;
[0033] Before step 101, a step may also be included: judging whether the above-mentioned data block is sent incorrectly, if an error occurs, then obtain the number of bits in the data block that has errors, if no error occurs, then perform the data processing on the data block according to the normal data processing method Subsequent processing.
[0034] Step 102: judging whether the number of erroneous bits is greater than or equal to a preset threshold, and the preset threshold is smaller than the maximum number of bits that can be corr...
Embodiment 2
[0045] This embodiment describes a method for processing data errors. Through this method, occurrence of uncorrectable errors can be effectively avoided, thereby avoiding loss of user data and erroneous modification of user data.
[0046] Describe in detail below in conjunction with accompanying drawing, see figure 2 , the method of this embodiment may include the following steps:
[0047] Step 201: judge whether the data block is in error, when judging that the data block is in error, execute step 202, and when judging that the data block is not in error, execute step 203;
[0048] During the implementation of the ECC algorithm, judging whether there is an error in the data block can be achieved by the following methods:
[0049] The first is to add a check bit to the original data bit. The length of the check bit is proportional to the maximum number of bits that can be corrected by ECC; then the data bit is transmitted or stored together with the check bit. When the user re...