JPH07312024A - Control method for data recording and reproducing device - Google Patents

Control method for data recording and reproducing device

Info

Publication number
JPH07312024A
JPH07312024A JP12588594A JP12588594A JPH07312024A JP H07312024 A JPH07312024 A JP H07312024A JP 12588594 A JP12588594 A JP 12588594A JP 12588594 A JP12588594 A JP 12588594A JP H07312024 A JPH07312024 A JP H07312024A
Authority
JP
Japan
Prior art keywords
sector
alternative
group
data recording
sectors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12588594A
Other languages
Japanese (ja)
Inventor
Ichiro Moritomo
一郎 守友
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP12588594A priority Critical patent/JPH07312024A/en
Publication of JPH07312024A publication Critical patent/JPH07312024A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent data access time from becoming long and large by deciding the number of remaining alternate sectors of the alternate sector area of a group to which a specified recording sector is belonging and deciding whether a data recording commanded from a host device can be accepted or not according to the number of remaining alternate sectors. CONSTITUTION:A host device sets an alternation prohibition possible mode with respect to a magneto-optical disk device via a host I/F 6. The control part 2 of the magneto-optical device reads in the defection managing information of a magneto-optical disk 1 in an initialization procession to prepare a table of numbers of defective sectors for respective groups and preserves the table in the memory for control 5. When a data recording is commanded, the control part 2 calculates the number of remaining alternate sectors of the group to which a specified sector is belonging by referring to the content of the table and in the case the number of the remaining alternate sectors is zero, the control part 2 allows it to be completed as an error. Thus, since data are recorded in a form in which sector alternate processions are finished in the same group, a situation in which data access time is prolonged is avoided.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、記録媒体に設定したデ
ータ記録領域を複数のグループに分割し、おのおののグ
ループ毎に所定セクタ数の代替セクタ領域を設定すると
ともに、データ記録時に欠陥セクタを検出すると、その
欠陥セクタに記録できなかったデータをその欠陥セクタ
が属するグループに設定されている代替セクタ領域のい
ずれかの代替セクタに記録するセクタ代替処理機能を備
えたデータ記録再生装置の制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention divides a data recording area set on a recording medium into a plurality of groups, and sets a predetermined number of alternative sector areas for each group. When detected, the control method of the data recording / reproducing apparatus having the sector replacement processing function of recording the data that could not be recorded in the defective sector in any of the alternative sectors of the alternative sector area set in the group to which the defective sector belongs. Regarding

【0002】[0002]

【従来の技術】例えば、光磁気ディスク装置では、記録
媒体に設定したデータ記録領域を複数のグループに分割
し、おのおののグループ毎に所定セクタ数の代替セクタ
領域を設定するとともに、データ記録時に欠陥セクタを
検出すると、その欠陥セクタに記録できなかったデータ
をその欠陥セクタが属するグループに設定されている代
替セクタ領域のいずれかの代替セクタに記録するセクタ
代替処理を行うようにしている。
2. Description of the Related Art For example, in a magneto-optical disk device, a data recording area set on a recording medium is divided into a plurality of groups, and a predetermined number of alternative sector areas are set for each group. When a sector is detected, sector replacement processing is performed in which data that could not be recorded in the defective sector is recorded in one of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs.

【0003】このようにして、セクタ代替処理を適用す
ると、比較的データ誤り率の大きな光磁気ディスクを記
録媒体として用いた場合でも、データを適切に記録する
ことができる。
By applying the sector replacement process in this way, data can be properly recorded even when a magneto-optical disk having a relatively large data error rate is used as a recording medium.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うなセクタ代替処理を行う従来装置には、次のような不
都合を生じていた。
However, the conventional apparatus for performing such sector substitution processing has the following inconveniences.

【0005】例えば、あるグループに集中して欠陥セク
タが発生すると、そのグループに設定されている代替セ
クタ領域の代替セクタが多数使用される。そして、残り
数が0になると、それ以降、そのグループに欠陥セクタ
が発生すると、その欠陥セクタの代替セクタは、例え
ば、その欠陥セクタが属するグループと物理的に連続す
る次のグループの代替セクタ領域に確保される。
For example, when defective sectors are concentrated in a certain group, many alternative sectors in the alternative sector area set in the group are used. When the remaining number becomes 0 and a defective sector occurs in that group thereafter, the alternative sector of the defective sector is, for example, the alternative sector area of the next group physically contiguous with the group to which the defective sector belongs. Secured in.

【0006】したがって、同一グループのセクタを代替
する代替セクタが複数グループにわたって配置される場
合があり、かかる場合には、代替セクタのデータを読み
出すために長い時間がかかり、データアクセス時間が長
大になるという不都合を生じる。
Therefore, there are cases where alternative sectors that replace the same group of sectors are arranged over a plurality of groups. In such a case, it takes a long time to read the data of the alternative sectors, and the data access time becomes long. It causes the inconvenience.

【0007】本発明は、かかる実情に鑑みてなされたも
のであり、データアクセス時間が長大になることを防止
できる情報記録再生装置の制御方法を提供することを目
的としている。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a control method of an information recording / reproducing apparatus capable of preventing the data access time from being lengthened.

【0008】[0008]

【課題を解決するための手段】本発明は、記録媒体に設
定したデータ記録領域を複数のグループに分割し、おの
おののグループ毎に所定セクタ数の代替セクタ領域を設
定するとともに、データ記録時に欠陥セクタを検出する
と、その欠陥セクタに記録できなかったデータをその欠
陥セクタが属するグループに設定されている代替セクタ
領域のいずれかの代替セクタに記録するセクタ代替処理
機能を備えたデータ記録再生装置の制御方法において、
おのおののグループについて、代替セクタ領域の使用セ
クタ数をあらわすグループ別代替セクタ数テーブルを形
成し、上位装置からデータ記録が指令されると、そのと
きに指定された記録セクタが属するグループの代替セク
タ領域の残り代替セクタ数を、上記グループ別代替セク
タ数テーブルを参照して判定し、その残り代替セクタ数
に応じて上位装置から指令されたデータ記録を受け付け
るか否かを判定するようにしたものである。
SUMMARY OF THE INVENTION According to the present invention, a data recording area set on a recording medium is divided into a plurality of groups, and a predetermined number of sectors are set for each group. When a sector is detected, a data recording / reproducing apparatus having a sector replacement processing function of recording data that could not be recorded in the defective sector in any of the alternative sectors of the alternative sector area set in the group to which the defective sector belongs In the control method,
For each group, create a group-specific alternative sector number table that indicates the number of sectors used in the alternative sector area, and when data recording is instructed by the host device, the alternative sector area of the group to which the specified recording sector belongs The number of remaining alternative sectors is determined by referring to the above group-by-group alternative sector number table, and it is determined whether or not to accept the data recording instructed by the host device according to the number of remaining alternative sectors. is there.

【0009】また、記録媒体に設定したデータ記録領域
を複数のグループに分割し、おのおののグループ毎に所
定セクタ数の代替セクタ領域を設定するとともに、デー
タ記録時に欠陥セクタを検出すると、その欠陥セクタに
記録できなかったデータをその欠陥セクタが属するグル
ープに設定されている代替セクタ領域のいずれかの代替
セクタに記録するセクタ代替処理機能を備えたデータ記
録再生装置の制御方法において、データ記録動作中に発
生したセクタ代替処理によっていずれかの代替セクタ領
域の残り代替セクタ数が0になったときには、その代替
セクタ領域が属するグループについては、それ以降のデ
ータ記録動作を行わないようにするようにしたものであ
る。
Further, the data recording area set on the recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and if a defective sector is detected during data recording, the defective sector is detected. In the control method of the data recording / reproducing apparatus having the sector substitution processing function of recording the data that could not be recorded in the sector in any of the alternate sectors of the alternate sector area set in the group to which the defective sector belongs, during the data recording operation. When the number of remaining alternative sectors in any of the alternative sector areas becomes 0 due to the sector alternative processing that has occurred in the above, the subsequent data recording operation is not performed for the group to which the alternative sector area belongs. It is a thing.

