OPTICAL DISC SPARE AREA MANAGEMENT

Information

  • Patent Application
  • 20080074967
  • Publication Number
    20080074967
  • Date Filed
    September 22, 2006
    17 years ago
  • Date Published
    March 27, 2008
    16 years ago
Abstract
A spare area management method for a blu-ray rewritable disc and a disc drive implementing this method, as well as a novel blu-ray rewritable disc. The disc has a plurality of spare areas. According to the present invention, boundary of each spare area is found, and information thereabout such as a start address and size of each spare area are stored. Such boundary information is variable as the spare areas are used. In addition, the boundary information is written to the disc. Therefore, it is possible to more efficiently use the spare areas of the disc.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic illustration showing spare area arrangement of a double layer blu-ray rewritable disc;



FIG. 2 is a schematic illustration showing defect management structure of a formatted blu-ray rewritable disc;



FIG. 3 is a schematic illustration showing a spare table for a 50 G blu-ray rewritable disc before and after some spare clusters are used;



FIG. 4 is a block diagram schematically and roughly showing a disc drive in accordance with the present invention; and



FIG. 5 is a flow chart showing a method for computing spare area sizes in accordance with the present invention.





DETAILED DESCRIPTION OF THE INVENTION

The present invention will be described in detail in conjunction with the appending drawings. In the following descriptions, a double layer (DL) blu-ray rewritable (BD-RW) disc is described as an example. The present invention is also applicable to a single layer (SL) BD-RW disc. The DL BD-RW has two layers, Layer 0 and Layer 1. The DL blu-ray disc has four spare areas, spare areas ISA0, OSA0 in Layer 0, and spare areas ISA1, OSA1 in Layer 1.



FIG. 4 schematically and roughly shows a disc drive in accordance with the present invention. When a formatted BD-RW disc 100 is put into the disc drive, the disc 100 is carried by a spindle 102. As described, the formatted BD-RW disc 100 has DDS and DFL. The disc drive fetches out a spare table from the disc 100 by means of a pick-up head (PUH) 110. As described, the spare table is contained in DFL stored in DMS of the disc 100. The disc drive stores the fetched spare table into a memory 140 as a memory spare table via a servo 120 and a decoding circuit 130. The servo 120 is used for driving the PUH 110, and the decoding circuit 130 is used for decoding data read from the disc 100, these two components are commonly known in this field, and therefore the detailed descriptions thereof are omitted herein for simplicity. The memory spare table is copied from the spare table in disc 100. The spare table in disc can be referred to as “disc spare table” for the sake of convenience of description. The memory 140 can be a volatile memory such as a DRAM.


A control unit 160 of the disc drive picks a physical address (e.g. PSN code) of the start position of each spare area as a physical start address and stores the start address into a specific location of the memory 140. The specific location can be referred to as a memory start address. The physical start address is the address of an available spare cluster for next use of each spare area. For example, for ISA0, the start address to be recorded is the address of the first spare cluster of the available entries. For OSA0, the start address to be recorded is the address of the last spare cluster of the available entries. This is because ISA0 is used from the least PSN, while OSA0 is used from the greatest PSN according to BD Specification. In addition, the disc drive further comprises a comparing circuit 150. The comparing circuit 150 is used to assist computing the size of each spare area, that is, the available entry number of each spare area. The size is also recorded in the memory 140.In the present embodiment, both the physical start address (e.g. PSN) and the spare area size (e.g. available entry number) for each spare area are recorded in the memory 140. However, in practice, it is possible to only record either the start PSN code or the available entry number into the memory 140. Preferably, such information is recorded into a vendor-specific field defined in a disc specification, for example, a field in a drive-specific area defined in BD Specification. According to BD Specification, some fields of the drive-specific area of a BD are freely usable by a disc drive,


During writing the disc, the physical start address of each spare area may change, and the size of the spare area may vary since the spare clusters of the spare area may be used. The different physical start address is stored in the memory start address the same mentioned above. For example, no matter what the physical start address of spare area ISA0 becomes, the physical start address is always stored in the same specific memory start address. That is, the physical start address stored in the location indicated by the specific memory start address is updated whenever the physical start address changes. However, the latest updated physical start address of the spare area ISA0 can always be obtained from this specific memory start address. By obtaining the start address and the size of each spare area, the boundary of each spare area can be known. Thus, it is possible to more efficiently utilize the spare areas of the disc 100. When the disc 100 is exited from the disc drive, the final physical start address and size of each spare area are written back to a specific location of the disc 100. For example, the new start address and size of each spare area can be recorded in the spare table in the memory 140, and the updated spare table is then written back to cover the old spare table of the disc 100. When the disc is used in the future, the recorded start addresses and sizes of the respective spare areas can be fetched as reference.


Whenever the spare entry is changed (e.g. the start address is different, the size of the spare area is reduced), the change is marked in the spare table stored in the memory 140. Alternatively, the changed data can be stored in another location of the memory 140.



