JPH0322265A - Magneto-optical disk processor - Google Patents

Magneto-optical disk processor

Info

Publication number
JPH0322265A
JPH0322265A JP15609889A JP15609889A JPH0322265A JP H0322265 A JPH0322265 A JP H0322265A JP 15609889 A JP15609889 A JP 15609889A JP 15609889 A JP15609889 A JP 15609889A JP H0322265 A JPH0322265 A JP H0322265A
Authority
JP
Japan
Prior art keywords
error
sector
data
read
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.)
Granted
Application number
JP15609889A
Other languages
Japanese (ja)
Other versions
JP2589378B2 (en
Inventor
Seiichi Yamaguchi
誠一 山口
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

Abstract

PURPOSE:To improve reliability for recording data by providing an error managing area, to which the number of sectors to generate a write error and a read error generating circuit are registered, on a medium and deciding whether the number of the error sectors and the error generating circuit exceed a specified value or not. CONSTITUTION:An error managing area 2, to which the time of error generation and the number of the error sectors are registered, is provided in a magnetic disk medium 1. A write error detector 3 updates the number of the error sectors registered to the error managing area 2 by detecting a write error to the new sector when the data are written. A read error detector 4 updates the time of the error generation registered to the error managing area by detecting a read error when the data are read. A deciding device 5 decides whether the time of the error generation and the number of the error sectors registered to the error managing area 2 exceed the specified value or not.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータを書替え可能な光磁気ディスク処理装置
に関する. 〔従来の技術〕 従来の光磁気ディスク処理装置に於いては光磁気ディス
ク媒体の記憶容量が大きいこと及び光磁気ディスク媒体
が交換可能媒体であることにより、データ書込み後のべ
リファイチェノク動作に於いて書込みを行なったセクタ
の欠陥を検出した場合は、そのセクタを含む複数のセク
タからなるグループに割当てられているグループ交替セ
クタ領域内のセクタに、上記欠陥のあるセクタへ書込も
うとしたデータに交替元及び交替先アドレスを示すポイ
ンタを付加して書込むと共に、交替↑n報マップ領域に
交替元セクタと交替先セクタとの関係を示す情報を書込
み、更にグループ交替セクタ領域を用いても正常な書込
みを行なうことができなかった場合は光磁気ディスク媒
体の全領域に対して設けられた交替トラソク領域内のセ
クタに、上記欠陥のあるセクタへ書込もうとしたデータ
に交替元及び交替先アドレスを示すポインタを付加して
書込むと共に、交替情報マップ領域に交替元セクタと交
換先セクタとの関係を示す情報を書込むようにしている
。そして、交替トラック領域を用いても正常な書込みを
行なうことができなかった場合はその光磁気ディスク媒
体が使用不能であることを利用者に通知するようにして
いる。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magneto-optical disk processing device in which data can be rewritten. [Prior Art] In a conventional magneto-optical disk processing device, due to the large storage capacity of the magneto-optical disk medium and the fact that the magneto-optical disk medium is a replaceable medium, it is difficult to perform a verification operation after writing data. If a defect is detected in the sector that was written to, the data that was attempted to be written to the defective sector is transferred to the sector in the group replacement sector area that is allocated to the group consisting of multiple sectors that includes the sector. In addition to adding and writing pointers indicating the replacement source and replacement destination addresses, writing information indicating the relationship between the replacement source sector and replacement sector in the replacement ↑n information map area, and using the group replacement sector area also results in normal operation. If writing cannot be performed, the data that was attempted to be written to the defective sector will be replaced with the replacement source and replacement destination in the sector in the replacement track area provided for the entire area of the magneto-optical disk medium. A pointer indicating the address is added and written, and information indicating the relationship between the replacement sector and the replacement sector is written in the replacement information map area. If normal writing cannot be performed even using the alternate track area, the user is notified that the magneto-optical disk medium is unusable.

(発明が解決しようとする課題〕 従来は上述したように、交替トラソク領域を用いても正
常な書込みを行なうことができなかった場合、光磁気デ
ィスク媒体が使用不能であることを利用者に通知するだ
けであったため、光磁気ディスク媒体の劣化を早期に検
出して媒体交換を行なったり、媒体の汚れを検出して清
掃を行なったりすることができない問題があった。
(Problem to be Solved by the Invention) As mentioned above, conventionally, if normal writing could not be performed even using the spare storage area, the user was notified that the magneto-optical disk medium was unusable. Therefore, there was a problem in that it was not possible to detect deterioration of the magneto-optical disk medium early and replace the medium, or to detect dirt on the medium and clean it.

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

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

本発明は上記目的を達成するため、第l図の構威図に示
すように、 光磁気ディスク媒体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 structural diagram of FIG. An error management area 2 is provided in which the number of error occurrences and the number of error sectors are registered, and when writing data, by detecting a write error to a new sector, the error sectors registered in the error management area 2 are write error detection means 3 for updating the number of errors; read error detection means 4 for updating the number of error occurrences registered in the error management area 2 by detecting a read error when reading data; and the error management A determination stage 5 is provided for determining whether the number of error occurrences and the number of error sectors registered in area 2 exceed specified values.

〔作 用〕[For production]

光磁気ディスク媒体lにはエラー発生回数とエラーセク
タ数とが登録されるエラー管理領域2が設けられている
。書込みエラー検出千段3はデータの書込み時に新規な
セクタに対する書込みエラーを検出することにより、エ
ラー管理領域2に登録されているエラーセクタ数を更新
し、読取りエラー検出手段4はデータの読取り時に読取
りエラーを検出することにより、エラー管理領域に登録
されているエラー発生回数を更新する.判定千段5はエ
ラー管理領域2に登録されているエラー発生回数及びエ
ラーセクタ数が規定値を越えているか否かを判定する. 〔実施例〕 次に本発明の実施例について図面を参照して詳細に説明
する. 第2図は本発明の実施例のブロック図であり、マイクロ
プロセソサ2lと、ホストシステム22と、ホストイン
ターフエイス23と、セレクタ24と、書込みデータ及
び読出しデータが一時格納されるデータバソファ25と
、書込みデータにエラー訂正コードを付加するエラー訂
正用エンコーダ26と、エラー訂正コードを利用してエ
ラー訂正を行なうと共に、訂正したlブロック中のバイ
ト数及びエラー訂正処理を行なったブロノク中のデータ
のパターンが後述する特殊ショートパターンであるのか
、空パターンであるのか、その他のパターンであるのか
を示す情報をマイクロプロセソサ2lに送るエラー訂正
用デコーダ27と、変調回路28と、復調回路29と、
セクタフォーマット制御回路30と、ドライブインター
フエイス31と、ドライブ装置32と、光磁気ディスク
媒体33と、読取り位置やフラグ部の書込みタイ港ング
,フラグ検出ウィンドー等のタイミングを発生し、変調
回路28.復調回路29,セクタフォーマット制御回路
30に加えるセクタタイくングコントロール回路34と
から構威されている。
The magneto-optical disk medium 1 is provided with an error management area 2 in which the number of error occurrences and the number of error sectors are registered. The write error detection means 3 updates the number of error sectors registered in the error management area 2 by detecting a write error in a new sector when writing data, and the read error detection means 4 updates the number of error sectors registered in the error management area 2 when reading data. By detecting an error, the number of error occurrences registered in the error management area is updated. The judgment step 5 judges whether the number of error occurrences and the number of error sectors registered in the error management area 2 exceed specified values. [Example] Next, an example of the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram of an embodiment of the present invention, which includes a microprocessor 2l, a host system 22, a host interface 23, a selector 24, and a data bus sofa 25 in which write data and read data are temporarily stored. , an error correction encoder 26 that adds an error correction code to the write data, and an error correction encoder 26 that uses the error correction code to perform error correction, and also calculates the number of bytes in the corrected l block and the data in the block that has undergone error correction processing. an error correction decoder 27, a modulation circuit 28, a demodulation circuit 29, which sends information indicating whether the pattern is a special short pattern, an empty pattern, or another pattern to the microprocessor 2l, which will be described later. ,
The sector format control circuit 30, the drive interface 31, the drive unit 32, the magneto-optical disk medium 33, and the modulation circuit 28. It consists of a demodulation circuit 29, a sector format control circuit 30, and a sector tying control circuit 34.

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

制御テスト領域41−1.41−2は媒体のタイプ(追
記型.書替え型),信号極性.書込みパワー.回転スピ
ード,変調モード.セクタ/トラック等を記録する領域
と、複数の記録テストトランクとから構成される。ユー
ザ領域44−1〜44−nはホストシステム22から転
送されてきたデータを書込む領域であり、ユーザ領域に
欠陥がなければ、全ての書込みデータはユーザ領域に書
込まれる.交替情報マップ領域42はユーザ領域44−
1〜44−nに欠陥があり、グループ交替セクタ碩域4
5−1〜45−nまたは交替トラック領域46にデータ
が書込まれた場合、交替処理に関連する情報を記録する
領域である。グループ交替セクタ領域45−1〜45−
nはユーザ領域44−1〜44−nに欠陥セクタがあっ
た場合に最初に使用される交替領域であり、交替トラン
ク領域46は対応するグループ交替セクタ領域45−1
〜45−nが使用済みとなった場合に使用される交替領
域である. 第4図は光磁気ディスク媒体33上のセクタのフォーマ
ット図であり、同図fa+に示すように1つのセクタ5
lはID(アドレス)部52と、フラグ部53と、デー
タ部54とから構成されている.データ部54にはアド
レスポインタ(AP)54lとエラー訂正コード(EC
C)54−2とが含まれており、ユーザ領域44−l〜
44−n上のセクタのアドレスポインタ54−1には同
図tblに示すように自己物理アドレス55と交替先予
定物理アドレス56とが記録され、グループ交替セクタ
頌域45−1〜45−n及び交替トラック領域46上の
セクタのアドレスポインタ54−1には同図(Clに示
すように自己物理アドレス57と交替元物理アドレス5
8とが記録される.第5図は交替情報マップ領域42の
記憶内容を示した図であり、交替情報マップ領域42に
記憶される1つの交替マップ情報6lは交替元物理アド
レス62と交替先物理アドレス63とから構戊される。
Control test areas 41-1 and 41-2 indicate the type of medium (write-once type, rewritable type), signal polarity. Write power. Rotation speed, modulation mode. It consists of an area for recording sectors/tracks, etc., and a plurality of recording test trunks. The user areas 44-1 to 44-n are areas in which data transferred from the host system 22 is written, and if there is no defect in the user area, all written data is written in the user area. The replacement information map area 42 is the user area 44-
1 to 44-n are defective, group replacement sector area 4
When data is written in 5-1 to 45-n or the replacement track area 46, this is an area for recording information related to replacement processing. Group replacement sector areas 45-1 to 45-
n is a replacement area that is first used when there is a defective sector in the user areas 44-1 to 44-n, and the replacement trunk area 46 is the corresponding group replacement sector area 45-1.
This is a replacement area used when ~45-n becomes used. FIG. 4 is a format diagram of sectors on the magneto-optical disk medium 33, and as shown in fa+ in the figure, one sector 5
1 is composed of an ID (address) section 52, a flag section 53, and a data section 54. The data section 54 includes an address pointer (AP) 54l and an error correction code (EC).
C) 54-2, and the user area 44-l~
In the address pointer 54-1 of the sector on the sector 44-n, the own physical address 55 and the planned physical address 56 of the replacement destination are recorded, as shown in tbl in the same figure, and the group replacement sector areas 45-1 to 45-n and As shown in FIG.
8 is recorded. FIG. 5 is a diagram showing the storage contents of the replacement information map area 42, and one piece of replacement map information 6l stored in the replacement information map area 42 is composed of a replacement source physical address 62 and a replacement physical address 63. be done.

尚、本実施例では交替元物理アドレス62及び交替先物
理アドレス63は共に4重書きされるものとする。
In this embodiment, it is assumed that both the replacement source physical address 62 and the replacement destination physical address 63 are quadruple-written.

第6図はエラー管理領域43に書込まれる情報を示した
図であり、サーティフプイ処理の未実行.実行中,実行
完了を示すフラグ7lと、サーティファイアドレス72
と、サーティファイ処理時に検出した欠陥セクタ数73
と、書込み処理時に検出したエラーセクタ数74と、読
取り処理時に発生したエラー発生回数75とが書込まれ
る。
FIG. 6 is a diagram showing the information written to the error management area 43, and shows information written to the error management area 43. A flag 7l indicating that execution is in progress or completion of execution, and a certifier address 72
And the number of defective sectors detected during the certification process was 73.
, the number of error sectors 74 detected during write processing, and the number of error occurrences 75 that occurred during read processing are written.

第7図〜第10図はマイクロプロセッサ2lの処理例を
示すフローチャートであり、以下各図を参照して本実施
例の動作を説明する. 先ず、第7図を参照して書込み時の動作を説明する。
7 to 10 are flowcharts showing processing examples of the microprocessor 2l, and the operation of this embodiment will be explained below with reference to each figure. First, the operation at the time of writing will be explained with reference to FIG.

ホストシステム22は書込み命令を出力した後、書込み
データを出力する.書込み命令はホストインターフェイ
ス23を介してマイクロプロセソサ2lに加えられ、書
込みデータはホストインターフェイス23,セレクタ2
4を介してデータバッファ25に蓄えられる.書込み命
令は書込みを行なう先頭のセクタの物理アドレスと、書
込みを行なうデータのブロック数(1つのブロックと1
つのセクタとは対応する)とを含むものであり、書込み
命令が加えられると、マイクロプロセノサ2lは先ず、
光磁気ディスク媒体32の交替情報マップ領域42に格
納されている交替情報を読取り済みか否かを判断する(
ステップ31)。そして、読取り済みでないと判断した
場合は交替情報マノプ領域43に記憶されている交替情
報を読取り、図示を省略した内部メモリに記憶した後(
ステノプS2)、ステソブS3の処理を行ない、読取り
済みであると判断した場合は直ちにステノプS3の処理
を行なう.交替情報マソブ領域42の情報を読込む場合
、マイクロプロセッサ21はドライプインターフェイス
31を介してドライブ装置32にヘッドを交替情報マッ
プ領域42上に移動させ、交替情報マップ領域42に書
込まれている交替情報を読出すことを指示する。これに
より、ドライブ装置32は光磁気ディスク媒体33から
交替情報マップ領域42に格納されている交替情報を続
出し、読出された交替情報はドライブインターフェイス
31,セクタフォーマット制御回路30.復調回路29
,エラー訂正用デコーダ27.セレクタ24を介してデ
ータバノファ25に蓄えられ、マイクロプロセッサ21
はデータバソファ25に蓄えられた交替情報をセレクタ
24を介して読込み、内部メモリに格納する. 次いで、マイクロプロセンサ2lはステソプS3に於い
て今回データの書込みを行なうユーザ領域上のセクタ(
原始セクタ)のアドレスを示す情報が内部メモリに格納
されている交替情報中に存在するか否かを判断する.そ
して、存在しないと判断した場合は原始セクタに対する
消去処理を行ない(ステップS4)、存在すると判断し
た場合は原始セクタのアドレスとアドレスが対応して記
録されているグループ交替セクタ領域或いは交替トラッ
ク領域上のセクタ(交替セクタ)に対する消去処理を行
なう (ステップS5).ステップS4の処理を行なっ
た場合は、マイクロプロセソサ2lは原始セクタに対す
るデータの書込みを行ない(ステップS6)、ステソプ
S5の処理を行なった場合は、交替セクタに対するデー
タの書込みを行なう (ステップS7)。原始セクタ或
いは交替セクタにデータを書込む場合、マイクロプロセ
ッサ2lはドライブインターフェイス31を介してドラ
イブ装置32にデータを書込むセクタのアドレスを通知
すると共にデータバソファ25からlプロック分の書込
みデータを読出す.データバソファ25から読出された
書込みデータはエラー訂正用エンコーダ26によりエラ
ー訂正コードが付加され、変調回路2Bを介してセクタ
フォーマット制御回路30に加えられ、セクタフォーマ
ット制御回路30に於いてフォーマントが整えられた後
、ドライブインターフエイス3lを介してドライブ装置
32に送られ、光磁気ディスク媒体33上の所定位置に
書込まれる.データの書込み時、データを書込もうとす
るセクタのfD部52に第11図に示すように、欠陥5
2゜があった場合は、データ部54に本来のデータより
も短い特殊ショートパターン55を書込む(ステップ3
8,S9).特殊ショートパターンの書込みは、ドライ
ブ装置32のヘッドがデータを書込もうとするセクタ上
に来た時(ID部に欠陥があり、ID部の内容に基づい
てはヘッドがデータを書込もうとしたセクタ上に来たか
否かを判断することができないので、データを書込もう
としたセクタの1つ前のセクタを検出し、更に、次のセ
クタを検出した時、ヘッドがデータを書込もうとしたセ
クタ上に来たと判断する)、セクタフォーマント制御回
路30に特殊シラートパターンの出力指示を加えること
により行なうものであり、セクタフォーマット制御回路
30ば出力指示が加えられることにより特殊ショートパ
ターンを出力し、セクタフォーマノト制御回路30から
出力された特殊ショートパターンはドライブインターフ
ェイス31を介してドライブ装置32に加えられ、■D
部に欠陥のあるセクタに書込まれる。
After the host system 22 outputs the write command, it outputs the write data. A write command is applied to the microprocessor 2l via the host interface 23, and write data is sent to the host interface 23 and the selector 2.
4 and stored in the data buffer 25. The write command 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
When a write command is added, the microprocessor 2l first writes
Determine whether the replacement information stored in the replacement information map area 42 of the magneto-optical disk medium 32 has been read (
Step 31). If it is determined that the information has not been read, the replacement information stored in the replacement information manop area 43 is read and stored in an internal memory (not shown).
If it is determined that the reading has been completed, the processing of Stenop S3 is performed immediately. When reading the information in the replacement information map area 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. Instructs to read information. As a result, the drive device 32 continuously outputs the replacement information stored in the replacement information map area 42 from the magneto-optical disk medium 33, and the read replacement information is sent to the drive interface 31, the sector format control circuit 30. Demodulation circuit 29
, error correction decoder 27. The data is stored in the buffer 25 via the selector 24 and sent to the microprocessor 21.
reads the replacement information stored in the data bus sofa 25 via the selector 24 and stores it in the internal memory. Next, the microprocessor sensor 2l selects the sector (
Determine whether information indicating the address of the source sector (original sector) exists in the replacement information stored in internal memory. If it is determined that the original sector does not exist, erase processing is performed on the original sector (step S4), and if it is determined that the original sector does exist, it is erased in the group replacement sector area or replacement track area where the address of the original sector and the address are recorded in correspondence. Erase processing is performed on the sector (replacement sector) (step S5). If the process of step S4 is performed, the microprocessor 2l writes data to the original sector (step S6), and if the process of step S5 is performed, the microprocessor 2l writes data to the replacement sector (step S7). . When writing data to the original sector or replacement sector, the microprocessor 2l notifies the drive device 32 of the address of the sector in which the data is to be written via the drive interface 31, and reads l block worth of write data from the data bus sofa 25. put out. The write data read from the data bath sofa 25 is added with an error correction code by the error correction encoder 26, and is applied to the sector format control circuit 30 via the modulation circuit 2B. After being arranged, the data is sent to the drive device 32 via the drive interface 3l and written to a predetermined position on the magneto-optical disk medium 33. When writing data, as shown in FIG.
2°, a special short pattern 55 shorter than the original data is written in the data section 54 (step 3).
8, S9). The special short pattern is written when the head of the drive device 32 comes to the sector in which data is to be written (there is a defect in the ID section, and the head does not attempt to write data based on the contents of the ID section). Since it is not possible to judge whether or not the sector is on the sector where data was written, the head detects the sector immediately before the sector in which data is to be written, and when the next sector is detected, the head writes the data. This is done by adding an output instruction for a special silat pattern to the sector format control circuit 30, and the sector format control circuit 30 detects a special short circuit by adding an output instruction to the sector format control circuit 30. The special short pattern output from the sector former control circuit 30 is applied to the drive device 32 via the drive interface 31, and
is written to a defective sector.

書込みデータ或いは特殊ショートパターンの書込みが終
了すると、マイクロプロセソサ21はベリファイチェッ
ク動作を行ない、書込んだデータにエラーがあるか否か
を判断すると共に書込んだデータが特殊ショートパター
ンであるか否かを判断する(ステップ310).このへ
りファイチェック動作に於いては、マイクロプロセッサ
2lはドライブインターフエイス31を介してドライブ
装置32にデータの書込みを行なったセクタのアドレス
を加え、データの読出しを指示する.これにより、光磁
気ディスク媒体33から指定されたエプロンク分のデー
タが読出され、ドライブインターフエイス31,セクタ
フォーマット制御回路30,復調回路29を介してエラ
ー訂正用デコーダ27に加えられる.エラー訂正用デコ
ーダ27は加えられたlブロック分のデータに対するエ
ラー訂正処理を行ない、エラー訂正処理を行なったバイ
ト数をマイクロプロセッサ2lに加えると共に、加えら
れたlブロソク分のデータのパターンが特殊ショートパ
ターンであるのか、空パターンであるのか、その他のパ
ターンであるのかを示す情報をマイクロプロセッサ2l
に加える。マイクロプロセソサ21ではエラー訂正用デ
コーダ27から加えられたエラー訂正を行なったバイト
数が予め定められている闇値を越えているか否かに基づ
いてヘリファイエラーであるか否かを判断する.ステノ
プ510でベリファイエラーでも特殊ショートパターン
でもないと判断した場合、即ちデータの書込みが正常に
行なわれた場合は、マイクロプロセッサ21は書込みを
行なっていないデータが存在するか否かを判断し(ステ
ノプS33)、存在すると判断した場合はステップS3
の処理に戻り、存在しないと判断した場合は、その゛処
理を終了する.また、ステップ310でベリファイエラ
ーまたは特殊ショートパターンであると判断した場合は
エラー管理領域43に書込まれている書込み時のエラー
セクタ数74を+1した後(ステソプSll)、その値
が予め定められている規定値以上になったか否かを判断
する(ステップS12)。そして、ステップ512に於
いてエラーセクタ数74が予め定められている規定値以
上になったと判断した場合は、マイクロプロセッサ2l
はその内部に警告ステータスをセントすると共に、ホス
トインターフェイス23を介してホストシステム22に
以後この光磁気ディスク媒体33のユーザ領域44−1
〜44−nに対する書込みを禁止することを伝える (
ステソプS34)。尚、本実施例ではエラーセクタ数7
4が規定値以上になった場合、書込みの禁止をホストシ
ステム22に通知するようにしたが、光磁気ディスク媒
体の交換要求2清掃要求等をホストシステム22に対し
て行なうようにしても良い。また、ステソプ312に於
いてエラーセクタ数74が規定値以上でないと判断した
場合はグループ交替セクタ領域のセクタに対してデータ
の書込みを行ない(ステップS13)、書込み動作時に
lD部にエラーがあると判断した場合は特殊ショートパ
ターンを書込む(ステップS14,S15)。その後、
ベリファイチェソク動作を実行し、エラーの判定を行な
うと共に書込まれているデータが特殊ショートパターン
であるか否かの判定を行なう (ステップS16)。
When writing of the write data or special short pattern is completed, the microprocessor 21 performs a verify check operation to determine whether or not there is an error in the written data, and also to determine whether or not the written data is a special short pattern. (step 310). In this remote check operation, the microprocessor 2l adds the address of the sector in which data has been written to the drive device 32 via the drive interface 31, and instructs the drive device 32 to read the data. As a result, data for the specified apron is read from the magneto-optical disk medium 33 and is applied to the error correction decoder 27 via the drive interface 31, sector format control circuit 30, and demodulation circuit 29. The error correction decoder 27 performs error correction processing on the data for the added l blocks, adds the number of bytes for which the error correction processing has been performed to the microprocessor 2l, and also detects that the pattern of the data for the added l blocks is a special short circuit. The microprocessor 2l sends information indicating whether it is a pattern, an empty pattern, or another pattern.
Add to. The microprocessor 21 determines whether or not it is a helifi error based on whether the number of error-corrected bytes added from the error correction decoder 27 exceeds a predetermined dark value. If the stenop 510 determines that there is no verify error or special short pattern, that is, if the data has been written normally, the microprocessor 21 determines whether there is any data that has not been written. S33), if it is determined that it exists, step S3
Return to the process of ``, and if it is determined that it does not exist, terminate that process. If it is determined in step 310 that it is a verify error or a special short pattern, the number of error sectors 74 during writing written in the error management area 43 is incremented by 1 (step Sll), and that value is determined in advance. It is determined whether or not the value has exceeded a specified value (step S12). If it is determined in step 512 that the number of error sectors 74 has exceeded a predetermined value, the microprocessor 2l
stores a warning status therein, and thereafter sends the user area 44-1 of this magneto-optical disk medium 33 to the host system 22 via the host interface 23.
~ Inform that writing to 44-n is prohibited (
Stethop S34). In this embodiment, the number of error sectors is 7.
4 exceeds a specified value, the host system 22 is notified of the prohibition of writing, but a request for replacing the magneto-optical disk medium 2, a cleaning request, etc. may also be sent to the host system 22. Further, if the step 312 determines that the number of error sectors 74 is not equal to or greater than the specified value, data is written to the sector of the group replacement sector area (step S13). If it is determined, a special short pattern is written (steps S14, S15). after that,
A verify check operation is executed to determine an error and to determine whether the written data is a special short pattern (step S16).

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

ステップ316に於いてベリファイエラーまたは特殊シ
ョートパターンであると判断した場合は、マイクロプロ
セッサ2lはエラー管理領域43に書込まれているエラ
ーセクタ数74を+1した後(ステップsl?)、その
値が予め定められている規定値以上となったか否かを判
断する(ステップ31B).そして、ステップ318に
於いて規定値以上になったと判断した場合はステップS
34の処理を行ない、規定値以上になっていないと判断
した場合はグループ交替セクタ領域の次のセクタにデー
タの書込みを行なう (ステップS19,320,31
3)。グループ交替セクタ領域の全てのセクタを利用し
てもデータの書込みが成功しなかった場合(ステップ3
20の判断結果がNoの場合)は、マイクロプロセッサ
21はドライブ装ffi32のヘッドを交替トランク領
域46上に移動させ、交替トラック領域46内のセクタ
に前詰めでデータの書込みを行なう (ステップ321
)。
If it is determined in step 316 that it is a verify error or a special short pattern, the microprocessor 2l increments the number of error sectors 74 written in the error management area 43 by 1 (step sl?), and then changes the value to It is determined whether the value exceeds a predetermined value (step 31B). If it is determined in step 318 that the value has exceeded the specified value, step S
34, and if it is determined that the value is not greater than the specified value, data is written in the next sector of the group replacement sector area (steps S19, 320, and 31).
3). If data writing is not successful even if all sectors in the group replacement sector area are used (step 3)
20), the microprocessor 21 moves the head of the drive device ffi 32 onto the alternate trunk area 46, and writes data into sectors in the alternate track area 46 in a front-aligned manner (step 321).
).

