JPH05257609A - Method for continuous writing process of disk device - Google Patents

Method for continuous writing process of disk device

Info

Publication number
JPH05257609A
JPH05257609A JP5302692A JP5302692A JPH05257609A JP H05257609 A JPH05257609 A JP H05257609A JP 5302692 A JP5302692 A JP 5302692A JP 5302692 A JP5302692 A JP 5302692A JP H05257609 A JPH05257609 A JP H05257609A
Authority
JP
Japan
Prior art keywords
data
disk
write
buffer memory
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5302692A
Other languages
Japanese (ja)
Other versions
JP2734865B2 (en
Inventor
Yoshiaki Kitamura
嘉朗 北村
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

Abstract

PURPOSE:To obtain the disk device which can receive data with a high efficiency. CONSTITUTION:The disk device 7 equipped with an interface 9 of a protocol prescribed so as to send a status when data are transferred successively to a write instruction, a buffer memory 4, a disk control part 5, a disk medium 6, and a command processing part 8, perform collation for checking whether or not a precedent written data block and a data block to be written next succeed when a host device 1 sends a write instruction out successively, and in the case where they are continuous, out to the host device 1 at the time when the storage of the precedent written data in the buffer memory 4 is completed, and thus stores the data successively to the precedent data block, thereby making the disk control part 5 writes the data successively on the disk medium 6.

Description

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

【0001】[0001]

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

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

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

【0004】[0004]

【従来の技術】図4は従来技術の一例を説明するブロッ
ク図で、図5は図4の動作を説明するタイムチャートで
ある。
2. Description of the Related Art FIG. 4 is a block diagram for explaining an example of a conventional technique, 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 specifies the number of write data blocks based on the SCSI interface standard and sends a write command to the command processing section 3 of the disk device 2. The command processing unit 3 receives an instruction during the period indicated by A in FIG. 5 (A) command processing, and then, during the period indicated by B in FIG. 5 (A) command processing, is the disk control unit 5 operating? Check. Then, the disk control unit 5 makes the disk medium 6
If the data write control to the
(A) During the period indicated by C in the command processing, the data transmitted from the host device 1 is received and written in the buffer memory 4.

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

【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 in the period G shown in FIG. The specified number of blocks of data is written from the specified sector of.

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

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

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

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

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

【0014】そして、図5(B) ディスク制御のKに示す
期間で指定されたシリンダが同一であれば、ディスクの
回転待ちを行い、図5(B) ディスク制御のLに示す期間
で次のデータをバッファメモリ4から読出し、ディスク
媒体6の指定されたセクタから指定されたブロック数の
データを書込ませる。
Then, if the cylinders designated in the period K shown in FIG. 5B are the same, the disk is waited for rotation, and the next period is shown in the period L shown in FIG. 5B. The data is read from the buffer memory 4, and the data of the designated block number is written from the designated 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 the write cache function is not provided, the host device 1 completes the data transfer in the period shown by C in FIG.
Until the writing of data to the disk medium 6 of the disk device 2 is completed, the status indicated by D in FIG. 5A is not reported and the instruction processing is not completed.

【0016】ところで、上位装置1が送出するデータの
転送時間は、ディスク装置2がディスク媒体6にデータ
を書込む時間より短く、データ送出完了後、ステータス
報告を受けるまでの長い時間、即ち、図5(A) のCとD
の間、待つ必要があり、上位装置1の処理効率が低下す
るという問題がある。
By the way, 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 on the disk medium 6, and a long time after the data sending is completed until the status report is received, that is, 5 (A) C and D
There is a problem in that the processing efficiency of the higher-level device 1 is lowered, because it is necessary to wait during the period.

【0017】又、図5(B) で説明した如く、ライト・キ
ャッシュ機能を備えた場合、上位装置1から書込み命令
が連続して送出された時、図5(B) のFで示す期間は、
Jで示すデータ書込み時間に左右され、ディスク媒体6
に対するデータの書込みが完了しないと、図5(B) のG
で示す次のデータ受領が出来ない。
Further, as described with reference to FIG. 5B, when the write cache function is provided, when the write command is continuously sent 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. 5 (B)
I cannot receive the following data shown in.

【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 position of the head. Therefore, the waiting for rotation of the disk medium 6 occurs during the period indicated by K in FIG. 5 (B). Therefore, there is a problem that the processing efficiency of the host device 1 is reduced.

【0019】本発明はこのような問題点に鑑み、書込み
命令が連続して発行された時、前のデータブロックに、
次のデータブロックが連続しており、且つ、ディスク制
御部5がデータの書込み制御中であれば、連続して次の
命令のデータの受領を行ってバッファメモリ4に格納さ
せ、ディスク媒体6の回転待ちを発生させることなく、
連続してデータの書込みを行わせることを目的としてい
る。
In view of such a problem, the present invention, when a write command is continuously issued, adds to the previous data block,
If the next data block is continuous and the disk control unit 5 is in the process of writing data, the data of the next command is continuously received and stored in the buffer memory 4, and the data of the disk medium 6 is stored. Without waiting for rotation
The purpose is 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]
As shown in FIG. 3, when data is transferred following a write command that specifies the number of blocks of write data from the higher-level device 1 and the writing is instructed, this data is received and a status for reporting the reception state is sent out. As a result, the interface 9 of the protocol defined to sequentially receive data, the buffer memory 4 for storing the received data block, and the control for writing the data block stored in the buffer memory 4 to the disk medium 6 And a command for instructing the disk controller 5 to write the data while writing the data sent by the host device 1 into the buffer memory 4 based on the command sent by the disk controller 5 In the disk device 7 including the processing unit 8, when the host device 1 continuously outputs the write command, It is checked whether the write data block and the data block to be written next are continuous, and if they are continuous, the status is set to the upper device when the storage of the previous write data in the buffer memory 4 is completed. 1 to send the next write data and store it in the buffer memory 4 following the previous data block, thereby causing the disk controller 5 to continuously write data to the disk medium 6. It is achieved by

