JPH1196679A - Optical disk recording device - Google Patents

Optical disk recording device

Info

Publication number
JPH1196679A
JPH1196679A JP9253144A JP25314497A JPH1196679A JP H1196679 A JPH1196679 A JP H1196679A JP 9253144 A JP9253144 A JP 9253144A JP 25314497 A JP25314497 A JP 25314497A JP H1196679 A JPH1196679 A JP H1196679A
Authority
JP
Japan
Prior art keywords
recording
data
optical disk
buffer memory
run
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9253144A
Other languages
Japanese (ja)
Inventor
Hiromi Matsuki
広美 松木
Toyokatsu Uemura
豊克 植村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9253144A priority Critical patent/JPH1196679A/en
Publication of JPH1196679A publication Critical patent/JPH1196679A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

(57)【要約】 【課題】 追記型の光ディスク記録装置においてバッフ
ァメモリの監視を行い、記録の失敗時に自動でリカバー
処理を行い、ユーザーがリカバー処理せずに追記できる
ことを目的とする。 【解決手段】 ホスト101から光ディスク記録装置1
02へ転送される記録データを監視し、光ディスクへの
記録中にバッファメモリ108の記録データが一定数量
よりも少なくなったときにRun−out1、Run−
out2ブロックを自動生成し、すべての記録データが
なくなったときに自動生成したRun−out1、Ru
n−out2ブロックを光ディスクに記録し、正常に記
録が終了したときと同様に終了することで、ユーザーは
リカバー処理をすることなく光ディスクに追記できる。
(57) [Summary] An object of the present invention is to monitor a buffer memory in a write-once optical disc recording device, automatically perform a recovery process when recording fails, and allow a user to perform additional recording without performing a recovery process. SOLUTION: An optical disk recording apparatus 1 is provided from a host 101.
02 is monitored, and when the recording data in the buffer memory 108 becomes smaller than a certain number during recording on the optical disc, Run-out1 and Run-out1 are performed.
Run-out1, Ru automatically generated when the out2 block is automatically generated and all the recording data is lost.
By recording the n-out2 blocks on the optical disc and ending the recording in the same manner as when the recording is normally completed, the user can additionally record on the optical disc without performing the recovery process.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、光ディスク記録装
置に関するものであり、特にデータの記録途中における
エラー処理に特徴を有するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical disk recording apparatus, and more particularly to an error processing during data recording.

【0002】[0002]

【従来の技術】CD−WO(追記型)光ディスク記録装
置において、ホストコンピュータから転送された記録デ
ータを記録している場合、通常は、光ディスク記録装置
の記録処理よりもホストコンピュータの処理速度の方が
上回っていることが前提のため、光ディスク記録装置の
バッファメモリの記録データが記録途中で空になってし
まうことはないが、ホストコンピュータには、様々なも
のがあり、記録装置が高速になるほどホストコンピュー
タの記録データの転送速度が追いつかなくなることがあ
る。光ディスクへの記録が開始された光ディスク記録装
置は、バッファメモリの記録データを全て光ディスクに
記録してしまい、ホストコンピュータから記録データが
続けて転送されなければ、追記するデータがバッファメ
モリ内にないので、光ディスクへの記録を中止し、中止
情報をホストコンピュータへ報告するしかなかった。
2. Description of the Related Art In a CD-WO (write-once) optical disk recording apparatus, when recording data transferred from a host computer is recorded, the processing speed of the host computer is usually higher than the recording processing of the optical disk recording apparatus. Recording data in the buffer memory of the optical disk recording device will not be emptied during recording, but there are various types of host computers. The transfer speed of the recording data of the host computer may not be able to keep up. The optical disk recording device that has started recording on the optical disk records all the data recorded in the buffer memory on the optical disk, and if the recording data is not continuously transferred from the host computer, the data to be added is not in the buffer memory. However, there has been no choice but to stop recording on the optical disk and report the stop information to the host computer.

【0003】図1は、ホストコンピュータ101と光デ
ィスク記録装置102をインターフェースバス103で
接続した構成を示し、CPU106はメインメモリ10
5を使って記録データを作成し、インターフェース制御
部104からバス103を介して光ディスク記録装置1
02のインターフェース制御部107へライトコマンド
と記録データを転送する。記録データは、バッファメモ
リ108に保存され、バッファメモリ108からバッフ
ァ制御部109によってディスク記録制御部110に送
られ、光ディスク111に記録される。
FIG. 1 shows a configuration in which a host computer 101 and an optical disk recording device 102 are connected by an interface bus 103.
5, the recording data is created using the optical disk recording apparatus 1 via the bus 103 from the interface control unit 104.
The write command and the recording data are transferred to the interface control unit 107 of No. 02. The recording data is stored in the buffer memory 108, sent from the buffer memory 108 to the disk recording control unit 110 by the buffer control unit 109, and recorded on the optical disk 111.

