1. Field of the Invention
The present invention relates to the recording/reproduction processing of digital data on an optical recording medium, and more particularly to an optical recording medium and a defect management device and method for managing the defects of digital data on the optical recording medium.
2. Description of the Related Art
Optical discs used widely today are classified roughly into three types. The first is a ROM type disc from which data can only be read. This type of optical disc is used as a distribution medium of music and videos, and its representative example is a CD (Compact Disc) and a DVD-ROM (Digital Versatile Disc ROM). The second is an RW type disc to or from which data can be written or read (recorded or played back) repeatedly. This type of optical disc is used primarily by individual users for recording broadcasts, and its representative example is a DVD-RAM and a DVD-RW (rewritable). The third is an R type disc to which data can be written once. The R type disc is sometimes called a WORM type disc that is an abbreviation of Write Once Read Many. The R type disc, lower in cost as compared with an RW type disc, is used widely for saving video information, and its representative example is a CD-R (Recordable) and a DVD-R.
Data recorded on any of the above media can be read by focusing a laser beam from an optical pickup, built in the drive for playing back the disc, onto the disc surface and then interpreting the reflected beam. When reading data from an optical disc, data written on the disc is sometimes read incorrectly. Such an error is generated by a cause that arises during the manufacture, for example, the material of the recording layer is uneven, by a cause that arises after the manufacture, for example, the laser beam is scattered because of a scratch or a contamination on the disc surface, or by deterioration in the recording material that is caused by repeated recording. A position where an error occurs frequently is called generically as a “defect”.
To avoid a read error, an error correction technology is essential that writes data as a correction code when the data is written and performs the error correction operation when the data is read. To keep the error correction rate sufficiently low for a long time over the whole area of a disc, defect management is necessary to prevent data from being written in a defective area.
The following describes an example of conventional defect management.
When defective blocks X, Y, Z are detected in the user data area, copies of the blocks X, Y, Z are recorded into alternate blocks E, F, G in the spare area and the physical addresses of the defective blocks and the alternate blocks are described in the defect management table in the management area to update the table.
However, this conventional defect management method requires a spare area to be allocated in advance. The problem with this method is that the apparent disc recording capacity is decreased as a larger space area is allocated.
To solve this problem, a method is proposed in which no space area is allocated and logical address conversion is performed to use an R type disc as an apparent RW type disc to allow an alternate block to be allocated directly in the user data area (see Japanese Patent Laid-Open Publication No. 2000-105980). In this method, the file system software installed in the host computer and the drive control circuit included in the drive work together to perform logical address conversion.
An example of data allocation on an R type disc is as shown in
Assume that one file composed of three file areas, A, B, and C, is recorded, as shown in (a) in
However, to include file area D instead of file area B as a component of the file, the file area information must also be updated. To do so, the host computer creates file area information, which specifies file areas A, D, and C, and writes the created file area information in a free area available for writing (see file area information “b” in (b) in
To perform the data read operation thereafter, the drive control circuit detects the address conversion table in advance and changes a read access to a before-conversion logical address, described in the table, to a read access to an after-conversion logical address.
A disc, even if an RW type disc, has sometimes characteristics that the error rate increases relatively rapidly because of deterioration in the recording material caused by repeated recording in the same block. The method described above is sometimes used for such a disc even if the disc is an RW type disc (Japanese Patent Laid-Open Publication No. 2000-105980).
The method disclosed in Japanese Patent Laid-Open Publication No.2000-105980 achieves the object of maximizing the user data area. However, because a physical address in which an alternate block is recorded is already mapped to a logical address, it is necessary to notify the logical address to the file system software to create information as file system data, indicating that the logical address should not be used for recording thereafter, and to record the data on the disc.
The method for using an R type disc as an apparent RW type disc has a problem that much file system data must be created and written on a disc and, in addition, the logical address of a file area must be changed.
In view of the foregoing, it is an object of the present invention to provide an optical recording medium and a defect management device and method therefor that reduces the load of the file system software and allows an R type disc to be treated more like an RW type disc.
To archive the above objects, there is provided an optical recording medium comprising: a user data area having a plurality of blocks in which optical recording data is recorded; and a management area storing therein a recording management table including at least one of area allocation information and defect information, the area allocation information used for writing the optical recording data in the user data area, the defect information used for performing defect management processing in the user data area, wherein the area allocation information includes at least type information indicating that the information is the allocation information, an allocated physical address indicating a start block of written information, a logical address of the user data area corresponding to the allocated physical address, and a length of the blocks in which the data is written and the defect information includes at least type information indicating that the information is the defect information, a defective physical address indicating a start block of a defect, an alternate physical address that is an address used when an area indicated by the defective physical address is replaced by another area in the user data area, and a length of the blocks replaced by the alternate area.
To achieve the above objects, there is provided a defect management device for an optical recording medium, comprising: a temporary storage buffer unit temporarily recording therein a recording management table including at least one of area allocation information and defect information, the area allocation information used for writing optical recording data in a user data area having a plurality of blocks of an optical recording medium in which the optical recording data is recorded, the defect information used for performing defect management processing in said user data area; a defect detection unit that detects a defect consisting of at least one defective block in the user data area on the optical recording medium; a defect information creation unit that, when the defect detection unit detects the defect, creates, as the defect information, at least type information indicating that the information is the defect information, a defective physical address indicating a start block of the defect, an alternate physical address that is an address used when an area indicated by the defective physical address is replaced by another area in the user data area, and a length of the blocks replaced by the alternate area, and supplies the created defect information to the temporary storage buffer unit; an allocation information creation unit that creates, as the area allocation information, at least type information indicating that the information is the allocation information, an allocated physical address indicating a start block of written information, a logical address of the user data area corresponding to the allocated physical address, and a length of the blocks in which the data is written, and supplies the created area allocation information to the temporary storage buffer unit; a recording management table writing unit that writes the recording management table, temporarily stored in the temporary storage buffer unit, into the management area on the optical recording medium; and a recording management table reading unit that reads a latest recording management table, written in the management area on the optical recording medium, and temporarily stores the recording management table into the temporary storage buffer unit.
To achieve the above objects, there is provided a defect management method of managing a defect on an optical recording medium including a user data area having a plurality of blocks in which optical recording data is recorded, and a management area storing a record management table including at least one of area allocation information and defect information, the area allocation information used for writing data in the user data area, the defect information used for performing defect management processing in the user data area, the method comprising: detecting a defect consisting of at least one defective block in the user data area on the optical recording medium; reading the recording management table from the management area according to the detection of the defect; storing the recording management table temporarily into a temporary storage buffer unit; searching for another area for storing optical recording data recorded on an area corresponding to the defect in the user data area; recording the optical recording data recorded on the area corresponding to the defect into the another area in the user data area; creating, as the defect information, at least type information indicating that the information is the defect information, a defective physical address indicating a start block of the defect, an alternate physical address that is an address used when an area indicated by the defective physical address is replaced by the another area in the user data area, and a length of the blocks replaced by the alternate area; updating the recording management table in the temporary storage buffer unit by adding the created defect information to the recording management table; and recording the recording management table stored temporarily in the temporary storage buffer unit into the management area on the optical recording medium.
The optical recording medium and the defect management device and method therefor according to the present invention enables defective data to be written in an alternate area, and a file to be partially updated, without adding processing load to the file system. In addition, an R type disc can be treated as an apparent RW type disc without adding processing load to the file system.
In the accompanying drawings:
An optical recording medium and a defect management device and method therefor in an embodiment of the present invention will be described below. It should be noted that the devices and the methods used in the embodiment of the present invention are exemplary only and that the present invention is not limited to them.
(Defect Management Device for an Optical Recording Medium)
As shown in
(Optical Disc)
The optical disc 10 is an R type or an RW type optical recording medium. As shown in
On the optical disc 10, the addresses for determining recording positions, generally called physical addresses, are recorded in the sectors (blocks) in advance over the whole recording surface. In contrast, the addresses set up for the file system later by the recording/reproduction control device 30, which will be described later, are called logical addresses.
Each time data is recorded, a recording management table 3 is written in the management area 1. In the write-once mode, the recording management table 3 is composed as shown in
When updating the recording management table 3, the table need not always be overwritten but an updated recording management table 3 may also be added. When reading the recording management table 3, the table at the highest physical address is read to obtain the latest table.
Next, when the recording management table 3 is updated to enter defect information, the number of recording management table entries is incremented by 1 to “2” as shown in (a) in
In this way, each time recorded data is updated or defect processing is performed, the recording management table 3 is stored in the management area 1.
(Optical Disc Drive)
As shown in
As shown in
The temporary storage buffer unit 26 is a memory in which the recording management table 3 in the management area 1 of the optical disc 10 is recorded temporarily. The recording management table reading unit 25a reads the latest recording management table 3 from the management area 1 of the optical disc 10 and stores it temporarily in the temporary storage buffer unit 26. The recording management table writing unit 25b writes the recording management table 3, updated in the temporary storage buffer unit 26, into the management area 1 of the optical disc 10.
The defect detection unit 25c detects defective data (any defective block) in the user data area 2 on the optical disc 10 via the data processing circuit 23 when the disc is played back. The defect information creation unit 25d creates defect information on a detected defect and updates the recording management table 3 in the temporary storage buffer unit 26. The allocation information creation unit 25e creates area allocation information for adding data to the optical disc 10 and updates the recording management table 3 in the temporary storage buffer unit 26. The block update unit 25f converts a recording start logical address, specified by the recording/reproduction control device 30, to an appropriate physical address based on the defect information or the area allocation information to determine the optical pickup position, controls the time at which the recording starts, and updates the block. This address conversion is performed usually by a simple method; for example, a predetermined offset value is added.
(Recording/Reproduction Control Device)
The recording/reproduction control device 30 is file system software that searches the optical disc for a position where data can be written, assigns a name to a collection of written data for managing it as a file, provides the folder function for storing multiple files as a collection of files, and manages the hierarchical relation among multiple folders. The recording/reproduction control device 30 controls the optical disc drive 20 according to a user-specified instruction when the optical disc drive 20 performs data recording/reproduction processing and defect management processing of the optical disc 10.
The recording/reproduction control device 30 treats the optical disc drive 20, on which a recording type optical disc 10 is loaded, as a string of recording blocks to and from which data can be written and read, and specifies each recording block using a numeric value called a logical address. Not only the optical disc drive 20 but also a recording (storage) device (not shown), such as a hard disk drive, is connected to the recording/reproduction control device 30 via the interface standard common to the optical disc drive 20. This interface standard defines a method for use by the recording/reproduction control device 30 to issue commands such as a read command or a write command, as well as the read/write start logical address and the number of transfer blocks, to the optical disc drive 20 and the protocol for transferring recording/reproduction data. To allow an R type optical disc to be treated as an RW type optical disc, the recording/reproduction control device 30 works together with the drive control device 25 when data is recorded on an R type or RW type disc to convert a logical address to make it correspond to a physical address on the optical disc 10.
When data is recorded on the optical disc 10, the recording/reproduction control device 30 first determines the write start logical address and the number of blocks to be written, issues the write command to the drive control device
and, after that, sends recording data. The drive control device 25 receives the recording data via the interface unit 24, uses the data processing circuit 23 to apply an error correction code processing to the data and modulate it, and drives the optical pickup to write the data.
(Defect Management Method for an Optical Recording Medium)
The defect management device 100 for the optical recording medium performs two types of operation: data defect management processing and file partial update processing. The data defect management processing is performed during the defect management processing for an RW type disc. This is because, for an RW type disc where the same area in the user data area 2 can be rewritten, defect position information must be written in the recording management table 3 to prevent data from being written again in a position where a defect is detected. For an R type disc, the processing described below is not necessary because the user data area 2 cannot be rewritten.
First, the following describes the data detect management processing. Assume that a file composed of 100 blocks is now recorded in logical addresses 0-99 on the optical disc 10 as shown in (a) in
(a) First, in step S101, the recording management table reading unit 25a of the drive control device 25 in
(b) In step S103, assume that the data processing circuit 23 detects an error while reading the file from the user data area 2 on the optical disc 10. The data processing circuit 23 notifies the error correction information to the drive control device 25. The defect detection unit 25c of the drive control device 25 detects the defect data (any defective block) using the notified error correction information. For example, as shown in (c) in
(c) In step S104, after the data processing circuit 23 completes reading the file, the drive control device 25 requests the recording/reproduction control device 30 to give defect management execution permission. The recording/reproduction control device 30 displays the permission to allow the user to browse it, prompts the user to determine whether to give the permission and, if the defect management execution permission is given, notifies the permission to the drive control device 25.
(d) If the defect management execution permission is obtained in step S105, the block update unit 25f searches for a free area in which an alternate block, created by correcting the defect in the defective block, can be written. This area is calculated based on the allocated physical address and the number of blocks in the previously read recording management table 3. Because the allocated physical address is 1000 and the number of blocks is 100 in
(e) In step S106, the defect information creation unit 25d reads the five defective blocks, beginning at the physical address 1030, into the temporary storage buffer unit 26 and writes the alternate blocks, created by correcting the defective blocks, in the area beginning at the physical address 1100, as shown in (c) in
By adding the defect information to the recording management table 3 as described above, an access to the physical blocks 1030-1034 in the subsequent read operation is replaced by an access to the physical blocks 1100-1104 to avoid reading the defective blocks. In this case, the drive control device 25 performs alternate processing based on the physical addresses with no change in the logical addresses. This eliminates the need for the recording/reproduction control device 30 to perform special processing for the file system software operation. Therefore, the file system software in the recording/reproduction control device 30 can be reduced in size.
Next, the following describes the file partial update processing of the defect management device 100 for the optical recording medium. The file partial update processing is performed when the defect management processing is performed for an R type disc or when file data is added to an R type or RW type disc. Unlike the defect management processing for an RW type disc described above, new data is added to the user data area 2 and therefore defects need not be considered.
Assume that a file composed of 100 blocks is recorded in the logical addresses 0-99 on the optical disc 10 as shown in (a) in
(a) First, in step S201, the recording management table reading unit 25a of the drive control device 25 in
(b) In step S202, the drive control device 25 receives a processing instruction to write five blocks from the recording/reproduction control device 30. In step S203, the block update unit 25f calculates a free area in which those five blocks are to be written. To calculate the area, the block update unit 25f references the previously read recording management table 3 and, in the example in (a) in
(c) In step S204, the block update unit 25f records the data, transferred from the recording/reproduction control device 30 for file partial updating, in the five blocks, beginning at the physical address 1100, on the optical disc 10.
(d) In step S205, the allocation information creation unit 25e creates allocation information corresponding to this file partial update recording and, based on the created allocation information, updates the recording management table 3 in the management area 1 on the optical disc 10. For example, as shown in (b) in
After the allocation information is added to the recording management table 3 as described above, an access to the physical blocks 1030-1034 during a subsequent read operation is replaced by an access to the physical blocks 1100-1104. This means that the recording/reproduction control device 30 reads the updated file. At this time, because the drive control device 25 performs alternate processing based on the physical addresses, the information indicating the logical address remains unchanged. This eliminates the need for the recording/reproduction control device 30 to perform special processing for the file system. Therefore, the size of the file system software in the recording/reproduction control device 30 can be reduced.
It should be understood that many modifications and adaptations of the invention will become apparent to those skilled in the art and it is intended to encompass such obvious modifications and changes in the scope of the claims appended hereto.
Number | Date | Country | Kind |
---|---|---|---|
P2005-096127 | Mar 2005 | JP | national |