JP2589378B2 - Magneto-optical disk processing unit - Google Patents

Magneto-optical disk processing unit

Info

Publication number
JP2589378B2
JP2589378B2 JP15609889A JP15609889A JP2589378B2 JP 2589378 B2 JP2589378 B2 JP 2589378B2 JP 15609889 A JP15609889 A JP 15609889A JP 15609889 A JP15609889 A JP 15609889A JP 2589378 B2 JP2589378 B2 JP 2589378B2
Authority
JP
Japan
Prior art keywords
sector
error
data
determined
replacement
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.)
Expired - Fee Related
Application number
JP15609889A
Other languages
Japanese (ja)
Other versions
JPH0322265A (en
Inventor
誠一 山口
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.)
NEC Gunma Ltd
Original Assignee
NEC Gunma 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 NEC Gunma Ltd filed Critical NEC Gunma Ltd
Priority to JP15609889A priority Critical patent/JP2589378B2/en
Publication of JPH0322265A publication Critical patent/JPH0322265A/en
Application granted granted Critical
Publication of JP2589378B2 publication Critical patent/JP2589378B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータを書替え可能な光磁気ディスク処理装
置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data rewritable magneto-optical disk processing apparatus.

〔従来の技術〕[Conventional technology]

従来の光磁気ディスク処理装置に於いては光磁気ディ
スク媒体の記録容量が大きいこと及び光磁気ディスク媒
体が交換可能媒体であることにより、データ書込み後の
ベリファイチェック動作に於いて書込みを行なったセク
タの欠陥を検出した場合は、そのセクタを含む複数のセ
クタからなるグループに割当てられているグループ交替
セクタ領域内のセクタに、上記欠陥のあるセクタへ書込
もうとしたデータに交替元及び交替先アドレスを示すポ
インタを付加して書込むと共に、効替情報マップ領域に
交替元セクタを交替先セクタとの関係を示す情報を書込
み、更にグループ交替セクタ領域を用いても正常な書込
みを行なうことができなかった場合は光磁気ディスク媒
体の全領域に対して設けられた交替トラック領域内のセ
クタに、上記欠陥のあるセクタへ書込もうとしたデータ
に交替元及び交替先アドレスを示すポインタを付加して
書込むと共に、交替情報マップ領域に交替共セクタと交
換セクタとの関係を示す情報を書込むようにしている。
そして、交替トラック領域を用いても正常な書込みを行
なうことができなかった場合はその光磁気ディスク媒体
が使用不能であることを利用者に通知するようにしてい
る。
In the conventional magneto-optical disk processing apparatus, since the recording capacity of the magneto-optical disk medium is large and the magneto-optical disk medium is an exchangeable medium, the sector that has been written in the verify check operation after data writing has been used. Is detected, the data in the group replacement sector area assigned to the group consisting of a plurality of sectors including the sector is replaced with the data to be written to the defective sector by the replacement source and the replacement destination. In addition to writing with a pointer indicating an address, information indicating the relationship between the replacement source sector and the replacement destination sector is written in the replacement information map area, and normal writing can be performed even using the group replacement sector area. If the defect cannot be found, the sector in the alternate track area provided for the entire area of the magneto-optical disk That the data tries to write to the sector with writing by adding a pointer to the replacement source and replacement destination address, so that writing information showing the relationship between the exchange sector and alternate co sector replacement information map area.
If normal writing could not be performed using the replacement track area, the user is notified that the magneto-optical disk medium is unusable.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来は上述したように、交替トラック領域を用いても
正常な書込みを行なうことができなかった場合、光磁気
ディスク媒体が使用不能であることを利用者に通知する
だけであったため、光磁気ディスク媒体の劣化を早期に
検出して媒体交換を行なったり、媒体の汚れを検出して
清掃を行なったりすることができない問題があった。
Conventionally, as described above, when normal writing could not be performed using the alternate track area, the user was only notified that the magneto-optical disk medium was unusable. There is a problem that the medium cannot be replaced by detecting the deterioration of the medium at an early stage, or the medium cannot be cleaned by detecting the contamination of the medium.

本発明の目的は光磁気ディスク媒体の劣化や汚れを早
期に検出できるようにすることにより、光磁気ディスク
処理装置の信頼性を高めることにある。
SUMMARY OF THE INVENTION An object of the present invention is to improve the reliability of a magneto-optical disk processing device by enabling early detection of deterioration and dirt on a magneto-optical disk medium.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は上記目的を達成するため、第1図の構成図に
示すように、 光磁気ディスク媒体1に対するデータの書込み及び読
取りを行なう光磁気ディスク処理装置に於いて、 前記光磁気ディスク媒体1にエラー発生回数とエラー
セクタ数とが登録されるエラー管理領域2を設けると共
に、 データの書込み時、新規なセクタに対する書込みエラ
ーの検出することにより、前記エラー管理領域2に登録
されているエラーセクタ数を更新する書込みエラー検出
手段3と、 データの読取り時、読取りエラーを検出することによ
り、前記エラー管理領域2に登録されているエラー発生
回数を更新する読取りエラー検出手段4と、 前記エラー管理領域2に登録されているエラー発生回
数及びエラーセクタ数が規定値を越えているか否かを判
定する判定手段5とを設けたものである。
In order to achieve the above object, the present invention provides a magneto-optical disk processing device for writing and reading data to and from a magneto-optical disk medium 1 as shown in the block diagram of FIG. An error management area 2 in which the number of times of occurrence of an error and the number of error sectors are registered is provided. At the time of writing data, a write error in a new sector is detected, so that the number of error sectors registered in the error management area 2 is determined. A read error detecting unit 3 for updating the number of times of error registration registered in the error management area 2 by detecting a read error when reading data; and Determining means for determining whether or not the number of error occurrences and the number of error sectors registered in step 2 exceed a specified value It is provided with a door.

〔作 用〕(Operation)

光磁気ディスク媒体1にはエラー発生回数とエラーセ
クタ数とが登録されるエラー管理領域2が設けられてい
る。書込みエラー検出手段3はデータの書込み時に新規
なセクタに対する書込みエラーを検出することにより、
エラー管理領域2に登録されているエラーセクタ数を更
新し、読取りエラー検出手段4はデータの読取り時に読
取りエラーを検出することにより、エラー管理領域に登
録されているエラー発生回数を更新する。判定手段5は
エラー管理領域2に登録されているエラー発生回数及び
エラーセクタ数が規定値を越えているか否かを判定す
る。
The magneto-optical disk medium 1 is provided with an error management area 2 in which the number of times of error occurrence and the number of error sectors are registered. The write error detecting means 3 detects a write error for a new sector when writing data,
The number of error sectors registered in the error management area 2 is updated, and the read error detection unit 4 updates the number of times of error registration registered in the error management area by detecting a read error when reading data. The determination means 5 determines whether the number of times of error occurrence and the number of error sectors registered in the error management area 2 exceed specified values.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の実施例のブロック図であり、マイク
ロプロセッサ21と、ホストシステム22と、ホストインタ
ーフェイス23と、セレクタ24と、書込みデータ及び読出
しデータが一時格納されるデータバッファ25と、書込み
データにエラー訂正コードを付加するエラー訂正用エン
コーダ26と、エラー訂正コードを利用してエラー訂正を
行なうと共に、訂正した1ブロック中のバイト数及びエ
ラー訂正処理を行なったブロック中のデータのパターン
が後述する特殊ショートパターンであるのか、空パター
ンであるのか、その他のパターンであるのかを示す情報
をマイクロプロセッサ21に送るエラー訂正用デコーダ27
と、変調回路28と、復調回路29と、セクタフォーマット
制御回路30と、ドライブインターフェイス31と、ドライ
ブ装置32と、光磁気ディスク媒体33と、読取り位置やフ
ラグの書込みタイミング,フラグ検出ウインドー等のタ
イミングを発生し、変調回路28,復調回路29,セクタフォ
ーマット制御回路30に加えるセクタタイミングコントロ
ール回路34とから構成されている。
FIG. 2 is a block diagram of an embodiment of the present invention. The microprocessor 21, a host system 22, a host interface 23, a selector 24, a data buffer 25 for temporarily storing write data and read data, An error correction encoder 26 for adding an error correction code to data, and an error correction using the error correction code, and the number of bytes in one corrected block and the pattern of the data in the block that has been subjected to the error correction processing are changed. An error correction decoder 27 that sends information indicating to the microprocessor 21 whether it is a special short pattern, an empty pattern, or another pattern, which will be described later.
, A modulation circuit 28, a demodulation circuit 29, a sector format control circuit 30, a drive interface 31, a drive device 32, a magneto-optical disk medium 33, a read position, a flag write timing, a flag detection window, etc. And a sector timing control circuit 34 which is added to the modulation circuit 28, the demodulation circuit 29, and the sector format control circuit 30.