交替トランク領域46内のセクタにデータを書込む場合
も、!D部にエラーがあった場合は特殊ショートパター
ンを書込む(ステップ322,S23).その後、ベリ
ファイチェソク動作を行なってベリファイエラー.特殊
ショートパターンの判定を行ない(ステップS24)、
ベリファイエラ.特殊シa−}バクーンでないと判定し
た場合はステップS29の処理に移り、ベリファイエラ
,特殊シコートパターンであると判定した場合はエラー
管理領域43に書込まれているエラーセクタ数74を+
1した後(ステソプ525)、その値が予め定められて
いる規定値以上となったか否かを判断する(ステンプS
26),そして、ステップS26に於いて規定値以上に
なっていると判断した場合はステップS34の処理を行
ない、規定値以上になっていないと判断した場合は交替
トラック領域46の次のセクタに対してデータの書込み
処理を行なう (ステップ327,321)。
When writing data to sectors within the alternate trunk area 46, ! If there is an error in section D, a special short pattern is written (steps 322, S23). After that, perform a verify check operation and get a verify error. A special short pattern is determined (step S24),
Verifyera. If it is determined that it is not a special sheet pattern, the process moves to step S29, and if it is determined that it is a verify error or special sheet pattern, the number of error sectors 74 written in the error management area 43 is increased.
1 (step S 525), it is determined whether the value is equal to or greater than a predetermined value (step S
26), and if it is determined in step S26 that the value is greater than or equal to the specified value, the process of step S34 is performed, and if it is determined that the value is not greater than or equal to the specified value, the next sector of the spare track area 46 is Data writing processing is performed for the data (steps 327, 321).