【0021】[0021]

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

【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に送出する。
The upper device 1 receives the data when the data is transferred following the write command for designating the number of blocks of the write data from the upper device 1 like the SCSI interface, and receives the data to set 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 through the interface 9 of the protocol that is defined to sequentially receive the data.

【0024】コマンド処理部8は、図2コマンド処理の
Aに示す期間で、命令の受領を行い、続いて図2コマン
ド処理のBに示す期間で、ディスク制御部5のチェック
を行う。そして、ディスク制御部5がディスク媒体6に
対するデータの書込み制御を行っていない場合、図2コ
マンド処理のCに示す期間で、上位装置1から送出され
るデータを受領し、バッファメモリ4に書込む。
The command processing unit 8 receives an instruction during the period indicated by A in FIG. 2 command processing, and then checks the disk control unit 5 during the period indicated by B in FIG. 2 command processing. Then, when the disk control unit 5 is not controlling the writing of data to the disk medium 6, the data sent from the higher-level device 1 is received and written in 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 section 8 instructs the disk control section 5 to perform seek control for positioning the specified head on 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 the data stored in the buffer memory 4 and sends it to the designated head during the period indicated by K in FIG. Then, the data of the designated number of blocks is written from the designated sector.

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

【0028】そして、ディスク制御部5のディスク媒体
6に対する書込み制御が継続していると、予め上位装置
1から書込み命令により与えられている現在ディスク媒
体6に書込み中のデータブロックの最終ブロックの論理
アドレスと、上記次の書込み命令で書込みを指示してい
るデータブロックの先頭ブロックの論理アドレスとを照
合し、前の書込み命令に基づくデータブロックと次の書
込み命令に基づくデータブロックとが連続していると、
図2コマンド処理のGに示す期間で次のデータを受領し
て、バッファメモリ4に書込む。
When the write control of the disk control unit 5 to the disk medium 6 is continued, the logic of the final 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 collated with the logical address of the first block of the data block which is 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 consecutive. Is
In the period indicated by G in the command processing of FIG. 2, the next data is received and written in the buffer memory 4.