第3図は光磁気ディスク媒体33の記憶領域のフォーマ
ット図であり、制御テスト領域41−1,41−2と、交替情
報マップ領域42と、エラー管理領域43と、ユーザ領域44
−1〜44−nと、各ユーザ領域44−1〜44−nに対応し
て設けられているグループ交替セクタ領域45−1〜45−
nと、交替トラック領域46とから構成されている。
FIG. 3 is a format diagram of the storage area of the magneto-optical disk medium 33. The control test areas 41-1 and 41-2, the replacement information map area 42, the error management area 43, and the user area 44
-1 to 44-n and group replacement sector areas 45-1 to 45- provided corresponding to the user areas 44-1 to 44-n.
n and a replacement track area 46.

制御テスト領域41−1,41−2は媒体のタイプ(追記
型,書替え型),信号極性,書込みパワー,回転スピー
ド,変調モード,セクタ/トラック等を記録する領域
と、複数の記録テストトラックとから構成される。ユー
ザ領域44−1〜44−nはホストシステム22から転送され
てきたデータを書込む領域であり、ユーザ領域に欠陥が
なければ、全ての書込みデータはユーザ領域に書込まれ
る。交替情報マップ領域42はユーザ領域44−1〜44−n
に欠陥があり、グループ交替セクタ領域45−1〜45−n
または交替トラック領域46にデータが書込まれた場合、
交替処理に関連する情報を記録する領域である。グルー
プ交替セクタ領域45−1〜45−nはユーザ領域44−1〜
44−nに欠陥セクタがあった場合に最初に使用される交
換領域であり、交替トラック領域46は対応するグループ
交替セクタ領域45−1〜45−nが使用済みとなった場合
に使用される交替領域である。
The control test areas 41-1 and 41-2 are areas for recording the type of medium (write-once type, rewritable type), signal polarity, write power, rotation speed, modulation mode, sector / track, etc., and a plurality of recording test tracks. Consists of The user areas 44-1 to 44-n are areas for writing data transferred from the host system 22, and if there is no defect in the user area, all write data is written to the user area. The replacement information map area 42 includes user areas 44-1 to 44-n.
Is defective and the group replacement sector areas 45-1 to 45-n
Or, when data is written in the replacement track area 46,
This area records information related to the replacement process. The group replacement sector areas 45-1 to 45-n correspond to the user areas 44-1 to 45-n.
The replacement area is used first when there is a defective sector in 44-n, and the replacement track area 46 is used when the corresponding group replacement sector area 45-1 to 45-n has been used. This is a replacement area.

第4図は光磁気ディスク媒体38上のセクタのフォーマ
ット図であり、同図(a)に示すように1つのセクタ51
はID(アドレス)部52と、フラブ部53と、データ部54と
から構成されている。データ部54にはアドレスポインタ
(AP)54−1とエラー訂正コード(ECC)54−2とが含
まれており、ユーザ領域44−1〜44−n上のセクタのア
ドレスポインタ54−1には同図(b)に示すように自己
物理アドレス55と交替先予定物理アドレス56とが記録さ
れ、グループ交替セクタ領域45−1〜45−n及び交替ト
ラック領域46上のセクタのアドレスポインタ54−1には
同図(c)に示すように自己物理アドレス57と交替元物
理アドレスとが記録される。
FIG. 4 is a format diagram of a sector on the magneto-optical disk medium 38. As shown in FIG.
Is composed of an ID (address) section 52, a flap section 53, and a data section 54. The data section 54 includes an address pointer (AP) 54-1 and an error correction code (ECC) 54-2, and the address pointer 54-1 of a sector on the user areas 44-1 to 44-n is As shown in FIG. 7B, the self physical address 55 and the replacement destination physical address 56 are recorded, and the address pointer 54-1 of the sector on the group replacement sector areas 45-1 to 45-n and the replacement track area 46 is recorded. The self physical address 57 and the replacement source physical address are recorded as shown in FIG.

第5図は交替情報マップ領域42の記憶内容を示した図
であり、交替情報マップ領域42に記憶される1つの交替
マップ情報61は交替物元理アドレス62と交替先物理アド
レス63とから構成される。尚、本実施例では交替共物理
アドレス62及び交替先物理アドレス63は共に4重書きさ
れるものとする。
FIG. 5 is a diagram showing the storage contents of the replacement information map area 42. One replacement map information 61 stored in the replacement information map area 42 is composed of a replacement physical address 62 and a replacement physical address 63. Is done. In this embodiment, the replacement co-physical address 62 and the replacement destination physical address 63 are both written in quadruple.

第6図はエラー管理領域43に書込まれる情報を示した
図であり、サーティファイ処理の未実行,実行中,実行
完了を示すフラグ71と、サーティファイアドレス72と、
ターティファイ処理時に検出した欠陥セクタ数73と、書
込み処理時に検出したエラーセクタ数74と、読取り処理
時に発生したエラー発生回数75とが書込まれる。
FIG. 6 is a diagram showing information written to the error management area 43. The flag 71 indicates that the certification process has not been executed, is being executed, or has been completed, a certification address 72,
The number 73 of defective sectors detected at the time of the certify processing, the number 74 of error sectors detected at the time of write processing, and the number 75 of errors occurring at the time of read processing are written.

第7図〜第10図はマイクロプロセッサ21の処理例を示
すフローチャートであり、以下各図を参照して本実施例
の動作を説明する。
7 to 10 are flowcharts showing processing examples of the microprocessor 21, and the operation of the present embodiment will be described below with reference to the drawings.

先ず、第7図を参照して書込み時の動作を説明する。 First, the write operation will be described with reference to FIG.

ホストシステム22は書込み命令を出力した後、書込み
データを出力する。書込み命令はホストインターフェイ
ス23を介してマイクロプロセッセ21に加えられ、書込デ
ータはホストインターフェイス23,セレクタ24を介して
データバッファ25に蓄えられる。書込み命令は書込みを
行なう先頭のセクタの物理アドレスと、書込みを行なう
データのブロック数(1つのブロックと1つのセクタと
は対応する)とを含むものであり、書込み命令が加えら
れると、マイクロプロセッサ21は先ず、光磁気ディスク
媒体23の交替情報マップ領域42に格納されている交替情
報を読取り済みか否かを判断する(ステップS1)。そし
て、読取り済みでないと判断した場合は交替情報マップ
領域43に記憶されている交替情報を読取り、図示を省略
した内部メモリに記憶した後(ステップS2)、ステップ
S3の処理を行ない、読取り済みであると判断した場合は
直ちにステップS3の処理を行なう。交替情報マップ領域
42の情報を読込む場合、マイクロプロセッサ21はドライ
ブインターフェイス31を介してドライブ装置32にヘッド
を交替情報マップ領域42上に移動させ、交替情報マップ
領域42に書込まれている交替情報を読出すことを指示す
る。これにより、ドライブ装置32は光磁気ディスク媒体
33から交替情報マップ領域42に格納されている交替情報
を読出し、読出された交替情報はドライブインターフェ
イス31,セクタフォーマット制御回路30,復調回路29,エ
ラー訂正用デコーダ27,セレクタ24を介してデータバッ
ファ25に蓄えられ、マイクロプロセッサ21はデータバッ
ファ25に蓄えられた交替情報セレクタ24を介して読込
み、内部メモリに格納する。
After outputting the write command, the host system 22 outputs the write data. The write command is applied to the microprocessor 21 via the host interface 23, and the write data is stored in the data buffer 25 via the host interface 23 and the selector 24. The write instruction includes the physical address of the first sector to be written and the number of blocks of data to be written (one block and one sector correspond to each other). 21 first determines whether or not the replacement information stored in the replacement information map area 42 of the magneto-optical disk medium 23 has been read (step S1). If it is determined that the replacement information has not been read, the replacement information stored in the replacement information map area 43 is read and stored in an internal memory (not shown) (step S2).
The process of S3 is performed, and if it is determined that the data has been read, the process of step S3 is immediately performed. Replacement information map area
When reading the information of 42, the microprocessor 21 causes the drive device 32 to move the head onto the replacement information map area 42 via the drive interface 31, and reads the replacement information written in the replacement information map area 42. To indicate that As a result, the drive device 32 is
The replacement information stored in the replacement information map area 42 is read from the replacement information map 33, and the read replacement information is transferred to the data buffer via the drive interface 31, the sector format control circuit 30, the demodulation circuit 29, the error correction decoder 27, and the selector 24. The microprocessor 21 reads the data through the replacement information selector 24 stored in the data buffer 25 and stores the read data in the internal memory.

次いで、マイクロプロセッサ21はステップS3に於いて
今回データの書込みを行なうユーザ領域上のセクタ(原
始セクタ)のアドレスを示す情報が内部メモリに格納さ
れている交替情報中に存在するか否かを判断する。そし
て、存在しないと判断した場合は原始セクタに対する消
去処理を行ない(ステップS4)、存在すると判断した場
合は原始セクタのアドレスとアドレスが対応して記録さ
れているグループ交替セクタ領域或いは交替トラック領
域上のセクタ(交替セクタ)に対する消去処理を行なう
(ステップS5)。
Next, in step S3, the microprocessor 21 determines whether or not the information indicating the address of the sector (primary sector) in the user area to which the data is to be written this time exists in the replacement information stored in the internal memory. I do. If it is determined that the original sector does not exist, the erasing process is performed on the source sector (step S4). If it is determined that the source sector is present, the address of the source sector is recorded in the group replacement sector area or the replacement track area. Erase processing is performed on the sector (replacement sector) (step S5).