そして、所定回数交替トラック領域46のセクタに対し
て書込みを行なっても、書込みを正常に行なうことがで
きなかった場合(ステップ328の判断結果がYESの
場合)はステノブ334の処理を行なう. 次に第8図を参照してデータの読取り時の動作を説明す
る. ホストシステム22から出力された読取り命令はホスト
インターフェイス23を介してマイクロプロセッサ21
に加えられる.読取り命令は読取りを開始する最初のセ
クタのアドレスと、読取りを行なうプロンク数とを含む
ものであり、マイクロプロセフサ2lは読取り命令が加
えられることにより、第8図のフローチャートに示す処
理を開始し、先ず、光磁気ディスク媒体33の交替情報
マップ領域42に書込まれている交替情報を既に読込み
、内部メモリに格納しているか否かを判断する(ステッ
プS41)。そして、読取り済みでないと判断した場合
は光磁気ディスク媒体33の交替情報マップ領域42に
書込まれている交替情報を読込んで内部メモリに格納し
た後(ステップS42)、ドライブインターフエイス3
1を介してドライブ装M32に、読取り命令によって指
定されたアドレスを加えてデータの読取りを指示し(ス
テップS43)、読取り済みであると判断した場合は直
ちにステップ343の処理を行なう.ステップ343の
処理が行なわれることにより、ドライブ装置32は光磁
気ディスク媒体33からデータを1ブロック分読出し、
読出された1ブロック分のデータはドライブインターフ
エイス31,セクタフォーマント制御回路30,復調回
路29.エラー訂正用デコーダ27,セレクタ24を介
してデータバッファ25に蓄えられる.エラー訂正用デ
コーダ27は加えられたlプロフク分のデータに対する
エラー訂正を行なうと共にエラー訂正を行なったバイト
数及びデータのパターンが特殊ショートパターンである
のか、空パターンであるのか、その他のパターンである
のかを示す情報をマイクロプロセッサ2lに加える。
If the writing cannot be performed normally even after writing to the sector of the alternate track area 46 a predetermined number of times (if the determination result in step 328 is YES), the process of the steno knob 334 is performed. Next, the operation when reading data will be explained with reference to FIG. A read command output from the host system 22 is sent to the microprocessor 21 via the host interface 23.
is added to. The read command includes the address of the first sector to start reading and the number of pronks to read, and upon receiving the read command, the microprocessor 2l starts the process shown in the flowchart of FIG. First, it is determined whether 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 data 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 S42), and then the drive interface 3
1, the drive unit M32 is instructed to read the data by adding the address specified by the read command (step S43), and if it is determined that the data has been read, the process of step 343 is immediately performed. By performing the process of step 343, the drive device 32 reads one block of data from the magneto-optical disk medium 33, and
The read data for one block is sent to the drive interface 31, sector formant control circuit 30, demodulation circuit 29. The data is stored in the data buffer 25 via the error correction decoder 27 and selector 24. The error correction decoder 27 performs error correction on the added l profile data, and also determines the number of error-corrected bytes and whether the data pattern is a special short pattern, an empty pattern, or another pattern. The information indicating whether the microprocessor 21 is the same as the one shown in FIG.