【0029】この時、コマンド処理部8は、バッファメ
モリ4には前に格納されたデータブロックが存在するた
め、このデータブロックの後に続けて次の書込み命令に
基づくデータブロックを順次格納させる。
At this time, since the data block previously stored exists in the buffer memory 4, the command processing unit 8 successively stores the data block based on the next write command after 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 in the period G shown in FIG. 2 command processing, the status is shown in H period shown in FIG. 2 command processing. 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 disk control unit 5 completes the writing of the data blocks to the disk medium 6 in the period indicated by K in FIG. 2 disk control, the buffer memory 4 stores consecutive data blocks. During 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 turn around one track is 10 ms and there are 100 data blocks in one track, the processing time for one block is 10 ms / 100 = 0.1 ms. Becomes If the host device 1 processes 90 blocks,
When the write command is issued every 30 blocks in three times, 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を期待することが出来る。
90 blocks write time = 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 is 10 ms × 2 = 20 ms.
Can be reduced, so write time of 90 blocks is 9
You can expect ms.

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

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

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

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

【0039】[0039]

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

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

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

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

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

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

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

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

【符号の説明】 1 上位装置 2、7 ディスク装置 3、8 コマンド処理部 4 バッファメモリ 5 ディスク制御部 6 ディスク媒体 9 インタフェース[Explanation of reference numerals] 1 host device 2, 7 disk device 3, 8 command processing unit 4 buffer memory 5 disk control unit 6 disk medium 9 interface

Claims (1)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1011223A (en) * 1996-06-26 1998-01-16 Nec Ibaraki Ltd Magnetic disk controller
US6148366A (en) * 1996-11-28 2000-11-14 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1011223A (en) * 1996-06-26 1998-01-16 Nec Ibaraki Ltd Magnetic disk controller
US6148366A (en) * 1996-11-28 2000-11-14 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
US8060669B2 (en) 2006-12-27 2011-11-15 Samsung Electronics Co., Ltd. Memory controller with automatic command processing unit and memory system including the same

Also Published As

Publication number Publication date
JP2734865B2 (en) 1998-04-02

Similar Documents

Publication Publication Date Title
US5548788A (en) Disk controller having host processor controls the time for transferring data to disk drive by modifying contents of the memory to indicate data is stored in the memory
US6389508B1 (en) Information storing apparatus having a data prewrite unit
JPH05257609A (en) Method for continuous writing process of disk device
US6535953B1 (en) Magnetic disk, method of accessing magnetic disk device, and recording medium storing disk access control program for magnetic disk device
US5875453A (en) Apparatus for and method of information processing
JP3122702B2 (en) Disk device write-back control method
US20040133738A1 (en) Command processing method and storage apparatus
JP3147575B2 (en) Data writing device and data block writing method
JPS60222943A (en) Disk cache control system
JPH05341913A (en) Magnetic disk controller
JPS594735B2 (en) Channel Seigiyohoshiki
JPH0684283A (en) Transfer method for magneto-optical disk data
JPH05127833A (en) Tape mark writing system for magnetic tape storage device
JPH07334311A (en) Magnetic disk device and method for transferring data to buffer memory of same
JPS62205581A (en) Disk control method
JPS58171724A (en) Copy controller of magnetic disc tape
JPH05217286A (en) Magnetic disk controller
JPH02240880A (en) Disk device
JPS6269313A (en) Data controller
JPS623455B2 (en)
JPH06161931A (en) Channel device
JPS61287071A (en) Magnetic disc controller
JPS6041123A (en) Magnetic disc control device
JPH07271519A (en) Disk controller
JPS6154527A (en) Disk controller

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