【0004】図5は、従来の光ディスク記録装置でのデ
ータ処理のフローチャートを示すもので、図1と図5を
用いて、従来のデータ処理を説明する。S101におい
て、ホストコンピュータ101から転送された複数のラ
イトコマンドと記録データを受信すると、バッファ制御
部109の制御CPU203がバッファメモリ108の
記録データを管理し、バッファメモリ108に保存す
る。S102において、ホストコンピュータ101から
受信したコマンドが光ディスクへの記録の最後であるこ
とを示すシンクロナイズキャッシュコマンドならば、S
107でバッファメモリ108に格納されている全ての
データを光ディスク111に記録して、次のS108
で、最後の記録データに続けてRun−out1、Ru
n−out2ブロックを記録する。
FIG. 5 shows a flowchart of data processing in a conventional optical disk recording apparatus. The conventional data processing will be described with reference to FIGS. In step S101, when a plurality of write commands and recording data transferred from the host computer 101 are received, the control CPU 203 of the buffer control unit 109 manages the recording data in the buffer memory 108 and stores the data in the buffer memory 108. In step S102, if the command received from the host computer 101 is the synchronized cache command indicating that the recording on the optical disc is the last, the process proceeds to step S102.
At 107, all the data stored in the buffer memory 108 is recorded on the optical disc 111, and the next S108
Then, Run-out1 and Ru are executed after the last recording data.
Record n-out2 blocks.

【0005】ホストコンピュータ101から受信したコ
マンドがライトコマンドならば、記録データをバッファ
メモリ108に保存し、バッファメモリ108の記録デ
ータが一杯になっていれば、光ディスク111に記録を
開始する(S105)。このとき、制御CPU203は
バッファメモリ108の記録データを光ディスク111
に記録しながら、次のライトコマンドの受信をも監視す
る。S104において、記録の最後のコマンドであるこ
とを示すシンクロナイズキャッシュコマンドを受信して
いないうちにバッファメモリ中の記録データが全てなく
なった場合、S106において、ホストコンピュータ1
01に対して、記録が失敗したことを報告し記録を終了
する。
If the command received from the host computer 101 is a write command, the recording data is stored in the buffer memory 108, and if the recording data in the buffer memory 108 is full, recording on the optical disk 111 is started (S105). . At this time, the control CPU 203 transfers the data recorded in the buffer memory 108 to the optical disk 111.
While recording the next write command. In S104, when all the recording data in the buffer memory is exhausted before receiving the synchronization cache command indicating that it is the last command of recording, in S106, the host computer 1
01, it reports that the recording has failed and ends the recording.

【0006】前述の連続して記録している際、バッファ
メモリの記録データが全くなくなって記録が途切れてし
まい、光ディスクへの記録を継続できなくなる場合の記
録エラーを一般にバッファアンダーランエラーと称す
る。光ディスク記録装置は、データの記録を中止し、中
止した理由等の情報をホストコンピュータに報告する。
このとき、光ディスクは、バッファメモリ内に保存され
ていたホストコンピュータから転送されるべき全ての記
録データのうち途中までの記録データを記録した時点で
終了しているため、正常に記録が終了した場合に行われ
るRun−out1、Run−out2ブロックという
追記の目印ともいえる2ブロックを記録せずに終了して
いる。このため、前記光ディスクは追記可能な状態では
なくなっている。Run−out1、Run−out2
の2ブロックを併せてRun−outブロックと呼ば
れ、Run−outブロックは、規格で定められた追記
のための目印となるものである。追記動作のとき、つな
ぎ目は既に記録されているデータ部分と追記しようとす
るデータ部分が重なるようにして記録されるため、重な
る数ブロック分のデータがつぶれてしまう。記録データ
が追記のときにつぶれないようにするために、記録デー
タの後ろに予めRun−outブロックを設けて光ディ
スクに記録するのである。
[0006] In the above-described continuous recording, a recording error in a case where the recording data in the buffer memory is completely lost and the recording is interrupted and recording on the optical disk cannot be continued is generally called a buffer underrun error. The optical disk recording device stops recording data and reports information such as the reason for stopping to the host computer.
At this time, since the optical disc has been completed at the point when the recording data of all the recording data to be transferred from the host computer stored in the buffer memory has been recorded halfway, the recording is normally completed. Are completed without recording two blocks that can be referred to as additional marks, such as Run-out1 and Run-out2 blocks. For this reason, the optical disk is no longer in a state where additional recording is possible. Run-out1, Run-out2
These two blocks are collectively referred to as a run-out block, and the run-out block is a mark for additional recording defined by the standard. At the time of the additional recording operation, the joint is recorded so that the already recorded data portion and the data portion to be additionally recorded are overlapped, so that data of several overlapping blocks is destroyed. In order to prevent the recording data from being destroyed at the time of additional recording, a Run-out block is provided before the recording data and recorded on the optical disk.