ステップS4の処理を行なった場合は、マイクロプロセ
ッサ21は原始セクタに対するデータの書込みを行ない
(ステップS6)、ステップS5の処理を行なった場合は、
交替セクタに対するデータの書込みを行なう(ステップ
S7)。原始セクタ或いは交替セクタにデータを書込む場
合、マイクロプロセッサ21はドライブインターフェイス
31を介してドライブ装置32にデータを書込むセクタのア
ドレスを通知すると共にデータバッファ25から1ブロッ
ク分の書込みデータを読出す。データバッファ25から読
出された書込みデータはエラー訂正用エンコーダ26によ
りエラー訂正コードが付加され、変調回路28を介してセ
クタフォーマット制御回路30に加えられ、セクタフォー
マット制御回路30に於いてフォーマットが整えられた
後、ドライブインターフェイス31を介してドライフ装置
32に送られ、光磁気ディスク媒体33上の所定位置に書込
まれる。データの書込み時、データを書込もうとするセ
クタのID部52に第11図にし示すように、欠陥52′があっ
た場合は、データ部54に本来のデータよりも短い特殊シ
ョートパターン55を書込む(ステップS8,S9)。特殊シ
ョートパターンの書込みは、ドライブ装置32のヘッドが
データを書込もうとするセクタ上に来た時(ID部に欠陥
があり、ID部の内容に基づいてはヘッドがデータを書込
もうとしたセクタ上に来たか否かを判断することができ
ないので、データの書込もうとしたセクタの1つ前のセ
クタを検出し、更に、次のセクタを検出した時、ヘッド
がデータを書込もうとしたセクタ上に来たと判断す
る)、セクタフォーマット制御回路30に特殊ショートパ
ターンの出力指示を加えることにより行なうものであ
り、セクタフォーマット制御回路30は出力指示が加えら
れることにより特殊ショートパターンを出力し、セクタ
フォーマット制御回路30から出力された特殊ショートパ
ターンはドライブインターフェイス31を介してドライブ
装置32に加えられ、ID部に欠陥のあるセクタに書込まれ
る。
When the processing in step S4 is performed, the microprocessor 21 writes data to the source sector (step S6), and when the processing in step S5 is performed,
Write data to the replacement sector (step
S7). When writing data to the original sector or the replacement sector, the microprocessor 21
The address of the sector to which the data is to be written is notified to the drive device 32 via 31 and the write data for one block is read from the data buffer 25. The write data read from the data buffer 25 is added with an error correction code by an error correction encoder 26, is applied to a sector format control circuit 30 through a modulation circuit 28, and is formatted in the sector format control circuit 30. After that, the drive device 31 through the drive interface 31
The data is sent to a predetermined position on the magneto-optical disk medium 33. When writing data, if there is a defect 52 'in the ID section 52 of the sector to which data is to be written as shown in FIG. 11, a special short pattern 55 shorter than the original data is written in the data section 54. Write (steps S8, S9). The writing of the special short pattern is performed when the head of the drive device 32 comes over a sector to which data is to be written (the ID portion is defective and the head attempts to write data based on the contents of the ID portion). Since it is not possible to judge whether or not the data has come over the sector that has been written, the head immediately before the sector to which data is to be written is detected, and when the next sector is detected, the head writes the data. This is performed by adding a special short pattern output instruction to the sector format control circuit 30, and the sector format control circuit 30 changes the special short pattern by adding the output instruction. The special short pattern output from the sector format control circuit 30 is applied to the drive device 32 via the drive interface 31, and the ID portion is output. It is written to the defective sector.

書込みデータ或いは特殊ショートパターンの書込みが
終了すると、マイクロプロセッサ21はベリファイチェッ
ク動作を行ない、書込んだデータにエラーがあるか否か
を判断すると共に書込んだデータが特殊ショートパター
ンであるか否かを判断する(ステップS10)。このベリ
ファイチェック動作に於いては、マイクロプロセッサ21
はドライブインターフェイス31を介してドライブ装置32
にデータの書込みを行なったセクタのアドレスを加え、
データの読出しを指示する。これにより、光磁気ディス
ク媒体33から指定された1ブロック分のデータが読出さ
れ、ドライブインターフェイス31,セクタフォーマット
制御回路30,復調回路29を介してエラー訂正用デコーダ2
7に加えられる。エラー訂正用デコーダ27は加えられた
1ブロック分のデータに対するエラー訂正処理を行な
い、エラー訂正処理を行なったバイト数にマイクロプロ
セッサ21を加えると共に、加えられた1ブロック分のデ
ータのパターンが特殊ショートパターンであるのか、空
パターンであるのか、その他のパターンであるのかを示
す情報をマイクロプロセッサ21に加える。マイクロプロ
セッサ21ではエラー訂正用デコーダ27から加えられたエ
ラー訂正を行なったバイト数が予め定められている閾値
を越えているか否かに基づいてベリファイエラーである
か否かを判断する。
When the writing of the write data or the special short pattern is completed, the microprocessor 21 performs a verify check operation to determine whether or not the written data has an error and determine whether or not the written data is the special short pattern. Is determined (step S10). In this verify check operation, the microprocessor 21
Is the drive device 32 via the drive interface 31
Is added to the address of the sector in which the data was written,
Instructs data reading. As a result, data of one designated block is read from the magneto-optical disk medium 33, and the error correction decoder 2 is transmitted via the drive interface 31, the sector format control circuit 30, and the demodulation circuit 29.
Added to 7. The error correction decoder 27 performs an error correction process on the added data of one block, and adds the microprocessor 21 to the number of bytes on which the error correction process has been performed. Information indicating whether the pattern is a pattern, an empty pattern, or another pattern is added to the microprocessor 21. The microprocessor 21 determines whether a verify error has occurred based on whether the number of bytes subjected to error correction added from the error correction decoder 27 exceeds a predetermined threshold value.

ステップS10でベルファイエラーでも特殊ショートパ
ターンでもないと判断した場合、即ちデータの書込みが
正常に行なわれた場合は、マイクロプロセッサ21は書込
きを行なっていないデータが存在するか否かを判断し
(ステップS33)、存在すると判断した場合はステップS
3の処理に戻り、存在しないと判断した場合は、その処
理を終了する。また、ステップS10でベリファイエラー
または特殊ショートパターンであると判断した場合はエ
ラー管理領域43に書込まれている書込み時のエラーセク
タ数74を+1した後(ステップS11)、その値が予め定
められている規定値以上になったか否かを判断する(ス
テップS12)。そして、ステップS12に於いてエラーセク
タ数74が予め定めらている規定値以上になったと判断し
た場合は、マイクロプロセッサ21はその内部に警告ステ
ータスをセットすると共に、ホストインターフェイス23
を介してホストシステム22に以後この光磁気ディスク媒
体33のユーザ領域44−1〜44−nに対する書込みを禁止
することを伝える(ステップS34)。尚、本実施例では
エラーセクタ数74が規定値以上になった場合、書込みの
禁止をホストシステム22に通知するようにしたが、光磁
気ディスク媒体の交換要求,清掃要求等をホストシステ
ム22に対して行なうようにしても良い。また、ステップ
S12に於いてエラーセクタ数74が規定値上でないと判断
した場合はグループ交替セクタ領域のセクタに対してデ
ータの書込みを行ない(ステップS13)、書込み動作時
にID部にエラーがあると判断した場合は特殊シュートパ
ターンを書込む(ステップS14,S15)。その後、ベリフ
ァイチェック動作を実行し、エラーの判定を行なうと共
に書込まれているデータが特殊ショートパターンである
か否かの判定を行なう(ステップS16)。
If it is determined in step S10 that neither a bell-phi error nor a special short pattern has occurred, that is, if data writing has been performed normally, the microprocessor 21 determines whether or not there is unwritten data. (Step S33), and if it is determined that there is, step S
Returning to the process of 3, if it is determined that there is not, the process is terminated. If it is determined in step S10 that the pattern is a verify error or a special short pattern, the number of error sectors 74 at the time of writing written in the error management area 43 is incremented by 1 (step S11), and the value is determined in advance. It is determined whether or not the specified value has been exceeded (step S12). If it is determined in step S12 that the number of error sectors 74 has become equal to or greater than a predetermined value, the microprocessor 21 sets a warning status therein and sets the host interface 23.
The host system 22 is notified of the prohibition of writing to the user areas 44-1 to 44-n of the magneto-optical disk medium 33 thereafter (step S34). In this embodiment, when the number of error sectors 74 becomes equal to or more than the specified value, write prohibition is notified to the host system 22. However, a request for replacing a magneto-optical disk medium, a request for cleaning, and the like are sent to the host system 22. Alternatively, it may be performed. Also step
If it is determined in S12 that the number of error sectors 74 is not above the specified value, data is written to the sectors in the group replacement sector area (step S13), and it is determined that there is an error in the ID section during the write operation. Writes a special shoot pattern (steps S14, S15). Thereafter, a verify check operation is performed to determine an error and to determine whether the written data is a special short pattern (step S16).

