JP2734865B2 - Continuous write processing method for disk device - Google Patents

Continuous write processing method for disk device

Info

Publication number
JP2734865B2
JP2734865B2 JP5302692A JP5302692A JP2734865B2 JP 2734865 B2 JP2734865 B2 JP 2734865B2 JP 5302692 A JP5302692 A JP 5302692A JP 5302692 A JP5302692 A JP 5302692A JP 2734865 B2 JP2734865 B2 JP 2734865B2
Authority
JP
Japan
Prior art keywords
data
write
disk
command
buffer memory
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
JP5302692A
Other languages
Japanese (ja)
Other versions
JPH05257609A (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 JP5302692A priority Critical patent/JP2734865B2/en
Publication of JPH05257609A publication Critical patent/JPH05257609A/en
Application granted granted Critical
Publication of JP2734865B2 publication Critical patent/JP2734865B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は書込みデータ範囲を指定
する書込み命令に続いてデータが転送された時、該デー
タの受信を報告するステータスを送出するプロトコルの
インタフェースを備えたディスク装置に係り、特に効率
の良いデータの受領を可能とするディスク装置の連続書
込み処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk drive having a protocol interface for transmitting a status reporting the reception of data when data is transferred following a write command for specifying a write data range. More particularly, the present invention relates to a continuous write processing method for a disk device that enables efficient data reception.

【0002】計算機システムの外部記憶装置として使用
される磁気ディスク装置には、SCSIインタフェース
の如く、上位装置から書込みデータのブロック数を指定
して書込みを指示する書込み命令に続いてデータが転送
された時、このデータを受信して受信状態を報告するス
テータスを送出することにより、順次データの受信を行
うように規定されたプロトコルのインタフェースを備え
たものがある。
2. Description of the Related Art Data is transferred to a magnetic disk device used as an external storage device of a computer system following a write command for designating writing by designating the number of blocks of write data from a host device such as a SCSI interface. In some cases, a protocol is provided which has an interface defined to receive the data and transmit a status for reporting the reception state, thereby sequentially receiving the data.

【0003】このようなインタフェースを備えた磁気デ
ィスク装置は、連続して書込み命令を受信した時、処理
の遅れからディスクの回転待ちが発生するが、この待ち
時間の発生は計算機システムの処理効率を低下させるた
め、防止されることが必要である。
In a magnetic disk device having such an interface, when a write command is continuously received, a disk rotation wait occurs due to a processing delay. However, the occurrence of the wait time reduces the processing efficiency of the computer system. It needs to be prevented in order to lower it.

【0004】[0004]

【従来の技術】図4は従来技術の一例を説明するブロッ
ク図で、図5は図4の動作を説明するタイムチャートで
ある。
2. Description of the Related Art FIG. 4 is a block diagram for explaining an example of the prior art, and FIG. 5 is a time chart for explaining the operation of FIG.

【0005】上位装置1はSCSIインタフェース規格
に基づき、書込みデータブロック数を指定して書込み命
令をディスク装置2のコマンド処理部3に送出する。コ
マンド処理部3は、図5(A) コマンド処理のAに示す期
間で、命令の受領を行い、続いて図5(A) コマンド処理
のBに示す期間で、ディスク制御部5が動作中かチェッ
クを行う。そして、ディスク制御部5がディスク媒体6
に対するデータの書込み制御を行っていない場合、図5
(A) コマンド処理のCに示す期間で、上位装置1から送
出されるデータを受領し、バッファメモリ4に書込む。
The host device 1 sends a write command to the command processing unit 3 of the disk device 2 by designating the number of write data blocks based on the SCSI interface standard. The command processing unit 3 receives the command during the period indicated by A in the command processing of FIG. 5A, and then checks whether the disk control unit 5 is operating during the period indicated by B in the command processing of FIG. Perform a check. Then, the disk control unit 5 sets the disk medium 6
FIG. 5 shows a case where the data write control to the
(A) During the period indicated by C in the command processing, data transmitted from the host device 1 is received and written into the buffer memory 4.

【0006】同時にコマンド処理部3はディスク制御部
5に指示して、図5(A) ディスク制御のFに示す期間
で、指定されたヘッドをディスク媒体6の指定されたシ
リンダに位置付けさせるシーク制御を行わせる。
At the same time, the command processing unit 3 instructs the disk control unit 5 to position the specified head at the specified cylinder of the disk medium 6 during the period indicated by F in FIG. Is performed.

【0007】そして、指定されたセクタにヘッドが位置
付けされると、図5(A) ディスク制御のGに示す期間
で、ディスク制御部5はバッファメモリ4に格納された
データを読出し、ディスク媒体6の指定されたセクタか
ら指定されたブロック数のデータを書込ませる。
When the head is positioned at the designated sector, the disk control unit 5 reads the data stored in the buffer memory 4 during the period indicated by G in FIG. Of the specified number of blocks from the specified sector.

【0008】コマンド処理部3は、このデータの書込み
完了をディスク制御部5から報告されると、図5(A) コ
マンド処理のDに示す期間で、ステータスを上位装置1
に送出し、図5(A) コマンド処理のEに示す期間で、次
の命令の受領を行う。
When the disk control unit 5 reports the completion of the data writing, the command processing unit 3 changes the status in the period indicated by D in the command processing of FIG.
And the next command is received in the period indicated by E in the command processing of FIG.

【0009】上記はライト・キャッシュ機能の無い場合
を説明したが、処理効率を高めるために、上位装置1か
らデータを受領して、バッファメモリ4に格納し終わっ
た時点で、上位装置にステータスを応答するライト・キ
ャッシュ機能が提供されている。
In the above description, the case where there is no write cache function has been described. However, in order to improve processing efficiency, when data is received from the host device 1 and stored in the buffer memory 4, the status is sent to the host device. A responsive write cache function is provided.

【0010】即ち、図5(B) コマンド処理のAに示す期
間で、コマンド処理部3は命令の受領を行い、図5(B)
コマンド処理のBに示す期間でディスク制御部5のチェ
ックを行う。そして、図5(B) コマンド処理のCに示す
期間でデータを受領してバッファメモリ4に書込む。
That is, in the period A shown in the command processing of FIG. 5B, the command processing unit 3 receives the command, and
The disk controller 5 is checked during the period indicated by B in the command processing. Then, the data is received and written in the buffer memory 4 during the period indicated by C in the command processing of FIG.

【0011】そして、図5(B) コマンド処理のDに示す
期間でステータスを上位装置1に送出し、図5(B) コマ
ンド処理のEに示す期間で次の命令を受領し、図5(B)
コマンド処理のFに示す期間でディスク制御部5のチェ
ックを行う。そして、ディスク制御部5のディスク媒体
6に対する制御が完了した時、図5(B) コマンド処理の
Gに示す期間で次のデータを受領して、バッファメモリ
4に書込む。
Then, the status is sent to the host device 1 in the period indicated by D in the command processing of FIG. 5B, and the next command is received in the period indicated by E in the command processing of FIG. B)
The disk control unit 5 is checked during the period indicated by F in the command processing. Then, when the control of the disk medium 6 by the disk control unit 5 is completed, the next data is received in the period indicated by G in the command processing of FIG.