【0007】バッファアンダーラン等のエラーにより、
データの記録が中止された光ディスクに再度データを記
録しようとする場合、ユーザーは、まず、前記光ディス
クに対してホストコンピュータから光ディスク記録装置
に追記可能な状態にするためにリペアトラックコマンド
を発行し、リカバーしなければならない。リペアトラッ
クコマンドとは、図1に示すホストコンピュータと光デ
ィスク記録装置の構成において、ホストコンピュータか
ら転送されてきた記録データを光ディスクに記録中、バ
ッファアンダーランエラー等により、光ディスクへの記
録が途中で途切れてしまっている場合に、ユーザー側か
らホストコンピュータより光ディスク記録装置に対して
リペアトラックコマンドを発行し、光ディスク記録装置
は記録が途中で途切れている光ディスクの最後の記録デ
ータの後に数ブロックのダミーデータとRun−out
1、Run−out2ブロックを付加して記録し、追記
の目印を付けるというものである。この光ディスクのリ
カバー処理により、Run−outブロックが付加され
正常に記録が終了した場合と同様の状態となり、追記が
可能になる。リペアトラックコマンドにおいて、光ディ
スクの最後の記録データに直接Run−out1、Ru
n−out2ブロックを記録すると継ぎ目のRun−o
ut1ブロックは、つぶれて読み取れないので、数ブロ
ックのダミーデータとRun−out1、Run−ou
t2ブロックを合わせて追記する。これにより、Run
−out1ブロックの読み取りは可能になるが、数ブロ
ックのダミーデータを付加することで、本来存在しない
はずの余分なブロックが記録されることになり、追記ア
ドレスの管理が複雑になる。
Due to an error such as a buffer underrun,
When trying to record data again on the optical disc on which data recording has been stopped, the user first issues a repair track command from the host computer to the optical disc so that the optical disc recording device can be added to the optical disc. I have to recover. In the configuration of the host computer and the optical disk recording apparatus shown in FIG. 1, the repair track command is a state in which recording data transferred from the host computer is being recorded on the optical disk, and recording on the optical disk is interrupted due to a buffer underrun error or the like. If the data has been lost, the user issues a repair track command from the host computer to the optical disk recording device, and the optical disk recording device sends a few blocks of dummy data after the last recorded data on the optical disk whose recording has been interrupted. And Run-out
1. Run-out 2 blocks are added and recorded, and a mark for additional writing is added. As a result of this optical disk recovery process, a run-out block is added and the state becomes the same as when recording is normally completed, and additional recording is possible. In the repair track command, Run-out1, Ru are directly added to the last recording data of the optical disc.
When n-out2 blocks are recorded, the run-o
Since the ut1 block is crushed and cannot be read, several blocks of dummy data and Run-out1 and Run-out
Additional information is added together with the t2 block. With this, Run
-Out1 block can be read, but by adding several blocks of dummy data, an extra block that should not exist originally is recorded, complicating the management of the additional write address.

【0008】[0008]

【発明が解決しようとする課題】従来のリペアトラック
コマンドは、光ディスクへの記録が終了した後、光ディ
スク記録装置がホストコンピュータからのコマンド受信
をして光ディスクのリカバーを行う。このリペアトラッ
クコマンドの処理とは、バッファアンダーランエラーな
どのために記録の途中で終了した光ディスクに対して、
最後の記録データに続いてRun−out1、Run−
out2ブロックを追記するが、追記の継ぎ目部分は、
既に記録されているユーザーデータに重なるようにして
記録されるため、継ぎ目のRun−out1ブロック
は、データがつぶれて光ディスクをリードしたときに読
み取れないので数ブロックのダミーデータとRun−o
ut1、Run−out2ブロックを合わせて追記する
必要があった。これにより、Run−out1ブロック
のリードは可能になるが、数ブロックのダミーデータを
付加することで、本来存在しないはずの余分なブロック
が記録されることになり、追記アドレスの管理が複雑に
なるという問題があった。
In the conventional repair track command, after recording on the optical disk is completed, the optical disk recording device receives a command from the host computer and recovers the optical disk. This repair track command processing is performed on an optical disc that has been completed during recording due to a buffer underrun error or the like.
Following the last recorded data, Run-out1, Run-out1
Out2 block is added, but the joint part of additional writing is
Since the data is recorded so as to overlap the already recorded user data, the run-out 1 block at the joint cannot be read when the optical disk is read due to the collapse of the data.
ut1 and Run-out2 blocks had to be additionally written. As a result, the Run-out1 block can be read, but by adding several blocks of dummy data, an extra block that should not exist originally is recorded, and the management of the additional write address becomes complicated. There was a problem.

