Data accessing method
First Claim
1. A method for accessing data from a storage medium according to requirements of a host, the storage medium storing a plurality of data blocks, wherein each of the data blocks comprises a plurality of data sectors and an error correction code (ECC) for recovering errors of the each of the data blocks, and each of the data sectors comprises an error detection code (EDC) for detecting correctness of the each of the data sectors, the method comprising steps of:
- fetching a data block from the data blocks of the storage medium;
recovering errors of the data block by the ECC of the data block;
detecting correctness of each data sector of the data block by the EDC of the each data sector of the data block; and
performing following sub-steps when at least one incorrect data sector is detected;
storing correct data sectors of the data block;
re-fetching the data block from the storage medium;
overwriting corresponding locations of the re-fetched data block with the stored correct data sectors; and
re-performing the recovering step and the detecting step to ensure correctness of all the data sectors.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for accessing data from a storage medium according to requirements of a host is disclosed. The storage medium stores a plurality of data blocks that each one of them further includes a plurality of data sectors and an error correction code used for recovering errors of the data block. Each one of the data sectors further includes an error detection code used for detecting correctness of associated data sector. When a data block is verified to include at least one incorrect data sectors by means of the error detection codes, those correct data sectors rather than all the data sectors are stored into a specific position of a data buffer. The whole data block is next re-fetched and stored into the same position of the data buffer used to occupied by the data block, those stored correct data sectors are then re-fetched to overwrite corresponding ones in the data buffer. Thereafter, the incorrect data sectors are re-detected to verify their correctness again. Not only those correct data sectors will be faultless protected, but also upgrade data access performance.
18 Citations
19 Claims
-
1. A method for accessing data from a storage medium according to requirements of a host, the storage medium storing a plurality of data blocks, wherein each of the data blocks comprises a plurality of data sectors and an error correction code (ECC) for recovering errors of the each of the data blocks, and each of the data sectors comprises an error detection code (EDC) for detecting correctness of the each of the data sectors, the method comprising steps of:
-
fetching a data block from the data blocks of the storage medium;
recovering errors of the data block by the ECC of the data block;
detecting correctness of each data sector of the data block by the EDC of the each data sector of the data block; and
performing following sub-steps when at least one incorrect data sector is detected;
storing correct data sectors of the data block;
re-fetching the data block from the storage medium;
overwriting corresponding locations of the re-fetched data block with the stored correct data sectors; and
re-performing the recovering step and the detecting step to ensure correctness of all the data sectors. - View Dependent Claims (2, 3, 4, 5)
-
-
6. The method of claim 6, wherein the storing sub-step comprises storing the correct data sectors in a specific memory block having a location different with that of the data block is stored.
-
7. A method for assuring data correctness in an optical electronic system, comprising steps of:
-
fetching a data block, wherein the data block comprises a plurality of data sectors, and at least one of the data sectors is incorrect;
storing correct ones of the data sectors in a specific memory block;
re-fetching the data block; and
overwriting corresponding locations of the re-fetched data block with the stored correct data sectors. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A method for assuring data correctness in an optical electronic system, comprising steps of:
-
fetching a data block from an optical medium to store the data block in a first memory block, wherein the data block comprises a plurality of data sectors, and at least one of the data sectors is incorrect;
storing correct ones of the data sectors in a second memory block;
re-fetching the data block to overwrite a same location occupied by the previously fetched data block; and
overwriting corresponding locations of the re-fetched data block with the correct data sectors stored in the second memory block. - View Dependent Claims (15, 16, 17, 18, 19)
-
Specification