【0012】又、コマンド処理部3は、図5(B) コマン
ド処理のCに示す期間で、データ受領を開始すると同時
に、ディスク制御部5に対し指示して、図5(B) ディス
ク制御のHに示す期間で、指定されたヘッドをディスク
媒体6の指定されたシリンダに位置付けさせるシーク制
御を行わせる。
The command processing section 3 starts receiving data in the period indicated by C in the command processing of FIG. 5B, and at the same time, instructs the disk control section 5 to execute the disk control of FIG. 5B. In the period indicated by H, seek control for positioning the designated head at the designated cylinder of the disk medium 6 is performed.

【0013】ディスク制御部5は、指定されたセクタに
ヘッドが位置付けされると、図5(B) ディスク制御のJ
に示す期間で、バッファメモリ4に格納されたデータを
読出し、ディスク媒体6の指定されたセクタから指定さ
れたブロック数のデータを書込ませる。
When the head is positioned at the designated sector, the disk control unit 5 executes the J of the disk control shown in FIG.
The data stored in the buffer memory 4 is read out during the period shown in (1), and data of a specified number of blocks is written from a specified sector of the disk medium 6.

【0014】そして、図5(B) ディスク制御のKに示す
期間で指定されたシリンダが同一であれば、ディスクの
回転待ちを行い、図5(B) ディスク制御のLに示す期間
で次のデータをバッファメモリ4から読出し、ディスク
媒体6の指定されたセクタから指定されたブロック数の
データを書込ませる。
If the designated cylinder is the same during the period indicated by K in the disk control of FIG. 5B, the disk waits for rotation, and during the period indicated by L in FIG. Data is read from the buffer memory 4 and data of a specified number of blocks is written from a specified sector of the disk medium 6.