【0009】また、Run−outブロックの数ブロッ
ク手前に記録の継ぎ目ができるので、リード時のシーク
動作において失敗の恐れがある。正常な記録動作の終了
では、記録の継ぎ目にRun−outブロックが存在す
るので追記アドレスのシーク処理は、Run−outブ
ロックを目標に実行されるが、リペアトラックコマンド
によってリカバー処理をされた光ディスクに対しては、
本来の継ぎ目部分にRun−outブロックが存在せ
ず、付加されるダミーデータの後にRun−outブロ
ックが配置され、追記アドレスを検出する場合の目標設
定が難しく、誤検出の恐れもある。また、これらのリカ
バー処理は、光ディスク記録装置のバッファメモリにリ
カバー用のダミーデータをセットし、記録の継ぎ目を検
出し、記録処理を開始するといった一連の記録手順を実
行することが必要であり、時間と手間を要する処理であ
った。
Further, since a recording seam is formed several blocks before the run-out block, there is a possibility that a seek operation at the time of reading may fail. At the end of the normal recording operation, the run-out block exists at the joint of the recording. Therefore, the seek processing of the additional write address is executed targeting the Run-out block. On the other hand,
The Run-out block does not exist at the original joint, and the Run-out block is arranged after the dummy data to be added. Therefore, it is difficult to set a target when detecting an added address, and there is a risk of erroneous detection. In addition, in these recovery processes, it is necessary to execute a series of recording procedures such as setting dummy data for recovery in a buffer memory of an optical disc recording device, detecting a seam of recording, and starting the recording process. The process required time and effort.

【0010】[0010]

【課題を解決するための手段】前記課題を解決するため
に、本発明の光ディスク記録装置は、ホストコンピュー
タとの間で、情報の転送を行うインターフェースと、前
記ホストコンピュータから転送されるデータを保存する
バッファメモリを有し、前記ホストコンピュータから転
送されたデータを前記バッファメモリに保存した後、そ
の保存されたデータを光ディスクに記録する光ディスク
記録装置において、前記光ディスクにデータを順次記録
している途中、前記バッファメモリの保存されたデータ
があらかじめ定められた数量より少なくなった場合に、
追記目印となるRun−outブロックを前記バッファ
メモリ内に自動生成し、その後前記バッファメモリ内に
光ディスクに記録すべき保存されたデータが全てなくな
ると前記光ディスクに対して光ディスク記録装置が自動
生成した前記Run−outブロックを前記データの最
後に続けて記録することを特徴としたものである。
In order to solve the above-mentioned problems, an optical disk recording apparatus of the present invention has an interface for transferring information to and from a host computer, and stores data transferred from the host computer. An optical disk recording device for storing data transferred from the host computer in the buffer memory, and then recording the stored data on an optical disk, while the data is being sequentially recorded on the optical disk. When the data stored in the buffer memory is less than a predetermined amount,
A run-out block serving as a postscript mark is automatically generated in the buffer memory, and when all the stored data to be recorded on the optical disk is exhausted in the buffer memory, the optical disk recording device automatically generates the run-out block. The run-out block is recorded at the end of the data.

【0011】本発明によれば、記録に失敗した光ディス
クに対してリカバー処理であるリペアトラックコマンド
を実行せず、追記可能な状態で記録を終了することが出
来、ユーザに負担を要しない。
According to the present invention, the recording can be completed in a recordable state without executing the repair track command which is the recovering process on the optical disk for which the recording has failed, and the user does not need to bear a load.

【0012】[0012]

【発明の実施の形態】本発明の請求項1に記載の光ディ
スク記録装置は、ホストコンピュータとの間で、情報の
転送を行うインターフェースと、前記ホストコンピュー
タから転送されるデータを保存するバッファメモリを有
し、前記ホストコンピュータから転送されたデータを前
記バッファメモリに保存した後、その保存されたデータ
を光ディスクに記録する光ディスク記録装置において、
前記光ディスクにデータを順次記録している途中、前記
バッファメモリの保存されたデータがあらかじめ定めら
れた数量より少なくなった場合に、追記目印となるRu
n−outブロックを前記バッファメモリ内に自動生成
し、その後前記バッファメモリ内に光ディスクに記録す
べき保存されたデータが全てなくなると前記光ディスク
に対して光ディスク記録装置が自動生成した前記Run
−outブロックを前記データの最後に続けて記録する
ことを特徴としたものであり、記録に失敗した光ディス
クに対してリカバー処理であるリペアトラックコマンド
を実行せず、追記可能な状態で記録を終了することが出
来、ユーザに負担を要しない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An optical disk recording apparatus according to a first aspect of the present invention comprises an interface for transferring information to and from a host computer, and a buffer memory for storing data transferred from the host computer. An optical disc recording apparatus having, after storing data transferred from the host computer in the buffer memory, recording the stored data on an optical disc,
While data is being sequentially recorded on the optical disk, if the amount of data stored in the buffer memory becomes smaller than a predetermined amount, Ru as an additional recording mark is used.
An n-out block is automatically generated in the buffer memory, and when all the stored data to be recorded on the optical disk are exhausted from the buffer memory, the Run generated automatically by the optical disk recording apparatus for the optical disk.
-Recording of an out block at the end of the data, without performing a repair track command as a recovery process on the optical disc for which recording has failed, and ending the recording in a recordable state. And no burden is imposed on the user.