マイクロプロセッサ2lはステソブS43の処理が終了
すると、エラー訂正用デコーダ27から送られてきたデ
ータのパターンを示す情報に基づいて今回読取り処理を
行なったユーザ領域44−1〜44−n上のセクタが空
セクタであるか否かを判断し(ステップS44)、空セ
クタであると判断した場合は、更に、エラー訂正用デコ
ーダ27から送られてきたエラー訂正を行なったバイト
数を示す情報に基づいて今回読取り処理を行なったセク
タがエラーセクタであるか否かを判断すると共に、デー
タのパターンを示す情報に基づいて上記セクタに特殊シ
ョートパターンが書込まれているか否かを判断する(ス
テップ345)..そして、ステソプS45に於いて、
今回読取り処理を行なったセクタがエラーセクタでなく
、且つ書込まれているデータが特殊ショートパターンで
ないと判断した場合は、内部メモリに書込んである交替
情報を調査しくステノプS46)、今回読取り処理を行
なったセクタのアドレスが交替情報中に存在するか否か
を判断する(ステノプS47)。
When the microprocessor 2l completes the processing of the step S43, the microprocessor 2l determines the sectors on the user areas 44-1 to 44-n that have been read this time based on the information indicating the data pattern sent from the error correction decoder 27. It is determined whether it is an empty sector (step S44), and if it is determined that it is an empty sector, the sector is further determined based on the information indicating the number of bytes for which error correction has been performed sent from the error correction decoder 27. It is determined whether the sector currently read is an error sector or not, and it is also determined whether a special short pattern has been written in the sector based on the information indicating the data pattern (step 345). .. .. And in Stethop S45,
If it is determined 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, check the replacement information written in the internal memory (S46), and proceed with the current reading process. It is determined whether the address of the sector in which the process was performed exists in the replacement information (Stenop S47).