【0010】また、記録媒体に設定したデータ記録領域
を複数のグループに分割し、おのおののグループ毎に所
定セクタ数の代替セクタ領域を設定するとともに、デー
タ記録時に欠陥セクタを検出すると、その欠陥セクタに
記録できなかったデータをその欠陥セクタが属するグル
ープに設定されている代替セクタ領域のいずれかの代替
セクタに記録するセクタ代替処理機能を備えたデータ記
録再生装置の制御方法において、おのおののグループに
ついて、代替セクタ領域の使用セクタ数をあらわすグル
ープ別代替セクタ数テーブルを形成し、上位装置からデ
ータ記録が指令されると、そのときに指定された記録セ
クタが属するグループの代替セクタ領域の残り代替セク
タ数を、上記グループ別代替セクタ数テーブルを参照し
て判定し、その残り代替セクタ数に応じて上位装置から
指令されたデータ記録を受け付けるか否かを判定する一
方、データ記録動作中にセクタ代替処理が発生するとそ
のセクタ代替処理が発生したグループについて上記グル
ープ別代替セクタ数テーブルの内容を更新するようにし
たものである。
Further, the data recording area set in the recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and when a defective sector is detected during data recording, the defective sector is detected. In the control method of the data recording / reproducing apparatus having the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, for each group , The alternative sector number table for each group showing the number of used sectors of the alternative sector area is formed, and when data recording is instructed from the upper device, the remaining alternative sectors of the alternative sector area of the group to which the specified recording sector belongs The number is determined by referring to the table for the number of alternative sectors by group, and the remaining While determining whether to accept the data recording instructed by the host device according to the number of alternative sectors, if the sector alternative process occurs during the data recording operation, the number of alternative sectors by group for the group in which the sector alternative process occurs The contents of the table are updated.

【0011】また、記録媒体に設定したデータ記録領域
を複数のグループに分割し、おのおののグループ毎に所
定セクタ数の代替セクタ領域を設定するとともに、デー
タ記録時に欠陥セクタを検出すると、その欠陥セクタに
記録できなかったデータをその欠陥セクタが属するグル
ープに設定されている代替セクタ領域のいずれかの代替
セクタに記録するセクタ代替処理機能を備えたデータ記
録再生装置の制御方法において、おのおののグループに
ついて、代替セクタ領域の使用セクタ数をあらわすグル
ープ別代替セクタ数テーブルを形成し、上位装置からデ
ータ記録が指令されると、そのときに指定された記録セ
クタが属するグループの代替セクタ領域の残り代替セク
タ数を、上記グループ別代替セクタ数テーブルを参照し
て判定し、その残り代替セクタ数に応じて上位装置から
指令されたデータ記録を受け付けるか否かを判定する一
方、データ記録動作中にセクタ代替処理が発生するとそ
のセクタ代替処理が発生したグループについて上記グル
ープ別代替セクタ数テーブルの内容を更新するととも
に、そのセクタ代替処理によってそのグループの代替セ
クタ領域の残り代替セクタ数が0になったときには、そ
のグループについて、それ以降のデータ記録動作を行わ
ないようにしたものである。
Further, the data recording area set on the recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and if a defective sector is detected during data recording, the defective sector is detected. In the control method of the data recording / reproducing apparatus having the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, for each group , The alternative sector number table for each group showing the number of used sectors of the alternative sector area is formed, and when data recording is instructed from the upper device, the remaining alternative sectors of the alternative sector area of the group to which the specified recording sector belongs The number is determined by referring to the table for the number of alternative sectors by group, and the remaining While determining whether to accept the data recording instructed by the host device according to the number of alternative sectors, if the sector alternative process occurs during the data recording operation, the number of alternative sectors by group for the group in which the sector alternative process occurs The contents of the table are updated, and when the number of remaining alternative sectors in the alternative sector area of the group becomes 0 due to the sector alternative processing, the subsequent data recording operation is not performed for the group. .

【0012】[0012]

【作用】したがって、グループ別代替セクタ数テーブル
を参照し、同一グループ内の残り代替セクタ数に応じ
て、上位装置からのデータ記録要求を受け付けるか否か
を判定しているので、同一グループ内にグループに設定
されている代替セクタよりも多くの欠陥セクタが発生す
るような事態を回避することができ、データアクセス時
間が長大になるような事態を回避することができる。
Therefore, it is determined whether or not to accept the data recording request from the host device by referring to the group-by-group alternative sector number table and according to the number of remaining alternative sectors in the same group. It is possible to avoid a situation in which more defective sectors than the alternative sectors set in the group occur, and a situation in which the data access time becomes long can be avoided.

【0013】また、グループ別代替セクタ数テーブルを
同一グループ内の残り代替セクタ数が0になると、それ
以降、そのグループに対するデータ記録を禁止するよう
にしているので、一連のデータを記録している代替セク
タが複数グループにまたがって、データアクセス時間が
長大になるような事態を防止することができる。
Further, in the group-by-group alternative sector number table, when the number of remaining alternative sectors in the same group becomes 0, data recording is prohibited thereafter for that group, so that a series of data is recorded. It is possible to prevent a situation in which the alternative sector extends over a plurality of groups and the data access time becomes long.

【0014】また、グループ別代替セクタ数テーブル
を、代替処理が発生するたびに更新するので、その時点
での残り代替セクタ数を適切に判定することができる。
Further, since the group-by-group alternative sector number table is updated every time the alternative process occurs, the number of remaining alternative sectors at that time can be appropriately determined.

【0015】[0015]

【実施例】以下、添付図面を参照しながら、本発明の実
施例を詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

【0016】図1は、本発明の一実施例にかかる光磁気
ディスクを示している。なお、以下の説明では、光磁気
ディスクの情報形式(記録フォーマット形式)として、
いわゆるISO規格に従ったものを用いる。
FIG. 1 shows a magneto-optical disk according to an embodiment of the present invention. In the following description, as the information format (recording format format) of the magneto-optical disk,
The one according to the so-called ISO standard is used.

【0017】光磁気ディスク1には、同心円状に記録ト
ラックが多数形成されており、おのおのの記録トラック
は、図2(a)に示すように、25個のセクタに分割さ
れている。また、おのおののセクタは、同図(b)に示
すように、同期信号やそのセクタのアドレス(トラック
アドレスおよびセクタアドレス)などが記録されるヘッ
ダ部HDと、ユーザデータを記録可能な記録部DDから
なる。
A large number of concentric recording tracks are formed on the magneto-optical disk 1, and each recording track is divided into 25 sectors as shown in FIG. 2 (a). Further, as shown in FIG. 2B, each sector has a header portion HD in which a synchronization signal and addresses of the sector (track address and sector address) are recorded, and a recording portion DD in which user data can be recorded. Consists of.

【0018】また、記録部DDは、同図(c)に示すよ
うに、512バイトのユーザデータを記録できるデータ
領域DAと、データ領域DAに記録されているデータを
誤り訂正するための誤り訂正符号ECCが配置される誤
り訂正領域EAからなる。また、データ領域DAの最後
の部分には、任意のデータを記録可能なベンダユニーク
データVUと、ベンダユニークデータVUを含むデータ
領域DAのエラーを検出するための誤り検出符号CRC
が配置される領域が、512バイトのデータ記録可能な
領域の他に設定されている。なお、通常、ベンダユニー
クデータVUには、ユーザデータは記録されない。
Further, the recording section DD, as shown in FIG. 3C, has a data area DA in which 512 bytes of user data can be recorded and an error correction for correcting the data recorded in the data area DA. It consists of an error correction area EA in which the code ECC is arranged. Further, in the last part of the data area DA, vendor unique data VU capable of recording arbitrary data, and an error detection code CRC for detecting an error in the data area DA including the vendor unique data VU.
The area in which is arranged is set in addition to the 512-byte data recordable area. User data is not normally recorded in the vendor unique data VU.

【0019】図3(a)は、光磁気ディスク1における
トラックフォーマットの一例を示している。このフォー
マットは、ISO規格のトラックフォーマットである。
FIG. 3A shows an example of a track format in the magneto-optical disk 1. This format is an ISO standard track format.

【0020】トラック番号「0」からトラック番号「9
999」までが、ドライブでデータ記録可能な領域に設
定されており、このうち、トラック番号「3」からトラ
ック番号「9996」までが、ユーザデータ領域に設定
されている。ここで、ユーザデータ領域には、データを
書き込むことができるR/W領域と、データを書き込む
ことができないROM領域を設定することができる。
Track number "0" to track number "9"
Up to 999 "are set in the area in which data can be recorded by the drive, and of these, track numbers" 3 "to" 9996 "are set in the user data area. Here, in the user data area, an R / W area in which data can be written and a ROM area in which data cannot be written can be set.

【0021】例えば、アプリケーションプログラムを配
布するとき、ユーザデータ領域をR/W領域とROM領
域の2つの領域に分割し、アプリケーションプログラム
とそのアプリケーションプログラムが参照する固定的な
データをROM領域に記録しておき、R/W領域に、ユ
ーザがデータを書き込み可能なワークエリアを設定す
る。このように、部分的にROM領域が設定されている
光磁気ディスクを、パーシャルROMフォーマットの光
磁気ディスク、または、パーシャルROMディスクとい
う。
For example, when distributing an application program, the user data area is divided into two areas, an R / W area and a ROM area, and the application program and fixed data to which the application program refers are recorded in the ROM area. A work area in which the user can write data is set in the R / W area. The magneto-optical disk in which the ROM area is partially set in this way is called a partial ROM format magneto-optical disk or a partial ROM disk.

【0022】また、光磁気ディスク1をユーザデータ用
の記録媒体として用いるときには、ROM領域を割り当
てずに、全てのユーザデータ領域をR/W領域に設定す
ることもでき、光磁気ディスク1においては、このよう
なユーザデータ領域の設定方法が一般的である。
When the magneto-optical disk 1 is used as a recording medium for user data, it is possible to set all the user data areas in the R / W area without allocating the ROM area. Generally, such a user data area setting method is used.

【0023】さらに、R/W領域は、複数のグループに
分割することができ、おのおののグループには、欠陥セ
クタを代替するための代替セクタ領域が設定される。
Further, the R / W area can be divided into a plurality of groups, and each group is set with a replacement sector area for replacing a defective sector.

【0024】また、トラック番号「0」からトラック番
号「3」までの部分には、2つの欠陥管理領域DMA
1,DMA2が連続して配置され、また、トラック番号
「9997」からトラック番号「9999」までの部分
には、2つの欠陥管理領域DMA3,DMA4が連続し
て配置されている。
Further, two defect management areas DMA are provided in the portion from the track number "0" to the track number "3".
1 and DMA2 are continuously arranged, and two defect management areas DMA3 and DMA4 are continuously arranged in the portion from the track number "9997" to the track number "9999".

【0025】また、トラック番号「−1」とトラック番
号「10000」は、バッファトラックに設定されてお
り、トラック番号「−2」からトラック番号「−16」
の部分は、内周側制御用領域に設定され、トラック番号
「10001」からトラック番号「10015」の部分
は、外周側制御領域に設定されている。
The track number "-1" and the track number "10000" are set in the buffer track, and the track number "-2" to the track number "-16".
The part of is set to the inner peripheral side control area, and the part of track number "10001" to track number "10015" is set to the outer peripheral side control area.

【0026】ここで、4つの欠陥管理領域DMA1,D
MA2,DMA3,DMA4には、同一情報が記録さ
れ、いずれかの欠陥管理領域の内容が読み取れなくなっ
たときでも、他の欠陥管理領域の内容を読み取れるよう
にしている。すなわち、同一情報を複数分散配置するこ
とで、データエラーに強い状態を形成している。
Here, the four defect management areas DMA1, D
The same information is recorded in MA2, DMA3, and DMA4, so that even if the contents of one of the defect management areas cannot be read, the contents of the other defect management areas can be read. That is, a plurality of pieces of the same information are arranged in a distributed manner to form a state resistant to data errors.

【0027】欠陥管理領域DMA(DMA1,DMA
2,DMA3,DMA4)のフォーマットの一例を同図
(b)に示す。
Defect management area DMA (DMA1, DMA
2, DMA3, DMA4) format examples are shown in FIG.

【0028】欠陥管理領域DMAには、この光磁気ディ
スク1の状態および欠陥セクタの管理情報を参照するた
めのディスク構造管理表DDS、フォーマット時など、
ユーザデータを記録する前の段階で発見されている欠陥
セクタを登録するための一次欠陥管理表PDL、およ
び、ユーザデータを記録するときに発見されたセクタ
と、そのセクタの記録データを代替記録している代替セ
クタとの関係を登録するための二次欠陥管理表SDL
が、この順に配置される。これらのディスク構造管理表
DDS、一次欠陥管理表PDLおよび二次欠陥管理表S
DLは、それぞれ1セクタ分のデータ領域を占有する。
また、これらのディスク構造管理表DDS、一次欠陥管
理表PDLおよび二次欠陥管理表SDLは、ISO規格
のフォーマットに規定されている情報要素である。
In the defect management area DMA, a disk structure management table DDS for referring to the status of the magneto-optical disk 1 and management information of the defective sector, at the time of formatting, etc.
A primary defect management table PDL for registering a defective sector found at a stage before recording user data, and a sector found at the time of recording user data and the recorded data of the sector are replaced and recorded. Secondary defect management table SDL for registering the relationship with the existing alternative sector
Are arranged in this order. These disk structure management table DDS, primary defect management table PDL, and secondary defect management table S
Each DL occupies a data area for one sector.
The disk structure management table DDS, the primary defect management table PDL, and the secondary defect management table SDL are information elements defined by the ISO standard format.

【0029】ディスク構造管理表DDSの内容の一例を
図4(a)に示す。
An example of the contents of the disk structure management table DDS is shown in FIG.

【0030】このディスク構造管理表DDSは、このセ
クタがディスク構造管理表DDSを記憶していることを
表示するためのDDS識別子、光磁気ディスク1が部分
的ROM領域をもつか、あるいは、ディスク全体検査の
状態でフォーマットされたものであるか否かを表示する
ためのディスク初期状態情報、R/W領域に設定されて
いるグループ数を記憶するためのR/W領域グループ数
情報、R/W領域におけるグループ当たりのデータセク
タ数をあらわすR/W領域セクタ数情報、R/W領域に
おけるグループ当たりの代替セクタ数をあらわすR/W
領域代替セクタ数情報、ROM領域に設定されているグ
ループ数を記憶するためのROM領域グループ数情報、
ROM領域におけるグループ当たりのデータセクタ数を
あらわすROM領域セクタ数情報、ROM領域における
グループ当たりのパリティセクタ数をあらわすROM領
域パリティセクタ数情報、一次欠陥管理表PDLの開始
セクタ(トラック番号および(トラック内)セクタ番
号)をあらわすPDL開始位置情報、および、二次欠陥
管理表SDLの開始セクタをあらわすSDL開始位置情
報からなる。
This disk structure management table DDS is a DDS identifier for indicating that this sector stores the disk structure management table DDS, the magneto-optical disk 1 has a partial ROM area, or the entire disk. Disk initial state information for displaying whether it is formatted in the inspection state, R / W area group number information for storing the number of groups set in the R / W area, R / W R / W area sector number information indicating the number of data sectors per group in the area, R / W indicating the number of alternative sectors per group in the R / W area
Area alternative sector number information, ROM area group number information for storing the number of groups set in the ROM area,
ROM area sector number information indicating the number of data sectors per group in the ROM area, ROM area parity sector number information indicating the number of parity sectors per group in the ROM area, start sector (track number and (in track ) Sector number) indicating the PDL start position information, and SDL start position information indicating the start sector of the secondary defect management table SDL.

【0031】一次欠陥管理表PDLの内容の一例を同図
(b)に示す。
An example of the contents of the primary defect management table PDL is shown in FIG.

【0032】この一次欠陥管理表PDLは、このセクタ
が一次欠陥管理表PDLを記憶していることを表示する
ためのPDL識別子、初期状態で生じている欠陥セクタ
数をあらわす欠陥セクタ数情報、および、おのおのの欠
陥セクタのセクタアドレス(トラック番号と(トラック
内)セクタ番号)を記憶した欠陥セクタアドレス領域か
らなる。
The primary defect management table PDL includes a PDL identifier for indicating that this sector stores the primary defect management table PDL, defective sector number information indicating the number of defective sectors generated in the initial state, and , A defective sector address area in which the sector address (track number and (in-track) sector number) of each defective sector is stored.

【0033】二次欠陥管理表SDLの内容の一例を同図
(c)に示す。
An example of the contents of the secondary defect management table SDL is shown in FIG.

【0034】この二次欠陥管理表SDLは、このセクタ
が二次欠陥管理表SDLを記憶していることを表示する
ためのSDL識別子、この二次欠陥管理表SDLの内容
の長さをバイト単位であらわすデータ長情報、この二次
欠陥管理表SDLに登録されている代替処理に関するエ
ントリ数をあらわすエントリ数情報、および、おのおの
の代替処理に関する欠陥セクタと代替セクタの関係をあ
らわすエントリ領域からなる。ここで、エントリ領域の
1つの要素(エントリ)は、欠陥セクタのセクタアドレ
スをあらわす欠陥セクタアドレスと、代替セクタのセク
タアドレスをあらわす代替セクタアドレスからなる。
This secondary defect management table SDL has an SDL identifier for indicating that this sector stores the secondary defect management table SDL, and the length of the contents of this secondary defect management table SDL in bytes. The data length information represents the number of entries related to the replacement process registered in the secondary defect management table SDL, and the entry area represents the relationship between the defective sector and the replacement sector related to each replacement process. Here, one element (entry) of the entry area is composed of a defective sector address representing the sector address of the defective sector and an alternative sector address representing the sector address of the alternative sector.

【0035】図5は、本発明の一実施例にかかる光磁気
ディスク装置を示している。
FIG. 5 shows a magneto-optical disk device according to an embodiment of the present invention.

【0036】同図において、制御部2は、この光磁気デ
ィスク装置の各部の動作を制御するためのものであり、
ドライブ機構回路部3は、光磁気ディスク1を回転駆動
するとともに光磁気ディスク1にデータを記録/再生/
消去する機構およびその制御/駆動回路からなる。
In the figure, the control section 2 is for controlling the operation of each section of the magneto-optical disk device.
The drive mechanism circuit section 3 rotationally drives the magneto-optical disk 1 and records / reproduces / records data on / from the magneto-optical disk 1.
It consists of an erasing mechanism and its control / drive circuit.

【0037】また、バッファメモリ4は、光磁気ディス
ク1に記録するデータ、および、光磁気ディスク1から
読み出したデータを一時的に保持するためのものであ
り、制御用メモリ5は、制御部2が実行する制御処理の
プログラムデータや、各種テーブルなどを記憶するため
のものであり、ホストインタフェース回路6は、パーソ
ナルコンピュータなどのホスト装置(=上位装置;図示
略)に接続して、そのホスト装置との間で記録/再生デ
ータや制御データなどの種々のデータをやりとりするた
めのものである。このホストインタフェース回路6とし
ては、例えば、周知のSCSI(Small Comp
uter System Interface;米国規
格ANSI X3.131−1986)などの汎用のイ
ンターフェースを適用することができる。
The buffer memory 4 is for temporarily holding the data to be recorded on the magneto-optical disk 1 and the data read from the magneto-optical disk 1. The control memory 5 is for the control unit 2. For storing program data of control processing executed by the computer, various tables, etc. The host interface circuit 6 is connected to a host device (= upper device; not shown) such as a personal computer, It is for exchanging various data such as recording / reproducing data and control data. The host interface circuit 6 is, for example, a well-known SCSI (Small Comp).
A general-purpose interface such as the Uter System Interface (American standard ANSI X3.131-1986) can be applied.

【0038】本実施例では、制御部2は、光磁気ディス
ク1のユーザデータ領域のR/W領域に設定した各グル
ープについて、欠陥セクタ数を管理するためのグループ
別欠陥セクタ数テーブルを形成して、制御用メモリ5に
保存している。このグループ別欠陥セクタ数テーブルの
一例を図6に示す。
In this embodiment, the control unit 2 forms a defective sector number table for each group for managing the defective sector number for each group set in the R / W area of the user data area of the magneto-optical disk 1. And stored in the control memory 5. An example of the defective sector number table for each group is shown in FIG.

【0039】このグループ別欠陥セクタ数テーブルは、
R/W領域に設定されているグループ数、グループ当た
りに設定されている代替セクタ数、および、おのおのの
グループ別に検出された欠陥セクタ数をあらわすグルー
プ番号(=#1,#2,・・,#n)欠陥セクタ数から
なる。
This defective sector number table for each group is
Group numbers (= # 1, # 2, ..., Representing the number of groups set in the R / W area, the number of alternative sectors set per group, and the number of defective sectors detected for each group #N) The number of defective sectors.

【0040】以上の構成で、この光磁気ディスク装置を
接続しているホスト装置には、他の複数の外部装置が接
続されていることがあり、ホスト装置は、電源投入時に
実行する初期化処理において、接続されている全ての外
部装置について、接続状態や動作状態などの検査処理、
装置名の問い合わせや、機能の設定処理などを、適宜に
実行する。
With the above configuration, the host device to which this magneto-optical disk device is connected may be connected to a plurality of other external devices, and the host device performs an initialization process to be executed when the power is turned on. In, the inspection processing such as connection status and operation status for all connected external devices,
Inquiries about device names, function setting processing, etc. are executed as appropriate.

【0041】この場合、ホスト装置は、図5の光磁気デ
ィスク装置が接続されていることを、問い合わせの結果
得た装置名などから確認すると、その光磁気ディスク装
置について、代替禁止可能モードを設定する。
In this case, when the host device confirms that the magneto-optical disk device of FIG. 5 is connected from the device name obtained as a result of the inquiry, the host device sets the alternative prohibition mode. To do.

【0042】一方、光磁気ディスク装置は、電源が投入
されると所定の初期化処理を実行し、その初期化処理に
おいて、光磁気ディスク1の欠陥管理情報DMAを読み
込み、上述したグループ別欠陥セクタ数テーブルを作成
し、制御用メモリ5に保存する。
On the other hand, the magneto-optical disk device executes a predetermined initialization process when the power is turned on, and in the initialization process, the defect management information DMA of the magneto-optical disk 1 is read and the above-mentioned defective sectors by group are read. A number table is created and stored in the control memory 5.

【0043】そして、ホスト装置から装置名の問い合わ
せが指令されると、あらかじめ制御用メモリ5に記憶さ
れている装置名を、ホスト装置に対して応答する。
Then, when an inquiry about the device name is issued from the host device, the device name stored in advance in the control memory 5 is returned to the host device.

【0044】また、ホスト装置からデータ記録が指令さ
れると、そのときに代替禁止可能モードが設定されてい
れば、指定されたセクタが属するグループの残り代替セ
クタ数を、グループ別欠陥セクタ数テーブルの内容を参
照して算出し、その残り代替セクタ数が0の場合には、
そのときのデータ記録動作をエラー終了させる。
When data recording is instructed from the host device, if the alternative prohibition enable mode is set at that time, the number of remaining alternative sectors of the group to which the designated sector belongs is determined by the defective sector number table for each group. When the number of remaining alternative sectors is 0,
The data recording operation at that time is ended in error.

【0045】また、指定されたセクタが属するグループ
の残り代替セクタ数が、1以上の場合には、指定された
セクタに対するデータ記録動作を行う。そのときに、セ
クタ代替処理が発生すると、残り代替セクタ数を更新す
る。
When the number of remaining alternative sectors of the group to which the designated sector belongs is 1 or more, the data recording operation is performed on the designated sector. At that time, if sector replacement processing occurs, the number of remaining replacement sectors is updated.

【0046】そして、ホスト装置から転送されたデータ
の全部を適切に記録できたときには、ホスト装置に対し
てデータ記録正常終了を通知し、また、データ記録途中
でセクタ代替処理が実行された場合で、指定されたセク
タが属するグループの残り代替セクタ数が0になり、さ
らに、残りの記録データがある場合には、その時点でデ
ータ記録をエラー終了させる。
When all the data transferred from the host device can be properly recorded, the host device is notified of the normal end of data recording, and the sector replacement process is executed during the data recording. When the number of remaining alternative sectors of the group to which the designated sector belongs becomes 0 and there is remaining recording data, the data recording is ended in error at that point.

【0047】ホスト装置は、データ記録がエラー終了し
た場合には、基本システムにその旨を通知するととも
に、データ記録エラー状態に移行する。また、データ記
録が正常終了した場合には、基本システムにその旨を通
知する。
When the data recording ends in error, the host device notifies the basic system to that effect and shifts to the data recording error state. When the data recording is normally completed, the basic system is notified of that fact.

【0048】このようにして、本実施例では、ホスト装
置から代替禁止可能モードが設定されると、光磁気ディ
スク装置は、光磁気ディスク1の記録データを複数のグ
ループの代替セクタ領域に分散して記録するような事態
を招く代替セクタ処理を実行しないので、光磁気ディス
ク1に記録されるデータは、同一グループ内でセクタ代
替処理が完結する態様で記録されるので、データアクセ
ス時間が長くなるような事態を回避することができる。
In this way, in this embodiment, when the alternative prohibition enable mode is set by the host device, the magneto-optical disk device distributes the recording data of the magneto-optical disk 1 to the alternative sector areas of a plurality of groups. Since the alternative sector process that causes the situation of recording is not performed, the data to be recorded on the magneto-optical disk 1 is recorded in a manner in which the sector alternative process is completed within the same group, so that the data access time becomes long. Such a situation can be avoided.

【0049】図7は、この場合、ホスト装置が電源立上
時に実行する初期化処理の一部を示している。
FIG. 7 shows a part of the initialization process executed by the host device when the power is turned on in this case.

【0050】まず、電源が投入されると、ホスト装置
は、その装置内部ユニット(メインメモリなど)の状態
を検査し(処理101)、それを終了すると、基本シス
テム(オペレーティングシステム)を起動する(処理1
02)。
First, when the power is turned on, the host device inspects the state of the internal unit (main memory etc.) of the device (process 101), and when it finishes, starts the basic system (operating system) ( Processing 1
02).

【0051】この基本システムの起動時においては、接
続されている複数の外部装置について、接続状態や動作
状態(電源のオンオフなど)などの種々の検査や、装置
名の問い合わせなどが行われ、それにより、ホスト装置
に接続されている装置が、その基本システムで利用でき
るように登録される。
At the time of starting the basic system, various inspections such as the connection state and the operating state (power on / off, etc.) of the plurality of connected external devices, inquiries of device names, etc. are performed. By this, the device connected to the host device is registered so that it can be used in the basic system.

【0052】このような基本システムの起動時の処理が
終了すると、システムに登録されている外部装置を1つ
選択し(処理103)、その選択した外部装置が特定の
装置名(この場合は、図5の光磁気ディスク装置に登録
されている装置名)に一致するかどうかを調べる(判断
104)。
When the processing at the time of starting the basic system is completed, one external device registered in the system is selected (process 103), and the selected external device has a specific device name (in this case, It is checked whether or not it matches the device name registered in the magneto-optical disk device of FIG. 5 (decision 104).

【0053】判断104の結果がYESになるときに
は、あらかじめ設定されている内容にその外部装置の機
能を設定するとともに(処理105)、代替禁止可能モ
ードを設定する(処理106)。また、判断104の結
果がNOになるときには、あらかじめ設定されている内
容にその外部装置の機能を設定する(処理107)。
When the result of determination 104 is YES, the function of the external device is set to the preset content (process 105) and the alternative prohibition mode is set (process 106). If the result of determination 104 is NO, the function of the external device is set to the preset content (process 107).

【0054】このように、1つの外部装置に対する機能
設定を終了すると、全ての外部装置についての設定処理
が終了したかどうかを調べ(判断108)、判断108
の結果がNOになるときには、処理103に戻り、次の
外部装置に関する処理を実行する。また、判断108の
結果がYESになるときには、次の処理に進む。
In this way, when the function setting for one external device is completed, it is checked whether or not the setting process for all external devices is completed (decision 108), and judgment 108
When the result is NO, the process returns to the process 103 and the process for the next external device is executed. When the result of determination 108 is YES, the process proceeds to the next process.

【0055】図8は、ホスト装置が光磁気ディスク装置
に対してデータを記録するときに実行する処理の一例を
示している。
FIG. 8 shows an example of processing executed when the host device records data in the magneto-optical disk device.

【0056】ホスト装置は、データ記録要求を指定する
制御情報、および、そのときに記録要求する所定長のデ
ータを光磁気ディスク装置に対して転送し(処理20
1)、データ記録の結果が応答されるまで待つ(処理2
02)。
The host device transfers control information designating a data recording request and data of a predetermined length requested for recording at that time to the magneto-optical disk device (process 20).
1) Wait until the result of data recording is answered (Process 2)
02).

【0057】そして、応答されたデータ記録結果が正常
終了であるかどうかを調べ(判断203)、判断203
の結果がYESになるときには、そのときに記録するデ
ータが終了したかどうかを調べ(判断204)、判断2
04の結果がNOになるときには、残りのデータを記録
するために、処理201に戻る。また、判断204の結
果がYESになるときには、データ記録終了したことを
通知して(処理205)、この動作を終了する。
Then, it is checked whether the returned data recording result is a normal end (judgment 203), and the judgment 203
If the result is YES, it is checked whether or not the data to be recorded at that time has ended (decision 204), and the judgment 2
When the result of 04 is NO, the process returns to step 201 to record the remaining data. Further, when the result of the determination 204 is YES, the end of data recording is notified (step 205), and this operation is ended.

【0058】また、応答されたデータ記録結果がエラー
終了の場合で、判断203の結果がNOになるときに
は、データ記録がエラー終了したことを通知して(処理
206)、所定のエラー終了状態に移行する。
When the response data recording result is an error end and the result of the determination 203 is NO, the data recording end is notified (process 206) and a predetermined error end state is entered. Transition.

【0059】図9(a),(b)は、光磁気ディスク装
置の制御部2が実行する制御処理例を示している。
9A and 9B show an example of control processing executed by the control unit 2 of the magneto-optical disk device.

【0060】電源が投入されると、制御部2は、所定の
初期化処理を実行して(処理201)、動作可能な状態
に移行し、光磁気ディスク1から欠陥管理領域DMAの
データを読み込んで(処理302)、その読み込んだ欠
陥管理領域DMAのデータに基づいて、上述したグルー
プ別代替セクタ数テーブルを作成し、そのグループ別代
替セクタ数テーブルを制御用メモリ5に保存する(処理
303)。
When the power is turned on, the control unit 2 executes a predetermined initialization process (process 201), shifts to an operable state, and reads the data of the defect management area DMA from the magneto-optical disk 1. Then, (process 302), the group-based alternative sector number table is created based on the read data of the defect management area DMA, and the group-based alternative sector number table is stored in the control memory 5 (process 303). .

【0061】このようにして、動作可能な状態になる
と、制御部2は、ホスト装置からのコマンド待ちの状態
に移行する(判断304のNOループ)。そして、ホス
ト装置からコマンドを受信して、判断304の結果がY
ESになると、そのときに受信したコマンドの内容を解
析し、コマンドが装置名の問い合わせであるか、機能設
定であるか、データ記録要求であるか、データ読出要求
であるか、あるいは、それ以外の指令であるかを判定す
る(判断305,306,307,308)。
In this way, when it becomes operable, the control unit 2 shifts to the state of waiting for a command from the host device (NO loop of decision 304). Then, the command is received from the host device, and the result of judgment 304 is Y.
At ES, the content of the command received at that time is analyzed, and the command is an inquiry about the device name, a function setting, a data recording request, a data reading request, or other information. Is determined (determination 305, 306, 307, 308).

【0062】コマンドの内容が装置名の問い合わせであ
り、判断305の結果がYESになるときには、制御用
メモリ5に記憶されている装置名情報の内容を、所定形
式のデータとして、ホストインターフェース回路6を介
し、ホスト装置に通知して(処理309)、判断304
に戻る。
When the content of the command is an inquiry about the device name and the result of the judgment 305 is YES, the contents of the device name information stored in the control memory 5 are used as data of a predetermined format and the host interface circuit 6 The host device is notified via the (step 309), and the decision 304
Return to.

【0063】コマンドの内容が機能設定であり、判断3
06の結果がYESになるときには、そのときに通知さ
れた機能を内部に設定する所定の機能設定処理(処理3
10)を実行して、判断304に戻る。
Judgment 3 because the content of the command is the function setting
When the result of 06 is YES, a predetermined function setting process (process 3) for internally setting the function notified at that time is performed.
Execute 10) and return to decision 304.

【0064】コマンドの内容がデータ記録要求であり、
判断307の結果がYESになるときには、指定された
光磁気ディスク1のセクタに転送されたデータを記録す
る所定のデータ記録処理(処理311)を実行して、判
断304に戻る。
The content of the command is a data recording request,
When the result of judgment 307 is YES, a predetermined data recording process (process 311) for recording the data transferred to the specified sector of the magneto-optical disk 1 is executed, and the process returns to judgment 304.

【0065】コマンドの内容がデータ読出要求であり、
判断308の結果がYESになるときには、指定された
光磁気ディスク1のセクタからデータを読み出し、その
読み出したデータをホスト装置に転送する所定のデータ
読出処理(処理312)を実行して、判断304に戻
る。
The content of the command is a data read request,
When the result of the judgment 308 is YES, data is read from the specified sector of the magneto-optical disk 1 and a predetermined data read process (process 312) of transferring the read data to the host device is executed, and the judgment 304 Return to.

【0066】また、コマンドの内容がそれ以外の場合
で、判断308の結果がNOになるときには、そのとき
のコマンドに対応した所定の処理(処理313)を実行
して、判断304に戻る。
When the content of the command is other than that and the result of the judgment 308 is NO, a predetermined process (process 313) corresponding to the command at that time is executed and the process returns to the judgment 304.

【0067】図10は、機能設定処理(処理310)の
一例を示している。
FIG. 10 shows an example of the function setting process (process 310).

【0068】制御部2は、受信したコマンドに代替禁止
可能モードの設定データが含まれているかどうかを調べ
(判断401)、判断401の結果がYESになるとき
には、代替禁止可能フラグFDSをセットし(処理40
2)、判断401の結果がNOになるときには、代替禁
止可能フラグFDSをクリアして(処理403)、それ
以外の設定データに対応して装置内部の機能を設定する
(処理404)。
The control unit 2 checks whether or not the received command includes the setting data for the alternative prohibition mode (decision 401). When the result of the judgment 401 is YES, the alternative prohibition flag FDS is set. (Process 40
2) When the result of the determination 401 is NO, the alternative prohibition flag FDS is cleared (process 403) and the internal function of the apparatus is set corresponding to the other setting data (process 404).

【0069】図11、および、図12は、データ記録処
理(処理311)の一例を示している。
FIG. 11 and FIG. 12 show an example of the data recording process (process 311).

【0070】まず、制御部2は、代替禁止可能フラグF
DSがセットされているかどうかを調べ(判断50
1)、判断501の結果がYESになるときには、指定
されたセクタの1つの選択し(処理502)、そのセク
タが属するグループを判別し、そのグループに対応した
グループ別代替セクタ数テーブルの項目の内容を取り出
して、その値が代替セクタ数に一致するかどうかを調
べ、そのグループが代替禁止領域に含まれるかどうかを
調べる(処理503)。
First, the control section 2 determines that the alternative prohibition flag F is available.
Check if DS is set (decision 50
1) If the result of the determination 501 is YES, one of the designated sectors is selected (process 502), the group to which the sector belongs is determined, and the item of the group-based alternative sector number table corresponding to the group is selected. The contents are taken out, it is checked whether the value matches the number of alternative sectors, and it is checked whether the group is included in the alternative prohibited area (process 503).

【0071】そのグループが代替禁止領域に含まれる場
合で、判断504の結果がYESになるときには、制御
部2は、ホスト装置に対し、セクタ指定エラーを通知す
るとともに、データ記録エラーを発生したグループ番号
を通知して(処理505)、このときのデータ記録動作
をエラー終了する。
When the group is included in the substitution prohibited area and the result of determination 504 is YES, the control unit 2 notifies the host device of the sector designation error and the group in which the data recording error has occurred. The number is notified (process 505), and the data recording operation at this time ends in error.

【0072】また、そのグループが代替禁止領域に含ま
れない場合で、判断504の結果がNOになるときに
は、制御部2は、そのときに選択したセクタに対して、
1セクタ分のデータを記録する1セクタデータ記録処理
(処理506)を実行する。
Further, when the group is not included in the substitution prohibited area and the result of the judgment 504 is NO, the control section 2 instructs the sector selected at that time.
A 1-sector data recording process (process 506) for recording 1-sector data is executed.

【0073】そして、この1セクタデータ記録処理が正
常終了したかどうかを調べ(判断507)、判断507
の結果がYESになるときには、その時点で、ホスト装
置から受信した全てのデータの記録動作が終了したかど
うかを調べ(判断508)、判断508の結果がNOに
なるときには、処理502に戻り、残りのデータの記録
動作を行う。また、判断508の結果がYESになると
きには、データ記録動作を正常終了したことをホスト装
置に対して通知して(処理509)、この処理を終了す
る。
Then, it is checked whether or not this one-sector data recording process has been completed normally (judgment 507), and judgment 507 is made.
If the result is YES, it is checked at that point whether or not the recording operation of all the data received from the host device has been completed (decision 508). If the result of decision 508 is NO, the process returns to step 502, The remaining data is recorded. When the result of determination 508 is YES, the host device is notified that the data recording operation has been normally completed (process 509), and this process ends.

【0074】また、判断507の結果がNOになるとき
には、そのときに選択したセクタが欠陥セクタであるの
で、そのときの1セクタ分のデータを代替セクタに代替
する所定のセクタ代替処理(処理510)を実行し、そ
のときのセクタ代替処理に基づいて欠陥管理領域DMA
の二次欠陥管理表SDLの内容を更新するとともに(処
理511)、グループ別欠陥セクタ数テーブルの内容を
更新して(処理512)、判断508に移行し、それ以
降の処理を実行する。
When the result of determination 507 is NO, the sector selected at that time is a defective sector, and therefore a predetermined sector replacement process (process 510) for replacing one sector of data at that time with a replacement sector. ) Is executed, and the defect management area DMA is executed based on the sector replacement process at that time.
The secondary defect management table SDL is updated (process 511) and the group-by-group defective sector number table is updated (process 512), and the process proceeds to the determination 508 and the subsequent processes are executed.

【0075】また、代替禁止可能フラグFDSがセット
されていない場合で、判断501の結果がNOになると
きには、従来と同様のデータ記録処理を実行する。すな
わち、制御部2は、指定されたセクタの1つの選択し
(処理513)、そのときに選択したセクタに対して、
1セクタ分のデータを記録する1セクタデータ記録処理
(処理514)を実行する。
If the alternative prohibition enable flag FDS is not set and the result of determination 501 is NO, the same data recording process as in the conventional case is executed. That is, the control unit 2 selects one of the designated sectors (process 513), and selects the selected sector at that time.
A one-sector data recording process (process 514) for recording data for one sector is executed.

【0076】そして、この1セクタデータ記録処理が正
常終了したかどうかを調べ(判断515)、判断515
の結果がYESになるときには、その時点で、ホスト装
置から受信した全てのデータの記録動作が終了したかど
うかを調べ(判断516)、判断516の結果がNOに
なるときには、処理513に戻り、残りのデータの記録
動作を行う。また、判断516の結果がYESになると
きには、データ記録動作を正常終了したことをホスト装
置に対して通知して(処理517)、この処理を終了す
る。
Then, it is checked whether or not the one-sector data recording process has been normally completed (judgment 515), and the judgment 515 is made.
If the result is YES, it is checked at that point whether or not the recording operation of all the data received from the host device is completed (decision 516). If the result of decision 516 is NO, the process returns to step 513. The remaining data is recorded. When the result of determination 516 is YES, the host apparatus is notified that the data recording operation has been normally completed (process 517), and this process ends.

【0077】また、判断515の結果がNOになるとき
には、そのときに選択したセクタが欠陥セクタであるの
で、そのときの1セクタ分のデータを代替セクタに代替
する所定のセクタ代替処理(処理518)を実行し、そ
のときのセクタ代替処理に基づいて欠陥管理領域DMA
の二次欠陥管理表SDLの内容を更新するとともに(処
理519)、グループ別欠陥セクタ数テーブルの内容を
更新する(処理520)。ここで、セクタ代替処理が正
常に実行されたかどうかを調べて(判断521)、判断
521の結果がYESになるときには、判断516に移
行し、それ以降の処理を実行する。また、判断521の
結果がNOになるときには、ホスト装置に対してデータ
記録がエラー終了したことを通知し(処理522)、こ
の動作をエラー終了する。
When the result of determination 515 is NO, the sector selected at that time is a defective sector, and therefore a predetermined sector replacement process (process 518) for replacing one sector of data at that time with a replacement sector. ) Is executed, and the defect management area DMA is executed based on the sector replacement process at that time.
The contents of the secondary defect management table SDL are updated (process 519) and the contents of the group-by-group defective sector number table are updated (process 520). Here, it is checked whether or not the sector replacement process has been normally executed (decision 521). When the result of the judgment 521 is YES, the process proceeds to decision 516 and the subsequent processes are executed. When the result of determination 521 is NO, the host device is notified that data recording has ended in error (step 522), and this operation ends in error.

【0078】ところで、上述した実施例では、本発明を
光磁気ディスク装置に適用した場合について説明した
が、本発明は、それ以外の同様な外部記憶装置(例え
ば、磁気ディスク装置など)についても同様にして適用
することができる。
By the way, in the above-described embodiment, the case where the present invention is applied to the magneto-optical disk device has been described, but the present invention is also applicable to other similar external storage devices (for example, a magnetic disk device). Can be applied.

【0079】[0079]

【発明の効果】以上説明したように、本発明によれば、
グループ別代替セクタ数テーブルを参照し、同一グルー
プ内の残り代替セクタ数に応じて、上位装置からのデー
タ記録要求を受け付けるか否かを判定しているので、同
一グループ内にグループに設定されている代替セクタよ
りも多くの欠陥セクタが発生するような事態を回避する
ことができ、データアクセス時間が長大になるような事
態を回避することができるという効果を得る。
As described above, according to the present invention,
By referring to the group-by-group alternative sector number table, it is determined whether or not to accept the data recording request from the host device according to the number of remaining alternative sectors in the same group. It is possible to avoid such a situation that a larger number of defective sectors than the existing substitute sectors occur and avoid a situation where the data access time becomes long.

【0080】また、グループ別代替セクタ数テーブルを
同一グループ内の残り代替セクタ数が0になると、それ
以降、そのグループに対するデータ記録を禁止するよう
にしているので、一連のデータを記録している代替セク
タが複数グループにまたがって、データアクセス時間が
長大になるような事態を防止することができるという効
果も得る。
In the group-by-group alternative sector number table, when the number of remaining alternative sectors in the same group becomes 0, data recording is prohibited for that group thereafter, so that a series of data is recorded. There is also an effect that it is possible to prevent a situation in which the data access time becomes long because the alternative sectors are spread over a plurality of groups.

【0081】また、グループ別代替セクタ数テーブル
を、代替処理が発生するたびに更新するので、その時点
での残り代替セクタ数を適切に判定することができると
いう効果も得る。
Further, since the group-by-group alternative sector number table is updated every time the alternative process occurs, the number of remaining alternative sectors at that time can be appropriately determined.

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

【図1】本発明の一実施例にかかる光磁気ディスクを示
した概略図。
FIG. 1 is a schematic diagram showing a magneto-optical disk according to an embodiment of the present invention.

【図2】光磁気ディスクのトラックフォーマットの一例
を示した概略図。
FIG. 2 is a schematic diagram showing an example of a track format of a magneto-optical disk.

【図3】光磁気ディスクの記憶領域の割り当ての一例を
示した概略図。
FIG. 3 is a schematic diagram showing an example of allocation of a storage area of a magneto-optical disk.

【図4】欠陥管理領域の一例を示した概略図。FIG. 4 is a schematic diagram showing an example of a defect management area.

【図5】本発明の一実施例にかかる光磁気ディスク装置
の概略構成を示したブロック図。
FIG. 5 is a block diagram showing a schematic configuration of a magneto-optical disk device according to an embodiment of the present invention.

【図6】グループ別代替セクタ数テーブルの一例を示し
た概略図。
FIG. 6 is a schematic diagram showing an example of a group-based alternative sector number table.

【図7】ホスト装置の電源立上時の処理の一部を例示し
たフローチャート。
FIG. 7 is a flowchart exemplifying a part of the processing when the power of the host device is turned on.

【図8】ホスト装置のデータ記録要求時の処理例を示し
たフローチャート。
FIG. 8 is a flowchart showing an example of processing when a data recording request is made by the host device.

【図9】光磁気ディスク装置の処理例を示したフローチ
ャート。
FIG. 9 is a flowchart showing a processing example of the magneto-optical disk device.

【図10】機能設定処理の一例を示したフローチャー
ト。
FIG. 10 is a flowchart showing an example of a function setting process.

【図11】データ記録処理の一例の一部を示したフロー
チャート。
FIG. 11 is a flowchart showing a part of an example of a data recording process.

【図12】データ記録処理の一例の他の部分を示したフ
ローチャート。
FIG. 12 is a flowchart showing another part of an example of the data recording process.

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

2 制御部 5 制御用メモリ 2 control unit 5 control memory

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体に設定したデータ記録領域を複
数のグループに分割し、おのおののグループ毎に所定セ
クタ数の代替セクタ領域を設定するとともに、データ記
録時に欠陥セクタを検出すると、その欠陥セクタに記録
できなかったデータをその欠陥セクタが属するグループ
に設定されている代替セクタ領域のいずれかの代替セク
タに記録するセクタ代替処理機能を備えたデータ記録再
生装置の制御方法において、 おのおののグループについて、代替セクタ領域の使用セ
クタ数をあらわすグループ別代替セクタ数テーブルを形
成し、上位装置からデータ記録が指令されると、そのと
きに指定された記録セクタが属するグループの代替セク
タ領域の残り代替セクタ数を、上記グループ別代替セク
タ数テーブルを参照して判定し、その残り代替セクタ数
に応じて上位装置から指令されたデータ記録を受け付け
るか否かを判定することを特徴とするデータ記録再生装
置の制御方法。
1. A data recording area set in a recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and a defective sector is detected when a defective sector is detected during data recording. In the control method of the data recording / reproducing apparatus equipped with the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, for each group , The alternative sector number table for each group showing the number of used sectors of the alternative sector area is formed, and when data recording is instructed from the upper device, the remaining alternative sectors of the alternative sector area of the group to which the specified recording sector belongs The number of sectors is determined by referring to the group-based alternative sector count table above, and the remaining The method of data recording and reproducing apparatus characterized by determining whether or not to accept the command data recording from a host device in accordance with the number of sectors.
【請求項2】 記録媒体に設定したデータ記録領域を複
数のグループに分割し、おのおののグループ毎に所定セ
クタ数の代替セクタ領域を設定するとともに、データ記
録時に欠陥セクタを検出すると、その欠陥セクタに記録
できなかったデータをその欠陥セクタが属するグループ
に設定されている代替セクタ領域のいずれかの代替セク
タに記録するセクタ代替処理機能を備えたデータ記録再
生装置の制御方法において、 データ記録動作中に発生したセクタ代替処理によってい
ずれかの代替セクタ領域の残り代替セクタ数が0になっ
たときには、その代替セクタ領域が属するグループにつ
いては、それ以降のデータ記録動作を行わないようにす
ることを特徴とするデータ記録再生装置の制御方法。
2. A data recording area set on a recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and a defective sector is detected when a defective sector is detected during data recording. In the control method of the data recording / reproducing apparatus having the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, during the data recording operation. When the number of remaining alternative sectors in any of the alternative sector areas becomes 0 due to the sector alternative processing that has occurred in the above, the subsequent data recording operation is not performed for the group to which the alternative sector area belongs. Control method for data recording / reproducing apparatus.
【請求項3】 記録媒体に設定したデータ記録領域を複
数のグループに分割し、おのおののグループ毎に所定セ
クタ数の代替セクタ領域を設定するとともに、データ記
録時に欠陥セクタを検出すると、その欠陥セクタに記録
できなかったデータをその欠陥セクタが属するグループ
に設定されている代替セクタ領域のいずれかの代替セク
タに記録するセクタ代替処理機能を備えたデータ記録再
生装置の制御方法において、 おのおののグループについて、代替セクタ領域の使用セ
クタ数をあらわすグループ別代替セクタ数テーブルを形
成し、上位装置からデータ記録が指令されると、そのと
きに指定された記録セクタが属するグループの代替セク
タ領域の残り代替セクタ数を、上記グループ別代替セク
タ数テーブルを参照して判定し、その残り代替セクタ数
に応じて上位装置から指令されたデータ記録を受け付け
るか否かを判定する一方、 データ記録動作中にセクタ代替処理が発生するとそのセ
クタ代替処理が発生したグループについて上記グループ
別代替セクタ数テーブルの内容を更新することを特徴と
するデータ記録再生装置の制御方法。
3. A data recording area set on a recording medium is divided into a plurality of groups, a predetermined number of sectors are set for each group, and a defective sector is detected when a defective sector is detected during data recording. In the control method of the data recording / reproducing apparatus equipped with the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, for each group , The alternative sector number table for each group showing the number of used sectors of the alternative sector area is formed, and when data recording is instructed from the upper device, the remaining alternative sectors of the alternative sector area of the group to which the specified recording sector belongs The number of sectors is determined by referring to the group-based alternative sector count table above, and the remaining While determining whether to accept the data recording instructed by the host device according to the number of sectors, if the sector replacement process occurs during the data recording operation, the group where the sector replacement process occurs A method of controlling a data recording / reproducing apparatus, characterized by updating the contents of the above.
【請求項4】 記録媒体に設定したデータ記録領域を複
数のグループに分割し、おのおののグループ毎に所定セ
クタ数の代替セクタ領域を設定するとともに、データ記
録時に欠陥セクタを検出すると、その欠陥セクタに記録
できなかったデータをその欠陥セクタが属するグループ
に設定されている代替セクタ領域のいずれかの代替セク
タに記録するセクタ代替処理機能を備えたデータ記録再
生装置の制御方法において、 おのおののグループについて、代替セクタ領域の使用セ
クタ数をあらわすグループ別代替セクタ数テーブルを形
成し、上位装置からデータ記録が指令されると、そのと
きに指定された記録セクタが属するグループの代替セク
タ領域の残り代替セクタ数を、上記グループ別代替セク
タ数テーブルを参照して判定し、その残り代替セクタ数
に応じて上位装置から指令されたデータ記録を受け付け
るか否かを判定する一方、 データ記録動作中にセクタ代替処理が発生するとそのセ
クタ代替処理が発生したグループについて上記グループ
別代替セクタ数テーブルの内容を更新するとともに、そ
のセクタ代替処理によってそのグループの代替セクタ領
域の残り代替セクタ数が0になったときには、そのグル
ープについて、それ以降のデータ記録動作を行わないよ
うにすることを特徴とするデータ記録再生装置の制御方
法。
4. A data recording area set on a recording medium is divided into a plurality of groups, a predetermined number of alternative sector areas are set for each group, and a defective sector is detected when a defective sector is detected during data recording. In the control method of the data recording / reproducing apparatus equipped with the sector substitution processing function of recording the data that could not be recorded in any of the alternative sectors in the alternative sector area set in the group to which the defective sector belongs, for each group , The alternative sector number table for each group showing the number of used sectors of the alternative sector area is formed, and when data recording is instructed from the upper device, the remaining alternative sectors of the alternative sector area of the group to which the specified recording sector belongs Number is determined by referring to the table for the number of alternative sectors by group above, and the remaining While determining whether to accept the data recording instructed by the host device according to the number of sectors, if the sector replacement process occurs during the data recording operation, the group where the sector replacement process occurs When the number of remaining alternative sectors in the alternative sector area of the group becomes 0 by the sector alternative process, the subsequent data recording operation is not performed for the group. Method for controlling data recording / reproducing apparatus.
JP12588594A 1994-05-17 1994-05-17 Control method for data recording and reproducing device Pending JPH07312024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12588594A JPH07312024A (en) 1994-05-17 1994-05-17 Control method for data recording and reproducing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12588594A JPH07312024A (en) 1994-05-17 1994-05-17 Control method for data recording and reproducing device

Publications (1)

Publication Number Publication Date
JPH07312024A true JPH07312024A (en) 1995-11-28

Family

ID=14921338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12588594A Pending JPH07312024A (en) 1994-05-17 1994-05-17 Control method for data recording and reproducing device

Country Status (1)

Country Link
JP (1) JPH07312024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008511095A (en) * 2004-08-27 2008-04-10 サムスン エレクトロニクス カンパニー リミテッド Information recording medium, recording / reproducing apparatus, and recording / reproducing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008511095A (en) * 2004-08-27 2008-04-10 サムスン エレクトロニクス カンパニー リミテッド Information recording medium, recording / reproducing apparatus, and recording / reproducing method

Similar Documents

Publication Publication Date Title
US6336197B1 (en) Information recording medium, and method and apparatus for managing defect thereof
US5319626A (en) Method for rewriting defect management areas on optical disk according to ECMA standard
JP2887949B2 (en) Information recording / reproducing device, information reproducing device, DMA recording method and DMA verification method
JP3858050B2 (en) Information recording apparatus and information reproducing apparatus
US7177249B2 (en) Method and apparatus for real time recording/playback of data to/from an optical recording medium
US20060171398A1 (en) Defect area management system and method for optical storage medium
JP2000195186A (en) Recording medium for storing zoned start position information and data management method using the information
JP2000339874A (en) Optical disk device
US6732303B1 (en) Information recording medium, and method and apparatus for managing defect thereof
JPH06243591A (en) Method for controlling magneto-optical disk device
JP3677995B2 (en) AV optical disc, recording method and reproducing method thereof
JPH05114247A (en) Magneto-optical disk apparatus
JPH07312024A (en) Control method for data recording and reproducing device
JPH04245072A (en) Disk device with data management information area on medium
US6546502B1 (en) Information recording method and apparatus of optical disc
JPH08286840A (en) Information recording medium and information reproducing device
JP4562703B2 (en) Information recording medium and information recording apparatus
JP4196512B2 (en) Recording method and reproducing method suitable for recording / reproducing AV data, recording drive and reproducing drive thereof, information recording system, information reproducing system, and information recording medium
JPH07287641A (en) Method for controlling optical magnetic disk device
JPH06150561A (en) Disk device
JP2000100079A (en) Alternative processing method of information recording medium and information processing system
JPH03207053A (en) Information recording and reproducing device