【0013】次に請求項2に記載の光ディスク記録装置
は、請求項1において、前記Run−outブロックを
前記データの最後に続けて記録した後に、記録エラーで
あることを示す信号をホストコンピュータに返すことを
特徴としたものであり、記録失敗の光ディスクに対し
て、リカバー処理をすることなく再度記録することが出
来るとともに、エラー内容も知ることが出来、確実な追
記処理が出来る。
Next, in the optical disk recording apparatus according to the present invention, after recording the Run-out block at the end of the data, a signal indicating a recording error is sent to the host computer. It is characterized in that it can be re-recorded on an optical disc for which recording has failed without performing a recovery process, the error content can be known, and a reliable additional recording process can be performed.

【0014】(実施の形態)以下に本発明の請求項1に
記載された発明の実施の形態について図1、図2、図
3、図4を用いて説明する。
(Embodiment) An embodiment of the present invention described in claim 1 of the present invention will be described below with reference to FIGS. 1, 2, 3, and 4. FIG.

【0015】図2は、バッファ制御部109の詳細ブロ
ックを示すもので、201はアドレスバス、202はデ
ータバスを表し、各構成要素とバッファメモリを接続し
ている。バッファメモリ108の制御CPU203は、
ホストコンピュータ101からの記録データ転送の制
御、転送データ数の計数、バッファメモリ108の記録
データの管理、バッファメモリ108の空き容量の監
視、ディスク記録制御部110への記録指示を行う。ブ
ロックカウンタ204は、ホストコンピュータ101か
ら受け取ったライトコマンドの記録データのブロック数
を格納する。カウンタ205には、タイマ206で計測
した記録データの転送時間データを格納する。カウンタ
205には複数の計測値を格納することができる。
FIG. 2 shows a detailed block diagram of the buffer control unit 109. Reference numeral 201 denotes an address bus, and reference numeral 202 denotes a data bus. Each component is connected to a buffer memory. The control CPU 203 of the buffer memory 108
The host computer 101 controls transfer of recording data, counts the number of transfer data, manages recording data in the buffer memory 108, monitors the free space in the buffer memory 108, and issues a recording instruction to the disk recording control unit 110. The block counter 204 stores the number of blocks of recording data of the write command received from the host computer 101. The counter 205 stores transfer time data of the recording data measured by the timer 206. The counter 205 can store a plurality of measured values.

【0016】図3は、ホストコンピュータ101から光
ディスク記録装置が受信するライトコマンドの構成を示
したものであり、ライトコマンド部301と記録データ
部302から成る。ライトコマンド301の中にこれか
ら転送される記録データのブロック数が記録されてお
り、ライトコマンドに続いてXブロックの記録データ群
302がホストコンピュータ101から転送されること
が分かる。通常の記録ではホストコンピュータ側のメイ
ンメモリ容量が限られているため、複数のライトコマン
ドによって行われる。バッファメモリ108の制御CP
U203は、ホストコンピュータ101からライトコマ
ンド301を受信したとき、記録データのブロック数X
をブロックカウンタ204に格納する。制御CPU20
3は、バッファメモリ108の記録データ容量を確認し
ながら、光ディスク111への記録を行う。制御CPU
203は、バッファメモリ108の記録データが少なく
なったとき、例えば、最後の1ブロックになった場合に
光ディスク111に記録されているデータの次に隙間な
くRun−outブロックを記録できるようにRun−
out1、Run−out2ブロック303をバッファ
メモリ108の最後の記録データの続きに格納する。
FIG. 3 shows a configuration of a write command received by the optical disk recording apparatus from the host computer 101, and comprises a write command section 301 and a recording data section 302. The number of blocks of recording data to be transferred is recorded in the write command 301, and it can be seen that the recording data group 302 of X blocks is transferred from the host computer 101 following the write command. Normal recording is performed by a plurality of write commands because the main memory capacity of the host computer is limited. Control CP of buffer memory 108
U203, when receiving the write command 301 from the host computer 101, the number of blocks X of the recording data
Is stored in the block counter 204. Control CPU 20
3 performs recording on the optical disk 111 while checking the recording data capacity of the buffer memory 108. Control CPU
Reference numeral 203 denotes a Run-out block for recording a Run-out block without a gap next to the data recorded on the optical disk 111 when the recording data in the buffer memory 108 becomes small, for example, when the last one block is reached.
The out1 and Run-out2 blocks 303 are stored after the last record data in the buffer memory 108.