【0015】[0015]

【発明が解決しようとする課題】図5(A) で説明した如
く、ライト・キャッシュ機能の無い場合、上位装置1は
図5(A) のCに示す期間でデータの転送を終了した後、
ディスク装置2のディスク媒体6に対するデータの書込
みが完了するまで、図5(A) のDに示すステータスが報
告されず、命令処理が終了しない。
As described with reference to FIG. 5A, when there is no write cache function, the host device 1 terminates the data transfer in the period indicated by C in FIG.
Until the writing of data to the disk medium 6 of the disk device 2 is completed, the status shown in D of FIG. 5A is not reported, and the instruction processing does not end.

【0016】ところで、上位装置1が送出するデータの
転送時間は、ディスク装置2がディスク媒体6にデータ
を書込む時間より短く、データ送出完了後、ステータス
報告を受けるまでの長い時間、即ち、図5(A) のCとD
の間、待つ必要があり、上位装置1の処理効率が低下す
るという問題がある。
The transfer time of the data sent by the host device 1 is shorter than the time for the disk device 2 to write the data to the disk medium 6, and the longer time from the completion of the data transmission until the status report is received, that is, FIG. 5 (A) C and D
During this time, there is a problem that the processing efficiency of the host device 1 is reduced.

【0017】又、図5(B) で説明した如く、ライト・キ
ャッシュ機能を備えた場合、上位装置1から書込み命令
が連続して送出された時、図5(B) のFで示す期間は、
Jで示すデータ書込み時間に左右され、ディスク媒体6
に対するデータの書込みが完了しないと、図5(B) のG
で示す次のデータ受領が出来ない。
As described with reference to FIG. 5B, when the write cache function is provided, when a write command is continuously transmitted from the host device 1, the period indicated by F in FIG. ,
Depending on the data writing time indicated by J, the disk medium 6
If the writing of the data to is not completed, G in FIG.
The next data indicated by cannot be received.

【0018】従って、図5(B) のCで示すデータブロッ
クの書込まれたセクタに続くセクタに、図5(B) のGで
示すデータブロックが書込まれる場合、目的セクタがヘ
ッドの位置を通過してしまうため、図5(B) のKに示す
期間、ディスク媒体6の回転待ちが発生する。このた
め、上位装置1の処理効率が低下するという問題があ
る。
Therefore, when the data block indicated by G in FIG. 5B is written in the sector following the sector in which the data block indicated by C in FIG. 5B is written, the target sector is located at the head position. , The disk medium 6 waits for rotation during the period indicated by K in FIG. 5B. For this reason, there is a problem that the processing efficiency of the host device 1 is reduced.

【0019】本発明はこのような問題点に鑑み、書込み
命令が連続して発行された時、前のデータブロックに、
次のデータブロックが連続しており、且つ、ディスク制
御部5がデータの書込み制御中であれば、連続して次の
命令のデータの受領を行ってバッファメモリ4に格納さ
せ、ディスク媒体6の回転待ちを発生させることなく、
連続してデータの書込みを行わせることを目的としてい
る。
The present invention has been made in view of such a problem, and when a write command is continuously issued, the previous data block
If the next data block is continuous and the disk control unit 5 is under data write control, the data of the next instruction is continuously received and stored in the buffer memory 4, and Without causing rotation waiting,
It is intended to write data continuously.

