The present invention relates to a recording medium including: a management information area in which management information for the management of recording states is recorded; and a user data area in which user data is recorded. Furthermore, the present invention relates to a technique of recording data onto such a recording medium.
An optical disk is an information recording medium which is compatible between plurality of devices. Examples of optical disks are: the CD, which was developed for use with music and also is widely used for data in recent years; the DVD, which was developed for use with digital video and has begun to become prevalent rapidly; and the Blu-ray disk, which was developed for use with high-quality video, e.g., the Hi-Vision.
Based on differences in the recording/reproduction method, such optical disks are generally classified into three types: a read-only type, a write-once type, and a rewritable type. A write-once type optical disk is manufactured by using a material which does not permit recorded data to be erased therefrom, and data can be recorded only once in each position on the optical disk. For example, the CD-R and the DVD-R are write-once type optical disks. In a rewritable type optical disk, data can be recorded as many times as desired in the same place on the medium. For example, the CD-RW and the DVD-RAM are rewritable type optical disks.
In a write-once type optical disk, because data rewriting is not possible, it is necessary to manage recorded areas as well as unrecorded areas. In a CD-R, recording start positions and recording end positions are managed on a song-by-song basis, so that recording can be performed on a song-by-song basis. Songs are in units of tracks. Note that a “track” as recited below does not refer to a “track” representing a groove feature on an optical disk.
In the case of a CD-R, data is sequentially recorded on a track-by-track basis, from the inner periphery to the outer periphery of the optical disk. Furthermore, a plurality of recorded tracks are to be managed in the form of sessions, each of which includes a plurality of recorded tracks. An area for storing management information for managing recording states is a program management area (hereinafter also referred to as “PMA”).
In the case of a DVD-R, too, RZones (corresponding to tracks on a CD), Borders (corresponding to sessions on a CD), and a recording management area (hereinafter also referred to as “RMA”; corresponding to a PMA on a CD) are defined.
In a data structure which is recorded in an RMA of a DVD-R, recording management data (hereinafter also referred to as “RMD”) is defined. At field 4 and fields 5 to 12 of an RMD, information indicating the positions of up to 2302 RZones (corresponding to tracks on a CD) is stored.
In a recording method for a conventional write-once type optical disk, recording in the same area can be performed only once. Therefore, if a recording to that area fails once, the area will be in a damaged state, which may make writing impossible. Although the damaged state may sometimes be overcome through retry or restoration attempts, it does not guarantee that all of the record data will remain reliable.
One possible method might be to: provide a replacement area on the disk; perform recording to the replacement area if a recording to the user area fails; and keep replacement recording information under management. In this context, even if a predetermined area on the disk is provided as a replacement area, there may be cases where the replacement area is depleted as a result of many instances of replacement.
Another recording method might be to, when there is a desire to rewrite information in an area of a write-once type optical disk where data has once been recorded, perform recording in a replacement area by making replacement entries. In this case, since the replacement area will be consumed regardless of whether any defects exist on the disk or not, depletion of the replacement area might easily occur.
An objective of the present invention is to efficiently utilize recording areas on a recording medium. Specifically, there is provided a technique which, even when a user data area and a replacement area are procured on a recording medium in advance, performs a replacement process for the replacement area only under specific cases where recording for the user data area is impossible, so that the recording areas can be efficiently utilized.
A recording apparatus according to the present invention is able to record data onto a recording medium. The recording medium has a data area in which user data is to be recorded and a spare area in which replacement recording for the user data is to be performed, the data area being composed of one or more unit areas each having an address assigned thereto. The recording apparatus comprises: a processing section for designating an address of a unit area; and a control section for recording the user data in a unit area of the designated address. The processing section determines whether user data is recorded in a unit area of a first address or not, and depending on a result of determination, designates either the first address or a second address which is within the data area and different from the first address. If recording of the user data to the designated first address or second address has failed, the control section records the user data to the spare area.
The processing section may designate the first address when it is determined that no user data is recorded in the unit area of the first address, and designate the second address when user data is recorded in the unit area of the first address.
When recording of the user data to the designated first address has failed, the processing section may generate management information in which the unit area of the first address is associated with the spare area.
When recording of the user data to the designated second address has failed, the processing section may generate management information in which a unit area of the second address is associated with the spare area.
When recording of the user data to the designated second address is successful, the processing section may generate management information in which the unit area of the first address is associated with a unit area of the second address.
An interface section for receiving a recording request for the user data may be further comprised. The processing section may designate the address in response to reception of the recording request.
The interface section may be capable of further receiving an inquiry about a recordable position for the user data. After recording of the user data fails and the inquiry is received, the control section may record the user data to the spare area.
Until recording of the user data fails and the inquiry is received, the processing section may designate a third address which is within the data area and different from the first and second addresses. The control section may record the user data in a unit area of the designated third address.
According to the present invention, when it is possible to use a recording area in the user data area as a replacement area, the user area is used as a replacement area with respect to a logical rewrite request for a recorded area of a write-once recording medium. When a recording error occurs, the spare area is used as a replacement area. As a result, extreme increase in replacement entries can be prevented.
Moreover, according to the present invention, until an inquiry about a next-recording start position is made from an higher level control device, replacement recording at the time of a logical rewrite or recording error is performed by utilizing the user area. After an inquiry is made, replacement recording at the time of a recording error is performed by utilizing the spare area. As a result, replacement recording at the time of a recording error, until an inquiry is made, can be executed in the user area, which is closer than the spare area. Thus, the processing time of replacement recording can be reduced.
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
Firstly, the constitution of a recording apparatus according to the present embodiment will be described. Then, the logical structure of an optical disk which is mounted on the recording apparatus will be described.
The recording apparatus 210 includes a drive I/F bus 202, an I/F control section 211, a data buffer 212, an access control section 213, a control bus 214, a management information processing section 220, and a management information storage buffer 225.
The functions of the respective constituent elements are as follows. The drive I/F bus 202 connects the higher level control device 201 to the recording apparatus 210 to establish communications. The I/F control section 211 handles transmission and reception of instructions and data with the higher level control device 201. The data buffer 212 is a memory for temporarily storing recording data and reproduced data. The access control section 213 executes the processes of recording data to the optical disk 101 and reproducing data from the optical disk 101. The management information processing section 220 generates management information or processes management information which is read from the optical disk 101, through below-described processes. The management information storage buffer 225 stores the management information which has been generated or read. The control bus 214 is an internal bus which connects between constituent elements of the recording apparatus 210 to establish communications.
Now, the management information processing section 220 will be described more specifically. The management information processing section 220 includes a read processing section 221, an update section 222, a write processing section 223, and a position management memory 224.
Among management information 106 which is recorded in a management information area 105, the read processing section 221 reads a piece of management information 106 that was last recorded, and stores it to the management information storage buffer 225. The update section 222 updates the management information 106 stored in the management information storage buffer 225, in accordance with an instruction from the higher level control device 201. The write processing section 223 records, to the management information area 105, the management information 106 which is stored in the management information storage buffer 225. The position management memory 224 retains the information of a position at which the most recent management information 106 exists. In each embodiment, a “position” refers to a “physical address” which is allocated on the optical disk 101.
Next, the logical structure of the optical disk will be described. Then, the data structure of management information which is recorded on the optical disk will be described.
a) shows the logical data structure of the optical disk 101 according to the present embodiment. This optical disk 101 is of the write-once type. The optical disk 101 has a lead-in area 102, a user data area 103, and a lead-out area 104. The lead-in area 102 and the lead-out area 104 are provided so that, when an optical head (not shown) accesses an end of the user data area 103, the laser light from the optical head is prevented from going out of the user data area 103 and becoming uncontrollable. The user data area 103 is structured so as to include at least one recording area. User data is to be recorded in the user data area 103.
The lead-in area 102 will be described more specifically. A management information area 105 is provided in the lead-in area 102. In the management information area 105, one or more pieces of management information 106 for managing the recording state for the optical disk 101 are recorded. The management information 106 contains position information of recording areas concerning the user data area 103, for example. Moreover, the management information 106 contains replacement information for managing positions at which replacement recording is performed due to errors upon recording.
The management information 106 further includes replacement management information. The replacement management information includes a header 17 and zero or more replacement entries 18. Each replacement entry 18 includes a start address 19 of a replacement source and a start address 20 of a replacement destination.
Note that the data structure for the management information 106 shown in
The recording areas according to the present embodiment correspond to tracks of a CD-R, or RZones of a DVD-R.
Hereinafter, by referring to
a) to (c) show transitions of unrecorded areas and recorded areas on the optical disk 101. In
One of the main features according to the present embodiment is that the fields 15 and 16 are newly provided to describe the unrecorded area's beginning position and end position, respectively. Hereinafter, this will be specifically described.
As for recording area entry #2 and recording area entry #3, the leading positions 13, the recording end positions 14, the unrecorded area's beginning positions 15, and the unrecorded area's end positions 16 of recording area #2 and recording area #3 are set to “0”. This means that no such recording areas exist.
b) shows a state after recording area #1 and recording area #2 have been reserved. This reservation is performed when receiving a RESERVE TRACK instruction from the higher level control device 201. An instruction from the higher level control device 201 such as the RESERVE TRACK instruction is defined according to a general host command standard. See, for example, “Recording for DVD-R media” in Chapter 4.16 of the SFF 8090i standard, “Mt.Fuji Command for Multimedia Devices”.
In
b) shows a state of recording area entries which are defined corresponding to the recording areas of
c) shows a state where user data has been recorded in recording area #1 and recording area #2. Herein, the recording end position in recording area #1 is P4, whereas the recording end position in recording area #2 is P5.
a) to (c) each show an example where a replacement area is procured in the recording state of
a) shows an example where recording area #3, in which no recording has been performed, is used as a replacement area.
When recording area #3 is used as a replacement area, a position P6 is set as the unrecorded area's beginning position 15 in recording area #3. As a replacement entry 18 (
b) shows an example where an end portion of a recording area which is in a recordable state is used as a replacement area.
c) shows an example where recording area #2, part of which is recorded, is used as a replacement area.
c) shows a state of recording area entries corresponding to
By retaining information indicating an unrecorded area's beginning position and an unrecorded area's end position in each recording area as the management information, it becomes possible to create and use a replacement destination area in each recording area.
There is no limitation to the case where the information to be retained as the management information includes information of both the unrecorded area's beginning position 15 and the unrecorded area's end position 16 in each recording area. In the case where only an end portion of the unrecorded area in each recording area is to be used as a replacement area, similar purposes can be attained by only retaining information indicating the unrecorded area's end position 16 in each recording area.
Moreover, in the case where only a beginning portion of the unrecorded area in each recording area is to be used as a replacement area, similar purposes can be attained by only retaining information indicating the unrecorded area's beginning position 15 in each recording area.
Moreover, as shown in
With reference to
Next, with reference to
At step 902, a command which has been issued by the higher level control device 201 is received by the I/F control section 211, and the access control section 213 and the like execute processes which are in accordance with the contents of the command. The command process is executed until the optical disk 101 is ejected, or the recording apparatus 210 is powered off. As the commands to be received, a RESERVE TRACK instruction, a CLOSE instruction, and a WRITE instruction are contemplated.
At step 903, when a RESERVE TRACK instruction is received from the higher level control device 201, the management information processing section 220 executes a process of adding a recording area(s).
At step 904, when a CLOSE instruction is received from the higher level control device 201, the management information processing section 220 executes a process of closing a recording area. Once a closing process is executed, it becomes no longer possible to execute recording from a write position in that recording area.
At step 905, when a WRITE instruction is received from the higher level control device 201, the access control section 213 executes a recording process to a recording area while referring to the information in the management information storage buffer 225.
At step 906, based on the result of executing the command received from the higher level control device 201, the update section 222 updates the management information 106.
Hereinafter, examples of executing step 903 to step 906 will be described.
In the state of
In the state of
Next, with reference to
At step 1002, the access control section 213 converts the designated logical address to a physical address. A logical address refers to, on the user data area 103 of the optical disk 101, an address space that is recognized by the higher level control device 201. Usually, the leading position of the user data area is regarded as a logical address 0. On the other hand, a physical address represents an absolute position on the optical disk 101. Generally speaking, the value of a physical address can be obtained by adding a certain offset value to the value of a logical address. In the case of a DVD-R, for example, the offset value is 30000 h.
At step 1003, the access control section 213 determines whether the physical address as converted is an address in a recorded area or not. In other words, it is determined as to which recording area information 12 the physical address as converted belongs to. Specifically, it is determined as to between which recording area leading position 13 and which recording start position 15 the physical address is in. The unrecorded areas are managed based on the recording area leading position 13 and the recording start position 15. Therefore, if that physical address does not exist in an unrecorded area, the access control section 213 determines that the physical address as converted is an address in a recorded area.
At step 1004, if step 1003 has determined that it is not recorded, the update section 222 sets the physical address as was converted at step 1002 as a recording physical address.
At step 1005, if step 1003 has determined that it is recorded, the update section 222 sets an address of the next-recording start position 15 in a piece of recording area information 12 as a replacement destination address for the physical address having been converted. Alternatively, an address in the replacement area 107 is set as a replacement destination address. It is arbitrary as to how the replacement destination physical address is selected.
If the next-recording start position 15 has been set as a replacement destination address at step 1005, the update section 222 updates the next-recording start position 15 in that recording area information 12 to a position after the recording is executed, at step 1006.
At step 1007, the access control section 213 executes recording in the physical address which has been set.
At step 1008, the access control section 213 obtains the result of the recording process executed at step 1007, and if the recording has been successful, control proceeds to step 1009, and if the recording has failed, control proceeds to step 1005.
At step 1009, if a recording process to a replacement destination has been executed, the replacement management information in the management information 105 is updated. Then, regardless of whether a replacement process has been performed or not, the next-recording start position 15 in the recording area is updated with respect to the recording area for which recording has been executed. If the replacement recording shown in
Note that, as shown in
Alternatively, as shown in
Note that, by selecting the recording area to be chosen as the replacement destination from within the neighborhood of the recording area where recording should have been done, the access time during recording/reproduction can be reduced.
Note that
According to the present embodiment, a recording area in the user data area can be used as a replacement area, and beginning information and end information concerning an unrecorded area in each recording area are provided as management information. As a result, it becomes possible to place replacement areas according to needs, whereby replacement recording which makes efficient use of replacement areas can be executed.
In the present embodiment, with reference to
As compared to the steps of
Hereinafter, among the processes of
At step 1801, the update section 222 sets a writable position in one of the recording areas. This writable position is set for performing a replacement recording of data which is to be recorded at a physical address as converted in step 1002. The reason for performing the replacement recording is that the physical address as converted at step 1002 already has user data recorded therein, and thus permits no further recording. At step 1802, the update section 222 updates the writable position thus set, to a position after the recording is executed.
Step 1803 is executed when a recording fails at step 1008. At step 1803, as an area in which to perform replacement recording, the update section 222 sets a writable position in the replacement area. The reason for performing the replacement recording is that the recording performed at step 1008 has failed due to a recording error. Then, the original physical address and the physical address of the recording destination are registered as a replacement entry. Thereafter, the process returns to step 1007.
Now, with reference to
Firstly, the optical disk in the present embodiment has the data structure shown in
a) to (c) show logical data structures of the optical disk according to the present embodiment. It will be seen that a spare area is procured immediately before the lead-out area. Other than this structure, the same relationship as that between
From the state of
Now, a situation is assumed where user data has been recorded in recording areas #1 and #2 as shown in
First, the update section 222 of the recording apparatus 210 sets the next-recording start position 15 in recording area #1 to the position P6, and records data from the position P4. Unless the recording fails, the access control section 213 records data at each designated position (address). If the recording fails, the recording apparatus 210 executes the following process. Herein, it is assumed that the data recording from the first position P4 has failed.
a) to (c) show user data areas for which replacement recording has been performed by using different algorithms.
As a result, the update section 222 generates replacement entries as shown in
If recording requests for write positions are consecutively issued as shown in
On the other hand,
Note that, as shown in
Thereafter, with a Read Track Information command, the higher level control device 201 confirms that the writable position in recording area #1 is P6. This means that the remaining recording cannot be executed at the position P4. Therefore, instead of requesting the remaining recording to be executed from the position P4, the higher level control device 201 requests it to be executed from the position P6 and the position P7. Since no replacement recording is performed in response to this request, the update section 222 does not need to generate any new replacement entries. Therefore, the number of entries does not change from the state shown in
In the present embodiment, with reference to
As compared to the steps of
Hereinafter, among the processes of
Firstly, step 1901 is to be executed when a recording fails at step 1008. Since a recording has failed, the recording apparatus 210 needs to determine an area in which to perform a replacement recording. Therefore, in the present embodiment, the process is changed depending on the presence or absence of an inquiry from the higher level control device 201.
At step 1901, by use of a Read Track Information command from the higher level control device 201, the I/F control section 211 confirms whether or not there has been an inquiry about a next-recording start position in each recording area that is currently under management. If there has been an inquiry, control proceeds to step 1902; if there has been no inquiry, control proceeds to step 1801.
At step 1902, the update section 222 sets a recording physical address at a writable position in a replacement area, and the update section 222 registers the original physical address and the recording physical address as a replacement entry.
On the other hand, step 1801 of the case where there has been no inquiry means that a writable position is set within the user data area. Performing a replacement process by utilizing the user data area, and without utilizing the replacement area, leads to the following advantages. An optical head which performs data recording onto an optical disk will have a shorter moving distance and a shorter moving time when moving within the user data area than moving over to the replacement area. This means that the time until completion of the replacement process is reduced. Similarly, the data read time during a reproduction process is also reduced.
In order to enjoy the aforementioned advantages, the process of step 1801 needs to be performed when there is no possibility that the higher level control device 201 will issue a next recording command, i.e., in the absence of an inquiry from the higher level control device 201 about a next-recording start position.
On the other hand, if a replacement process is performed within the user data area after there has been an inquiry about a next-recording start position which are currently under management, it becomes impossible to record data from the respondent next-recording start position. This will mean that the next-recording start position as managed by the higher level control device 201 does not match the actual next-recording start position, thus necessitating a separate process of registering replacement entries or the like.
Therefore, the recording apparatus 210 performs a replacement process by utilizing the user data area, until there is an inquiry from the higher level control device 201. After there is an inquiry, a replacement process is performed by utilizing the replacement area, rather than performing a replacement process within the user data area. Such an operation is very effective for realizing rapid processing.
Hereinafter, with reference to
Since recording from the position P4 has failed, with a Read Track Information command from the higher level control device 201, the I/F control section 211 determines whether or not there has been an inquiry about a writable position which are currently under management.
If there has been an inquiry, the update section 222 sets the replacement destination address for the position P4 (at which recording has failed) to the position P0 of the replacement area 107. On the other hand, if there has been no inquiry, the update section 222 sets the replacement destination address for the position P4 to be within the user data area: more specifically, the position P6 in the same recording area #1. Moreover, the update section 222 sets the writable position in recording area #1 to the position P7, and records data to the position P6.
According to the recording method of the present embodiment, replacement recording at any recording position for which the higher level control device 201 is likely to next issue a recording command is forestalled, thus preventing an increase in the replacement entries.
According to the present invention, there is provided a recording apparatus which performs a replacement recording associated with a defect or a replacement recording intended for rewrite recording, on a write-once type recording medium. Since the recording apparatus procures replacement areas according to needs, it is useful from the standpoint of efficiently utilizing the capacity of a recording medium.
In accordance with this recording apparatus, a recording medium is obtained which allows replacement areas to be procured according to needs, and allows replacement recording to be performed. Such a recording medium is not limited to a write-once type, but may be a rewritable type, for example. By utilizing a rewritable type recording medium virtually as a write-once type recording medium, its capacity can be efficiently utilized.
Number | Date | Country | Kind |
---|---|---|---|
2004-201956 | Jul 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US05/12570 | 4/14/2005 | WO | 00 | 1/4/2007 |