【0017】図4に示すフローチャートは、本発明の実
施の形態におけるホストコンピュータ101から光ディ
スク記録装置に記録データが転送されてからのデータ処
理の流れを示している。光ディスク記録装置102から
光ディスク111へのデータの記録は、通常、最初のラ
イトコマンドから記録に必要なブロック数を送るための
複数のライトコマンドが、ホストコンピュータ101か
ら転送され、記録の最後のコマンドであることを示すシ
ンクロナイズキャッシュコマンドまで行われ、光ディス
ク記録装置102のバッファメモリ108に保存されて
いる記録データを全て光ディスク111に記録する。
FIG. 4 is a flowchart showing the flow of data processing after recording data is transferred from the host computer 101 to the optical disk recording apparatus according to the embodiment of the present invention. In recording data from the optical disc recording device 102 to the optical disc 111, normally, a plurality of write commands for transmitting the number of blocks necessary for recording are transferred from the host computer 101 from the first write command, and the last command of the recording is used. A synchronization cache command indicating that there is an instruction is issued, and all the recording data stored in the buffer memory 108 of the optical disk recording device 102 is recorded on the optical disk 111.

【0018】S201において、光ディスク記録装置1
02がホストコンピュータ101から複数のライトコマ
ンドとそれに続く記録データを受信するとバッファ制御
部109の制御CPU203がバッファメモリ108の
記録データを管理し、バッファメモリ108に保存す
る。S202において、ホストコンピュータ101から
受信したコマンドが光ディスクへの記録の最後のコマン
ドを示すシンクロナイズキャッシュコマンドならば、S
210でバッファメモリ108に格納されている全ての
データを光ディスク111に記録して、次のS211で
最後の記録データに続けてRun−out1、Run−
out2ブロックを記録する。
In S201, the optical disk recording device 1
When 02 receives a plurality of write commands and subsequent recording data from the host computer 101, the control CPU 203 of the buffer control unit 109 manages the recording data in the buffer memory 108 and stores it in the buffer memory 108. In step S202, if the command received from the host computer 101 is a synchronized cache command indicating the last command of recording on the optical disc, the process proceeds to step S202.
At 210, all the data stored in the buffer memory 108 is recorded on the optical disc 111, and at the next S211 following the last recorded data, Run-out1, Run-out1 are performed.
Record out2 block.

【0019】ホストコンピュータ101から受信したコ
マンドがライトコマンドならば、記録データをバッファ
メモリ108に保存し、バッファメモリ108の記録デ
ータが一杯になっていれば、S206において光ディス
ク111に記録を開始する。このとき、制御CPU20
3はバッファメモリ108の記録データを光ディスク1
11に記録しながら、次のライトコマンドの受信をも監
視する。
If the command received from the host computer 101 is a write command, the recording data is stored in the buffer memory 108. If the recording data in the buffer memory 108 is full, recording on the optical disk 111 is started in S206. At this time, the control CPU 20
Reference numeral 3 denotes an optical disc 1 which stores the data recorded in the buffer memory 108.
While recording the data at 11, the reception of the next write command is also monitored.