【0020】[0020]

【課題を解決するための手段】そして、この目的は図1
に示されるように、上位装置1から書込みデータのブロ
ック数を指定して書込みを指示する書込み命令に続いて
データが転送された時、このデータを受信して受信状態
を報告するステータスを送出することにより、順次デー
タの受信を行うように規定されたプロトコルのインタフ
ェース9と、受信したデータブロックを格納するバッフ
ァメモリ4と、このバッファメモリ4に格納されたデー
タブロックをディスク媒体6に書込む制御を行うディス
ク制御部5と、前記上位装置1が送出する命令に基づ
き、この上位装置1が送出するデータを該バッファメモ
リ4に書込むと共に、このディスク制御部5にデータの
書込みを指示するコマンド処理部8とを備えたディスク
装置7において、前記上位装置1が連続して書込み命令
を送出した時、前の書込みデータブロックと次に書込む
データブロックとが連続しているか否かを照合し、連続
している場合は、前記バッファメモリ4に前の書込みデ
ータの格納が完了した時点で前記ステータスを上位装置
1に送出して、次の書込みデータを送出させ、バッファ
メモリ4に前のデータブロックに続いて格納させること
により、前記ディスク制御部5に連続して前記ディスク
媒体6に対するデータの書込みを実行させることにより
達成される。
Means for Solving the Problems The purpose of the present invention is shown in FIG.
As shown in (2), when data is transferred following a write command instructing writing by designating the number of blocks of write data from the higher-level device 1, the data is received and a status for reporting a reception state is transmitted. Thereby, an interface 9 of a protocol defined to sequentially receive data, a buffer memory 4 for storing received data blocks, and a control for writing the data blocks stored in the buffer memory 4 to the disk medium 6 And a command for writing data transmitted by the higher-level device 1 to the buffer memory 4 and instructing the disk controller 5 to write data based on a command transmitted by the higher-level device 1. In the disk device 7 including the processing unit 8, when the host device 1 continuously sends a write command, It is checked whether the data block to be written and the data block to be written next are continuous. If the data blocks are continuous, when the storage of the previous write data in the buffer memory 4 is completed, the status is changed to the host device. 1 to cause the next write data to be transmitted and to be stored in the buffer memory 4 following the previous data block, thereby causing the disk control unit 5 to continuously write data to the disk medium 6. This is achieved by:

【0021】[0021]

【作用】上記の如く構成することにより、バッファメモ
リ4には、連続した書込み命令が夫々指定する数のデー
タブロックが複数連続して格納されるため、ディスク制
御部5はディスク媒体6の回転待ちをすることなく、デ
ィスク媒体6の連続したセクタにデータブロックを連続
して書込むことが出来る。
With the above configuration, a plurality of data blocks each of which is designated by a continuous write command are continuously stored in the buffer memory 4, so that the disk control unit 5 waits for the rotation of the disk medium 6. The data blocks can be continuously written in continuous sectors of the disk medium 6 without performing the above operation.

【0022】[0022]

【実施例】図1は本発明の一実施例を示す回路のブロッ
ク図で、図2は図1の動作を説明するタイムチャートで
ある。
1 is a block diagram of a circuit showing an embodiment of the present invention, and FIG. 2 is a time chart for explaining the operation of FIG.

【0023】上位装置1はSCSIインタフェースの如
く、上位装置1から書込みデータのブロック数を指定し
て書込みを指示する書込み命令に続いてデータが転送さ
れた時、このデータを受信して受信状態を報告するステ
ータスを送出することにより、順次データの受信を行う
ように規定されたプロトコルのインタフェース9を経
て、書込みデータブロック数を指定して書込み命令をデ
ィスク装置7のコマンド処理部8に送出する。
When data is transferred following a write command instructing writing by designating the number of blocks of write data from the host device 1 such as a SCSI interface, the host device 1 receives this data and changes the reception state. By sending the status to be reported, the write command is sent to the command processing unit 8 of the disk device 7 by specifying the number of write data blocks via the interface 9 of the protocol specified to sequentially receive data.