ステップS16に於いてベリファイエラーでも特殊ショ
ートパターンでもないと判断した場合は、マイクロプロ
セッサ21は内部メモリ及び光磁気ディスク媒体33上の交
替情報マップ領域42に実行した交替処理の内容を示す交
替情報を書込む(ステップS29)。交替情報マップ領域4
2に交替情報を書込む場合、本実施例では第5図に示す
ように、交替元物理アドレス62,交替先物理アドレス63
を4重書きするものとする。ステップS29の処理が終了
すると、マイクロプロセッサ21はベリファイチェック動
作を行ない、ステップS29で4重書きした交替元物理ア
ドレス62,交替先物理アドレスの内の2重以上が正しい
か否かを判断する(ステップS30)。そして、ステップS
30の判断結果がNOの場合は、マイクロプロセッサ21はス
テップS34の処理を行ない、判断結果がYESの場合は光磁
気ディスク媒体33のエラー管理領域43に書込まれている
エラーセクタ数74を+1し(ステップS31)、その値が
予め定められている規定値をオーバーしたか否かを判断
する(ステップS32)。そして、規定値をオーバーして
いると判断した場合はステップS34の処理を行ない、オ
ーバーしていないと判断した場合はステップS33の処理
を行なう。
If it is determined in step S16 that the error is neither a verify error nor a special short pattern, the microprocessor 21 stores replacement information indicating the content of the replacement process executed in the replacement information map area 42 on the internal memory and the magneto-optical disk medium 33. Write (step S29). Replacement information map area 4
When the replacement information is written in the second physical address 62 and the replacement physical address 63 in this embodiment, as shown in FIG.
Is written four times. When the processing in step S29 is completed, the microprocessor 21 performs a verify check operation, and determines whether or not two or more of the replacement source physical address 62 and the replacement destination physical address written in quadruple in step S29 are correct (step S29). Step S30). And step S
If the determination result of 30 is NO, the microprocessor 21 performs the process of step S34, and if the determination result is YES, the number of error sectors 74 written in the error management area 43 of the magneto-optical disk medium 33 is increased by +1. Then (step S31), it is determined whether or not the value exceeds a predetermined value (step S32). Then, when it is determined that the value exceeds the specified value, the process of step S34 is performed, and when it is determined that the value is not exceeded, the process of step S33 is performed.

ステップS16に於いてベリファイエラーまたは特殊シ
ョートパターンであると判断した場合は、マイクロプロ
セッサ21はエラー管理領域43に書込まれているエラーセ
クタ数74を+1した後(ステップS17)、その値が予め
定められてい規定値以上となったか否かを判断する(ス
テップS18)。そして、ステップS18に於いて規定値以上
になったと判断した場合はステップS34の処理を行な
い、規定値以上になっていないと判断した場合はグルー
プ交替セクタ領域の次のセクタにデータの書込みを行な
う(ステップS19,S20,S13)。グループ交替セクタ領域
の全てのセクタを利用してもデータの書込みが成功しな
かった場合(ステップS20の判断結果がNOの場合)は、
マイクロプロセッサ21はドライブ装置32のヘッドを交替
トラック領域46上に移動させ、交替トラック領域46内の
セクタに前詰めでデータの書込みを行なう(ステップS2
1)。交替トラック領域46内のセクタにデータを書込む
場合も、ID部にエラーがあった場合は特殊ショートパタ
ーンを書込む((ステップS22,S23)。その後、ベリフ
ァイチェック動作を行なってベリファイエラー,特殊シ
ョートパターンの判定を行ない(ステップS24)、ベリ
ファイエラー,特殊ショートパターンでないと判定した
場合はステップS29に処理に移り、ベリファイエラー,
特殊ショートパターンであると判定した場合はエラー管
理領域43に書込まれているエラーセクタ数74を+1した
後(ステップS25)、その値が予め定められている規定
値以上となったか否かを判断する(ステップS26)。そ
して、ステップS26に於いて規定値以上になっていると
判断した場合はステップS34の処理を行ない、規定値以
上になっていないと判断した場合は交替トラック領域46
の次のセクタに対してデータの書込み処理を行なう(ス
テップS27,S21)。そして、所定回数交替トラック領域4
6のセクタに対して書込みを行なっても、書込みを正常
に行なうことができなかった場合(ステップS28の判断
結果がYESの場合)はステップS34の処理を行なう。
If it is determined in step S16 that the error pattern is a verify error or a special short pattern, the microprocessor 21 increments the number 74 of error sectors written in the error management area 43 by 1 (step S17), and then sets the value in advance. It is determined whether or not a predetermined value is exceeded (step S18). If it is determined in step S18 that the value is equal to or larger than the specified value, the process in step S34 is performed. If it is determined that the value is not equal to or larger than the specified value, data is written to the next sector in the group replacement sector area. (Steps S19, S20, S13). If data writing is not successful even when all sectors in the group replacement sector area are used (when the determination result in step S20 is NO),
The microprocessor 21 moves the head of the drive device 32 onto the replacement track area 46, and writes data to the sectors in the replacement track area 46 with the MSB justified (step S2).
1). Also when writing data to the sector in the replacement track area 46, if there is an error in the ID part, a special short pattern is written (steps S22 and S23). The short pattern is determined (step S24). If it is determined that the pattern is not a verify error or a special short pattern, the process proceeds to step S29, where the verify error or
If it is determined that the pattern is a special short pattern, the number of error sectors 74 written in the error management area 43 is incremented by 1 (step S25), and it is determined whether or not the value is equal to or greater than a predetermined value. A judgment is made (step S26). When it is determined in step S26 that the value is equal to or more than the specified value, the process in step S34 is performed.
A data write process is performed on the sector next to the first sector (steps S27 and S21). Then, the predetermined number of replacement track areas 4
If writing cannot be performed normally even when writing is performed on sector 6 (when the determination result in step S28 is YES), the processing in step S34 is performed.

次に第8図を参照してデータの読取り時の動作を説明
する。
Next, the operation at the time of reading data will be described with reference to FIG.

ホストシステム22から出力された読取り命令はホスト
インターフェイス23を介してマイクロプロセッサ21に加
えられる。読取り命令は読取りを開始する最初のセクタ
のアドレスと、読取りを行なうブロック数とを含むもの
であり、マイクロプロセッサ21は読取り命令が加えられ
ることにより、第8図のフローチャートに示す処理を開
始し、先ず、光磁気ディスク媒体33の交替情報マップ領
域42に書込まれている交替情報を既に読込み、内部メモ
リに格納しているか否かを判断する(ステップS41)。
そして、読取り済みでないと判断した場合は光磁気ディ
スク媒体33の交替情報マップ領域42に書込まれている交
替情報を読込んで内部メモリに格納した後(ステップS4
2)、ドライブインターフェイス31を介してドライブ装
置32に、読取り命令によって指定されたアドレスを加え
てデータの読取りを指示し(ステップS43)、読取り済
みであると判断した場合は直ちにステップS43の処理を
行なう。ステップS43の処理が行なわれることにより、
ドアリブ装置32は光磁気ディスク媒体33からデータを1
ブロック分読出し、読出された1ブロック分のデータは
ドライブインターフェイス31,セクタフォーマット制御
回路30,復調回路29,エラー訂正用デコーダ27,セレクタ2
4を介してデータバッファに蓄えられる。エラー訂正用
デコーダ27は加えられた1ブロック分のデータに対する
エラー訂正を行なうと共にエラー訂正を行なったバイト
数及びデータのパターンが特殊ショートパターンである
のか、空パターンであるのか、その他のパターンである
のかを示す情報をマイクロプロセッサ21に加える。
The read command output from the host system 22 is applied to the microprocessor 21 via the host interface 23. The read instruction includes the address of the first sector to start reading and the number of blocks to be read. When the read instruction is added, the microprocessor 21 starts the processing shown in the flowchart of FIG. First, it is determined whether or not the replacement information written in the replacement information map area 42 of the magneto-optical disk medium 33 has already been read and stored in the internal memory (step S41).
If it is determined that the replacement information has not been read, the replacement information written in the replacement information map area 42 of the magneto-optical disk medium 33 is read and stored in the internal memory (step S4).
2) Instruct the drive device 32 via the drive interface 31 to read the data by adding the address specified by the read command (step S43). If it is determined that the data has been read, the process in step S43 is immediately performed. Do. By performing the process of step S43,
The door rib device 32 reads one data from the magneto-optical disk medium 33.
The data for one block is read, and the read data for one block is supplied to a drive interface 31, a sector format control circuit 30, a demodulation circuit 29, an error correction decoder 27, and a selector 2.
Stored in the data buffer via 4. The error correction decoder 27 performs error correction on the added data of one block, and indicates the number of bytes and the data pattern for which the error correction has been performed, whether it is a special short pattern, an empty pattern, or another pattern. Is added to the microprocessor 21.