尚、交替情報の読取り動作でエラーが発生した場合は、
全ての交替領域の読取りを実行し、該当するセクタを探
索する. そして、ステップS47に於いて、交替情報中に存在し
ないと判断した場合はデータバッファ25に格納してあ
る今回読出した1ブロノク分のデータをセレクタ24,
ホストインターフェイス23を介してホストシステム2
2へ転送する(ステノプS52)。また、ステノブS4
7に於いて、交替情報中に存在すると判断した場合は今
回読取り処理を行なったユーザ領域上のセクタのアドレ
スとアドレスが対応して登録されている交替セクタに書
込まれているデータを読出すことをドライブインターフ
ェイス3lを介してドライブ装置32に指示する(ステ
ップS48)。これにより、前述したと同様にして光磁
気ディスク媒体33からデータが続出され、データバソ
ファ25に蓄えられる。この時、エラー訂正用デコーダ
27がら出力されるデータのパターンを示す情報に基づ
いてマイクロプロセソサ2lは今回読取り処理を行なっ
た交替セクタが空セクタであるか否かを判定し(ステッ
プS49)、空セクタであると判断した場合はホストイ
ンターフェイス23を介してホストシステム22に空セ
クタであることを示すステータスを報告する.また、空
セクタでないと判断した場合はエラー訂正用デコーダ2
7から送られてくるエラー訂正を行なったバイト数を示
す情報に基づいて今回読取り処理を行なった交替セクタ
がエラーセクタであるか否かを判断すると共に、エラー
訂正用デコーダ27から送られてくるデータのパターン
を示す情報に基づいて上記セクタに特殊ショートパター
ンが書込まれているか否かを判断する(ステップSSO
>。
In addition, if an error occurs while reading replacement information,
Executes reading of all spare areas and searches for the corresponding sector. Then, in step S47, if it is determined that the replacement information does not exist, the selector 24,
host system 2 via host interface 23
2 (stenop S52). Also, Stenobu S4
In step 7, if it is determined that it exists in the replacement information, the data written in the replacement sector whose address is registered in correspondence with the address of the sector in the user area where the read processing was performed this time is read out. This is instructed to the drive device 32 via the drive interface 3l (step S48). As a result, data is successively outputted from the magneto-optical disk medium 33 and stored in the data bath sofa 25 in the same manner as described above. At this time, the microprocessor 2l determines whether or not the replacement sector that has been read this time is an empty sector based on the information indicating the data pattern output from the error correction decoder 27 (step S49). If it is determined that the sector is empty, a status indicating that it is an empty sector is reported to the host system 22 via the host interface 23. Also, if it is determined that it is not an empty sector, the error correction decoder 2
Based on the information indicating the number of bytes for which error correction has been performed, which is sent from the error correction decoder 27, it is determined whether the replacement sector that has been read this time is an error sector or not. Based on the information indicating the data pattern, it is determined whether a special short pattern is written in the sector (step SSO
>.

そして、ステップS50に於いてエラーセクタでもなく
、書込まれているデータが特殊ショートパターンでもな
いと判断した場合、即ち、データの読取りが正常に行な
われた場合は、交替セクタから読取り、データハソファ
25に格納してあるデータを原始セクタのデータと入れ
換えてホストシステム22に転送する (ステノプS5
1.S52)。その後、マイクロプロセノサ21は読取
り命令によって指示されたデータの内、読取っていない
データが存在するか否かを判断し(ステ,プS53)、
存在しないと判断した場合はその処理を終了し、存在す
ると判断した場合はステップS43の処理に戻り、次の
セクタに書込まれているデータの読取りを行なう。また
、ステノプS50に於いてエラーセクタまたは書込まれ
ているデータが特殊ショートパターンであると判断した
場合、即ちデータの読取り処理を正常に行なうことがで
きなかった場合は、再度交替セクタに対する読取り処理
を行ない(ステップS65)、その結果交替セクタから
データを正常に読取ることができた場合(ステップ36
6の判断結果がYESの場合)はステノプ351の処理
を行ない、データを正常に読取ることができなかった場
合は、所定回数再試行を行なったか否かを判断する(ス
テップs67). そして、ステップ367に於いて所定回数再試行を行な
ったと判断した場合はエラー管理領域43に書込まれて
いる読取り時のエラー発生回数75を+IL(ステップ
368)、その後、エラー発生回数75が予め定められ
ている規定数を越えているか否かを判断する (ステッ
プS69)。そして、ステップS69に於いて規定数を
越えていないと判断した場合はその処理を異常終了し、
越えていると判断した場合は、マイクロプロセッサ21
はその内部に警告ステータスをセットすると共にホスト
インターフエイス23を介してホストシステムに以後こ
の光磁気ディスク媒体33を使用しないようにすること
を通知した後(ステップS70)、その処理を異常終了
する。
If it is determined in step S50 that the sector is not an error sector and the written data is not a special short pattern, that is, if the data has been read normally, the data is read from the replacement sector and the data is Replace the data stored in the sofa 25 with the data in the original sector and transfer it to the host system 22 (Stenop S5
1. S52). After that, the microprocessor 21 determines whether or not there is unread data among the data specified by the read command (step S53),
If it is determined that the sector does not exist, the process ends; if it is determined that the sector exists, the process returns to step S43 to read the data written in the next sector. In addition, if the stenop S50 determines 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), and as a result, if data can be read normally from the replacement sector (Step S65)
If the result of the determination in step 6 is YES), the process is performed on the stenop 351, and if the data could not be read normally, it is determined whether or not a predetermined number of retries have been performed (step s67). If it is determined in step 367 that the retry has been performed a predetermined number of times, the number of error occurrences 75 during reading written in the error management area 43 is increased by +IL (step 368), and then the number of error occurrences 75 is set in advance. It is determined whether the number exceeds a predetermined number (step S69). If it is determined in step S69 that the specified number has not been exceeded, the process is abnormally terminated.
If it is determined that the limit has been exceeded, the microprocessor 21
sets a warning status therein and notifies the host system via the host interface 23 that the magneto-optical disk medium 33 will no longer be used (step S70), and then terminates the process abnormally.