【0024】コマンド処理部8は、図2コマンド処理の
Aに示す期間で、命令の受領を行い、続いて図2コマン
ド処理のBに示す期間で、ディスク制御部5のチェック
を行う。そして、ディスク制御部5がディスク媒体6に
対するデータの書込み制御を行っていない場合、図2コ
マンド処理のCに示す期間で、上位装置1から送出され
るデータを受領し、バッファメモリ4に書込む。
The command processing section 8 receives the command during the period indicated by A in the command processing of FIG. 2, and then checks the disk control section 5 during the period indicated by B in the command processing of FIG. Then, when the disk control unit 5 does not control the writing of data to the disk medium 6, the data transmitted from the host device 1 is received and written into the buffer memory 4 during the period indicated by C in the command processing of FIG. .

【0025】同時にコマンド処理部8はディスク制御部
5に指示して、図2ディスク制御のJに示す期間で、指
定されたヘッドをディスク媒体6の指定されたシリンダ
に位置付けさせるシーク制御を行わせる。
At the same time, the command processing unit 8 instructs the disk control unit 5 to perform seek control for positioning the specified head to the specified cylinder of the disk medium 6 during the period indicated by J in FIG. .

【0026】従って、ディスク制御部5は指定されたセ
クタにヘッドが位置付けされると、図2ディスク制御の
Kに示す期間で、バッファメモリ4に格納されたデータ
を読出し、指定されたヘッドに送出して、指定されたセ
クタから指定されたブロック数のデータを書込ませる。
Therefore, when the head is positioned at the designated sector, the disk control unit 5 reads out the data stored in the buffer memory 4 during the period indicated by K in the disk control in FIG. Then, data of a specified number of blocks is written from a specified sector.

【0027】コマンド処理部8は、上記の如く、ディス
ク制御部5にディスク媒体6に対するデータの書込みを
開始させると、図2コマンド処理のDに示す期間でステ
ータスを上位装置1に送出し、図2コマンド処理のEに
示す期間で次の命令を受領すると、図2コマンド処理の
Fに示す期間でディスク制御部5のチェックを行う。
When the command processing unit 8 causes the disk control unit 5 to start writing data to the disk medium 6 as described above, the command processing unit 8 sends a status to the host device 1 in a period indicated by D in FIG. When the next command is received during the period indicated by E in the two-command processing, the disk controller 5 is checked during the period indicated by F in the command processing of FIG.

【0028】そして、ディスク制御部5のディスク媒体
6に対する書込み制御が継続していると、予め上位装置
1から書込み命令により与えられている現在ディスク媒
体6に書込み中のデータブロックの最終ブロックの論理
アドレスと、上記次の書込み命令で書込みを指示してい
るデータブロックの先頭ブロックの論理アドレスとを照
合し、前の書込み命令に基づくデータブロックと次の書
込み命令に基づくデータブロックとが連続していると、
図2コマンド処理のGに示す期間で次のデータを受領し
て、バッファメモリ4に書込む。
If the write control of the disk control unit 5 to the disk medium 6 is continued, the logic of the last block of the data block currently being written to the disk medium 6 given by the write command from the host device 1 in advance. The address is compared with the logical address of the first block of the data block instructed to be written by the next write command, and the data block based on the previous write command and the data block based on the next write command are continuously output. You have
The next data is received in the period indicated by G in the command processing of FIG.

【0029】この時、コマンド処理部8は、バッファメ
モリ4には前に格納されたデータブロックが存在するた
め、このデータブロックの後に続けて次の書込み命令に
基づくデータブロックを順次格納させる。
At this time, since the data block stored before exists in the buffer memory 4, the command processing unit 8 sequentially stores the data block based on the next write instruction following this data block.

【0030】そして、コマンド処理部8は、図2コマン
ド処理のGに示す期間で次の書込み命令に基づくデータ
ブロックをバッファメモリ4に格納し終わると、図2コ
マンド処理のHに示す期間でステータスを上位装置1に
送出する。
When the command processing unit 8 finishes storing the data block based on the next write command in the buffer memory 4 during the period indicated by G in the command processing in FIG. 2, the command processing unit 8 returns the status in the period indicated by H in the command processing in FIG. To the host device 1.