【0020】S204において、記録の最後のコマンド
であることを示すシンクロナイズキャッシュコマンドを
受信していないうちにバッファメモリ中の記録データが
全てなくなった場合、S207で、予め記録データが残
り1ブロックになったときにバッファメモリ108に格
納しておいたRun−out1、Run−out2ブロ
ックを、S208で光ディスク111に記録し、S20
9においてホストコンピュータ101に対して、記録が
失敗したことを報告し、記録を終了するが、光ディスク
111は正常な記録終了の場合と同じ状態である。すな
わち、リカバー処理をしてエラーをホストコンピュータ
101に返すのでエラー対策処理が容易に出来る。バッ
ファメモリ108の記録データがある一定の数量より少
なくなり、制御CPU203がRun−out1、Ru
n−out2ブロックをバッファメモリ108の最後の
記録データの続きに格納した後、ホストコンピュータ1
01から継続のライトコマンドと記録データを受信した
場合は、格納したRun−out1、Run−out2
ブロックは必要なくなるので、S206において、Ru
n−out1、Run−out2ブロックを格納した位
置に上書きするようにホストコンピュータ101から受
信した記録データをバッファメモリ108に保存し、通
常通り記録を続行する。同様にRun−out1、Ru
n−out2ブロックを用意した後、ホストコンピュー
タ101からシンクロナイズキャッシュコマンドを受信
した場合は、S211において、バッファメモリの記録
データに続いて格納していたRun−out1、Run
−out2ブロックを光ディスク111に記録して終了
する。
In S204, if all the recording data in the buffer memory is exhausted before receiving the synchronization cache command indicating that it is the last command of recording, in S207, the remaining recording data becomes one block in advance. The Run-out 1 and Run-out 2 blocks stored in the buffer memory 108 at the time of
At 9, the host computer 101 is notified that the recording has failed, and the recording is terminated. However, the optical disk 111 is in the same state as when the recording has been completed normally. That is, the error recovery process is performed and an error is returned to the host computer 101, so that the error countermeasure process can be easily performed. When the recording data of the buffer memory 108 becomes smaller than a certain amount, the control CPU 203 executes Run-out1, Ru
After storing the n-out2 block after the last record data in the buffer memory 108, the host computer 1
When a write command and recording data continued from 01 are received, the stored Run-out1 and Run-out2 are stored.
Since the block is not required, Ru is determined in S206.
The recording data received from the host computer 101 is stored in the buffer memory 108 so as to overwrite the position where the n-out1 and Run-out2 blocks are stored, and recording is continued as usual. Similarly, Run-out1, Ru
When the synchronized cache command is received from the host computer 101 after preparing the n-out2 block, in step S211 the run-out1 and the run-run1, which have been stored following the data recorded in the buffer memory, are stored.
-Out2 blocks are recorded on the optical disc 111, and the process ends.

【0021】[0021]

【発明の効果】以上のように、本発明の光ディスク記録
装置及びその方法によれば、光ディスクへの記録中にバ
ッファメモリの記録データが少なくなった場合にRun
−outブロックを用意しておき、記録が進み、バッフ
ァメモリの記録データが全てなくなってしまったとき、
用意しておいたRun−outブロックを光ディスクに
記録し、記録失敗をホストコンピュータに報告すること
で、光ディスク記録装置側でリペアトラックコマンドを
行ったことになる。ユーザーは、記録失敗の光ディスク
に対して、リカバー処理をすることなく再度記録を行う
ことができる。また、光ディスク記録装置が、Run−
outブロックを用意した後で、ホストコンピュータか
ら継続のライトコマンドと記録データが転送された場合
は、バッファメモリのRun−outブロックを記録し
た部分に記録データを上書き保存し、通常通り記録を継
続すれば良い。バッファメモリの記録データを光ディス
クに記録してしまって全てなくなったとき、ユーザーが
シンクロナイズキャッシュコマンドを発行しようとして
いたのであれば、光ディスク記録装置は、既に記録デー
タに続けてRun−outブロックを格納してあるので
それを光ディスクに記録するだけで良く、先取りしてシ
ンクロナイズキャッシュコマンドを実行したことにな
り、通常の記録終了と同じであり、記録エラー時の後処
理を自動化できる。
As described above, according to the optical disk recording apparatus and method of the present invention, when the recording data in the buffer memory becomes small during recording on the optical disk, the Run
-Out block is prepared, and when the recording proceeds and all the recording data in the buffer memory is exhausted,
By recording the prepared Run-out block on the optical disk and reporting the recording failure to the host computer, the optical disk recording device has performed a repair track command. The user can perform recording again on the optical disk for which recording has failed without performing recovery processing. Also, the optical disk recording device is a Run-
When the write command and the recording data are transferred from the host computer after preparing the out block, the recording data is overwritten and saved in the portion of the buffer memory where the Run-out block is recorded, and the recording can be continued as usual. Good. When the recording data in the buffer memory is recorded on the optical disc and all the data is lost, if the user intends to issue a synchronizing cache command, the optical disc recording apparatus stores the Run-out block after the recording data. Therefore, it is only necessary to record it on the optical disk, and the synchronization cache command is executed in advance, which is the same as the end of normal recording, and post-processing at the time of recording error can be automated.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態における光ディスク記録装
置の全体のブロック構成図
FIG. 1 is an overall block diagram of an optical disc recording apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態における光ディスク記録装
置のバッファメモリ制御部の詳細ブロック図
FIG. 2 is a detailed block diagram of a buffer memory control unit of the optical disc recording device according to the embodiment of the present invention.

【図3】本発明の光ディスク記録装置の記録データの転
送に使用するコマンドの構成とバッファメモリの内容を
模式的に示す図
FIG. 3 is a diagram schematically showing a configuration of a command used for transferring recording data of the optical disc recording apparatus of the present invention and the contents of a buffer memory;

【図4】本発明の実施の形態における光ディスク記録装
置の記録データの処理を示すフローチャート
FIG. 4 is a flowchart showing recording data processing of the optical disc recording apparatus according to the embodiment of the present invention;