マイクロプロセッサ21はステップS43の処理が終了す
ると、エラー訂正用テコーダ27から送られてきたデータ
のパターンを示す情報に基づいて今回読取り処理を行な
ったユーザ領域44−1〜44−n上のセクタが空セクタで
あるか否かを判断し(ステップS44)、空セクタである
と判断した場合は、更に、エラー訂正用デコーダ27から
送られてきたエラー訂正を行なったバイト数を更に示す
情報に基づいて今回読取り処理を行なったセクタがエラ
ーセクタであるか否かを判断すると共に、データのパタ
ーンを示す情報に基づいて上記セクタに特殊ショートパ
ターンか書込まれているか否かを判断する(ステップS4
5)。そして、ステップS45に於いて、今回読取り処理を
行なったセクタがエラーセクタでなく、且つ書込まれて
いるデータが特殊ショートパターンでないと判断した場
合は、内部メモリに書込んである交替情報を調査し(ス
テップS46)、今回読取り処理を行なったセクタのアド
レスが交替情報中に存在するか否かを判断する(ステッ
プS47)。尚、交替情報の読取り動作でエラーが発生し
た場合は、全ての交替領域の読取りを実行し、該当する
セクタを探索する。
When the microprocessor 21 completes the process of step S43, the sectors in the user areas 44-1 to 44-n which have performed the current reading process based on the information indicating the pattern of the data transmitted from the error correction coder 27 are determined. It is determined whether or not the sector is an empty sector (step S44). If it is determined that the sector is an empty sector, based on the information further indicating the number of error-corrected bytes sent from the error correction decoder 27, the information is further transmitted. Then, it is determined whether or not the sector that has been read this time is an error sector, and whether or not a special short pattern is written in the sector based on information indicating a data pattern (step S4).
Five). If it is determined in step S45 that the sector that has been read this time is not an error sector and that the written data is not a special short pattern, the replacement information written in the internal memory is examined. Then, it is determined whether or not the address of the sector that has been read this time is present in the replacement information (step S47). When an error occurs in the operation of reading the replacement information, reading of all the replacement areas is performed, and the corresponding sector is searched.

そして、ステップS47に於いて、交替情報中に存在し
ないと判断した場合はデータバッファ25に格納してある
今回読出した1ブロック分のデータをセレクタ24,ホス
トインターフェイス23を介してホストシステム22へ転送
する(ステップS52)。また、ステップS47に於いて、交
替情報中に存在すると判断した場合は今回読取り処理を
行なったユーザ領域上のセクタのアロレスとアドレスが
対応して登録されている交替セクタに書込まれてるデー
タを読出すことをドライブインターフェイス31を介して
ドライブ装置32に指示する(ステップS48)。これによ
り、前述したと同様にして光磁気ディスク媒体33からデ
ータが読出され、データバッファ25に蓄えられる。この
時、エラー訂正用デコーダ27から出力されるデータのパ
ターンを示す情報に基づいてマイクロプロセッサ21は今
回読取り処理を行なった交替セクタが空セクタであるか
否かを判定し(ステップS49)空セクタであると判断し
た場合はホストインターフェイス23を介してホストシス
テム22に空セクタであることを示すステータスを報告す
る。また、空セクタでないと判断した場合はエラー訂正
用デコーダ27から送られてくるエラー訂正を行なったバ
イド数を示す情報に基づいて今回読取り処理を行なった
交替セクタがエラーセクタであるか否かを判断すると共
に、エラー訂正用デコーダ27から送られてくるデータの
パターンを示す情報に基づいて上記セクタに特殊ショー
トパターンが書込まれているか否かを判断する(ステッ
プS50)。
If it is determined in step S47 that the data does not exist in the replacement information, the data of one block read this time stored in the data buffer 25 is transferred to the host system 22 via the selector 24 and the host interface 23. (Step S52). If it is determined in step S47 that the data is present in the replacement information, the data written in the replacement sector in which the address and the address of the sector in the user area that has been read this time are registered in correspondence with each other are read. The reading is instructed to the drive device 32 via the drive interface 31 (step S48). Thus, data is read from the magneto-optical disk medium 33 and stored in the data buffer 25 in the same manner as described above. At this time, based on the information indicating the data pattern output from the error correction decoder 27, the microprocessor 21 determines whether or not the replacement sector that has performed the current reading process is an empty sector (step S49). If it is determined that the sector is an empty sector, the status indicating the empty sector is reported to the host system 22 via the host interface 23. When it is determined that the replacement sector is not an empty sector, it is determined whether or not the replacement sector that has been read this time is an error sector based on the information indicating the number of bytes subjected to error correction sent from the error correction decoder 27. In addition to the determination, it is determined whether or not a special short pattern has been written in the sector based on the information indicating the pattern of the data sent from the error correction decoder 27 (step S50).

そして、ステップS50に於いてエラーセクタでもな
く、書込まれているデータが特殊ショートパターンでも
ないと判断した場合、即ち、データの読取りが正常に行
なわれた場合は、交替セクタから読取り、データバッフ
ァ25に格納してあるデータを原始セクタのデータと入れ
換えてホストシステム22に転送する(ステップS51,S5
2)。その後、マイクロプロセッサ21は読取り命令によ
って指示されたデータ内の、読取っていないデータが存
在するか否かを判断し(ステップS53)、存在しないと
判断した場合はその処理を終了し、存在すると判断した
場合はステップS43の処理に戻り、次のセクタに書込ま
れているデータの読取りを行なう。また、ステップS50
に於いてエラーセクタまたは書込まれているデータが特
殊ショートパターンであると判断した場合、即ちデータ
の読取り処理を正常に行なうことができなかった場合
は、再度交替セクタに対する読取り処理を行ない(ステ
ップS65)、その結果交替セクタからデータを正常に読
取ることができた場合(ステップS66の判断結果がYESの
場合)はステップS51の処理を行ない、データを正常に
読取ることができなかった場合は、所定回数再試行を行
なったか否かを判断する(ステップS67)。
If it is determined in step S50 that the data is not an error sector and that the written data is not a special short pattern, that is, if the data is read normally, the data is read from the replacement sector and the data buffer is read. The data stored in 25 is replaced with the data in the source sector and transferred to the host system 22 (steps S51 and S5).
2). Thereafter, the microprocessor 21 determines whether or not there is unread data in the data specified by the read command (step S53). When it is determined that there is no data, the process ends, and it is determined that the data exists. If so, the process returns to step S43, and the data written in the next sector is read. Step S50
If it is determined in step (1) that the error sector or the written data is a special short pattern, that is, if the data reading process cannot be performed normally, the reading process for the replacement sector is performed again (step S65) As a result, if the data can be read normally from the replacement sector (if the determination result of step S66 is YES), the process of step S51 is performed. If the data cannot be read normally, It is determined whether the retry has been performed a predetermined number of times (step S67).

そして、ステップS67に於いて所定回数再試行を行な
ったと判断した場合はエラー管理領域43に書込まれてい
る読取り時のエラー発生回数75を+1し(ステップS6
8)、その後、エラー発生回数75が予め定められている
規定数を越えているか否かを判断する(ステップS6
9)。そして、ステップS69に於いて規定数を越えていな
いと判断した場合はその処理を異常終了し、越えている
と判断した場合は、マイクロプロセッサ21はその内部に
警告ステータスをセットすると共にホストインターフェ
イス23を介してホストシステムに以後この光磁気ディス
ク媒体33を使用しないようにすることを通知した後(ス
テップS70)、その処理を異常終了とする。
If it is determined in step S67 that the retry has been performed the predetermined number of times, the number of times of error 75 during reading written in the error management area 43 is incremented by 1 (step S6).
8) Then, it is determined whether or not the number of times of error occurrence 75 exceeds a predetermined number (step S6).
9). If it is determined in step S69 that the number does not exceed the specified number, the processing is abnormally terminated.If it is determined that the number exceeds the specified number, the microprocessor 21 sets a warning status therein and sets the host interface 23 After notifying the host system that the magneto-optical disk medium 33 will not be used thereafter (step S70), the process is terminated abnormally.

