JPH0437924A - Auxiliary storage control method - Google Patents
Auxiliary storage control methodInfo
- Publication number
- JPH0437924A JPH0437924A JP14381290A JP14381290A JPH0437924A JP H0437924 A JPH0437924 A JP H0437924A JP 14381290 A JP14381290 A JP 14381290A JP 14381290 A JP14381290 A JP 14381290A JP H0437924 A JPH0437924 A JP H0437924A
- Authority
- JP
- Japan
- Prior art keywords
- area
- sector
- read
- storage
- write
- 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
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【発明の詳細な説明】
〔目 次〕
概要
産業上の利用分野
従来の技術
発明が解決しようとする課題
課題を解決するための手段
作用
実施例
発明の効果
〔概 要〕
補助記憶装置に対するデータの書込および読出を制御す
る補助記憶制御方式に関し、
シーク処理の回数を削減することを目的とし、複数の記
録領域からなるデータ領域と交代領域とを有する補助記
憶装置と、補助記憶装置の1つの記録領域に相当する容
量を有する複数の格納領域からなる格納手段と、書込要
求あるいは読出要求で指定された記録領域のそれぞれに
対応する格納手段の格納領域を示すアドレスを生成する
アドレス生成手段と、指定された記録領域のそれぞれに
欠陥があるか否かを判定し、欠陥がないときに、供給さ
れるアドレスと該当する記録領域を指定して書込指示あ
るいは読出指示を行い、欠陥があるときに、アドレスお
よび該当する交代記録領域に関する保留情報を保持手段
に保持するとともにこの記録領域についての書込指示あ
るいは読出指示を保留する制御手段と、書込指示および
読出指示に応じて、補助記憶装置の指定された記録領域
に対する書込動作あるいは読出動作を行うアクセス手段
とを備え、欠陥がないとされた全ての記録領域について
の書込動作あるいは読出動作が終了した後に、該当する
交代記録領域を指定して書込指示あるいは読出指示を行
うように構成す′る。[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Action Examples Effects of the Invention [Summary] Transfer of data to the auxiliary storage device Regarding the auxiliary storage control method that controls writing and reading, the purpose is to reduce the number of seek operations, and the auxiliary storage device has a data area consisting of multiple recording areas and a replacement area, and one of the auxiliary storage devices. a storage means comprising a plurality of storage areas having a capacity corresponding to the recording area; and an address generation means for generating an address indicating a storage area of the storage means corresponding to each of the storage areas specified in a write request or a read request. , determines whether or not there is a defect in each of the specified recording areas, and if there is no defect, specifies the supplied address and the corresponding recording area, issues a write instruction or read instruction, and confirms that there is a defect. In some cases, a control means for holding reservation information regarding an address and a corresponding replacement recording area in a storage means and for suspending a write instruction or a read instruction for this recording area, and an auxiliary memory for storing reservation information regarding an address and a corresponding replacement recording area, and for holding a write instruction or a read instruction for this recording area; and an access means for performing a write operation or a read operation to a designated recording area of the device, and after the write operation or read operation for all recording areas determined to be free of defects is completed, the corresponding replacement recording area The configuration is such that a write instruction or a read instruction is given by specifying .
[産業上の利用分野〕
本発明は、磁気ディスク装置などの補助記憶装置と処理
装置との間の入出力制御方式に関する。[Industrial Application Field] The present invention relates to an input/output control method between an auxiliary storage device such as a magnetic disk device and a processing device.
磁気ディスク装置などにおいては、信転性が重視されて
おり、フォーマット時などに記録媒体の不良箇所が検出
された場合には、磁気ディスク装置を制御するディスク
制御装置により、例えば、この欠陥を含むセクタの代わ
りとなる交代セクタとして、交代領域として確保された
予備のトラックの中のセクタを割り当てるようになって
いる。In magnetic disk drives, reliability is important, and if a defective part of the recording medium is detected during formatting, the disk control device that controls the magnetic disk drive will, for example, A sector in a spare track secured as a replacement area is allocated as a replacement sector in place of a sector.
磁気ディスク装置の記録媒体である磁気ディスクは、複
数のシリンダからなっており、例えば、これらのシリン
ダの中の1つが交代領域として確保され、他のシリンダ
に含まれる各トラックはデータ領域として用いられてい
る。A magnetic disk, which is the recording medium of a magnetic disk device, consists of multiple cylinders. For example, one of these cylinders is reserved as a replacement area, and each track included in the other cylinders is used as a data area. ing.
例えば、第5図に示すように、n個のセクタからなるデ
ータ領域のトランクAのセクタ2に欠陥が検出された場
合には、ディスク制御装置により、このセクタ2に上述
した交代領域のセクタのいずれか(例えばセクタa)が
割り当てられる。また、このとき、セクタ2に欠陥があ
る旨の情報と割り当てられた交代セクタ(セクタa)を
示す情報とが、例えば、該当するトラックの障害情報記
録領域に記録される。For example, as shown in FIG. 5, if a defect is detected in sector 2 of trunk A in a data area consisting of n sectors, the disk controller will replace this sector 2 with a sector in the replacement area described above. One (for example, sector a) is allocated. Further, at this time, information indicating that sector 2 is defective and information indicating the allocated replacement sector (sector a) are recorded, for example, in the fault information recording area of the corresponding track.
また、ディスク制御装置は、磁気ディスク装置の立ち上
げ時に、各トラックの障害情報記録領域に記録された障
害情報を読み込んで、メモリ内に設けた交代情報テーブ
ルに、欠陥があるセクタと該当する交代セクタとの対応
関係を格納するようになっている。また、欠陥があるセ
クタに対するアクセスが指示された際には、この交代情
報テーブルに基づいて、交代セクタとして指定されたセ
クタaに対するアクセスを行うようになっている。In addition, when starting up the magnetic disk device, the disk control device reads the fault information recorded in the fault information recording area of each track, and records the defective sector and the corresponding replacement in the replacement information table provided in the memory. The correspondence relationship with sectors is stored. Furthermore, when an instruction is given to access a defective sector, access is made to sector a designated as a replacement sector based on this replacement information table.
従って、例えば、第5図のセクタ1〜セクタ3に記録さ
れたデータを読み出す場合には、ディスク制御装置によ
り、まず、セクタ1に記録されたデータが読み出され、
次に、セクタ2の交代セクタとなっているセクタaのデ
ータが読み出され、続いて、セクタ3のデータが読み出
される。Therefore, for example, when reading the data recorded in sectors 1 to 3 in FIG. 5, the disk controller first reads the data recorded in sector 1, and
Next, the data in sector a, which is a replacement sector for sector 2, is read out, and then the data in sector 3 is read out.
また、これらのセクタにデータの書き込みを行う場合も
、同様の順序で書き込みが行われる。Also, when data is written to these sectors, the writing is performed in the same order.
ところで、上述した従来方式にあっては、例えば、第5
図のセクタ1に対するアクセスの終了後に、セクタaを
探すためのシーク処理が行われ、また、このセクタaに
対するアクセスの終了後にセクタ3を探すためのシーク
処理が行われる。このように、交代セクタが割り当てら
れたセクタを含む連続したセクタに対するアクセスを行
う際には、複数回のシーク処理が行われるので、アクセ
ス処理に要する時間が長いという問題点があった。By the way, in the conventional method described above, for example, the fifth
After the access to sector 1 in the figure is completed, seek processing is performed to search for sector a, and after the access to sector a is completed, seek processing is performed to search for sector 3. In this way, when accessing consecutive sectors including the sector to which the replacement sector has been allocated, seek processing is performed multiple times, resulting in the problem that the time required for the access processing is long.
本発明は、シーク処理の回数を削減するようにした補助
記憶制御方式を提供することを目的とする。An object of the present invention is to provide an auxiliary storage control method that reduces the number of seek processes.
第1図は、本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.
図において、補助記憶装置101は、複数の記録領域か
らなるデータ領域とこのデータ領域に含まれる欠陥があ
る記録領域に割り当てられた交代記録領域からなる交代
領域とを有する。In the figure, an auxiliary storage device 101 has a data area made up of a plurality of recording areas and a replacement area made of a replacement recording area allocated to a defective recording area included in this data area.
格納手段111は、補助記憶装置101の1つの記録領
域に相当する容量を有する複数の格納領域からなる。The storage means 111 consists of a plurality of storage areas having a capacity equivalent to one recording area of the auxiliary storage device 101.
アドレス生成手段112は、入力される書込要求あるい
は読出要求で指定された複数の記録領域のそれぞれに対
応して、格納手段111の複数の格納領域を順次に指定
するアドレスを生成する。The address generating means 112 generates addresses that sequentially designate a plurality of storage areas of the storage means 111, corresponding to each of the plurality of recording areas specified by an input write request or read request.
制御手段114は、書込要求あるいは読出要求で指定さ
れた複数の記録領域のそれぞれに欠陥があるか否かを判
定し、欠陥がないとされたときに、アドレス生成手段1
12によって生成されたアドレスと該当する記録領域を
指定して書込指示あるいは読出指示を行い、欠陥がある
とされたときに、該当する記録領域に対応するアドレス
および交代記録領域に関する保留情報を保持手段113
に保持するとともにこの記録領域についての書込指示あ
るいは読出指示を保留する。The control means 114 determines whether or not each of the plurality of recording areas specified by the write request or the read request has a defect, and when it is determined that there is no defect, the address generation means 1
When a write or read instruction is given by specifying the address generated by step 12 and the corresponding recording area, and it is determined that there is a defect, the address corresponding to the corresponding recording area and reservation information regarding the replacement recording area are retained. Means 113
In addition, any write or read instructions for this recording area are held on hold.
アクセス手段115は、書込指示に応じて、格納手段1
11の該当する格納領域に格納されたデータを補助記憶
装置101の該当する記録領域に書き込み、読出指示に
応じて、該当する記録領域から読み出したデータを格納
手段111の該当する格納領域に格納する。The access means 115 accesses the storage means 1 according to the write instruction.
The data stored in the corresponding storage area of 11 is written to the corresponding storage area of the auxiliary storage device 101, and the data read from the corresponding storage area is stored in the corresponding storage area of the storage means 111 in response to the read instruction. .
全体として、欠陥がないとされた全ての記録領域につい
ての書込動作あるいは読出動作が終了した後に、制御手
段114が、保持手段113に保持された保留情報に基
づいて、該当する交代記録領域およびアドレスを指定し
て書込指示あるいは読出指示を行うように構成されてい
る。After the write operation or read operation for all the recording areas determined to be defect-free as a whole is completed, the control means 114 controls the corresponding replacement recording area and It is configured to issue a write instruction or a read instruction by specifying an address.
入力される書込要求あるいは読出要求で指定された複数
の記録領域のそれぞれに対応して、アドレス生成手段1
12により、格納手段111の複数の格納領域を順次に
指定するアドレスが生成される。Address generation means 1 corresponds to each of a plurality of recording areas specified by an input write request or read request.
12, addresses that sequentially designate a plurality of storage areas of the storage means 111 are generated.
また、制御手段114により、上述した書込要求あるい
は読出要求で指定された複数の記録領域のそれぞれに欠
陥があるか否かが判定され、欠陥がないとされたときに
、この制御手段114により、上述したアドレス生成手
段112によって生成されたアドレスと該当する記録領
域を指定して書込指示あるいは読出指示が行われる。こ
の制御手段114により、書込指示が行われた場合は、
この書込指示に応じて、アクセス手段115により、格
納手段111の該当する格納領域に格納されたデータが
補助記憶装置101の該当する記録領域に書き込まれる
。また、読出指示が行われた場合は、この読出指示に応
じて、アクセス手段115により、該当する記録領域か
らデータの読み出しが行われ、読み出されたデータが格
納手段111の該当する格納領域に格納される。Further, the control means 114 determines whether or not each of the plurality of recording areas specified in the above-mentioned write request or read request has a defect, and when it is determined that there is no defect, the control means 114 A write instruction or a read instruction is given by specifying the address generated by the address generating means 112 described above and the corresponding recording area. When a writing instruction is given by this control means 114,
In response to this write instruction, the access means 115 writes the data stored in the corresponding storage area of the storage means 111 to the corresponding recording area of the auxiliary storage device 101. Further, when a read instruction is given, the access means 115 reads data from the corresponding recording area in accordance with the read instruction, and the read data is stored in the corresponding storage area of the storage means 111. Stored.
一方、欠陥があるとされたときは、該当する記録領域に
対応するアドレスおよび交代記録領域に関する保留情報
を保持手段113に保持され、この記録領域についての
書込指示あるいは読出指示は保留される。また、欠陥が
ないとされた全ての記録領域についての書込動作あるい
は読出動作が終了した後に、制御手段114により、上
述した保留情報に基づいて、該当する交代記録領域およ
びアドレスを指定して書込指示あるいは読出指示が行わ
れ、これに応じて、アクセス手段115により、書込動
作あるいは読出動作が行われる。On the other hand, when it is determined that there is a defect, the address corresponding to the corresponding recording area and suspension information regarding the replacement recording area are held in the holding means 113, and write or read instructions for this recording area are suspended. Further, after the write operation or read operation for all the recording areas determined to be free of defects is completed, the control means 114 specifies and writes the corresponding replacement recording area and address based on the above-mentioned suspension information. A write instruction or a read instruction is issued, and in response, the access means 115 performs a write operation or a read operation.
本発明にあっては、指定された複数の記録領域の中の欠
陥のない記録領域に対する書込動作あるいは読出動作が
先に行われ、後に、交代記録領域に対する書込動作ある
いは読出動作が1行われる。In the present invention, a write operation or read operation is first performed on a recording area without defects among a plurality of designated recording areas, and then a write operation or read operation is performed on a replacement recording area in one line. be exposed.
従って、データ領域内の連続した記録領域が指定された
場合に、データ領域内の一連の記録領域の処理の途中で
交代記録領域の処理を行うことはない。これにより、交
代領域からデータ領域へ戻る際のシーク処理が不要とな
るので、シーク処理の回数を削減することが可能となる
。Therefore, when consecutive recording areas within the data area are specified, processing of the alternate recording area is not performed in the middle of processing a series of recording areas within the data area. This eliminates the need for seek processing when returning from the alternate area to the data area, making it possible to reduce the number of seek processes.
[実施例]
以下、図面に基づいて本発明の実施例について詳細に説
明する。[Example] Hereinafter, an example of the present invention will be described in detail based on the drawings.
第2図は、本発明の一実施例によるディスク制御装置の
構成図を示す。FIG. 2 shows a configuration diagram of a disk control device according to an embodiment of the present invention.
第2図において、201はホストコンピュータ(ホスト
)を、202は磁気ディスク装置を、210はディスク
制御装置をそれぞれ示しており、ディスク制御装置21
0は、ホスト201とディスク装置202との間のデー
タの授受の制御を行うようになっている。In FIG. 2, 201 represents a host computer (host), 202 represents a magnetic disk device, and 210 represents a disk control device.
0 controls data exchange between the host 201 and the disk device 202.
また、ディスク制御装置210において、211はマイ
クロプロセッサ(MPU)を、212はメモリを、21
3はインタフェース制御回路を、214はディスク制御
回路を、215はデータバッファを、216はバッファ
制御回路をそれぞれ示している。上述したMPU211
とメモリ212とインタフェース制御回路213とディ
スク制御回路214とバッファ制御回路216とは、バ
スを介して相互に接続されている。Further, in the disk control device 210, 211 is a microprocessor (MPU), 212 is a memory, and 21 is a microprocessor (MPU).
3 indicates an interface control circuit, 214 a disk control circuit, 215 a data buffer, and 216 a buffer control circuit. MPU211 mentioned above
, memory 212, interface control circuit 213, disk control circuit 214, and buffer control circuit 216 are interconnected via a bus.
磁気ディスク装置202には、複数のトラックからなる
磁気ディスクが備えられており、上述した複数(Dトラ
ックの1つが交代領域として確保され、他のトラックは
、データ領域として用いられている。また、上述した各
トラックは、それぞれn個のセクタから構成されており
、このセクタ単位でデータの読み出しおよび書き込みが
行われるようになっている。また、各セクタには「11
番からrnj番までの番号が付けられている。The magnetic disk device 202 is equipped with a magnetic disk consisting of a plurality of tracks, one of the above-mentioned plurality (D tracks) is secured as a replacement area, and the other tracks are used as a data area. Each of the above-mentioned tracks is composed of n sectors, and data is read and written in sector units.In addition, each sector has “11
They are numbered from number to rnj.
データバッファ215は、上述した磁気ディスク装置2
02の各セクタに相当する記憶容量を有するm個の記憶
領域に分割されており、各記憶領域にはrl、からr
mJまでの番号が付けられている。The data buffer 215 is the magnetic disk device 2 described above.
It is divided into m storage areas each having a storage capacity corresponding to each sector of 02, and each storage area has rl to r
They are numbered up to mJ.
バッファ制御回路216は、MPU211からの指示で
指定されたデータバッファ215の記憶領域に対するデ
ータの書き込みおよび読み出しの制御を行うようになっ
ている。The buffer control circuit 216 controls writing and reading of data to and from a storage area of the data buffer 215 designated by an instruction from the MPU 211.
インタフェース制御回路213は、ホスト201とディ
スク制御装置210との間の通信の処理を行うようにな
っており、また、ディスク制御回路214は、MPU2
11がらの指示に応じて、ディスク装置202へのデー
タの書込動作および読出動作を起動するようになってい
る。The interface control circuit 213 processes communication between the host 201 and the disk control device 210, and the disk control circuit 214 processes the communication between the host 201 and the disk control device 210.
In response to an instruction from 11, data writing and reading operations to and from the disk device 202 are started.
また、ディスク装置202から読み出されたデータは、
ディスク制御回路214により、上述したバッファ制御
回路216を介してデータバッファ215に一旦格納さ
れ、その後、インタフェース制御回路213により、バ
ッファ制御回路216を介して読み出され、ホス)20
1に転送されるようになっている。このとき、MPU2
11は、バッファ制御回路216にデバイスポインタP
。Furthermore, the data read from the disk device 202 is
The data is temporarily stored in the data buffer 215 by the disk control circuit 214 via the buffer control circuit 216 mentioned above, and then read out by the interface control circuit 213 via the buffer control circuit 216, and the data is stored in the data buffer 215 via the buffer control circuit 216 described above.
1. At this time, MPU2
11 indicates a device pointer P to the buffer control circuit 216.
.
を供給して、ディスク制御回路214からのデータを格
納するデータバッファ215の記憶領域を指示するとと
もに、ホストポインタPhを供給して、インタフェース
制御回路213によって読み出される記憶領域を指示す
るようになっている。The host pointer Ph is supplied to indicate the storage area of the data buffer 215 that stores data from the disk control circuit 214, and the host pointer Ph is supplied to indicate the storage area to be read by the interface control circuit 213. There is.
また、ホスト201から供給されたデータは、インタフ
ェース制御回路213により、バッファ制御回路216
を介してデータバッファ215に一旦格納され、°その
後、ディスク制御回路214により、バッファ制御回路
216を介して読み出されて、ディスク装W2O2に書
き込まれるようになっている。このとき、MPU211
は、上述したデバイスポインタP、およびホストポイン
タPhをバッファ制御回路216に供給し、データバッ
ファ215への格納動作および読出動作を制御するよう
になっている。Further, the data supplied from the host 201 is sent to the buffer control circuit 216 by the interface control circuit 213.
The data is temporarily stored in the data buffer 215 via the buffer control circuit 216, and then read out by the disk control circuit 214 via the buffer control circuit 216 and written to the disk drive W2O2. At this time, MPU211
supplies the above-described device pointer P and host pointer Ph to the buffer control circuit 216 to control the storage operation and read operation to the data buffer 215.
また、データ領域のトラックに含まれているセクタに欠
陥がある場合は、そのセクタに上述した交代領域のセク
タが割り当てられ、該当するトラックの障害情報記録部
に、欠陥があるセクタおよびそのセクタに割り当てられ
た交代領域のセクタに関する障害情報が記録されるよう
になっている。In addition, if a sector included in a track in the data area is defective, a sector in the above-mentioned replacement area is allocated to that sector, and the defective sector and its sector are recorded in the fault information recording section of the corresponding track. Failure information regarding sectors of the allocated replacement area is recorded.
例えば、欠陥があるセクタの番号とそのセクタに割り当
てられた交代領域のセクタの番号を障害情報として記録
すればよい。For example, the number of the defective sector and the number of the sector in the replacement area allocated to that sector may be recorded as failure information.
ディスク制御装置210のMPU211は、例えば磁気
ディスク装置202の立ち上げ時に、磁気ディスクに記
録された障害情報(後述する)の読出動作を起動して、
メモリ212内の交代情報テーブル221に、トラック
ごとに格納するようになっている。For example, when starting up the magnetic disk device 202, the MPU 211 of the disk control device 210 starts an operation to read failure information (described later) recorded on the magnetic disk.
The replacement information table 221 in the memory 212 stores the information for each track.
ここで、磁気ディスクのフォーマット時などに、欠陥が
あるセクタの番号およびそのセクタに割り当てられた交
代セクタの番号が各トラックの所定の領域に記録されて
おり、これらの情報を障害情報として読み出すようにす
ればよい。When formatting a magnetic disk, etc., the number of the defective sector and the number of the replacement sector assigned to that sector are recorded in a predetermined area of each track, and this information is read out as failure information. Just do it.
以下、ディスク制御装置210による入出力制御動作を
、ディスク装置202からのデータの読出動作とデータ
の書込動作とに分けて説明する。In the following, the input/output control operation by the disk controller 210 will be explained separately into an operation for reading data from the disk device 202 and an operation for writing data.
第3図(a)は、磁気ディスク装置202からのデータ
の読出動作を表す流れ図を、第3図(′b)は、データ
バッファ215からホスト201へのデータの転送処理
動作を表す流れ図を示す。FIG. 3(a) is a flowchart showing the operation of reading data from the magnetic disk device 202, and FIG. 3('b) is a flowchart showing the operation of transferring data from the data buffer 215 to the host 201. .
第4図(a)は、ホスト201からデータバッファ21
5へのデータの転送処理動作を表す流れ図を、第4図(
ハ)は、磁気ディスク装置202へのデータの書込動作
を表す流れ図を示す。FIG. 4(a) shows data from the host 201 to the data buffer 21.
A flowchart representing the data transfer processing operation to 5 is shown in Figure 4 (
c) shows a flowchart representing the operation of writing data to the magnetic disk device 202.
例えば、ホスト201により、トラック「Ajの4つの
連続したセクタrIJ、f2j、r3J。For example, the host 201 selects four consecutive sectors rIJ, f2j, r3J of track “Aj.
r4」を指定したデータの読み出しが指示された場合に
ついて、磁気ディスク装置202からのデータの読み出
し動作およびホスト201へノデータの転送動作を説明
する。The operation of reading data from the magnetic disk device 202 and the operation of transferring data to the host 201 will be described in the case where reading of data with "r4" specified is instructed.
ホスト201からの指示に応じて、ディスク制御装置2
10のMPU211は、まず、デバイスポインタPa
とホストポインタP、とに初期値を設定する。例えば、
デバイスポインタP4とホストポインタP1とに、デー
タバッファ215のrIJ番の記憶領域を示す初期値r
lJを設定すればよい。また、このとき、障害ポインタ
P、(後述する)にも初期値r1.が設定される(ステ
ップ301.ステップ321)。In response to instructions from the host 201, the disk controller 2
The MPU 211 of No. 10 first uses the device pointer Pa.
Initial values are set for and host pointer P. for example,
An initial value r indicating the storage area number rIJ of the data buffer 215 is set in the device pointer P4 and the host pointer P1.
It is sufficient to set lJ. At this time, the failure pointer P (described later) also has an initial value r1. is set (step 301. step 321).
次ニ、MPU211は、上述したセクタr11〜「4」
のそれぞれについて順次にメモリ212の交代情報テー
ブル221を参照して、各セクタが欠陥のない正常なセ
クタであるか否かを判定する(ステップ302)。例え
ば、上述した交代情報テーブル221に、上述したセク
タrlJを示す番号rl」が格納されていない場合は、
MPU211はこのセクタ「IJは正常なセクタである
と判定する。Next, the MPU 211 selects the sectors r11 to “4” mentioned above.
The replacement information table 221 in the memory 212 is sequentially referred to for each sector, and it is determined whether each sector is a normal sector with no defects (step 302). For example, if the above-mentioned replacement information table 221 does not store the above-mentioned number rl indicating the sector rlJ,
The MPU 211 determines that this sector "IJ" is a normal sector.
このように、上述したステップ302における肯定判定
となった場合は、MPU211は、ディスク制御回路2
14に対して、指定されたセクタについての読み出し動
作を指示する(ステップ303)。この指示に応じて、
ディスク制御回路214により、ディスク装置202に
よる読出動作が起動され、読み出されたデータは、バッ
ファ制御回路216により、デバイスポインタP、で示
されたデータバッファ215のfIJ番の記憶領域に格
納される。In this way, if the determination in step 302 described above is affirmative, the MPU 211 controls the disk control circuit 2.
14 to perform a read operation for the designated sector (step 303). According to this instruction,
The disk control circuit 214 activates the read operation by the disk device 202, and the buffer control circuit 216 stores the read data in the storage area fIJ of the data buffer 215 indicated by the device pointer P. .
その後、MPU211は、上述したデバイスポインタP
4で示される記憶領域の次の番号(例えばr2j番)を
デバイスポインタP、に設定する(ステップ304)。After that, the MPU 211 uses the device pointer P mentioned above.
The next number (for example, number r2j) of the storage area indicated by 4 is set in the device pointer P (step 304).
また、MPU211は、ステップ305において、それ
までに処理した各セクタの中に欠陥があるセクタが含ま
れていたか否かを判定し、否定判定の場合は、上述した
ステップ304と同様にして障害ポインタP、を更新し
くステップ3o6)、肯定判定の場合は、障害ポインタ
P0の更新を行わない。Further, in step 305, the MPU 211 determines whether or not a defective sector is included among the sectors processed so far, and if the determination is negative, the MPU 211 returns the fault pointer in the same manner as in step 304 described above. In step 3o6), if the determination is affirmative, the failure pointer P0 is not updated.
従って、正常なセクタが連続して指定された場合は、デ
ィスク制御回路214による各セクタの読み出しが順次
に行われ、データバッファ215に格納されるとともに
、デバイスポインタP4および障害ポインタP、が順次
に更新される。Therefore, when normal sectors are specified consecutively, each sector is sequentially read by the disk control circuit 214 and stored in the data buffer 215, and the device pointer P4 and fault pointer P are sequentially read. Updated.
一方、例えば、セクタr3.に欠陥があり、このセクタ
r3Jに交代セクタとして交代領域のセクタra」が割
り当てられている場合は、交代情報テーブル221にセ
クタ「31を示す番号r3Jが格納されている。この場
合は、MPU211はセクタr3jに欠陥があると判定
し、上述したステップ302における否定判定となる。On the other hand, for example, sector r3. If there is a defect in sector r3J and sector ra in the replacement area is allocated as a replacement sector to this sector r3J, the number r3J indicating sector 31 is stored in the replacement information table 221. In this case, the MPU 211 It is determined that sector r3j is defective, resulting in a negative determination in step 302 described above.
この場合は、MPU211は、メモリ212内に障害ポ
インタ格納部222を設け、このときの障害ポインタP
、の値と欠陥があるとされたセクタ(例えばセクタr3
J)に対応する交代セクタの番号を格納しくステップ3
07)、その後、ステップ304と同様にして、デバイ
スポインタP、を更新して(ステップ308)、次のセ
クタ(例えばセクタr41)の処理を行う。In this case, the MPU 211 provides a fault pointer storage section 222 in the memory 212, and stores the fault pointer P at this time.
, and the sector determined to be defective (for example, sector r3
Step 3: Store the number of the replacement sector corresponding to J).
07), and thereafter, similarly to step 304, the device pointer P is updated (step 308), and the next sector (for example, sector r41) is processed.
このように、欠陥があるセクタについては、障害ポイン
タP、の値を障害ポインタ格納部222に保持して、該
当する交代セクタについての読出処理をスキップし、正
常なセクタについての読出処理を先に行う。上述した障
害ポインタP、の値は、欠陥があると判断されたセクタ
に対応するデータバッファ215の記憶領域を示してい
る。In this way, for a defective sector, the value of the fault pointer P is held in the fault pointer storage unit 222, the read process for the corresponding replacement sector is skipped, and the read process for the normal sector is performed first. conduct. The value of the fault pointer P described above indicates the storage area of the data buffer 215 corresponding to the sector determined to be defective.
ここで、MPU211は、ステップ305において、上
述した障害ポインタ格納部222を参照し、障害ポイン
タP0が格納されているか否かに基づいて、欠陥がある
とされて読出処理をスキップしたセクタがあるか否かを
判定するようにすればよい。Here, in step 305, the MPU 211 refers to the above-mentioned failure pointer storage unit 222, and based on whether or not the failure pointer P0 is stored, determines whether there is a sector that has been determined to be defective and has skipped the read process. What is necessary is to determine whether or not this is the case.
また、MPU211は、上述したステップ302〜ステ
ツプ308の処理をホスト201から指定された全ての
セクタについて繰り返し、ステップ309において全て
のセクタについての処理が終了したと判定されたときに
、上述した障害ポインタ格納部222に格納された障害
ポインタP。Furthermore, the MPU 211 repeats the processing from step 302 to step 308 described above for all sectors designated by the host 201, and when it is determined in step 309 that the processing for all sectors has been completed, the MPU 211 returns the fault pointer described above. Fault pointer P stored in storage unit 222.
および交代セクタに関する情報に基づいて、交代セクタ
の処理を行う(ステップ310)。その後、MPU21
1は、上述した障害ポインタP0にデバイスポインタP
dO値を設定しくステップ311)、処理を終了する。The replacement sector is processed based on the information regarding the replacement sector and the replacement sector (step 310). After that, MPU21
1 is the device pointer P to the fault pointer P0 mentioned above.
The dO value is set (step 311), and the process ends.
ところで、上述したディスク制御回路214によるデー
タの格納動作と並行して、インタフェース制御回路21
3により、データバッファ215からのデータの読出動
作が行われている。By the way, in parallel with the data storage operation by the disk control circuit 214 described above, the interface control circuit 21
3, data is being read from the data buffer 215.
上述したステップ306において、障害ポインタP、が
順次に更新されている間は、MPU211により、上述
したホストポインタPbO値が障害ポインタP、よりも
小さいと判定され、ステップ322における肯定判定と
なる。In step 306 described above, while the failure pointer P is being sequentially updated, the MPU 211 determines that the host pointer PbO value described above is smaller than the failure pointer P, resulting in an affirmative determination in step 322.
この場合は、バッファ制御回路216により、ホストポ
インタPあて示されるデータバッファ215の記憶領域
の内容が、インタフェース制御回路213に供給され、
これに応じて、インタフェース制御回路213により、
ホスト201へのデータの転送処理が行われる(ステッ
プ323)。In this case, the buffer control circuit 216 supplies the contents of the storage area of the data buffer 215 addressed to the host pointer P to the interface control circuit 213,
In response, the interface control circuit 213
Data transfer processing to the host 201 is performed (step 323).
このとき、MPU211は、ホストポインタP1を更新
しくステップ324L全でのセクタについての転送処理
が終了したか否かを判定しくステップ325)、このス
テップ325における肯定判定となるまで、上述したス
テップ322〜ステツプ325を繰り返す。At this time, the MPU 211 updates the host pointer P1 and determines whether or not the transfer processing for all sectors in step 324L has been completed (step 325), and continues until an affirmative determination is made in step 325, as described in steps 322 to 324L. Repeat step 325.
一方、上述したステップ322における否定判定の場合
は、ステップ322を繰り返す。On the other hand, in the case of a negative determination in step 322 described above, step 322 is repeated.
従って、この場合は、インタフェース制御回路213に
よる転送動作は一旦停止され、その後、上述したステッ
プ310において交代セクタの処理が終了し、障害ポイ
ンタP0が更新されたときに再開され、例えば、上述し
たセクタr3J以降の各セクタのデータがホスト201
に転送される。Therefore, in this case, the transfer operation by the interface control circuit 213 is temporarily stopped, and then restarted when the replacement sector processing is completed in step 310 described above and the failure pointer P0 is updated. The data in each sector after r3J is stored in the host 201.
will be forwarded to.
このようにして、セクタ「11〜r4Jに対応する読出
データが、順次にホスト201に転送される。In this way, the read data corresponding to sectors "11 to r4J" are sequentially transferred to the host 201.
以下、ホスト201からのデータを上述した磁気ディス
ク装置202のトラックr A Jのセクタrla〜セ
クタr41に書き込む動作について説明する。The operation of writing data from the host 201 to sectors rla to sector r41 of track rAJ of the above-mentioned magnetic disk device 202 will be described below.
まず、MPU211は、上述したステップ301.32
1と同様にして、ホストポインタPb。First, the MPU 211 performs step 301.32 described above.
Similarly to 1, host pointer Pb.
デバイスポインタPd+障害ポインタP、のそれぞれに
初期値r14を設定する(ステップ401゜421)。An initial value r14 is set for each of the device pointer Pd+failure pointer P (steps 401 and 421).
ホスト201から供給されたデータは、インタフェース
制御回路213により、順次にバッファ制御回路216
に転送され、このバッファ制御回路216により、ホス
トポインタP、で示されるデータバッファ215の記憶
領域に格納される(ステップ402)。また、このステ
ップ402の処理後、MPU211はホストポインタP
hを更新しくステップ403)、ステップ404におい
て、全てのセクタについての処理が終了したと判定され
るまで、上述したステップ402〜ステツプ404の処
理を行う。The data supplied from the host 201 is sequentially sent to the buffer control circuit 216 by the interface control circuit 213.
The buffer control circuit 216 stores the data in the storage area of the data buffer 215 indicated by the host pointer P (step 402). Furthermore, after the processing in step 402, the MPU 211 uses the host pointer P
h is updated (step 403), and the above-described steps 402 to 404 are performed until it is determined in step 404 that the processing for all sectors has been completed.
また、上述したデータバッファ215へのデータの格納
動作が開始されると、ホストポインタPhよりもデバイ
スポインタP、が小さくなるので、ステップ422にお
ける肯定判定となり、データバッファ215からのデー
タの読出処理および磁気ディスク装置202への書込処
理が開始される。Furthermore, when the data storage operation to the data buffer 215 described above is started, the device pointer P becomes smaller than the host pointer Ph, so an affirmative determination is made in step 422, and the data reading process from the data buffer 215 and Writing processing to the magnetic disk device 202 is started.
MPU211は、交代情報テーブル221に基づいて、
デバイスポインタP4に対応する記憶領域に格納されて
いるデータの書込先として指定されたセクタが、欠陥の
ない正常なセクタであるか否かを判定しくステップ42
3)、否定判定の場合は、該当するセクタについての書
込処理をスキップする。この場合は、上述したステップ
307と同様にして、障害ポインタP1と交代セクタの
番号を障害ポインタ格納部222に格納する(ステップ
424)とともに、ステップ308と同様に、デバイス
ポインタP4のみを更新する(ステップ425)。Based on the replacement information table 221, the MPU 211
Step 42: Determine whether or not the sector designated as the write destination for the data stored in the storage area corresponding to device pointer P4 is a normal sector with no defects.
3) If the determination is negative, write processing for the corresponding sector is skipped. In this case, similar to step 307 described above, the fault pointer P1 and the replacement sector number are stored in the fault pointer storage unit 222 (step 424), and only the device pointer P4 is updated similarly to step 308 ( step 425).
一方、上述したステップ423における肯定判定の場合
は、従来と同様にして、バッファ制御回路216により
、デバイスポインタPdに対応する記憶領域に格納され
たデータが、ディスク制御回路214に供給され、この
データが指定されたセクタに書き込まれる(ステップ4
26)。また、このステップ426の処理の終了後、M
PU211はデバイスポインタPaを更新する(ステッ
プ427)。On the other hand, in the case of an affirmative determination in step 423 described above, the buffer control circuit 216 supplies the data stored in the storage area corresponding to the device pointer Pd to the disk control circuit 214, and this data is written to the specified sector (step 4
26). Furthermore, after the process of step 426 is completed, M
The PU 211 updates the device pointer Pa (step 427).
また、ステップ428において、それまでに書込処理を
スキップしたセクタがないと判定された場合(ステップ
428における否定判定の場合)は、MPU211は障
害ポインタP、の更新を行い(ステップ429)、ステ
ップ428における肯定判定の場合は、障害ポインタP
、の更新を行うことなく次のセクタについての処理を行
う。Furthermore, if it is determined in step 428 that there is no sector for which write processing has been skipped up to that point (in the case of a negative determination in step 428), the MPU 211 updates the failure pointer P (step 429), and In the case of an affirmative determination in 428, the failure pointer P
, performs processing on the next sector without updating.
また、全てのセクタについてのステップ422〜ステツ
プ429の処理が終了したと判定されたときに、ステッ
プ430における肯定判定となり、障害ポインタ格納部
222に格納された障害ポインタP、と交代セクタの番
号とに基づいて、交代セクタについての書込処理を行い
(ステップ431)、障害ポインタP1にデバイスポイ
ンタPdO値を設定した(ステップ432)後に処理を
終了する。Further, when it is determined that the processing of steps 422 to 429 for all sectors has been completed, an affirmative determination is made in step 430, and the failure pointer P stored in the failure pointer storage unit 222 and the number of the replacement sector are Based on this, write processing is performed for the replacement sector (step 431), and the device pointer PdO value is set in the failure pointer P1 (step 432), after which the processing ends.
上述したように、交代情報テーブル221に基づいて、
読出動作あるいは書込動作の対象として指定されたセク
タが欠陥を含むセクタであるか否かを判定し、この欠陥
を含むセクタについての読出処理および書込処理をスキ
ップする。また、このとき、欠陥を含むセクタに対応す
るデータバッファ215の記憶領域を示す障害ポインタ
P、と上述したセクタに対応する交代セクタに関する情
報を障害ポインタ格納部222に保持しておく。As mentioned above, based on the substitution information table 221,
It is determined whether a sector designated as a target for a read operation or a write operation is a defective sector, and read processing and write processing for the defective sector are skipped. Also, at this time, the fault pointer P indicating the storage area of the data buffer 215 corresponding to the sector containing the defect and information regarding the replacement sector corresponding to the sector described above are held in the fault pointer storage unit 222.
また、正常なセクタについての処理が全て終了した後に
、障害ポインタ格納部222に基づいて、交代セクタに
ついての読出処理あるいは書込処理を行う。Further, after all the processing for normal sectors is completed, read processing or write processing for replacement sectors is performed based on the failure pointer storage unit 222.
従って、連続したセクタの中に欠陥があるセクタが含ま
れている場合でも、交代領域から通常のデータ領域に戻
る際のシーク処理を行うことなく、指定された全てのセ
クタについての読出処理あるいは書込処理を行うことが
できる。Therefore, even if a defective sector is included in consecutive sectors, all specified sectors can be read or written without performing seek processing when returning from the replacement area to the normal data area. It is possible to carry out processing.
これにより、シーク処理の回数を削減することが可能と
なり、磁気ディスク装置202に対するアクセスに要す
る時間を短縮することができる。This makes it possible to reduce the number of seek processes and shorten the time required to access the magnetic disk device 202.
なお、上述した障害ポインタ格納部222に格納される
障害ポインタP8の数に制限はなく、複数の障害ポイン
タP0を格納するようにしてもよい。Note that there is no limit to the number of fault pointers P8 stored in the fault pointer storage section 222 described above, and a plurality of fault pointers P0 may be stored.
この場合は、上述したステップ309およびステップ4
29において、障害ポインタ格納部222に格納された
全ての交代セクタについての処理を順次に行い、これら
の処理が終了した後に、障害ポインタP0にデバイスポ
インタP、の値をセットすればよい。In this case, step 309 and step 4 described above
In step 29, all replacement sectors stored in the failure pointer storage unit 222 are sequentially processed, and after these processes are completed, the value of the device pointer P is set to the failure pointer P0.
上述したように、本発明によれば、連続した記録領域が
指定された場合に、連続した記録領域の処理の間に交代
領域の処理を行うことはなく、交代領域から元の連続し
た記録領域へ戻る際のシーク処理を不要として、シーク
処理の回数を削減することが可能となり、補助記憶装置
に対するアクセスに要する時間の短縮を図ることができ
る。As described above, according to the present invention, when consecutive recording areas are specified, processing of the replacement area is not performed between processing of the consecutive recording areas, and processing is performed from the replacement area to the original continuous recording area. By eliminating the need for a seek process when returning to the previous page, it is possible to reduce the number of seek processes, and it is possible to reduce the time required to access the auxiliary storage device.
第1図は本発明の原理ブロック図、
第2図は本発明の一実施例によるディスク制御装置の構
成図、
第3図、第4図は実施例の動作を表す流れ図、第5図は
従来のアクセス処理の説明図である。
図において、
101は補助記憶装置、
111は格納手段、
112はアドレス生成手段、
113は保持手段、
114は制御手段、
115はアクセス手段、
201はホストコンピュータ(ホスト)、202は磁気
ディスク装置、
210はディスク制御装置、
211はマイクロプロセッサ(MPU)、はメモリ、
はインタフェース制御回路、
はディスク制御回路、
はデータバッファ、
はバッファ制御回路、
は交代情報テーブル、
は障害ポインタ格納部である。
本発明の原理ブロック図
第1図
実施例による
磁気ディスク制御装置の構成図
実施例の動作を表す流れ図
第
図
第
図
交代領域のトラック
従来のア
ク
セ
ス処理の説明図
第
図
実施例の動作を表す流れ図
第
図Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a configuration diagram of a disk control device according to an embodiment of the present invention, Figs. 3 and 4 are flowcharts showing the operation of the embodiment, and Fig. 5 is a conventional FIG. 2 is an explanatory diagram of access processing. In the figure, 101 is an auxiliary storage device, 111 is a storage means, 112 is an address generation means, 113 is a holding means, 114 is a control means, 115 is an access means, 201 is a host computer (host), 202 is a magnetic disk device, 210 is a disk control device, 211 is a microprocessor (MPU), is a memory, is an interface control circuit, is a disk control circuit, is a data buffer, is a buffer control circuit, is a replacement information table, and is a failure pointer storage section. 1. Block diagram of the principles of the present invention. FIG. 1. Block diagram of the magnetic disk control device according to the embodiment. Flow chart showing the operation of the embodiment. Diagram
Claims (1)
領域に含まれる欠陥がある記録領域に割り当てられた交
代記録領域からなる交代領域とを有する補助記憶装置(
101)と、 前記補助記憶装置(101)の1つの記録領域に相当す
る容量を有する複数の格納領域からなる格納手段(11
1)と、 入力される書込要求あるいは読出要求で指定された複数
の記録領域のそれぞれに対応して、前記格納手段(11
1)の複数の格納領域を順次に指定するアドレスを生成
するアドレス生成手段(112)と、 前記書込要求あるいは読出要求で指定された複数の記録
領域のそれぞれに欠陥があるか否かを判定し、欠陥がな
いとされたときに、前記アドレス生成手段(112)に
よって生成されたアドレスと該当する記録領域を指定し
て書込指示あるいは読出指示を行い、欠陥があるとされ
たときに、該当する記録領域に対応するアドレスおよび
交代記録領域に関する保留情報を保持手段(113)に
保持するとともにこの記録領域についての書込指示ある
いは読出指示を保留する制御手段(114)と、 前記書込指示に応じて、前記格納手段(111)の該当
する格納領域に格納されたデータを前記補助記憶装置(
101)の該当する記録領域に書き込み、前記読出指示
に応じて、該当する記録領域から読み出したデータを前
記格納手段(111)の該当する格納領域に格納するア
クセス手段(115)と、 を備え、欠陥がないとされた全ての記録領域についての
書込動作あるいは読出動作が終了した後に、前記制御手
段(114)が、前記保持手段(113)に保持された
保留情報に基づいて、該当する交代記録領域およびアド
レスを指定して書込指示あるいは読出指示を行うように
構成することを特徴とする補助記憶制御方式。(1) Auxiliary storage device (
101), and a storage means (11) comprising a plurality of storage areas having a capacity equivalent to one recording area of the auxiliary storage device (101).
1), and the storage means (11) corresponding to each of the plurality of recording areas specified in the input write request or read request.
1) address generation means (112) for generating addresses that sequentially designate a plurality of storage areas; and determining whether each of the plurality of storage areas specified in the write request or read request has a defect. However, when it is determined that there is no defect, a write instruction or a read instruction is given by specifying the address generated by the address generating means (112) and the corresponding recording area, and when it is determined that there is a defect, a control means (114) for holding in a holding means (113) reservation information regarding an address corresponding to a corresponding recording area and a replacement recording area, and suspending a write instruction or a read instruction for this recording area; The data stored in the corresponding storage area of the storage means (111) is transferred to the auxiliary storage device (111) according to the storage means (111).
access means (115) for writing in the corresponding recording area of 101) and storing data read from the corresponding recording area in the corresponding storage area of the storage means (111) in response to the read instruction; After the write operation or read operation for all recording areas determined to be free of defects is completed, the control means (114) performs the corresponding replacement based on the reservation information held in the holding means (113). An auxiliary storage control method characterized by being configured to issue a write instruction or a read instruction by specifying a recording area and an address.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14381290A JPH0437924A (en) | 1990-06-01 | 1990-06-01 | Auxiliary storage control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14381290A JPH0437924A (en) | 1990-06-01 | 1990-06-01 | Auxiliary storage control method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0437924A true JPH0437924A (en) | 1992-02-07 |
Family
ID=15347544
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14381290A Pending JPH0437924A (en) | 1990-06-01 | 1990-06-01 | Auxiliary storage control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0437924A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005124770A1 (en) * | 2004-06-15 | 2005-12-29 | Matsushita Electric Industrial Co., Ltd. | Drive device |
-
1990
- 1990-06-01 JP JP14381290A patent/JPH0437924A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005124770A1 (en) * | 2004-06-15 | 2005-12-29 | Matsushita Electric Industrial Co., Ltd. | Drive device |
| JPWO2005124770A1 (en) * | 2004-06-15 | 2008-04-17 | 松下電器産業株式会社 | Drive device |
| JP2010049797A (en) * | 2004-06-15 | 2010-03-04 | Panasonic Corp | Drive device |
| US7907478B2 (en) | 2004-06-15 | 2011-03-15 | Panasonic Corporation | Drive device |
| JP4675321B2 (en) * | 2004-06-15 | 2011-04-20 | パナソニック株式会社 | Drive device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0223417A (en) | Information recording method and information recording medium | |
| JP3137346B2 (en) | Flexible magnetic disk drive | |
| JPH02281474A (en) | Auto changer device for storage medium | |
| JPS5860410A (en) | Magnetic disk control system | |
| JPH03240821A (en) | information recording device | |
| JPH0437924A (en) | Auxiliary storage control method | |
| JP2770917B2 (en) | Information recording / reproducing device | |
| JPH02278572A (en) | Alternative block processing system | |
| JP2003263276A (en) | Disk system and disk access method | |
| JPH04111030A (en) | Information recorder | |
| JPH04205021A (en) | Magnetic disk device | |
| JPH02197938A (en) | Restoring system for draw type optical disk directory | |
| JPH0421021A (en) | Data backup system for semiconductor disk device | |
| JPH05128735A (en) | Bad block alternation control method | |
| JPS62140275A (en) | Alternation allotment processing system | |
| JP3183253B2 (en) | Dynamic capacity increase method and dynamic capacity increase method for disk device | |
| JPS6041125A (en) | Control device of storage device | |
| JPH05109192A (en) | Data transfer method of array disk device | |
| JPH01122075A (en) | Access system to spare record | |
| JPH02213962A (en) | Cache memory control system for disk cache | |
| JPH02109151A (en) | Disk cache control system | |
| JPS59104712A (en) | Alterate track processing system of magnetic disk device | |
| JPS63271520A (en) | Data processor | |
| JPH06301489A (en) | Disk volume copy method | |
| JPS60243755A (en) | Disc cache control system |