FIG. 5 is a flow chart showing an embodiment of a method for computing sizes of the respective spare areas in accordance with the present invention. As known, PSN codes for the spare clusters (spare entries) are very different from spare area to spare area, so it is easy to distinguish the respective spare areas by checking the PSN codes. This method for computing the spare area sizes utilizes such a feature. In addition, for a DL BD-RW disc 100, the spare entries of the four spare areas are listed in the spare table of a sequence of ISA0, OSA0, OSA1 and ISA1. The computing process is started from the beginning of the spare table in step S10. The comparing circuit 150 compares PSN code of the first spare entry. That is, the PSN code of the first spare cluster is compared with a reference. The comparing circuit 150 checks if the PSN is out of a range of ISA0 or the end of the spare table is reached (step SI 1). The range can be determined according to the information in the spare table. If the PSN is still within the range, and the table end has not been reached, the comparing circuit 150 will check the next spare entry. Otherwise, if the PSN is out of the range of ISA0, or the table end is reached, then the size of ISA0 “a” can be obtained (step S12). Then the process goes to step S13. In S13, the comparing circuit 150 checks if the PSN is out of a range of OSA0 or the end of the spare table is reached. If the PSN is still within the range, and the table end has not been reached, the comparing circuit 150 will check the next spare entry. Otherwise, if the PSN is out of the range of OSA0, or the table end is reached, then the total size of ISA0+OSA0 “b” can be obtained (step S14). Then the process goes to step S15. In S15, the comparing circuit 150 checks if the PSN is out of a range of OSA1 or the end of the spare table is reached. If the PSN is still within the range, and the table end has not been reached, the comparing circuit 150 will check the next spare entry. Otherwise, if the PSN is out of the range of OSA1, or the table end is reached, then the total size of ISA0+OSA0+OSA1 “c” can be obtained (step S14). Finally, the control unit computes the sizes of the respective spare areas as:





ISA0 size=a (1)





OSA0 size=b-a (2)





OSA1 size=c-b (3)





ISA1 size=d-c (4)


wherein d is the total available size of all spare area, which is recoded in defect list header. It is noted that the comparing circuit 150 can be an individual block or integrated into the control unit 160 in hardware, firmware or software form.


While the preferred embodiments of the present invention have been illustrated and described in detail, various modifications and alterations can be made by persons skilled in this art. The embodiment of the present invention is therefore described in an illustrative but not restrictive sense. It is intended that the present invention should not be limited to the particular forms as illustrated, and that all modifications and alterations which maintain the spirit and realm of the present invention are within the scope as defined in the appended claims.

Claims
  • 1. A spare area management method used in writing a rewritable disc, the disc having a plurality of spare areas and a spare table having spare entries of each spare area, one spare entry being removed from the spare table after being used, the method comprising steps of: determining boundary of each spare area according to the spare table to distinguish the spare areas from each other; andstoring boundary information of the distinguished spare areas.
  • 2. The method of claim 1, wherein the boundary information comprises at least one of a start address of each spare area and size information of each spare area.
  • 3. The method of claim 2, wherein the start address is a physical address of an available entry for next use of each spare area.
  • 4. The method of claim 2, wherein the size information is a number of available spare entries of each spare area.
  • 5. The method of claim 2, wherein the size information of one spare area is obtained by checking if one spare entry is out of a range of said one spare area and counting the spare entries not been used within the range of said one spare area.
  • 6. The method of claim 1, wherein the boundary information of the distinguished spare areas are separately stored in a memory.
  • 7. The method of claim 6, wherein the start address is stored in a specific location of the memory, and the specific location is recorded.
  • 8. The method of claim 1, wherein the boundary information of the distinguished spare areas are separately recorded to the disc.
  • 9. The method of claim 1, wherein the storing step comprising dynamically storing the boundary information of each distinguished spare area in a memory and writing the boundary information the distinguished spare area latest stored in the memory to the disc.
  • 10. A disc drive for writing a rewritable disc, the disc having a plurality of spare areas and a spare table having spare entries of each spare area, one spare entry being removed from the spare table after being used, the disc drive comprising: a pick-up head for accessing the rewritable disc;a memory for storing the spare table from the disc; anda control unit coupled to the pick-up head and the memory for dynamically determining boundary of each spare area to distinguish the respective spare areas from each other based on the spare table and storing boundary information of each distinguished spare area to the memory.
  • 11. The disc drive of claim 10, wherein the control unit further instructs the pick-up head to write the boundary information of each spare area latest stored in the memory to the disc.
  • 12. The disc drive of claim 10, wherein the control unit finds a start address of each spare area and stores the start address of each spare area to the memory.
  • 13. The disc drive of claim 12, wherein the start address is a physical address of an available entry for next use of each distinguished spare area
  • 14. The disc drive of claim 12, wherein the start address is stored in a specific location of the memory, and the specific location is recorded.
  • 15. The disc drive of claim 14, wherein the latest stored start address is read from the specific location of the memory and written to the disc.
  • 16. The disc drive of claim 10, wherein the control unit computes the size of each spare area and stores the size information of each spare area to the memory.
  • 17. The disc drive of claim 16, wherein the size information is a number of available spare entries of each spare area.
  • 18. The disc drive of claim 16, further comprising a comparing circuit comparing PSN codes of the spare entries of each spare area, and the compared result is used to assist computing the size of the spare area.
  • 19. The disc drive of claim 18, wherein the comparing circuit checks if one spare entry is out of a range of the spare area.
  • 20. A blu-ray rewritable disc having a plurality of spare areas and a spare table recording spare entries of each spare area, one spare entry being removed from the spare table after being used, boundary information of each spare area being dynamically recorded to the disc.
  • 21. The disc of claim 20, wherein the boundary information comprises a start address of each spare area.
  • 22. The disc of claim 21, wherein the start address is a physical address of an available entry for next use of each spare area.
  • 23. The disc of claim 20, wherein the boundary information comprises size information of each spare area.
  • 24. The disc of claim 23, wherein the size information is a number of available spare entries of each spare area.