また、ステップS44に於いて今回読取り処理を行なっ
たユーザ領域44−1〜44−n上のセクタが空セクタであ
ると判断した場合及びステップS45に於いて上記セクタ
がエラーセクタか或いは上記セクタに書込まれているデ
ータが特殊ショートパターンであると判断した場合は、
マイクロプロセッサ21は内部メモリに格納してある交替
情報を調査し(ステップS54)、上記セクタのアドレス
が交替情報中に存在するか否かを判断する(ステップS5
5)。そして、上記セクタのアドレスが交替情報中に存
在すると判断した場合は、上記セクタのアドレスとアド
レスが対応して登録されている交替セクタからデータで
読取ることをドライブインターフェイス31を介してドラ
イブ装置32に指示する(ステップS56)。これにより、
交替セクタの書込まれているデータが前述したと同様に
して光磁気ディスク媒体33から読打され、データバッフ
ァ25に格納される。また、マイクロプロセッサ21はこの
時、エラー訂正用デコーダ27から出力されるエラー訂正
処理を行なったバイト数及びデータのパターンを示す情
報に基づいて上記交替セクタからのデータの読出しが正
常に行なわれたか否かを判断する(ステップS57)。そ
して、データの読出しが正常に行なわれたと判断した場
合(ステップS57の判断結果がNOの場合)はステップS51
の処理を行ない、正常に行なわれなかったと判断した場
合は、上記交替セクタに対する読取り処理を再度行なう
(ステップS58)。そして、再試行の結果、データの読
取りが正常に行なわれたと判断した場合(ステップS59
でYESの場合)はステップS51の処理を行ない、所定回数
再試行を行なってもデータを読取りを正常に行なうこと
ができなかった場合(ステップS60の判断結果がYESの場
合)はステップS68の処理を行なう。
If it is determined in step S44 that the sector on the user area 44-1 to 44-n which has performed the current reading process is an empty sector, and if the sector is an error sector or the sector is determined in step S45. If it is determined that the written data is a special short pattern,
The microprocessor 21 checks the replacement information stored in the internal memory (step S54), and determines whether or not the address of the sector exists in the replacement information (step S5).
Five). When it is determined that the address of the sector is present in the replacement information, the drive device 32 via the drive interface 31 instructs the drive device 32 to read data from the replacement sector in which the address of the sector is registered in correspondence with the address. An instruction is given (step S56). This allows
The data written in the replacement sector is read from the magneto-optical disk medium 33 and stored in the data buffer 25 in the same manner as described above. At this time, the microprocessor 21 checks whether the reading of data from the replacement sector has been performed normally based on the number of bytes subjected to the error correction process and the information indicating the data pattern output from the error correction decoder 27. It is determined whether or not it is (step S57). If it is determined that the data reading has been performed normally (if the determination result in step S57 is NO), the process proceeds to step S51.
If it is determined that the replacement was not performed normally, the read process for the replacement sector is performed again (step S58). Then, as a result of the retry, when it is determined that the data has been read normally (step S59)
If YES, the process of step S51 is performed. If the data cannot be read normally even after retrying a predetermined number of times (when the determination result of step S60 is YES), the process of step S68 is performed. Perform

また、ステップS55に於いて内部メモリに格納されて
いる交替情報中に今回読取を行なったユーザ領域44−1
〜44−n上の原始セクタのアドレスが存在しないと判断
した場合は上記原始セクタが空セクタであるか否かを判
断し(ステップS61)、空セクタであると判断した場合
はホストインターフェイス23を介してホストシステム22
に空セクタであることを示すステータスを通知し、空セ
クタでないと判断した場合は、上記原始セクタに対して
読取り処理を再度行なう(ステップS62)。その結果、
データの読取りを正常に行なうことができた場合(ステ
ップS63の判断結果がYESの場合)はステップS51の処理
を行ない、所定回数再試行を行なってもデータを正常に
読取れなかった場合(ステップS64の判断結果がYESの場
合)はステップS68の処理を行なう。
Also, in the replacement information stored in the internal memory in step S55, the user area 44-1 which has been read this time is displayed.
If it is determined that the address of the source sector on .about.44-n does not exist, it is determined whether or not the source sector is an empty sector (step S61). If it is determined that the source sector is an empty sector, the host interface 23 is turned off. Through the host system 22
Is notified of the empty sector, and if it is determined that the sector is not an empty sector, the read process is performed again on the original sector (step S62). as a result,
If the data can be read normally (if the determination result in step S63 is YES), the process in step S51 is performed, and if the data cannot be read normally even after performing the retry a predetermined number of times (step S63). If the result of the determination in S64 is YES), the processing in step S68 is performed.

次に、第9図を参照してデータ消去時の動作を説明す
る。
Next, the operation at the time of data erasure will be described with reference to FIG.

ホストシステム22からの消去命令はホストインターフ
ェイス23を介してマイクロプロセッサ21に加えられる。
消去命令はデータの消去を行なうセクタのアドレスを含
むものであり、消去命令が加えられると、マイクロプロ
セッサ21は先ず、交替情報マップ領域42に書込まれてい
る交替情報を既に内部メモリに読込んでいるか否かを判
断する(ステップS71)。ステップS71で交替情報を読込
んでいないと判断した場合は、マップS21は交替情報マ
ップ領域42から交替情報を読込んだ後(ステップS7
2)、ステップS73の処理を行ない、交替情報を既に読込
んでいると判断した場合は直ちにステップS73の処理を
行なう。ステップS73に於いては、マイクロプロセッサ2
1は消去命令によって指定されたセクタに対する消去処
理を行ない、その後内部メモリに格納してある交替情報
を調査し(ステップS74)、消去命令に含まれてるアド
レスが交替情報中に存在するか否かを判断する(ステッ
プS75)。そして、交替情報中に存在していないと判断
した場合はその処理を終了し、存在していると判断した
場合は消去命令に含まれているアドレスとアドレスが対
応して登録されている交替セクタに対する消去処理を行
ない(ステップS76)、その後、その処理を終了する。
An erase command from the host system 22 is applied to the microprocessor 21 via the host interface 23.
The erase command includes an address of a sector for erasing data.When the erase command is added, the microprocessor 21 first reads the replacement information written in the replacement information map area 42 into the internal memory. It is determined whether or not there is (step S71). If it is determined in step S71 that the replacement information has not been read, the map S21 reads the replacement information from the replacement information map area 42 (step S7).
2), the process of step S73 is performed, and if it is determined that the replacement information has already been read, the process of step S73 is immediately performed. In step S73, the microprocessor 2
1 performs erasure processing on the sector specified by the erasure command, and then checks the replacement information stored in the internal memory (step S74), and determines whether the address included in the erasure command exists in the replacement information. Is determined (step S75). If it is determined that the replacement information does not exist in the replacement information, the process is terminated. If it is determined that the replacement sector exists, the replacement sector in which the address included in the erase instruction is registered corresponding to the address is included. Is performed (step S76), and then the process ends.

次に、第10図を参照してサーティファイ動作を説明す
る。
Next, the certification operation will be described with reference to FIG.

ホストシステム22からのサーティファイ命令はホスト
インターフェイス23を介してマイクロプロセッサ21に加
えられる。サーティファイ命令はサーティファイ処理を
行なうユーザ領域の数を示す情報を含んでおり、マイク
ロプロセッサ21はサーティファイ命令が加えられると、
第10図に示す処理を開始し、先ず、交替情報マップ領域
42に書込まれている交替情報を内部メモリに読込み済み
か否かを判断する(ステップS81)。読込んでいない場
合は交替情報マップ領域42の読取りを行なった後(ステ
ップS82)、ステップS83の処理を行ない、読取り済みで
ある場合は直ちにステップS83の処理を行なう。
A certify command from the host system 22 is applied to the microprocessor 21 via the host interface 23. The certify instruction includes information indicating the number of user areas for performing the certify process, and when the certify instruction is added, the microprocessor 21
The process shown in FIG. 10 is started, and first, the replacement information map area
It is determined whether or not the replacement information written in 42 has been read into the internal memory (step S81). If it has not been read, the replacement information map area 42 is read (step S82), and then the process of step S83 is performed. If it has been read, the process of step S83 is immediately performed.

ステップS83に於いてはエラー管理領域43に書込まれ
ているサーティファイ処理の未実行,実行中,実行完了
を示すフラグ71を読込み、次のステップS84ではステッ
プS83で読込んだフラグ71に基づいてサーティファイ処
理が実行済みであるか否かを判断する。そして、実行済
みであると判断した場合はマイクロプロセッサ21はその
処理を終了し、実行済みでないと判断した場合はステッ
プS83で読込んだフラグ71に基づいてサーティファイ処
理が未実行であるか否かを判断する(ステップS85)。
ステップS85でサーティファイ処理が未実行であると判
断した場合はサーティファイアドレスとして第1番目の
ユーザ領域の先頭アドレスをセットすると共にエラー管
理領域43中のフラグ71をサーティファイ処理の実行中を
示すものとする(ステップS86,87)。また、ステップS8
5に於いてサーティファイ処理が未実行でないと判断し
た場合、即ち、サーティファイ処理が実行中であると判
断した場合は、エラー管理領域43からサーティファイア
ドレス72を読取る(ステップS88)。
In step S83, the flag 71 indicating the non-executing, executing, and execution completion of the certifying process written in the error management area 43 is read, and in the next step S84, based on the flag 71 read in step S83. It is determined whether or not the certification process has been executed. If it is determined that the processing has been executed, the microprocessor 21 ends the processing.If it is determined that the processing has not been executed, the microprocessor 21 determines whether the certification processing has not been executed based on the flag 71 read in step S83. Is determined (step S85).
If it is determined in step S85 that the certification processing has not been executed, the start address of the first user area is set as the certification address, and the flag 71 in the error management area 43 indicates that the certification processing is being executed. (Steps S86, 87). Step S8
If it is determined in 5 that the certification process is not yet executed, that is, if it is determined that the certification process is being executed, the certification address 72 is read from the error management area 43 (step S88).