【図5】従来の実施の形態における光ディスク記録装置
の記録データの処理を示すフローチャート
FIG. 5 is a flowchart showing processing of recording data of an optical disk recording device according to a conventional embodiment.

【符号の説明】[Explanation of symbols]

107 インターフェイス制御部 108 バッファメモリ 109 バッファ制御部 110 ディスク記録制御部 203 制御CPU 204 ブロックカウンタ 205 カウンタ 206 タイマ 107 Interface control unit 108 Buffer memory 109 Buffer control unit 110 Disk recording control unit 203 Control CPU 204 Block counter 205 Counter 206 Timer

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G11B 20/18 572 G11B 20/18 572F 572C ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI G11B 20/18 572 G11B 20/18 572F 572C

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータとの間で、情報の転
送を行うインターフェースと、前記ホストコンピュータ
から転送されるデータを保存するバッファメモリを有
し、前記ホストコンピュータから転送されたデータを前
記バッファメモリに保存した後、その保存されたデータ
を光ディスクに記録する光ディスク記録装置において、
前記光ディスクにデータを順次記録している途中、前記
バッファメモリの保存されたデータがあらかじめ定めら
れた数量より少なくなった場合に、追記目印となるRu
n−outブロックを前記バッファメモリ内に自動生成
し、その後前記バッファメモリ内に光ディスクに記録す
べき保存されたデータが全てなくなると前記光ディスク
に対して光ディスク記録装置が自動生成した前記Run
−outブロックを前記データの最後に続けて記録する
ことを特徴とする光ディスク記録装置。
An interface for transferring information to and from a host computer, and a buffer memory for storing data transferred from the host computer, wherein the data transferred from the host computer is stored in the buffer memory. After storing, in an optical disk recording device that records the stored data on an optical disk,
While data is being sequentially recorded on the optical disk, if the amount of data stored in the buffer memory becomes smaller than a predetermined amount, Ru as an additional recording mark is used.
An n-out block is automatically generated in the buffer memory, and when all the stored data to be recorded on the optical disk are exhausted from the buffer memory, the Run generated automatically by the optical disk recording apparatus for the optical disk.
An optical disk recording apparatus, wherein an out block is recorded at the end of the data.
【請求項2】 前記Run−outブロックを前記デー
タの最後に続けて記録した後に、記録エラーであること
を示す信号をホストコンピュータに返すことを特徴とす
る請求項1に記載の光ディスク記録装置。
2. The optical disk recording apparatus according to claim 1, wherein a signal indicating a recording error is returned to a host computer after recording the Run-out block at the end of the data.
JP9253144A 1997-09-18 1997-09-18 Optical disk recording device Pending JPH1196679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9253144A JPH1196679A (en) 1997-09-18 1997-09-18 Optical disk recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9253144A JPH1196679A (en) 1997-09-18 1997-09-18 Optical disk recording device

Publications (1)

Publication Number Publication Date
JPH1196679A true JPH1196679A (en) 1999-04-09

Family

ID=17247138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9253144A Pending JPH1196679A (en) 1997-09-18 1997-09-18 Optical disk recording device

Country Status (1)

Country Link
JP (1) JPH1196679A (en)

Similar Documents

Publication Publication Date Title
US20130254457A1 (en) Methods and structure for rapid offloading of cached data in a volatile cache memory of a storage controller to a nonvolatile memory
JPH01231122A (en) Data storage device
KR100391740B1 (en) A management method for reproducing error and a disk drive making use of the management method
JPH1196679A (en) Optical disk recording device
JPS5858726B2 (en) Fault isolation diagnosis method
JP2001051808A (en) Dynamic defect management method for rewritable optical disk
JP3845239B2 (en) Disk array device and failure recovery method in disk array device
JPS61278958A (en) Data transfer device
JP3457602B2 (en) Disk unit
JP2644218B2 (en) Magnetic recording method
JP3275492B2 (en) Linked disk unit
JP3870024B2 (en) Information recording apparatus and information recording method
JP3335969B2 (en) Magnetic disk drive
US20070174739A1 (en) Disk device, method of writing data in disk device, and computer product
JP2004199743A (en) Recording / reproducing apparatus and recording / reproducing control method
JP3436206B2 (en) Retry method, recording medium, magnetic tape control device, input / output device, information processing device
JPS6347937Y2 (en)
JPH0750428B2 (en) Disk double writing controller
JP4433185B2 (en) Data collection method and apparatus
JPH096545A (en) User file backup system
JP2595316B2 (en) Alternate assignment processing method
JPS63121171A (en) Optical disk device control method
JPH0895718A (en) Magneto-optical disk drive system
JPH021035A (en) External storage device write control method
JP3484707B2 (en) Asynchronous data transfer controller