また、ステソプS44に於いて今回読取り処理を行なっ
たユーザ領域44−1〜44−n上のセクタが空セクタ
であると判断した場合及びステップS45に於いて上記
セクタがエラーセクタか或いは上記セクタに書込まれて
いるデータが特殊ショートパターンであると判断した場
合は、マイクロプロセッサ2lは内部メモリに格納して
ある交替情報を調査し(ステノプS54)、上記セクタ
の7ドレスが交替情報中に存在するか否かを判断する(
ステップS55)。そして、上記セクタのアドレスが交
替情報中に存在すると判断した場合は、上記セクタのア
ドレスとアドレスが対応して登録されている交替セクタ
からデータで読取ることをドライブインターフェイス3
lを介してドライブ装置32に指示する(ステップ35
6)。これにより、交替セクタの書込まれているデータ
が前述したと同様にして光磁気ディスク媒体33から読
出され、データバンファ25に格納される。
Further, if it is determined in step S44 that the sector on the user area 44-1 to 44-n that has been read this time is an empty sector, and in step S45, if the sector is an error sector or the sector is If it is determined that the written data is a special short pattern, the microprocessor 2l investigates the replacement information stored in the internal memory (Stenop S54) and determines that the 7th address of the above sector exists in the replacement information. Decide whether to do so (
Step S55). If it is determined that the address of the sector is present in the replacement information, the drive interface 3 instructs the drive interface to read data from the replacement sector in which the address of the sector and the address are registered in correspondence.
Instruct the drive device 32 via l (step 35
6). As a result, the data written in the replacement sector is read from the magneto-optical disk medium 33 and stored in the data bumper 25 in the same manner as described above.

また、マイクロプロセッサ2lはこの時、エラ訂正用デ
コーダ27から出力されるエラー訂正処理を行なったバ
イト数及びデータのパターンを示す情報に基づいて上記
交替セクタからのデータの読出しが正常に行なわれたか
否かを判断する(ステップS57).そして、データの
読出しが正常に行なわれたと判断した場合(ステノプS
57の判断結果がNoの場合)はステノプS51の処理
を行ない、正常に行なわれなかったと判断した場合は、
上記交替セクタに対する読取り処理を再度行なう (ス
テノブ358)。そして、再試行の結果、データの読取
りが正常に行なわれたと判断した場合(ステソプS59
でYESの場合)はステソプS51の処理を行ない、所
定回数再試行を行なってもデータを読取りを正常に行な
うことができなかった場合(ステソプS60の判断結果
がYESの場合)はステソプ368の処理を行なう。
At this time, the microprocessor 2l also determines whether data has been successfully read from the replacement sector based on information indicating the number of bytes subjected to error correction processing and the data pattern output from the error correction decoder 27. It is determined whether or not (step S57). If it is determined that the data has been read normally (Stenop S
If the judgment result in Step 57 is No), perform the process of Stenop S51, and if it is judged that it has not been carried out normally,
The read process for the replacement sector is performed again (Stennob 358). As a result of the retry, if it is determined that the data has been read successfully (step S59
If the result is YES in STEP S51, the process is executed in STEP S51, and if the data cannot be read normally even after retrying a predetermined number of times (if the determination result in STEP S60 is YES), the process is executed in STEP S51. Do this.

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

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

ホストシステム22からの消去命令はホストインターフ
エイス23を介してマイクロブロセノサ2lに加えられ
る。消去命令はデータの消去を行なうセクタのアドレス
を含むものであり、消去命令が加えられると、マイクロ
プロセノサ2lは先ず、交替情報マップ領域42に書込
まれている交替情報を既に内部メモリに読込んでいるか
否かを判断する(ステップS71)。ステップ371で
交替情報を読込んでいないと判断した場合は、マップ2
lは交替情報マップ領域42から交替情報を読込んだ後
(ステップS72)、ステノプS73の処理を行ない、
交替情報を既に読込んでいると判断した場合は直ちにス
テノブS73の処理を行なう。ステップS73に於いて
は、マイクロプロセソサ2lは消去命令によって指定さ
れたセクタに対する消去処理を行ない、その後内部メモ
リに格納してある交替情報を調査し(ステノプS74)
、消去命令に含まれているアドレスが交替情報中に存在
するか否かを判断する(ステノプS75).そして、交
替情報中に存在していないと判断した場合はその処理を
終了し、存在していると判断した場合は消去命令に含ま
れているアトレスとアドレスが対応して登録されている
交替セクタに対する消去処理を行ない(ステップ376
)、その後、その処理を終了する。
An erase command from the host system 22 is applied to the microprocessor 2l via the host interface 23. The erase command includes the address of the sector where data is to be erased, and when the erase command is added, the microprocessor 2l first reads the replacement information written in the replacement information map area 42 into the internal memory. It is determined whether or not (step S71). If it is determined in step 371 that replacement information has not been read, map 2
After reading the replacement information from the replacement information map area 42 (step S72), l performs the processing of the stenop S73,
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 2l performs an erase process on the sector specified by the erase command, and then examines the replacement information stored in the internal memory (step S74).
, it is determined whether the address included in the erase command exists in the replacement information (step S75). If it is determined that the address does not exist in the replacement information, the process is terminated, and if it is determined that it does exist, the replacement sector is registered in correspondence with the address included in the erase instruction. (Step 376)
), then terminate the process.

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

ホストシステム22からのサーティファイ命令はホスト
インターフエイス23を介してマイクロプロセソサ2l
に加えられる。サーティファイ命令はサーティファイ処
理を行なうユーザ領域の数を示す情報を含んでおり、マ
イクロプロセノサ21はサーティファイ命令が加えられ
ると、第10図に示す処理を開始し、先ず、交替情報マ
ップ領域42に書込まれている交替情報を内部メモリに
読込み済みか否かを判断する(ステノプS81)。
The certification command from the host system 22 is sent to the microprocessor 2l via the host interface 23.
added to. The certify command includes information indicating the number of user areas to perform the certify process, and when the certify command is added, the microprocessor 21 starts the process shown in FIG. It is determined whether or not the replacement information has been read into the internal memory (Stenop S81).

読込んでいない場合は交替情報マップ領域42の読取り
を行なった後(ステソプS82)、ステノプS83の処
理を行ない、読取り済みである場合は直ちにステノブS
83の処理を行なう。
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, and if it has been read, the step S is immediately
83 is performed.

ステップS83に於いてはエラー管理領域43に書込ま
れているサーティファイ処理の未実行実行中,実行完了
を示すフラグ7lを読込み、次のステノブS84ではス
テソプS83で読込んだフラグ71に基づいてサーティ
ファイ処理が実行済みであるか否かを判断する。そして
、実行済みであると判断した場合はマイクロプロセッサ
2lはその処理を終了し、実行済みでないと判断した場
合はステップ383で読込んだフラグ7lに基づいてサ
ーティファイ処理が未実行であるか否かを判断する(ス
テップS85).ステップS85でサーティファイ処理
が未実行であると判断した場合はサーティファイアドレ
スとして第1番目のユーザ領域の先頭アドレスをセント
すると共にエラー管理領域43中のフラグ71をサーテ
ィファイ処理の実行中を示すものとする(ステップs8
6.87).また、ステップ385に於いてサーティフ
ァイ処理が未実行でないと判断した場合、即ち、サーテ
ィファイ処理が実行中であると判断した場合は、エラー
管理領域43からサーティファイアドレス72を読取る
(ステップ38B).次いで、マイクロプロセソサ21
はステップ386でセットしたサーティファイアドレス
或いはステソプ388で読取−ったサーティファイアド
レスによって示されるセクタの読取りを行ない(ステン
プ389)、そのセクタが空セクタであるか否かを判断
する(ステップS90)。ステップS90で空セクタで
ないと判断した場合は、上記セクタがエラーセクタまた
は特殊ショートパターンが書込まれているセクタである
か否かを判断する(ステソプS91)。そして、ステッ
プS91で上記セクタがエラーセクタでも特殊ショート
パターンが書込まれているセクタでもないと判断した場
合、即ち上記セクタが正常なセクタであると判断した場
合は、サーティファイ命令によって指定されたユーザ領
域に対するサーティファイ処理が終了したか否かを判断
する(ステソプS102)。
In step S83, the flag 7l indicating whether the certification process is not yet executed or completed is written in the error management area 43, and in the next step S84, the certification process is performed based on the flag 71 read in step S83. Determine whether the process has been executed. If the microprocessor 2l determines that the process has been executed, the microprocessor 2l terminates the process; if it determines that the process has not been executed, the microprocessor 2l determines whether or not the certification process has not been executed based on the flag 7l read in step 383. is determined (step S85). If it is determined in step S85 that the certification process 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 is set to indicate that the certification process is being executed. (Step s8
6.87). Further, if it is determined in step 385 that the certify process is not yet executed, that is, if it is determined that the certify process is being executed, the certify address 72 is read from the error management area 43 (step 38B). Next, the microprocessor 21
reads the sector indicated by the certification address set in step 386 or the certification address read in step 388 (step 389), 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 has been written (step S91). If it is determined in step S91 that the sector is neither an error sector nor a sector in which a special short pattern is written, that is, if it is determined that the sector is a normal sector, the user specified by the certify instruction It is determined whether the certification process for the area has been completed (step S102).