次いで、マイクロプロセッサ21はステップS86でセッ
トしたサーティファイアドレス或いはステップS88で読
取ったサーティファイアドレスによって示されるセクタ
の読取りを行ない(ステップS89)、そのセクタが空セ
クタであるか否かを判断する(ステップS90)。ステッ
プS90で空セクタでないと判断した場合は、上記セクタ
がエラーセクタまたは特殊ショートパターンが書込まれ
ているセクタであるか否かを判断する(ステップS9
1)。そして、ステップS91で上記セクタがエラーセクタ
でも特殊ショートパターンが書込まれているセクタでも
ないと判断した場合、即ち上記セクタが正常なセクタで
あると判断した場合は、サーティファイ命令によって指
定されたユーザ領域に対するサーティファイ処理が終了
したか否かを判断する(ステップS102)。そして、ステ
ップS102でサーティファイ命令によって指定されたユー
ザ領域に対するサーティファイ処理が終了していないと
判断した場合はサーティファイアドレスを+1した後
(ステップS106)、そのサーティファイアドレスがユー
ザ領域中のアドレスであるか否かを判断し(ステップS1
07)、ユーザ領域中のアドレスであると判断した場合は
ステップS89の処理に戻り、ユーザ領域中のアドレスで
ないと判断した場合は、次のユーザ領域の先頭アドレス
をサーティファイアドレスとした後(ステップS108)、
ステップS89の処理に戻る。また、ステップS102に於い
てサーティファイ命令によって指定されたユーザ領域に
対するサーティファイ処理が終了したと判断した場合は
光磁気ディスク媒体33上の全てのユーザ領域に対するサ
ーティファイ処理が終了したか否かを判断する(ステッ
プS103)。そして、全てのユーザ領域に対するサーティ
ファイ処理を終了したと判断した場合はエラー管理領域
43中のフラグ71をサーティファイ処理の完了を示すもの
とした後(ステップS104)、その処理を終了し、全ての
ユーザ領域に対するサーティファイ処理を終了していな
いと判断した場合はサーティファイアドレスを次のユー
ザ領域の先頭アドレスにした後(ステップS105)、その
処理を終了する。
Next, the microprocessor 21 reads a sector indicated by the certify address set in step S86 or the certify address read in step S88 (step S89), and determines whether or not the sector is an empty sector (step S90). ). If it is determined in step S90 that the sector is not an empty sector, it is determined whether the sector is an error sector or a sector in which a special short pattern is written (step S9).
1). If it is determined in step S91 that the sector is neither an error sector nor a sector in which the special short pattern is written, that is, if it is determined that the sector is a normal sector, the user specified by the certify command is determined. It is determined whether the certification process for the area has been completed (step S102). If it is determined in step S102 that the certifying process for the user area specified by the certifying command has not been completed, the certifying address is incremented by 1 (step S106), and whether or not the certifying address is an address in the user area (Step S1
07) If it is determined that the address is in the user area, the process returns to step S89. If it is determined that the address is not in the user area, the head address of the next user area is set as the certify address (step S108). ),
The process returns to step S89. If it is determined in step S102 that the certify processing for the user area specified by the certify command has been completed, it is determined whether the certify processing for all user areas on the magneto-optical disk medium 33 has been completed ( Step S103). If it is determined that the certification process has been completed for all user areas, the error management area
After setting the flag 71 in 43 to indicate the completion of the certify process (step S104), the process is terminated, and if it is determined that the certify process for all user areas has not been completed, the certify address is set to the next user. After setting the start address of the area (step S105), the processing is terminated.

また、ステップS91でエラーセクタまたは特殊ショー
トパターンの書込まれているセクタであると判断した場
合は、内部メモリに書込んである交替情報を調査し(ス
テップ92)、上記セクタのアドレスとアドレスが対応し
て書込まれている交替セクタが存在するか否かを判断す
る(ステップS93)。そして、交替セクタが存在しない
と判断した場合はエラー管理領域43中の欠陥セクタ数73
を+1した後(ステップS94)、欠陥セクタ数73が規定
数以上になったか否かを判断する(ステップS95)。そ
して、規定数以上になっていると判断した場合はホスト
インターフェイス23を介してホストシステム22に警告ス
テータスを通知した後(ステップS113)、異常終了し、
規定数異常になっていないと判断した場合はステップS1
02の処理を行なう。また、ステップS93に於いて、交替
セクタが存在していると判断した場合は、交替セクタの
読取りを行ない(ステップS109)、その後、交替セクタ
がエラーセクタ或いは特殊ショートパターンが書込まれ
ているセクタであるか否かを判断する(ステップS11
0)。そして、ステップS110でエラーセクタ或いは特殊
ショートパターンが書込まれているセクタであると判断
した場合は、エラー管理領域43に書込まれている欠陥セ
クタ数73を+1した後(ステップS111)、欠陥セクタ数
73が規定値以上になっているか否かを判断し(ステップ
112)、規定値以上になっていると判断した場合はホス
トインターフェイス23を介してホストシステム22に警告
ステータスを通知する(ステップS113)。また、ステッ
プS110に於いて、交替セクタが正常なセクタであると判
断した場合はステップS102の処理を行なう。また、ステ
ップS91でエラーセクタでも特殊ショートパターンの書
込まれているセクタでもないと判断した場合はステップ
S102の処理を行なう。
If it is determined in step S91 that the sector is an error sector or a sector in which a special short pattern has been written, the replacement information written in the internal memory is checked (step 92). It is determined whether there is a correspondingly written replacement sector (step S93). If it is determined that the replacement sector does not exist, the number of defective sectors 73 in the error management area 43 is determined.
Is incremented by 1 (step S94), it is determined whether or not the number 73 of defective sectors has exceeded a specified number (step S95). Then, when it is determined that the number is equal to or more than the specified number, a warning status is notified to the host system 22 via the host interface 23 (step S113), and the processing ends abnormally.
If it is determined that the specified number is not abnormal, step S1
Perform the processing of 02. If it is determined in step S93 that a replacement sector exists, the replacement sector is read (step S109), and then the replacement sector is an error sector or a sector in which a special short pattern is written. Is determined (step S11).
0). If it is determined in step S110 that the error sector or the special short pattern has been written, the number of defective sectors 73 written in the error management area 43 is incremented by 1 (step S111). Number of sectors
Determine whether 73 is greater than or equal to the specified value (step
112), if it is determined that the value is equal to or more than the specified value, a warning status is notified to the host system 22 via the host interface 23 (step S113). If it is determined in step S110 that the replacement sector is a normal sector, the process of step S102 is performed. If it is determined in step S91 that neither the error sector nor the sector in which the special short pattern is written,
The processing of S102 is performed.

また、ステップS90に於いて、ステップS89で読取った
セクタが空セクタであると判断した場合は、サーティフ
ァイ用データを上記セクタに書込む処理を行なう(ステ
ップS96,S97)。ステップS97に於いて、サーティファイ
用データを書込む際、ID部にエラーがある場合は特殊シ
ョートパターンを書込む。その後、マイクロプロセッサ
21はベリファイチェック動作を行ない、ステップS97で
書込んだデータにエラーがあるか、或いは特殊ショート
パターンが書込まれているか否かを判断する(ステップ
S98)。ステップS98に於いてベリファイエラー或いは特
殊ショートパターンが書込まれているセクタであると判
断した場合は交替セクタに対してサーティファイ用デー
タの書込み処理を行なう(ステップS99)。その際、ID
部にエラーがある場合は特殊ショートパターンを書込
む。
If it is determined in step S90 that the sector read in step S89 is an empty sector, a process of writing certification data to the sector is performed (steps S96 and S97). In writing the certification data in step S97, if there is an error in the ID part, a special short pattern is written. Then the microprocessor
21 performs a verify check operation to determine whether there is an error in the data written in step S97 or whether a special short pattern has been written (step S97).
S98). If it is determined in step S98 that the sector is a sector in which a verify error or a special short pattern has been written, a process of writing certification data is performed on a replacement sector (step S99). At that time, ID
If there is an error in the section, write a special short pattern.