【0031】従って、上位装置1は更に書込み命令が継
続する場合、次の書込み命令を送出し、ディスク装置7
は上記の動作を繰り返す。ディスク制御部5は、図2デ
ィスク制御のKに示す期間で、ディスク媒体6に対する
データブロックの書込みを完了させると、バッファメモ
リ4には連続するデータブロックが格納されているた
め、図2ディスク制御のLに示す期間で、次の書込み命
令に基づくデータブロックをディスク媒体6に継続して
書込ませる。
Therefore, when the write command is further continued, the host device 1 sends the next write command and the disk device 7
Repeats the above operation. When the writing of data blocks to the disk medium 6 is completed during the period indicated by K in the disk control of FIG. 2, the disk control unit 5 stores continuous data blocks in the buffer memory 4. In the period indicated by L, the data block based on the next write command is continuously written to the disk medium 6.

【0032】従って、例えば、1トラックを1周するの
に要する時間が10msで、1トラックにデータブロッ
クが100ブロック存在するディスク装置の場合、1ブ
ロックの処理時間は、10ms÷100=0.1msとな
る。もし、上位装置1が90ブロックを処理するのに、
書込み命令を30ブロック毎で3回に分けて発行した場
合、従来の処理方法では下記のようになる。
Therefore, for example, in the case of a disk device in which the time required to make one round of one track is 10 ms and there are 100 data blocks in one track, the processing time of one block is 10 ms ÷ 100 = 0.1 ms Becomes If the host device 1 processes 90 blocks,
When a write command is issued three times every 30 blocks, the conventional processing method is as follows.

【0033】 90ブロックの書込み時間 =0.1ms ×30+10ms+0.1ms ×30+10ms+0.1ms ×30=29ms 本発明では、ディスクの回転待ち時間10ms×2=20ms
が削減出来るため、90ブロックの書込み時間として9
msを期待することが出来る。
Write time of 90 blocks = 0.1 ms × 30 + 10 ms + 0.1 ms × 30 + 10 ms + 0.1 ms × 30 = 29 ms In the present invention, the disk rotation waiting time 10 ms × 2 = 20 ms
Can be reduced, and the writing time for 90 blocks is 9
ms can be expected.

【0034】上記実施例では、前の書込み命令と次の書
込み命令に基づくデータブロックが連続している場合に
付いて説明てたが、前の書込み命令と次の書込み命令に
基づくデータブロックが、複数ブロック離れていても、
ディスクの回転待ち時間が少ないため、上記同様の処理
により連続してデータの受領を行って良いことは勿論で
ある。即ち、図2のKとLの間が数ブロック分空いても
処理効率の低下は少ない。
In the above embodiment, the case where the data block based on the previous write command and the next write command are continuous has been described, but the data block based on the previous write command and the next write command is Even if you are several blocks away,
Since the rotation waiting time of the disk is short, it is a matter of course that data can be continuously received by the same processing as described above. That is, even if there is a space between K and L in FIG.

【0035】図3は本発明の命令処理を説明するフロー
チャートである。コマンド処理部8は、ステップ(1) で
書込み命令を受領すると、ステップ(2)でディスク制御
部5は動作中か調べる。即ち、ディスク媒体6に対する
データの書込み制御中か否かを調べる。
FIG. 3 is a flowchart for explaining the instruction processing of the present invention. Upon receiving the write command in step (1), the command processing unit 8 checks in step (2) whether the disk control unit 5 is operating. That is, it is checked whether or not data writing control to the disk medium 6 is being performed.

【0036】ディスク制御部5が動作中で無ければ、ス
テップ(3) でディスク制御部5に指示して、シーク動作
を行わせてステップ(5) の処理に移行し、ディスク制御
部5が動作中であれば、ステップ(4) でデータブロック
は連続しているか調べる。即ち、前の書込み命令による
データブロックと、次の書込み命令によるデータブロッ
クが連続しているか調べる。
If the disk control unit 5 is not operating, the disk control unit 5 is instructed in step (3) to perform a seek operation, and the process proceeds to step (5). If it is medium, check in step (4) whether the data blocks are continuous. That is, it is checked whether the data block according to the previous write instruction and the data block according to the next write instruction are continuous.

【0037】ステップ(4) でデータブロックが連続して
いなければ、ステップ(3) の処理に移行し、データブロ
ックが連続していると、ステップ(5) でデータの受領を
開始し、バッファメモリ4に格納する。
If the data blocks are not continuous in step (4), the process proceeds to step (3). If the data blocks are continuous, the reception of data is started in step (5) and the buffer memory is started. 4 is stored.

【0038】そして、コマンド処理部8はステップ(6)
でディスク制御部5に指示して、ディスク媒体6に対す
るデータの書込みを行わせる。そして、コマンド処理部
8は、ステップ(7) でデータの受領が終了するのを待
ち、終了するとステップ(8) でステータスを上位装置1
に送出する。
Then, the command processing section 8 executes step (6).
To instruct the disk control unit 5 to write data to the disk medium 6. Then, the command processing unit 8 waits for the completion of the data reception in step (7), and when completed, in step (8), changes the status to the host device 1.
To send to.

【0039】[0039]

【発明の効果】以上説明した如く、本発明はバッファメ
モリに、連続した書込み命令が夫々指定する数のデータ
ブロックを複数連続して格納することが可能となるた
め、ディスク媒体の回転待ちをすることなく、ディスク
媒体にデータブロックを連続して書込むことが出来る。
As described above, according to the present invention, a plurality of data blocks each designated by a continuous write command can be successively stored in the buffer memory, so that the disk medium waits for rotation. Without writing, data blocks can be continuously written on a disk medium.

【0040】従って、上位装置は連続した書込み命令の
処理時間が短縮され、命令の発行回数が多い程、その短
縮効果は大きくなり、その分計算機システムの処理効率
を高めることが出来る。
Therefore, the host device shortens the processing time of successive write instructions, and the greater the number of issued instructions, the greater the effect of the shortening, and the higher the processing efficiency of the computer system.

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

【図1】 本発明の一実施例を示す回路のブロック図FIG. 1 is a block diagram of a circuit showing one embodiment of the present invention.

【図2】 図1の動作を説明するタイムチャートFIG. 2 is a time chart for explaining the operation of FIG. 1;

【図3】 本発明の命令処理を説明するフローチャートFIG. 3 is a flowchart illustrating instruction processing according to the present invention;

【図4】 従来技術の一例を説明するブロック図FIG. 4 is a block diagram illustrating an example of a conventional technique.

【図5】 図4の動作を説明するタイムチャートFIG. 5 is a time chart for explaining the operation of FIG. 4;

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