そして、ステップSl02でサーティファイ命令によっ
て指定されたユーザ領域に対するサーティファイ処理が
終了していないと判断した場合はサーティファイアドレ
スを+1した後(ステソフ゜S106)、そのサーティ
ファイアドレスがユーザ領域中のアドレスであるか否か
を判断し(ステノプ3107)、ユーザ領域中のアドレ
スであると判断した場合はステップ389の処理に戻り
、ユザ領域中のアドレスでないと判断した場合は、次の
ユーザ領域の先頭アドレスをサーティファイアドレスと
した後(ステノプ3108)、ステノプ389の処理に
戻る.また、ステノプ3102に於いてサーティファイ
命令によって指定されたユーザ領域に対するサーティフ
ァイ処理が終了したと判断した場合は光磁気ディスク媒
体33上の全てのユーザ領域に対するサーティファイ処
理が終了したか否かを判断する(ステップS 1 0 
3)。
If it is determined in step Sl02 that the certification process for the user area specified by the certification instruction has not been completed, the certification address is incremented by 1 (step S106), and then it is determined whether the certification address is an address in the user area or not. (step 3107), and if it is determined that the address is in the user area, the process returns to step 389; if it is determined that the address is not in the user area, the first address of the next user area is set as the certifier address. After that (Stenop 3108), the process returns to Stenop 389. Furthermore, when the steno panel 3102 determines that the certification process for the user area specified by the certification command has been completed, it is determined whether the certification process for all user areas on the magneto-optical disk medium 33 has been completed ( Step S 1 0
3).

そして、全てのユーザ領域に対するサーティファイ処理
を終了したと判断した場合はエラー管理領域43中のフ
ラグ7lをサーティファイ処理の完了を示すものにした
後(ステップ3104)、その処理を終了し、全てのユ
ーザ領域に対するサーティファイ処理を終了していない
と判断した場合はサーティファイアドレスを次のユーザ
領域の先頭アドレスにした後(ステップsl05)、そ
の処理を終了する. また、ステップ391でエラーセクタまたは特殊シッー
トパターンの書込まれているセクタであると判断した場
合は、内部メモリに書込んである交替情報を調査し(ス
テップ92)、上記セクタ0アドレスとアドレスが対応
して書込まれている交替セクタが存在するか否かを判断
する(ステップS93)。そして、交替セクタが存在し
ないと判断した場合はエラー管理領域43中の欠陥セク
タ数73を+1した1!t(ステップS94)、欠陥セ
クタ数73が規定数以上になったか否かを判断する(ス
テップS95)。そして、規定数以上になっていると判
断した場合はホストインターフエイス23を介してホス
トシステム22に警告ステータスを通知した後(ステソ
プSll3)、異常終了し、規定数以上になっていない
と判断した場合はステップSl02の処理を行なう。ま
た、ステソプ393に於いて、交替セクタが存在してい
ると判断した場合は、交替セクタの読取りを行ない(ス
テップS109)、その後、交替セクタがエラーセクタ
或いは特殊ショートパターンが書込まれているセクタで
あるか否かを判断する(ステップ3110).そして、
ステップSiloでエラーセクタ或いは特殊ショートパ
ターンが書込まれているセクタであると判断した場合は
、エラー管理領域43に書込まれている欠陥セクタ数7
3を+1した後(ステソプSill),欠陥セクタ数7
3が規定値以上になっているか否かを判断し(ステノプ
112)、規定値以上になっていると判断した場合はホ
ストインターフェイス23を介してホストシステム22
に警告ステータスを通知する(ステノプS l l 3
)。また、ステップS110に於いて、交替セクタが正
常なセクタであると判断した場合はステップSl02の
処理を行なう。また、ステップS91でエラーセクタで
も特殊ショートパターンの書込まれているセクタでもな
いと判断した場合はステップS102の処理を行なう。
If it is determined that the certification process for all user areas has been completed, the flag 7l in the error management area 43 is set to indicate completion of the certification process (step 3104), and the process is terminated. If it is determined that the certification process for the area has not been completed, the process is terminated after setting the certification address to the start address of the next user area (step sl05). In addition, if it is determined in step 391 that the sector is an error sector or a sector in which a special sheet pattern has been written, the replacement information written in the internal memory is investigated (step 92), and the address corresponds to the sector 0 address mentioned above. It is determined whether there is a replacement sector written as such (step S93). If it is determined that there is no replacement sector, the number of defective sectors 73 in the error management area 43 is increased by 1! t (step S94), and it is determined whether the number of defective sectors 73 has exceeded a specified number (step S95). If it is determined that the number has exceeded the specified number, it notifies the host system 22 of the warning status via the host interface 23 (Step Sll 3), and then terminates abnormally and determines that the number has not exceeded the specified number. If so, the process of step Sl02 is performed. In addition, if it is determined in step 393 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. It is determined whether or not (step 3110). and,
If it is determined in step Silo that the sector is an error sector or a sector in which a special short pattern has been written, the number of defective sectors written in the error management area 43 is 7.
After adding 1 to 3 (Stetsop Sill), the number of defective sectors is 7
3 is above the specified value (stenop 112), and if it is judged that it is above the specified value, the host system 22 via the host interface 23
Notify warning status to (Stenop S l l 3
). Further, in step S110, if it is determined that the replacement sector is a normal sector, the process of step S102 is performed. Further, if it is determined in step S91 that the sector is neither an error sector nor a sector in which a special short pattern has been written, the process of step S102 is performed.

また、ステノプS90に於いて、ステノブS89で読取
ったセクタが空セクタであると判断した場合は、サーテ
ィファイ用データを上記セクタに書込む処理を行なう 
(ステノプS96.S97)。
Additionally, if the steno knob S90 determines that the sector read by the steno knob S89 is an empty sector, it performs processing to write certification data to the sector.
(Stenop S96.S97).

ステソブS97に於いて、サーティファイ用データ.を
書込む際、ID部にエラーがある場合は特殊ショートパ
ターンを書込む。その後、マイクロブロセソサ2Iはベ
リファイチェソク動作を行ない、ステップ397で書込
んだデータにエラーがあるか、或いは特殊ショートパタ
ーンが書込まれているか否かを判断する(ステップ39
8)。ステップ398に於いてへりファイエラー或いは
特殊ショートパターンが書込まれているセクタであると
判断した場合は交替セクタに対してサーティファイ用デ
ータの書込み処理を行なう (ステップS99).その
際、ID部にエラーがある場合は特殊ショートパターン
を書込む。
Certify data for SteSob S97. When writing, if there is an error in the ID section, write a special short pattern. Thereafter, the microprocessor 2I performs a verify check operation to determine whether there is an error in the data written in step 397 or whether a special short pattern has been written (step 39).
8). If it is determined in step 398 that this is the sector in which an edge file error or special short pattern has been written, the process of writing certification data to the replacement sector is performed (step S99). At that time, if there is an error in the ID section, a special short pattern is written.