ステップS99の処理が終了すると、マイクロプロセッ
サ21はベリファイチェック動作を行ない、ステップS99
で書込んだデータにエラーがあるか否かを判断すると共
にステップS99で書込んだデータが特殊ショートパター
ンであるか否かを判断する(ステップS100)。そして、
ステップS100に於いて書込み動作を正常に行なうことが
できたと判断した場合はステップS102の処理を行ない、
正常に行なうことができなかったと判断した場合は次の
交替セクタに対してサーティファイ用データの書込み処
理を行なう(ステップS99,S101)。そして、グループ交
替セクタ領域中の全てのセクタに対してサーティファイ
用データの書込み処理を行なっても、データの書込を正
常に行なうことができなかった場合は、ホストインター
フェイス23を介してホストシステム22に警告ステータス
を通知してその処理を終了する。
Upon completion of the process in the step S99, the microprocessor 21 performs a verify check operation, and a step S99
It is determined whether there is an error in the data written in step S99 and whether the data written in step S99 is a special short pattern (step S100). And
If it is determined in step S100 that the write operation has been performed normally, the process of step S102 is performed,
If it is determined that the data cannot be normally written, the certifying data is written to the next replacement sector (steps S99 and S101). If the data cannot be normally written even if the data for certification has been written to all the sectors in the group replacement sector area, the host system 22 is connected via the host interface 23. Is notified of the warning status, and the processing is terminated.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は光磁気ディスク媒体上
に書込みエラーの発生したセレクタ数と読取りエラー発
生回数とが登録されるエラー管理領域を設けると共にエ
ラーセクタ数,エラー発生回数が規定値を請えているか
否かを判定する判定手段を設けたものであるので、従来
例に比較して早期に光磁気ディスク媒体の劣化や汚れを
検出することが可能となり、記録データの信頼性を高め
ることができる効果がある。
As described above, according to the present invention, an error management area for registering the number of selectors in which a write error has occurred and the number of read errors has been registered on the magneto-optical disk medium, and the number of error sectors and the number of error occurrences must be specified. Since it is provided with a judgment means for judging whether or not the recording is performed, it is possible to detect deterioration and dirt of the magneto-optical disk medium earlier than in the conventional example, and to improve the reliability of recorded data. There is an effect that can be done.

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

第1図は本発明の構成図、 第2図は本発明の実施例のブロック図、 第3図は光磁気ディスク媒体の記憶領域のフォーマット
図、 第4図はセクタのフォーマット図、 第5図は交替情報マップ領域の記憶内容を示す図、 第6図はエラー管理領域の記憶内容を示す図、 第7図は書込み処理時の処理例を示すフローチャート、 第8図は読取り処理時の処理例を示すフローチャート、 第9図は消去処理時の処理例を示すフローチャート、 第10図はサーティファイ処理時の処理例を示すフローチ
ャート及び、 第11図はID部に欠陥があった時のセクタの書込み内容を
示す図である。 図に於いて、1,33……光磁気ディスク媒体、2,43……エ
ラー管理領域、3……書込みエラー検出手段、4……読
取りエラー検出手段、5……判定手段、21……マイクロ
プロセッサ、22……ホストシステム、23……ホストイン
ターフェイス、24……セレクタ、25……データバッフ
ァ、26……エラー訂正用エンコーダ、27……エラー訂正
用デコーダ、28……変調回路、29……復調回路、30……
セレクタフォーマット制御回路、31……ドライブインタ
ーフェイス、32……ドライブ装置、41−1,41−2……制
御テスト領域、42……交替情報マップ領域、44−1〜44
−n……ユーザ領域、45−1〜45−n……グループ交替
セクタ領域、46……交替トラック領域。
1 is a block diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a format diagram of a storage area of a magneto-optical disk medium, FIG. 4 is a format diagram of a sector, FIG. FIG. 6 shows the storage contents of the replacement information map area, FIG. 6 shows the storage contents of the error management area, FIG. 7 is a flowchart showing a processing example at the time of writing processing, and FIG. 8 is a processing example at the time of reading processing. FIG. 9 is a flowchart showing an example of processing at the time of erasing processing, FIG. 10 is a flowchart showing an example of processing at the time of certifying processing, and FIG. 11 is a writing content of a sector when the ID part has a defect. FIG. In the figure, 1,33... Magneto-optical disk medium, 2,43... Error management area, 3... Write error detection means, 4... Read error detection means, 5. Processor, 22 Host system, 23 Host interface, 24 Selector, 25 Data buffer, 26 Error correction encoder, 27 Error decoder, 28 Modulation circuit, 29 Demodulation circuit, 30 ...
Selector format control circuit, 31 drive interface, 32 drive device, 41-1, 41-2 control test area, 42 replacement information map area, 44-1 to 44
-N ... user area, 45-1 to 45-n ... group replacement sector area, 46 ... replacement track area.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】光磁気ディスク媒体に対するデータの書込
み及び読取りを行なう光磁気ディスク処理装置に於い
て、 前記光磁気ディスク媒体にエラー発生回数とエラーセク
タ数とが登録されるエラー管理領域を設けると共に、 データの書込み時、新規なセクタに対する書込みエラー
を検出することにより、前記エラー管理領域に登録され
ているエラーセクタ数を更新する書込みエラー検出手段
と、 データの読取り時、読取りエラーを検出することによ
り、前記エラー管理領域に登録されているエラー発生回
数を更新する読取りエラー検出手段と、 前記エラー管理領域に登録されているエラー発生回数及
びエラーセクタ数が規定値を越えているか否かを判定す
る判定手段とを設けたことを特徴とする光磁気ディスク
処理装置。
1. A magneto-optical disk processing apparatus for writing and reading data to and from a magneto-optical disk medium, wherein the magneto-optical disk medium has an error management area for registering the number of times of error occurrence and the number of error sectors. A write error detecting means for updating the number of error sectors registered in the error management area by detecting a write error for a new sector when writing data; and detecting a read error when reading data. Reading error detecting means for updating the number of error occurrences registered in the error management area, and determining whether or not the number of error occurrences and the number of error sectors registered in the error management area exceed prescribed values A magneto-optical disk processing apparatus, comprising:
JP15609889A 1989-06-19 1989-06-19 Magneto-optical disk processing unit Expired - Fee Related JP2589378B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15609889A JP2589378B2 (en) 1989-06-19 1989-06-19 Magneto-optical disk processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15609889A JP2589378B2 (en) 1989-06-19 1989-06-19 Magneto-optical disk processing unit

Publications (2)

Publication Number Publication Date
JPH0322265A JPH0322265A (en) 1991-01-30
JP2589378B2 true JP2589378B2 (en) 1997-03-12

Family

ID=15620271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15609889A Expired - Fee Related JP2589378B2 (en) 1989-06-19 1989-06-19 Magneto-optical disk processing unit

Country Status (1)

Country Link
JP (1) JP2589378B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034516A (en) * 2010-12-10 2011-04-27 创新科存储技术有限公司 Method for detecting read-write error of storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2699984B2 (en) * 1990-05-15 1998-01-19 富士通株式会社 Alternation area management method and apparatus
US5217570A (en) * 1991-01-31 1993-06-08 Sony Corporation Dry etching method
JP2887949B2 (en) * 1991-06-27 1999-05-10 松下電器産業株式会社 Information recording / reproducing device, information reproducing device, DMA recording method and DMA verification method
JP2007109288A (en) * 2005-10-12 2007-04-26 Hitachi Ltd Optical disk apparatus and optical disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034516A (en) * 2010-12-10 2011-04-27 创新科存储技术有限公司 Method for detecting read-write error of storage medium
CN102034516B (en) * 2010-12-10 2013-07-24 创新科存储技术有限公司 Method for detecting read-write error of storage medium

Also Published As

Publication number Publication date
JPH0322265A (en) 1991-01-30

Similar Documents

Publication Publication Date Title
EP0078492B1 (en) Method of controlling storage device
JP2887949B2 (en) Information recording / reproducing device, information reproducing device, DMA recording method and DMA verification method
EP1018116B1 (en) Method and apparatus of recording data in the optical recording medium
JP3717981B2 (en) Error log creation method and error test device
US6978404B2 (en) Information recording device, information recording method, and program
US7257061B2 (en) Method and apparatus for determining a recordable position of a writable disk
EP0651389A1 (en) Detection of overusage of spare sectors in an optical disk
US20070041282A1 (en) Write-once disc, recording apparatus thereto, and method of reducing access time thereto
US5442614A (en) Method of recording data and information regarding defects
JPH04232669A (en) Error control system for optical disk
JPH0427626B2 (en)
EP1035539B1 (en) Information recording medium, recording and reproduction method and apparatus
JP3579001B2 (en) Confirmation method of defect management area information of optical disk
JP2589378B2 (en) Magneto-optical disk processing unit
US5438560A (en) Apparatus and method for recording/reproducing optical information and optical disk-shaped recording medium
JP3065631B2 (en) Optical disk drive
JPH04245072A (en) Disk device with data management information area on medium
JP3281063B2 (en) Optical disk certification method
JP3343403B2 (en) Alternate sector management method for information recording / reproducing device
US20020150009A1 (en) Recording times restricted recording media and recording control method thereof
JP3264528B2 (en) Information replacement processing method for write-protected information recording medium
JPH01154335A (en) Magneto-optical disk device
JP2001195836A (en) Optical disk recording method
JPH09320207A (en) Information recording/reproducing device
JP2604489B2 (en) Optical disk processing device

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees