JPH0799608B2 - Track emulation method for magnetic disk unit - Google Patents

Track emulation method for magnetic disk unit

Info

Publication number
JPH0799608B2
JPH0799608B2 JP20544087A JP20544087A JPH0799608B2 JP H0799608 B2 JPH0799608 B2 JP H0799608B2 JP 20544087 A JP20544087 A JP 20544087A JP 20544087 A JP20544087 A JP 20544087A JP H0799608 B2 JPH0799608 B2 JP H0799608B2
Authority
JP
Japan
Prior art keywords
track
magnetic disk
capacity
data
disk device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP20544087A
Other languages
Japanese (ja)
Other versions
JPS6449167A (en
Inventor
秀夫 松浦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP20544087A priority Critical patent/JPH0799608B2/en
Publication of JPS6449167A publication Critical patent/JPS6449167A/en
Publication of JPH0799608B2 publication Critical patent/JPH0799608B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 本発明は、トラック容量の異なる新機種と旧機種の間で
トラック容量の互換性をとる磁気ディスク装置のトラッ
クエミレーション方式に関し、 カウンタ部のセグメント・ナンバーを使用する事でECC
によるエラー修正が可能で新たな回路の付加も必要とし
ない簡単で信頼性の高いトラックエミレーション方式を
提供することを目的とし、 磁気ディスク装置の制御アダプタに設けたデータ転送制
御手段により旧機種のトラックフォーマットに従って上
位装置とディスク記憶機構との間で書込又は読出データ
を転送する。トラックフォーマットのカウント部の転送
時に、カウント部に含まれるセグメント・ナンバーの値
を検出する。更にカウント部の転送後にギャップを介し
てキー部及びデータ部が繰り返し転送される事から、検
出されたセグメント・ナンバーの値にギャップ長及び転
送対象部の長さを順次加算し、この加算結果が旧機種の
トラック容量に達したことを判別すると、その旨を上位
装置に報告するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a track emulation system of a magnetic disk device that makes track capacities compatible between a new model and an old model having different track capacities. ECC by using
The purpose is to provide a simple and highly reliable track emulation method that can correct errors by using the new model and does not require the addition of new circuits. Write or read data is transferred between the host device and the disk storage mechanism according to the track format. The value of the segment number included in the count section is detected when the count section of the track format is transferred. Further, since the key part and the data part are repeatedly transferred through the gap after the transfer of the count part, the gap length and the length of the transfer target part are sequentially added to the value of the detected segment number. When it is determined that the track capacity of the old model has been reached, the fact is reported to the host device.

[産業上利用分野] 本発明は、上位装置に接続している小容量の古い磁気デ
ィスク装置を大容量の新しい磁気ディスク装置に交換し
た際等に、トラック容量の互換性をとるようにした磁気
ディスク装置のエミレーション方式に関する。
[Industrial field of application] The present invention provides a magnetic disk which is compatible with the track capacity when a small capacity old magnetic disk apparatus connected to a host apparatus is replaced with a new large capacity magnetic disk apparatus. The present invention relates to an emulation method of a disk device.

外部記憶装置として磁気ディスク装置を接続した各種の
計算機システムにあっては、記憶容量を増加させたい場
合やそれまでの磁気ディスク装置が故障したような場合
には、上位装置としてのCPUに接続している磁気ディス
ク装置を大容量の新しい磁気ディスク装置に交換する場
合がある。
In various computer systems with a magnetic disk device connected as an external storage device, if you want to increase the storage capacity or if the previous magnetic disk device fails, connect it to the CPU as a higher-level device. The existing magnetic disk device may be replaced with a new magnetic disk device having a large capacity.

このように磁気ディスク装置を新しい大容量の機種に変
更した場合、上位装置は依然として古い小容量の磁気デ
ィスク装置と見做してデータ書込及びデータ読出を行な
うため、新しい大容量の磁気ディスク装置のトラック容
量をそれまでの古い小容量の磁気ディスク装置のトラッ
ク容量に合わせる所謂トラックエミレーションが必要に
なる。
In this way, when the magnetic disk device is changed to a new large-capacity model, the host device still regards it as an old small-capacity magnetic disk device for writing and reading data, and therefore, a new large-capacity magnetic disk device. The so-called track emulation is required to match the track capacity of the above-mentioned track capacity of the old small capacity magnetic disk drive.

[従来技術] 第5図は従来の磁気ディスク装置を外部装置として接続
した計算機システムを示す。
[Prior Art] FIG. 5 shows a computer system in which a conventional magnetic disk device is connected as an external device.

第5図において、10はCPUを備えた上位装置であり、上
位装置10に磁気ディスク装置12が接続される。磁気ディ
スク装置12は、制御アダプタ36と磁気ディスクを記憶媒
体として備えた複数の記憶機構14a,14b,・・・で構成さ
れる。
In FIG. 5, reference numeral 10 is a host device having a CPU, and a magnetic disk device 12 is connected to the host device 10. The magnetic disk device 12 includes a control adapter 36 and a plurality of storage mechanisms 14a, 14b, ... Having a magnetic disk as a storage medium.

この磁気ディスク装置12は旧機種と交換により新たに接
続した大容量の装置であるが、上位装置10の制御フォー
マットは変更していないので、上位装置10は依然として
交換前の旧型のトラック容量の小さい磁気ディスク装置
と見做してデータ書込又は読出を行なうようになりこの
ため、新機種のトラック容量を旧機種に合わせるための
トラックエミレーションを制御アダプタ36で行なう。
This magnetic disk device 12 is a large-capacity device newly connected to the old model by replacement, but since the control format of the host device 10 has not been changed, the host device 10 still has a small old track capacity before replacement. Since data writing or reading is performed by considering it as a magnetic disk device, the control adapter 36 performs track emulation for adjusting the track capacity of the new model to that of the old model.

この制御アダプタ36によるトラックエミレーションとし
ては、従来、トラック・カウンタを使用する技術が知ら
れている。
As a track emulation by the control adapter 36, a technique using a track counter has been conventionally known.

第6図はトラックエミレーションに使用するトラック・
カウンタを備えたトラックフォーマットを示す。ここで
トラック・カウンタとは、第6図に示すように、トラッ
クフォーマットの中のカウント部におけるECC(エラー
修正コード)の後に新たにトラック・カウントを付加し
たもので、このトラック・カウントの値は、古い小容量
磁気ディスク装置のトラックフォーマットで記録を行な
ったときのその記録位置までの記録バイト数を示す。
Figure 6 shows the track used for track emulation.
3 shows a track format with a counter. Here, as shown in FIG. 6, the track counter is a new track count added after ECC (error correction code) in the count section of the track format. , The number of recording bytes up to the recording position when recording is performed in the track format of an old small capacity magnetic disk device.

第7図は第6図に示したカウント部にの後に付加したト
ラック・カウンタの値を使用してトラックエミレーショ
ンを行なう従来の制御アダプタ36の構成をを示す。
FIG. 7 shows the structure of a conventional control adapter 36 for performing track emulation using the value of the track counter added after the counting section shown in FIG.

第7図の制御アダプタ36には、ディスク記憶部の記憶機
構14a,14b,・・・との間でサーボヘッドから得られたサ
ーボクロックに同期してデータ書込又はデータ読出を行
なうVFO回路26、書込又読出データのシリアル−パラレ
ルの相互変換を行なうシリアル・パラレル変換回路28、
上位装置10との間で書込又は読出データの転送を行なう
データ転送バッファ回路30、更に読出データのエラー検
出と修正を行なうECC回路32が設けられ、更に、トラッ
クエミレーションのため新たにトラックカウンタ回路38
とギャップ制御回路40が設けられる。
The control adapter 36 shown in FIG. 7 includes a VFO circuit 26 for writing or reading data in synchronization with the servo clock obtained from the servo head between the storage mechanisms 14a, 14b, ... Of the disk storage unit. , A serial-parallel conversion circuit 28 for performing serial-parallel mutual conversion of write or read data,
A data transfer buffer circuit 30 for transferring write or read data to and from the host device 10 and an ECC circuit 32 for detecting and correcting an error in read data are provided, and a track counter is newly added for track emulation. Circuit 38
And a gap control circuit 40 is provided.

即ち、上位装置10によるデータ書込又は読出時に、第6
図に示したトラックフォーマットのカウント部をデータ
転送バッファ回路30が受けて転送した際に、カウント部
に付加したトラック・カウンタの値を初期値としてトラ
ックカウンタ回路38に取り込んでセットする。続いてト
ラックカウンタ回路38は取り込まれた初期値に、ギャッ
プ制御回路40から出力される旧機種のギャップG2の長さ
を加算し、次のキー部の転送でキー部の長さを加えた後
に再びギャップG2の長さを加え、更にデータ部の転送で
データ部の長さを加えた後にデータ部に続くギャップG2
の長さを加え、このような転送対象部(キー部又はデー
タ部)の長さ及びギャップ長を加える処理を繰り返す。
That is, when data is written or read by the higher-level device 10, the sixth
When the data transfer buffer circuit 30 receives and transfers the count section of the track format shown in the figure, the value of the track counter added to the count section is fetched and set in the track counter circuit 38 as an initial value. Subsequently, the track counter circuit 38 adds the length of the old model gap G2 output from the gap control circuit 40 to the fetched initial value, and after adding the length of the key part in the next transfer of the key part. Gap G2 following the data part after adding the length of the gap part G2 again and further adding the length of the data part in the transfer of the data part
And the length of the transfer target part (key part or data part) and the gap length are repeated.

そして、トラックカウンタ回路38の計数値が旧機種の磁
気ディスク装置のトラック容量に達すると、トラック・
インデックスを生成し、これを上位装置10に通知し、ト
ラック容量の互換性をとる。
When the count value of the track counter circuit 38 reaches the track capacity of the magnetic disk device of the old model, the track
An index is generated, and this is notified to the host device 10 to make the track capacities compatible.

[発明が解決しようとする問題点] しかしながら、このような従来のトラック容量の互換性
をとるためのトラックエミレーション方式にあっては、
カウント部に設けたトラック・カウントの値にECCが付
加されていないため、ディスク媒体上に欠陥が存在する
ことで正確にトラック・カウントの値が読めなかった時
に、トラック・カウントのパリティチェックによって上
位装置にエラーが報告されたり、またパリティエラーと
ならなかった場合には、誤ったカウント値がトラックカ
ウンタ回路にセットされ、その以降のカウント動作が狂
ってしまい、信頼性に欠けるという問題があった。
[Problems to be Solved by the Invention] However, in such a conventional track emulation system for achieving compatibility of track capacities,
Since ECC is not added to the track count value provided in the count section, if the track count value could not be read accurately due to the presence of a defect on the disk medium, the parity check of the track count is used to If an error is reported to the device or if a parity error does not occur, an incorrect count value will be set in the track counter circuit, and the subsequent count operation will be messed up, leading to a lack of reliability. .

更に、トラックカウンタ回路を制御アダプタに付加しな
ければならず、回路の複雑化を招き、コストアップにつ
ながるという問題もあった。
Furthermore, the track counter circuit has to be added to the control adapter, which causes a problem that the circuit becomes complicated and the cost increases.

本発明は、このような従来の問題点に鑑みてなされたも
ので、カウント部にすでに書かれているセグメント・ナ
ンバーの値を使用することでECCによるエラー修正が可
能で且つ新たな回路の付加も必要としない簡単で信頼性
の高い磁気ディスク装置のエミレーション方式を提供す
ることを目的とする。
The present invention has been made in view of such conventional problems, and by using the value of the segment number already written in the count section, error correction by ECC is possible and a new circuit is added. It is an object of the present invention to provide a simple and highly reliable magnetic disk device emulation method that does not require the above.

[問題点を解決するための手段] 第1図は本発明のエミレーション方式の原理説明図であ
る。
[Means for Solving Problems] FIG. 1 is a diagram illustrating the principle of the emulation method of the present invention.

第1図(a)において、上位装置10は、旧機種となる小
容量磁気ディスク装置を制御対象としているが、旧機種
に代えて新機種となる大容量の磁気ディスク装置12が接
続され、上位装置10と大容量の磁気ディスク装置12との
間でデータ書込み又は読出しを行なう際にトラック容量
の互換をとるトラックエミレーションが行なわれる。
In FIG. 1 (a), the host device 10 controls a small-capacity magnetic disk device that is an old model, but a large-capacity magnetic disk device 12 that is a new model in place of the old model is connected to the host device 10. When data writing or reading is performed between the device 10 and the large-capacity magnetic disk device 12, track emulation is performed to make the track capacities compatible.

磁気ディスク装置12の制御アダプタには、第1図(b)
に示す旧機種のトラックフォーマットに従って上位装置
10と大容量の磁気ディスク装置12の記憶機構14との間で
書込データ又は読出データの転送制御を行なうデータ転
送制御手段18が設けられる。
The control adapter of the magnetic disk device 12 is shown in FIG.
Higher-order device according to the track format of the old model shown in
Data transfer control means 18 for controlling transfer of write data or read data is provided between 10 and a storage mechanism 14 of a large-capacity magnetic disk device 12.

データ転送制御手段18がトラックフォーマットの中のカ
ウント部のデータ転送を行なった際に、このカウント部
に含まれるセグメント・ナンバーの値を検出手段18で検
出する。
When the data transfer control means 18 transfers the data of the count portion in the track format, the detecting means 18 detects the value of the segment number included in the count portion.

続いて、データ転送制御手段16がギャップG2を介して繰
り返されるキー部及びデータ部のデータ転送を順次行な
う毎に、検出手段18で検出されたセグメント・ナンバー
の値に、旧機種のギャップG2の長さ及び転送対象部(キ
ー部又はデータ部)の長さを加算手段20で加算する。
Then, every time the data transfer control means 16 sequentially performs the data transfer of the key portion and the data portion through the gap G2, the segment number value detected by the detecting means 18 is set to the value of the old model gap G2. The length and the length of the transfer target part (key part or data part) are added by the adding means 20.

加算手段20でギャップG2の長さ又は転送対象部の長さの
値を加算する毎に、この加算値は旧機種のトラック容量
に達したか否かトラック容量判別手段22で判別され、旧
機種のトラック容量に達したことを判別すると、トラッ
ク・インデックスを生成して上位装置10にその旨を報告
する。
Each time the adding means 20 adds the value of the length of the gap G2 or the length of the transfer target portion, the added value is determined by the track capacity determining means 22 whether or not the track capacity of the old model has been reached. When it is determined that the track capacity has been reached, a track index is generated and the fact is reported to the upper level device 10.

ここで制御アダプタの検出手段18、加算手段20及びトラ
ック容量判別手段22は、制御アダプタに設けている書込
読出制御専用のプロセッサ回路の処理シーケンスの1つ
として達成され、特別な回路は設ける必要はない。
Here, the detection means 18, the addition means 20, and the track capacity determination means 22 of the control adapter are achieved as one of the processing sequences of the processor circuit dedicated to the write / read control provided in the control adapter, and a special circuit needs to be provided. There is no.

[作用] カウント部のセグメント・ナンバーは、トラックを例え
ば32バイトのセグメントで分割したときの、そのカウン
ト部のあるセグメント位置までのセグメント数を表わし
ている。
[Operation] The segment number of the count section represents the number of segments up to the segment position where the count section is, when the track is divided into 32 byte segments.

このためカウント部のデータ転送の際にカウント部に含
まれているセグメント・ナンバーを読み取り、このセグ
メント・ナンバーの値に旧機種のトラックフォーマット
におけるギャップ長をキー部及びデータ部の長さと共に
順次加算する。このため新機種のデータ書込又は読出に
おけるデータ転送で旧機種のトラックカウントの値がリ
アルタイムで得られ、このトラックカウントの値が旧機
種のトラック容量に達したならば、トラックインデック
ス(擬似インデックス)を生成して上位装置に報告する
ことで、新機種と旧機種との間でトラック容量の互換性
をとることができる。
For this reason, the segment number included in the count section is read during the data transfer of the count section, and the gap length in the track format of the old model is sequentially added to the value of this segment number together with the length of the key section and the data section. To do. For this reason, the track count value of the old model is obtained in real time by the data transfer in the data writing or reading of the new model, and when the track count value reaches the track capacity of the old model, the track index (pseudo index) Is generated and reported to the host device, the track capacity can be compatible between the new model and the old model.

またセグメント・ナンバーは、カウント部のECCの前に
位置することから、ディスク媒体の欠陥等によりセグメ
ント・ナンバーが正確に読めなかったとしても、ECCに
基づくエラー修正によって正しいセグメント・ナンバー
の値を得ることができ、トラック容量の互換をとるため
のトラック・カウントの値を正確に検出することがで
き、高い信頼性が得られる。
In addition, since the segment number is located before the ECC of the counting part, even if the segment number cannot be read correctly due to a defect in the disk medium, etc., the correct segment number value can be obtained by error correction based on the ECC. Therefore, it is possible to accurately detect the value of the track count for making the track capacities compatible, and it is possible to obtain high reliability.

更に、近年の制御アダプタにあっては、書込及び制御に
専用のプロセッサ回路を内蔵していることから、セグメ
ント・ナンバーの検出、ギャップ長さの加算、旧機種の
トラック容量に達したか否かの判別は、このプロセッサ
回路の制御シーケンスの1つとして組み込むことで実現
でき、特別な回路を付加する必要がないことから、回路
構成が複雑化せず、コスト的にも安価にできる。
Furthermore, since recent control adapters have a built-in processor circuit dedicated to writing and control, segment number detection, gap length addition, and whether the track capacity of the old model has been reached or not. The determination can be realized by incorporating it as one of the control sequences of this processor circuit, and since it is not necessary to add a special circuit, the circuit configuration does not become complicated and the cost can be reduced.

[実施例] 第2図は本発明のトラックエミレーション方式を実現す
る磁気ディスク装置の一実施例を示した説明図である。
[Embodiment] FIG. 2 is an explanatory view showing an embodiment of a magnetic disk device for realizing the track emulation method of the present invention.

第2図において、磁気ディスク装置12は上位装置に対し
新たに接続された大容量の装置であり、旧機種に対して
トラック容量が増加している。
In FIG. 2, the magnetic disk device 12 is a large-capacity device that is newly connected to the host device, and the track capacity is increasing compared to the old model.

磁気ディスク装置12は制御アダプタ24とディスク記憶部
25で構成される。ディスク記憶部25には磁気ディスクを
記憶媒体として備えた複数の記憶機構14a,14b,・・・が
設けられる。
The magnetic disk device 12 includes a control adapter 24 and a disk storage unit.
Composed of 25. The disk storage unit 25 is provided with a plurality of storage mechanisms 14a, 14b, ... Having a magnetic disk as a storage medium.

一方、制御アダプタ24には従来装置と同様にディスク記
憶部25側のサーボヘッドからのサーボクロックに基づい
て記憶機構14a,14b,・・・に対しデータ読出又はデータ
書込を行なうためのVFO回路26、シリアルデータとパラ
レルデータの相互変換を行なうシリアル・パラレル変換
回路28、上位装置(図示せず)との間で書込データ又は
読出データのデータ転送を行なうデータ転送バッファ回
路30、更に読出データのエラーを検出して修正するECC
回路32が設けられる。更に、制御アダプタ24には上位装
置と磁気ディスク装置12の間でデータ書込制御及びデー
タ読出制御を行なうための専用プロセッサ回路34が設け
られており、プロセッサ制御回路34の制御シーケンスに
基づいてVFO回路26、シリアル・パラレル変換回路28、
データ転送バッファ回路30及びECC回路32の制御が行な
われ、これらによって第1図の原理説明図に示したデー
タ転送制御手段16が構成される。
On the other hand, the control adapter 24 has a VFO circuit for reading or writing data to the storage mechanisms 14a, 14b, ... Based on the servo clock from the servo head on the side of the disk storage unit 25, as in the conventional device. 26, a serial / parallel conversion circuit 28 that performs mutual conversion between serial data and parallel data, a data transfer buffer circuit 30 that transfers write data or read data between a host device (not shown), and read data ECC to detect and fix errors in
A circuit 32 is provided. Further, the control adapter 24 is provided with a dedicated processor circuit 34 for performing data write control and data read control between the host device and the magnetic disk device 12, and the VFO based on the control sequence of the processor control circuit 34 is provided. Circuit 26, serial / parallel conversion circuit 28,
The data transfer buffer circuit 30 and the ECC circuit 32 are controlled, and these constitute the data transfer control means 16 shown in the principle explanatory diagram of FIG.

プロセッサ回路34には上位装置が制御対象とした旧機種
のトラック容量に新たに接続した大容量の磁気ディスク
装置12のトラック容量の互換をとるトラックエミレーシ
ョンの処理機能が組み込まれる。プロセッサ回路34によ
るトラックエミレーションは、データ読出又は書込時に
データ転送バッファ回路30に残されたトラックフォーマ
ットのカウント部に含まれるセグメント・ナンバーの値
に基づいて行なわれる。
The processor circuit 34 incorporates a track emulation processing function for making the track capacities of the large-capacity magnetic disk device 12 newly connected to the track capacities of the old model controlled by the higher-level device compatible. The track emulation by the processor circuit 34 is performed based on the value of the segment number included in the count part of the track format left in the data transfer buffer circuit 30 at the time of reading or writing the data.

第3図は第2図に示した大容量の磁気ディスク装置12に
おける新機種のトラックフォーマットと上位装置が制御
対象としている旧機種のトラックフォーマットを対比し
て示した説明図であり、本発明のトラックエミレーショ
ンは新機種のトラックフォーマットにおけるギャップG
3′に続くカウント部R1 Cからデータ転送を行なうモー
ドにおいて有効に機能する。ここで、カウント部R1 Cは
点線で拡大して示すデータフォーマットを有し、各デー
タは次の内容を有する。
FIG. 3 is an explanatory view showing the track format of the new model in the large-capacity magnetic disk device 12 shown in FIG. 2 and the track format of the old model controlled by the host device in comparison with each other. Track emulation is the gap G in the new model track format.
It effectively functions in the mode in which data is transferred from the count unit R1C following 3 '. Here, the count unit R1C has a data format shown by enlarging it with a dotted line, and each data has the following contents.

SD:欠陥スキップ数 CN:セルナンバー(セグメント・ナンバー) PA:物理的アドレス F :フラグ C :シリンダ情報 H :ヘッド情報 RN:レコード・ナンバー KL:キー長 DL:データ長 ECC:エラー修正コード このようなカウント部R1 Cの中で、セルナンバーCNを本
発明のトラックエミレーションに使用するもので、セル
ナンバーCNはトラックを例えば32バイトのセグメントで
分割したときのカウント部R1 Cのセグメント位置を示す
セグメント・ナンバーを表わしている。
SD: Number of defect skips CN: Cell number (segment number) PA: Physical address F: Flag C: Cylinder information H: Head information RN: Record number KL: Key length DL: Data length ECC: Error correction code Among the various counting sections R1C, the cell number CN is used for track emulation of the present invention, and the cell number CN indicates the segment position of the counting section R1C when the track is divided into 32 byte segments, for example. Represents a segment number.

そこで、第2図の実施例のプロセッサ回路34にあって
は、プロセッサ回路34による制御のもとにデータ書込又
はデータ読出を行なう際にデータ転送バッファ回路30よ
りトラックフォーマットのカウント部の転送を行なった
ときに、制御アダプタ24内のデータ転送バッファ30に残
っているカウント部のセルナンバーCNからセグメント・
ナンバーを読み出し、このセグメント・ナンバーに旧機
種のギャップG2の長さ及びカウント部R1 Cに続いて転送
されるキー部R1 K及びデータ部R1 Dの各転送対象部の長
さを加え、この加算結果が旧機種のトラック容量に達し
たときに第3図に示すように擬似インデックスを生成し
て上位装置に旧機種のトラック容量に達したことを報告
する。このようにプロセッサ回路34よりトラック容量の
互換性をとるための擬似インデックスが生成されると、
正規のトラックインデックスまでのトラック領域は旧機
種との互換をとるため使われない領域として残るように
なる。
Therefore, in the processor circuit 34 of the embodiment shown in FIG. 2, when the data writing or the data reading is performed under the control of the processor circuit 34, the data transfer buffer circuit 30 transfers the track format count section. From the cell number CN of the count part remaining in the data transfer buffer 30 in the control adapter 24 when
Read the number, add the length of the gap G2 of the old model and the length of each transfer target part of the key part R1 K and the data part R1 D that are transferred subsequently to the count part R1 C to this segment number, and add this When the result reaches the track capacity of the old model, a pseudo index is generated as shown in FIG. 3 to report to the host device that the track capacity of the old model has been reached. In this manner, when the processor circuit 34 generates the pseudo index for compatibility of the track capacities,
The track area up to the regular track index is left as an unused area for compatibility with old models.

更に、プロセッサ回路34によるトラックエミレーション
の制御処理を整理すると、トラックエミレーションのた
めプロセッサ回路34は次の処理を行なうことになる。
Further, when the track emulation control processing by the processor circuit 34 is arranged, the processor circuit 34 performs the following processing for track emulation.

(A)制御アダプタ24でトラックフォーマットの中のカ
ウント部Ri Cのデータ転送を行なった際にカウント部Ri
C(但し、i=1,2,・・・,nの整数)に含まれるセルナ
ンバーCNからセグメント・ナンバーの値を検出する検出
処理。
(A) When the control adapter 24 transfers the data of the count section Ri C in the track format, the count section Ri C
Detection process for detecting the value of the segment number from the cell number CN included in C (however, i = 1, 2, ..., N).

(B)制御アダプタ24がカウント部Ri CにギャップG2′
を介して続くキー部Ri K及びデータ部Ri Dのデータ転送
を順次行なう毎に、前記(A)で検出されたセグメント
・ナンバーの値に旧機種のギャップG2のギャップ長の値
及び転送対象部(キー部又はデータ部)の長さの値を加
算する加算処理。
(B) The control adapter 24 has a gap G2 'in the counting unit Ri C.
Each time the data of the key section Ri K and the data section Ri D is successively transferred via the, the segment number value detected in (A) above is added to the gap length value of the old model gap G2 and the transfer target section. Addition processing for adding the value of the length of (key part or data part).

(C)前記(B)の加算処理でギャップG2の長さ又は転
送対象部の長さを加算する毎に、この加算結果が旧機種
のトラック容量に達したか否かを判別し、旧機種のトラ
ック容量に達したことを判別したときに擬似インデック
スを生成してその旨を上位装置に報告するトラック容量
の判別処理。
(C) Every time the length of the gap G2 or the length of the transfer target portion is added in the addition processing of (B), it is determined whether or not the addition result has reached the track capacity of the old model, and the old model When determining that the track capacity has been reached, a pseudo index is generated and the effect is reported to the host device.

勿論、前記(A)〜(C)に示したプロセッサ回路34に
おけるトラックエミレーション処理は上位装置に対する
データ読出は勿論のこと上位装置からのデータ書込の際
にも同様にして行なわれる。
Of course, the track emulation processing in the processor circuit 34 shown in (A) to (C) above is performed in the same manner not only when reading data from the host device but also when writing data from the host device.

次に、第4図のフローチャートを参照して第2図の制御
アダプタ24に設けたプロセッサ回路34によるトラックエ
ミレーション処理の動作を説明する。
Next, the operation of the track emulation processing by the processor circuit 34 provided in the control adapter 24 of FIG. 2 will be described with reference to the flowchart of FIG.

上位装置との間でのデータ書込又はデータ読出におい
て、データ転送バッファ回路30より第3図に示した新機
種のトラックフォーマットにおける最初のカウント部R1
Cのデータ転送制御がステップS1で行なわれたとする
と、ステップS2に進んでデータ転送バッファ30からセグ
メント・ナンバーを読み込み、次のステップS3でセグメ
ント・ナンバーに旧機種のトラックフォーマットにおけ
るギャップG2の値を加える。
When writing data to or reading data from the host device, the first count section R1 in the new model track format shown in FIG. 3 is read from the data transfer buffer circuit 30.
If the data transfer control of C is performed in step S1, the process proceeds to step S2, the segment number is read from the data transfer buffer 30, and in the next step S3, the value of the gap G2 in the track format of the old model is set to the segment number. Add.

次のステップS4ではステップS3のギャップG2の加算で得
られたセグメント・ナンバーの値が旧機種のトラック容
量を越えたか否か判別し、旧機種のトラック容量を越え
ていなければステップS5に進んでキー部R1 Kのデータ転
送制御を行なう。
In the next step S4, it is determined whether or not the segment number value obtained by adding the gap G2 in step S3 exceeds the track capacity of the old model, and if it does not exceed the track capacity of the old model, proceed to step S5. Controls data transfer of the key part R1K.

ステップS5でキー部R1 Kのデータ転送制御を行なったな
らば、ステップS6でセグメント・ナンバーにキー部の長
さを加え、次のステップS7で再び旧機種のトラック容量
を越えたか否か判別する。
If the data transfer control of the key part R1K is performed in step S5, the length of the key part is added to the segment number in step S6, and it is determined in the next step S7 whether or not the track capacity of the old model is exceeded again. .

ステップS7でセグメント・ナンバーの値が旧機種のトラ
ック容量を越えていなければ次のステップS8でセグメン
ト・ナンバーにギャップG2の値を加え、再びステップS9
で旧機種のトラック容量を越えたか否か判別する。ステ
ップS9で旧機種のトラック容量を越えていなければステ
ップS10に進んでデータ部R1 Dのデータ転送制御を行な
い、次のステップS11でセグメント・ナンバーにデータ
部R1 Kの長さを加え、再びステップS12で旧機種のトラ
ック容量を越えたか否か判別する。テップS11で旧機種
のトラック容量を越えていなければステップS13に進み
セグメント・ナンバーにギャップG2の値を加え、次のス
テップS4で再び旧機種のトラック容量を越えたか否か判
別し、旧機種のトラック容量を越えていなければS5で次
のカウント部R2 Cのデータ転送制御に移行し、以下同様
にしてセグメント・ナンバーにギャップG2の長さ及びキ
ー部又はデータ部の長さを加え、その都度旧機種のトラ
ック容量を越えたか否かの判別処理を繰り返す。
If the segment number value does not exceed the track capacity of the old model in step S7, the value of gap G2 is added to the segment number in the next step S8, and step S9 is executed again.
Check to see if the capacity of the old model has been exceeded. If the track capacity of the old model is not exceeded in step S9, the process proceeds to step S10 to control the data transfer of the data section R1 D, and in the next step S11, add the length of the data section R1 K to the segment number, and then repeat the step. In S12, it is determined whether or not the track capacity of the old model has been exceeded. If the track capacity of the old model is not exceeded in step S11, proceed to step S13, add the value of the gap G2 to the segment number, and in the next step S4 determine whether the track capacity of the old model is exceeded again. If it does not exceed the track capacity, the process proceeds to the data transfer control of the next count section R2C in S5, and in the same way, the length of the gap G2 and the length of the key section or the data section are added to the segment number in the same manner. The process of determining whether or not the track capacity of the old model has been exceeded is repeated.

一方、ステップS4,S7,S9,S12,S14のいずれかでセグメン
ト・ナンバーの値が旧機種のトラック容量を越えた場合
には、ステップS16〜S20のいずれかに進み、擬似インデ
ックスを生成して上位装置に旧機種のトラック容量に達
したことを示すインデックスファンドを報告するように
なる。
On the other hand, if the segment number value exceeds the track capacity of the old model in any of steps S4, S7, S9, S12, and S14, proceed to any of steps S16 to S20 to generate a pseudo index. It will report the index fund indicating that the truck capacity of the old model has been reached to the upper device.

一方、磁気ディスク装置12から上位装置にデータ読出を
行なう際にディスク媒体上に欠陥があってカウント部の
セルナンバーCNが正確に読めなかった場合には、カウン
ト部の最後に付加されたECCによりエラー検出と修正が
行なわれるため、トラックエミレーションに使用するセ
グメント・ナンバーの信頼性が保障され、正確に旧機種
のトラック容量に対する互換をとることができる。
On the other hand, when data is read from the magnetic disk device 12 to the host device and the cell number CN of the count part cannot be read correctly due to a defect on the disk medium, the ECC added at the end of the count part Since error detection and correction are performed, the reliability of the segment number used for track emulation is guaranteed, and the compatibility with the track capacity of the old model can be accurately achieved.

更に、第4図のフローチャートに示した本発明のトラッ
クエミレーションは、磁気ディスク装置12の制御アダプ
タ24に設けた読出・書込専用のプロセッサ回路34の制御
シーケンスの1つとして設けられているため、従来のよ
うに制御アダプタ24にトラックカウンタ回路等の特別な
回路を付加する必要がなく、そのため回路構成が簡単で
コスト的にも安価に実現できる。
Further, the track emulation of the present invention shown in the flowchart of FIG. 4 is provided as one of the control sequences of the read / write only processor circuit 34 provided in the control adapter 24 of the magnetic disk device 12. Since it is not necessary to add a special circuit such as a track counter circuit to the control adapter 24 as in the conventional case, the circuit configuration is simple and the cost can be reduced.

[発明の効果] 以上説明してきたように本発明によれば、ECCが付加さ
れたカウント部のセグメント・ナンバーに基づいてトラ
ック容量の互換をとることから、信頼性が高く、また制
御アダプタのプロセッサ回路によりトラック容量の互換
をとることから、特別な回路を付加する必要がなく回路
構成が簡単でコストダウンを計ることできる。
EFFECTS OF THE INVENTION As described above, according to the present invention, the track capacities are made compatible based on the segment number of the count section to which the ECC is added, so that the reliability is high and the processor of the control adapter is high. Since the track capacities are made compatible by the circuits, it is not necessary to add a special circuit, the circuit configuration is simple, and the cost can be reduced.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例を示した説明図、第3図は本
発明の用いる旧機種と新機種のトラックフォーマット説
明図、 第4図は本発明のトラックエミレーション処理を示した
フロー図、 第5図は従来システムの説明図、 第6図は従来方式に使用するトラックフォーマット説明
図、 第7図は従来の制御アダプタの説明図、 である。 図中、 10:上位装置 12:磁気ディスク装置(新機種) 14,14a,14b:記憶機構 16:ディスク転送制御手段 18:検出手段 20:加算手段 22:トラック容量判別手段 24:制御アダプタ 25:データ記憶部 26:VFO回路 28:シリアル・パラレル変換回路 30:データ転送バッファ回路 32:ECC回路 34:プロセッサ回路
FIG. 1 is an explanatory view of the principle of the present invention, FIG. 2 is an explanatory view showing an embodiment of the present invention, FIG. 3 is an explanatory view of track formats of an old model and a new model used in the present invention, and FIG. FIG. 5 is a flow chart showing the track emulation processing of the present invention, FIG. 5 is an explanatory view of a conventional system, FIG. 6 is an explanatory view of a track format used in the conventional system, and FIG. 7 is an explanatory view of a conventional control adapter. is there. In the figure, 10: Host device 12: Magnetic disk device (new model) 14, 14a, 14b: Storage mechanism 16: Disk transfer control means 18: Detection means 20: Addition means 22: Track capacity determination means 24: Control adapter 25: Data storage unit 26: VFO circuit 28: Serial / parallel conversion circuit 30: Data transfer buffer circuit 32: ECC circuit 34: Processor circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】小容量の磁気ディスク装置を制御対象とし
た上位装置(10)にトラック容量の異なる大容量の磁気
ディスク装置(12)を接続し、該上位装置(10)と大容
量の磁気ディスク装置(12)との間でデータ書込み又は
読出しを行なう際にトラック容量の互換をとる磁気ディ
スク装置のトラックエミレーション方式に於いて、 前記小容量の磁気ディスク装置のトラックフォーマット
に従って前記上位装置(10)と前記大容量の磁気ディス
ク装置(12)の記憶機構(14)との間で書込データ又は
読出データの転送制御を行なうデータ転送制御手段(1
6)と; 該データ転送制御手段(16)が前記トラックフォーマッ
トの中のカウント部のデータ転送を行なった際に、該カ
ウント部に含まれるセグメント・ナンバーの値を検出す
る検出手段(18)と; 前記データ転送制御手段(16)が前記カウント部に所定
のギャップエリアを介して繰り返し続くキー部及びデー
タ部のデータ転送を順次行なう毎に、前記検出手段(1
8)で検出されたセグメント・ナンバーの値に、前記小
容量の磁気ディスク装置におけるギャップエリア(G2)
の値及び転送対象部の長さの値を加算する加算手段(2
0)と; 該加算手段(20)でギャップエリア(G2)又は転送対象
部の値を加算する毎に、該加算値が前記小容量の磁気デ
ィスク装置のトラック容量に達したか否か判別し、該ト
ラック容量に達したことを判別した時にその旨を前記上
位装置(10)に報告するトラック容量判別手段(22)
と; を備えたことを特徴とする磁気ディスク装置のエミレー
ション方式。
1. A high-capacity magnetic disk device (12) having different track capacities is connected to a host device (10) whose control target is a small-capacity magnetic disk device, and the high-capacity magnetic disk device and the high-capacity device In a track emulation method of a magnetic disk device, which makes track capacities compatible when writing or reading data with a disk device (12), the host device (according to the track format of the small capacity magnetic disk device Data transfer control means (1) for controlling transfer of write data or read data between the storage mechanism (14) of the large capacity magnetic disk device (12).
6) and; detection means (18) for detecting the value of the segment number included in the count part when the data transfer control means (16) transfers the data of the count part in the track format. The detecting means (1) every time the data transfer control means (16) successively performs data transfer of the key portion and the data portion, which successively repeat to the count portion via a predetermined gap area.
In the segment number value detected in 8), the gap area (G2) in the small-capacity magnetic disk unit
Addition means (2) and the value of the length of the transfer target part (2
Every time the value of the gap area (G2) or the transfer target portion is added by the adding means (20), it is determined whether or not the added value has reached the track capacity of the small capacity magnetic disk device. , Track capacity determination means (22) for reporting the fact to the host device (10) when it is determined that the track capacity has been reached
An emulation method for a magnetic disk device, which is characterized by including;
JP20544087A 1987-08-19 1987-08-19 Track emulation method for magnetic disk unit Expired - Lifetime JPH0799608B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20544087A JPH0799608B2 (en) 1987-08-19 1987-08-19 Track emulation method for magnetic disk unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20544087A JPH0799608B2 (en) 1987-08-19 1987-08-19 Track emulation method for magnetic disk unit

Publications (2)

Publication Number Publication Date
JPS6449167A JPS6449167A (en) 1989-02-23
JPH0799608B2 true JPH0799608B2 (en) 1995-10-25

Family

ID=16506910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20544087A Expired - Lifetime JPH0799608B2 (en) 1987-08-19 1987-08-19 Track emulation method for magnetic disk unit

Country Status (1)

Country Link
JP (1) JPH0799608B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2761289B2 (en) * 1990-11-30 1998-06-04 富士通株式会社 Disk track emulation method
JPH08180600A (en) * 1994-12-27 1996-07-12 Nec Corp Magnetic disk unit

Also Published As

Publication number Publication date
JPS6449167A (en) 1989-02-23

Similar Documents

Publication Publication Date Title
US4558446A (en) Memory system
JP2855019B2 (en) External storage device data guarantee method and external storage device
JPH0612895B2 (en) Information processing system
EP0264602B1 (en) Fixed time gap format variable field length data transfer
EP0077740B1 (en) Magnetic disc device
KR20010107509A (en) A management method for reproducing error and a disk drive making use of the management method
EP0392382B1 (en) Error correction control apparatus
JPH0799608B2 (en) Track emulation method for magnetic disk unit
JP3993921B2 (en) Storage device
US6915475B1 (en) Data integrity management for data storage systems
JP2644218B2 (en) Magnetic recording method
JPH0573226A (en) Data input/output system for external storage device
JP2000207289A (en) Data error detecting system and its method
JPH0535416A (en) File controller
JPH0344394B2 (en)
JP2868003B1 (en) Magnetic disk drive
JPH07281836A (en) Data transfer method
JPS6113259B2 (en)
JPS5928246A (en) Optical disk processor
JPH03160670A (en) Data reader
JPH09320207A (en) Information recording/reproducing device
JP2000155901A (en) Defect information generating method and information storage apparatus
JPS59146358A (en) Error correction system
JPH04339364A (en) Defective block managing system for data memory
JPH0798941A (en) Recording and reproducing device using disk type recording medium