1 上位装置 2、7 ディスク装置 3、8 コマンド処理部 4 バッファメモリ 5 ディスク制御部 6 ディスク媒体 9 インタフェース DESCRIPTION OF SYMBOLS 1 Upper device 2, 7 Disk device 3, 8 Command processing part 4 Buffer memory 5 Disk control part 6 Disk medium 9 Interface

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 上位装置(1) から書込みデータのブロッ
ク数を指定して書込みを指示する書込み命令に続いてデ
ータが転送された時、該データを受信して受信状態を報
告するステータスを送出することにより、順次データの
受信を行うように規定されたプロトコルのインタフェー
ス(9) と、 受信したデータブロックを格納するバッファメモリ(4)
と、 該バッファメモリ(4) に格納されたデータブロックをデ
ィスク媒体(6) に書込む制御を行うディスク制御部(5)
と、 該上位装置(1) が送出する命令に基づき、該上位装置
(1) が送出するデータを該バッファメモリ(4) に書込む
と共に、該ディスク制御部(5) にデータの書込みを指示
するコマンド処理部(8) と、 を備えたディスク装置(7) であって、 前記上位装置(1) が連続して書込み命令を送出した時、
前の書込みデータブロックと次に書込むデータブロック
とが連続しているか否かを照合し、連続している場合
は、前記バッファメモリ(4) に前の書込みデータの格納
が完了した時点で前記ステータスを該上位装置(1) に送
出して、次の書込みデータを送出させ、該バッファメモ
リ(4) に前のデータブロックに続いて格納させることに
より、前記ディスク制御部(5) に連続して前記ディスク
媒体(6) に対するデータの書込みを実行させることを特
徴とするディスク装置の連続書込み処理方法。
When a data is transferred following a write command instructing writing by designating the number of blocks of write data from a higher-level device (1), the data is received and a status for reporting a reception state is transmitted. By doing so, an interface of a protocol specified to sequentially receive data (9) and a buffer memory (4) for storing received data blocks
A disk control unit (5) for controlling the writing of the data blocks stored in the buffer memory (4) to the disk medium (6).
Based on the command sent by the higher-level device (1),
(1) Writes the data to be sent out to the buffer memory (4), and a command processing unit (8) for instructing the disk control unit (5) to write data. When the host device (1) continuously sends a write command,
It is checked whether or not the previous write data block and the next data block to be written are continuous.If the data blocks are continuous, the data block is stored when the previous write data is completely stored in the buffer memory (4). The status is transmitted to the host device (1), the next write data is transmitted, and the buffer memory (4) is stored following the previous data block, so that the status is continuously transmitted to the disk control unit (5). And writing data to the disk medium (6).
JP5302692A 1992-03-12 1992-03-12 Continuous write processing method for disk device Expired - Lifetime JP2734865B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5302692A JP2734865B2 (en) 1992-03-12 1992-03-12 Continuous write processing method for disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5302692A JP2734865B2 (en) 1992-03-12 1992-03-12 Continuous write processing method for disk device

Publications (2)

Publication Number Publication Date
JPH05257609A JPH05257609A (en) 1993-10-08
JP2734865B2 true JP2734865B2 (en) 1998-04-02

Family

ID=12931383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5302692A Expired - Lifetime JP2734865B2 (en) 1992-03-12 1992-03-12 Continuous write processing method for disk device

Country Status (1)

Country Link
JP (1) JP2734865B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2834081B2 (en) * 1996-06-26 1998-12-09 茨城日本電気株式会社 Magnetic disk controller
EP0845738A3 (en) * 1996-11-28 2006-09-20 Hitachi, Ltd. Storage system which transfers a command and data corresponding to said command subsequent to said command
KR100794312B1 (en) * 2006-12-27 2008-01-11 삼성전자주식회사 Memory controller with automatic command processing unit and memory system including the same

Also Published As

Publication number Publication date
JPH05257609A (en) 1993-10-08

Similar Documents

Publication Publication Date Title
US4442485A (en) Dynamically buffered data transfer system for large capacity data source
JPH06110617A (en) Disk control method
JP2734865B2 (en) Continuous write processing method for disk device
EP1517246B1 (en) A method for transferring data and a data transfer interface
JP3147575B2 (en) Data writing device and data block writing method
JPH07121308A (en) Write back control method for disk device
US5696640A (en) Disk drive using virtual hands for continuous access and execution
JPH08235751A (en) Magnetic disk drive controller
JP2541158B2 (en) Information processing system
JPH06161931A (en) Channel device
JPH08286836A (en) Information recording and reproducing device
JPS58114151A (en) Common controlling system
JPH05341913A (en) Magnetic disk controller
JP2797991B2 (en) Data retrieval system and data retrieval device for cartridge magnetic tape
JPH1125590A (en) Information recording method and information recording and reproducing device using the same
JPH0619627A (en) Rotary storage
JPS61287071A (en) Magnetic disc controller
JPS6154527A (en) Disk controller
JPH02240880A (en) Disk device
JPH05127833A (en) Tape mark writing system for magnetic tape storage device
JPH03254487A (en) Disk device control system
JPH0536197A (en) Double write magnetic disk sub system
JPH05182117A (en) Magnetic disk device
JPS623455B2 (en)
JPH07334311A (en) Magnetic disk device and method for transferring data to buffer memory of same

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971202