1. Field of the Invention
The present invention relates to the field of optical storage, and more particularly, to an apparatus and method for defect management of optical disks.
2. Description of the Prior Art
In general, defects of recordable optical disks (including write-once and rewritable disks) occur because: (1) unsatisfactory manufacturing process of the disk; (2) improper usage such that the disk is scraped; and (3) material degradation after frequent access. The defect would lower down the storage performance of the disk. Thus, it is a critical problem about how to perform effective defect management for the optical disk.
By performing defect management, the defects of the disk are detected and recorded. Then, an optical drive can use the record to bypass the defective portion when accessing the disk.
In conventional defect management, before writing data onto a recordable disk, the optical drive first writes predetermined patterns onto the disk and then reads them back, thereby determining whether there is any defective sector on the disk. If any defective sector is found, the logical sector number (LSN) of the defective sector is recoded in a defect list for subsequent use.
On the other hand, the defect list 14 lies in a host 2b in
However, no matter
It is therefore one objective of this invention to provide an apparatus and method for performing defect management of an optical disk by using existing pre-pit data on the optical disk, thereby upgrading the efficiency of defect detection.
Another objective of this invention is to provide an optical drive which applies the apparatus and method for defect management of an optical disk mentioned above, thereby upgrading the efficiency and reliability of the optical drive.
Another objective of this invention is to provide an apparatus and method for performing defect management of an optical disk, thereby saving the time for detection to upgrade the detection efficiency and access efficiency of an optical drive.
Another objective of this invention is to provide an apparatus and method for performing defect management of an optical disk. This apparatus and method can be applied to both write-once and rewritable disks.
For further understanding the objects, the characteristics, and the functions of the structures of the present invention, a detailed description matched with corresponding drawings are presented as follows.
The embodiments described in this section can be applied to a DVD disk, such as DVD-R disk, DVD-RW disk, DVD+R disk, DVD+RW disk, DVD-RAM disk, or other type disk. Before describing the embodiments, an example of the DVD-R/RW disk is used to explain the pre-pit data thereon. According to the technical specification (standard ECMA-338), a DVD-R/RW disk contains a plurality of ECC blocks (called data block below) for storing data. Each data block has a corresponding pre-pit data.
On a DVD-R/RW disk, the corresponding pre-pit data of each data block also forms a block, the structure of which is shown in
In one embodiment, the disk 44 is a DVD-R/RW disk. When performing the ECC decoding on the pre-pit data, the detecting unit 43 first generates a plurality of syndromes of Part A and Part B of the pre-pit data, and then determines whether the pre-pit data needs an error correction. When the syndromes of Part A and Part B are all zero, it means the pre-pit data contains no error. Thus, the detecting unit 43 determines that the pre-pit data needs no error correction and that the pre-pit data is non-defective.
On the other hand, when at least one of the syndromes of Part A and Part B is not zero, it means at least one of Part A and Part B contains at least one error. Then, the detecting unit 43 performs an error correction on Part A (or Part B), and determines whether the pre-pit data is defective according to the result of the error correction. According to the property of the Reed-Solomon code, the number of erasure errors e and the number of errors t of RS(n,k,n−k+1) must satisfy
e+2t<n−k+1 Eq.(1-1)
If Eq.(1-1) is satisfied, the errors (including the erasure error) of the Reed-Solomon code can be completely corrected; if not satisfied, the errors can not be completely corrected. Since the Reed-Solomon code of Part A is RS(6,3,4), an erasure error and an error, or three erasure errors are allowed. The allowable numbers of erasure errors and errors for Part B can also be calculated in this manner.
If the numbers of erasure errors and errors of Part A and Part B satisfy Eq.(1-1), it means that the errors of the pre-pit data can be completely corrected. Thus, the detecting unit 43 still determines the pre-pit data as non-defective. If the numbers of erasure errors and errors of any one of Part A and Part B does not satisfy Eq.(1-1), then the errors of the pre-pit data can not be completely corrected, and the detecting unit 43 determines the pre-pit data as defective.
Further, the detecting unit 43 records into the storage unit 41 whether the pre-pit data is defective, and then the optical drive can use this record to determine whether to access the data block corresponding to the pre-pit data.
In another embodiment, the detecting unit 43 determines a defect level of the pre-pit data according to the syndromes mentioned above. If the syndromes of Part A and Part B are all zero, the pre-pit data is determined as non-defective. If at least one of the syndromes of Part A and Part B is not zero and if the errors of the pre-pit data can be completely corrected, the pre-pit data is determined as low-defective. If the errors of the pre-pit data cannot be completely corrected, the pre-pit data is determined as high-defective. The detecting unit 43 stores the defect level of the pre-pit data into the storage unit 41 for access by the optical drive to determine whether to access the corresponding data block. In one embodiment, when the pre-pit data is non-defective or low-defective, the optical drive determines to access the corresponding data block.
Step 51: reading the pre-pit data corresponding to a data block from the optical disk;
Step 52: performing ECC decoding on the pre-pit data;
Step 53: determining whether the pre-pit data needs an error correction, if yes then proceeding to Step 54; otherwise jumping to Step 57;
Step 54: performing the error correction for the pre-pit data; (this step 54 can be omitted)
Step 55: determining whether errors of the pre-pit data are completely corrected, if no then proceeding to Step 56; otherwise jumping to Step 57;
Step 56: determining the pre-pit data as defective, and jumping to Step 58;
Step 57: determining the pre-pit data as non-defective; and
Step 58: determining whether to access the data block according to whether the corresponding pre-pit data is defective.
While the present invention has been shown and described with reference to the preferred embodiments thereof and in terms of the illustrative drawings, it should not be considered as limited thereby. Various possible modifications and alterations could be conceived of by one skilled in the art to the form and the content of any particular embodiment, without departing from the scope and the spirit of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
094111773 | Apr 2005 | TW | national |