ステップS99の処理が終了すると、マイクロプロセッ
サ2lはベリファイチェソク動作を行ない、ステップS
99で書込んだデータにエラーがあるか否かを判断する
と共にステップS99で書込んだデータが特殊ショート
パターンであるか否かを判断する(ステンブSIOO)
。そして、ステソブSIOOに於いて書込み動作を正常
に行なうことができたと判断した場合はステップS10
2の処理を行ない、正常に行なうことができなかったと
判断した場合は次の交替セクタに対してサーティファイ
用データの書込み処理を行なう (ステップS99,S
lo1).そして、グループ交替セクタ領域中の全ての
セクタに対してサーティファイ用データの書込み処理を
行なっても、データの書込みを正常に行なうことができ
なかった場合は、ホストインターフエイス23を介して
ホストシステム22に警告ステータスを通知してその処
理を終了する。
When the process in step S99 is completed, the microprocessor 2l performs a verify check operation, and performs a verify check operation in step S99.
It is determined whether or not there is an error in the data written in step S99, and it is determined whether or not the data written in step S99 is a special short pattern (Stenbu SIOO).
. If it is determined that the write operation was successfully performed in SteSob SIOO, step S10
2, and if it is determined that the process could not be performed normally, the process of writing certification data to the next replacement sector is performed (steps S99, S
lo1). If the data cannot be written normally even after writing the certification data to all sectors in the group replacement sector area, the host system 22 via the host interface 23 Notify the warning status and terminate the process.

〔発明の効果〕〔Effect of the invention〕

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

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

第1図は本発明の構成図、 第2図は本発明の実施例のブロック図、第3図は光ti
気ディスク媒体の記憶領域のフォーマノト図、 第4図はセクタのフォーマソト図、 第5図は交替情報マップ領域の記憶内容を示す図、 第6図はエラー管理領域の記憶内容を示す図、第7図は
書込み処理時の処理例を示すフローチャート、 第8図は読取り処理時の処理例を示すフローチャート、 第9図は消去処理時の処理例を示すフローチャート、 第lO図はサーティファイ処理時の処理例を示すフロー
チャート及び、 第11図はID部に欠陥があった時のセクタの書込み内
容を示す図である。 図に於いて、■,33・・・光るn気ディスク媒体、2
.43・・・エラー管理領域、3・・・書込みエラー検
出手段、4・・・読取りエラー検出手段、5・・・判定
手段、2l・・・マイクロプロセノサ、22・・・ホス
トシステム、23・・・ホストインターフェイス、24
・・・セレクタ、25・・・データバッファ、26・・
・エラー訂正用エンコーダ、27・・・エラー訂正用デ
コーダ、28・・・変調回路、29・・・復調回路、3
o・・・セレクタフォーマット制御回路、31・・・ド
ライブインターフエイス、32・・・ドライブ装置、4
1−1.41−2・・・制御テスHAT域、42・・・
交替情報マップ領域、44−1 〜44−n・=・ユー
ザ領域、451〜45−n・・・グループ交替セクタ領
域、46・・・交替トラソク領域.
FIG. 1 is a block diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a block diagram of an embodiment of the present invention.
FIG. 4 is a format diagram of the storage area of the disk medium; FIG. 4 is a format diagram of sectors; FIG. 5 is a diagram showing the storage contents of the replacement information map area; FIG. 6 is a diagram showing the storage contents of the error management area; Figure 8 is a flowchart showing an example of processing during write processing, Figure 8 is a flowchart showing an example of processing during read processing, Figure 9 is a flowchart showing an example of processing during erase processing, and Figure 1O is an example of processing during certification processing. FIG. 11 is a flowchart showing the contents written in a sector when there is a defect in the ID section. In the figure, ■, 33... Shining n-air disk medium, 2
.. 43... Error management area, 3... Write error detection means, 4... Read error detection means, 5... Judgment means, 2l... Microprocessor, 22... Host system, 23.・Host interface, 24
...Selector, 25...Data buffer, 26...
- Error correction encoder, 27... Error correction decoder, 28... Modulation circuit, 29... Demodulation circuit, 3
o... Selector format control circuit, 31... Drive interface, 32... Drive device, 4
1-1.41-2... Control test HAT area, 42...
Replacement information map area, 44-1 to 44-n = User area, 451 to 45-n... Group replacement sector area, 46 Replacement track area.

Claims (1)

【特許請求の範囲】 光磁気ディスク媒体に対するデータの書込み及び読取り
を行なう光磁気ディスク処理装置に於いて、 前記光磁気ディスク媒体にエラー発生回数とエラーセク
タ数とが登録されるエラー管理領域を設けると共に、 データの書込み時、新規なセクタに対する書込みエラー
を検出することにより、前記エラー管理領域に登録され
ているエラーセクタ数を更新する書込みエラー検出手段
と、 データの読取り時、読取りエラーを検出することにより
、前記エラー管理領域に登録されているエラー発生回数
を更新する読取りエラー検出手段と、 前記エラー管理領域に登録されているエラー発生回数及
びエラーセクタ数が規定値を越えているか否かを判定す
る判定手段とを設けたことを特徴とする光磁気ディスク
処理装置。
[Scope of Claims] In a magneto-optical disk processing device that writes and reads data to and from a magneto-optical disk medium, the magneto-optical disk medium is provided with an error management area in which the number of error occurrences and the number of error sectors are registered. and a write error detection means for updating the number of error sectors registered in the error management area by detecting a write error in a new sector when writing data; and detecting a read error when reading data. read error detection means for updating the number of error occurrences registered in the error management area; and detecting whether the number of error occurrences and the number of error sectors registered in the error management area exceed specified values. What is claimed is: 1. A magneto-optical disk processing device, comprising: determining means for making a determination.
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 true JPH0322265A (en) 1991-01-30
JP2589378B2 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0421974A (en) * 1990-05-15 1992-01-24 Fujitsu Ltd Method and device for controlling alternative sector
JPH052837A (en) * 1991-06-27 1993-01-08 Matsushita Electric Ind Co Ltd Information recording and reproducing device
US5217570A (en) * 1991-01-31 1993-06-08 Sony Corporation Dry etching method
JP2007109288A (en) * 2005-10-12 2007-04-26 Hitachi Ltd Optical disk apparatus and optical disk

Families Citing this family (1)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0421974A (en) * 1990-05-15 1992-01-24 Fujitsu Ltd Method and device for controlling alternative sector
US5217570A (en) * 1991-01-31 1993-06-08 Sony Corporation Dry etching method
JPH052837A (en) * 1991-06-27 1993-01-08 Matsushita Electric Ind Co Ltd Information recording and reproducing device
JP2007109288A (en) * 2005-10-12 2007-04-26 Hitachi Ltd Optical disk apparatus and optical disk

Also Published As

Publication number Publication date
JP2589378B2 (en) 1997-03-12

Similar Documents

Publication Publication Date Title
US4525839A (en) Method of controlling storage device
US4638472A (en) Information recording system and method for using alternative record area in writing and reading of data on optical disk
JP3717981B2 (en) Error log creation method and error test device
US4984230A (en) Rewritable optical disk with defective-sector substitution arrangement and optical information recording and reproducing system
US5418767A (en) Detection of overusage of spare sectors in an optical disk
WO1993010494A1 (en) Method for dynamically measuring computer disk error rates
JPH02216672A (en) Optical disk drive device
JPH0773602A (en) Optical disk device
US5467361A (en) Method and system for separate data and media maintenance within direct access storage devices
WO2004077420A1 (en) Write-once disc, recording apparatus thereto, and method of reducing access time thereto
JPH0322265A (en) Magneto-optical disk processor
JP3065631B2 (en) Optical disk drive
JPH07182250A (en) Automatic substituting processing system for magnetic disk
JPH1050005A (en) Method for managing defect on optical disk and device therefor
JP2615980B2 (en) Magneto-optical disk drive
JPH09212429A (en) Monvolatile semiconductor disk drive
JP2595318B2 (en) Data erasing device for rewritable recording / reproducing device
JP2604489B2 (en) Optical disk processing device
JP2001195836A (en) Optical disk recording method
JPH01154335A (en) Magneto-optical disk device
JPS63237264A (en) Information recording system
JPS6348662A (en) Information recording and reproducing method for optical disk device
JP3870024B2 (en) Information recording apparatus and information recording method
JPH09320207A (en) Information recording/reproducing device
JP2000155901A (en) Defect information generating method and information storage apparatus

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