JPH06111482A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH06111482A
JPH06111482A JP4280673A JP28067392A JPH06111482A JP H06111482 A JPH06111482 A JP H06111482A JP 4280673 A JP4280673 A JP 4280673A JP 28067392 A JP28067392 A JP 28067392A JP H06111482 A JPH06111482 A JP H06111482A
Authority
JP
Japan
Prior art keywords
data
read
magnetic disk
position information
disk device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4280673A
Other languages
Japanese (ja)
Other versions
JP3435176B2 (en
Inventor
Atsushi Motohashi
敦 本橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP28067392A priority Critical patent/JP3435176B2/en
Publication of JPH06111482A publication Critical patent/JPH06111482A/en
Application granted granted Critical
Publication of JP3435176B2 publication Critical patent/JP3435176B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

PURPOSE:To control data recorded on a discontinuous area as continuous data and to accelerate access by being provided with a positional information control table and controlling positional information at the time of reading/writing the data. CONSTITUTION:When a read/write command is executed for a magnetic disk device 2 by a host device 1, a magnetic disk 3 is read/written by the device 2, and after the positional information at that time is stored in the positional information control table in a RAM 24 temporarily, is held by a buffer RAM 25. The positional information control table is constituted of a flag A, a start sector number B, the number of sector C, the start address D of the buffer RAM and an end address E. Thus, the data recorded on the discontinuous area is controlled as the continuous data, and high speed access is possible by using it at the time of reading/writing the next data.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、磁気的手段によって
情報の記録・再生を行うハードディスク装置や、フロッ
ピーディスク装置、光磁気ディスク装置等のディスク装
置に係り、特に、大容量のデータをリード/ライトする
際、1つのデータを連続していない領域にリード/ライ
トする場合に、複数回に分割されたデータのリード/ラ
イトを行ったときの位置を、データ連続情報として記憶
しておくことによって、高速アクセスを可能にした磁気
ディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hard disk device for recording / reproducing information by magnetic means, a disk device such as a floppy disk device, a magneto-optical disk device, and the like. When writing / reading one data to a non-contiguous area at the time of writing, by storing the position when reading / writing the data divided into a plurality of times as the data continuation information, The present invention relates to a magnetic disk device that enables high-speed access.

【0002】[0002]

【従来の技術】従来から、磁気ディスク装置を高速にア
クセスする方法としては、キャッシュ機能(ディスク・
キャッシュ機能)を使用したり、プリフェッチ(先読
み:リード終了後の次のセクタからバッファRAM内に
リードする)機能等を使用するのが、一般的である。と
ころが、ファイルの種類により、ディスク・アクセスの
パターンが異なるので、いずれの機能を使用しても、全
てのファイルに対して、高速アクセスが可能であるとは
限らない。
2. Description of the Related Art Conventionally, as a method for accessing a magnetic disk device at high speed, a cache function (disk
It is general to use a cache function) or a prefetch (prefetch: read from the next sector after the read is finished into the buffer RAM) function. However, since the disk access pattern differs depending on the type of file, it is not always possible to access all files at high speed regardless of which function is used.

【0003】例えば、シーケンシャル・ファイルの場合
は、ファイル中のレコードを順次アクセスしていくの
で、プリフェッチ機能を使用して、要求のあったブロッ
クと、その先の数ブロックを同時に読み込んでおくと、
ヒット率が上がる。しかし、ランダム・アクセスを行う
場合には、このプリフェッチ機能は、有効ではない。
For example, in the case of a sequential file, the records in the file are accessed sequentially, so if the prefetch function is used to read the requested block and several blocks ahead of it at the same time,
The hit rate increases. However, when performing random access, this prefetch function is not effective.

【0004】すなわち、プリフェッチ機能は、処理する
データが大容量で、そのデータが連続した領域に記録さ
れている場合のみ、有効に作用する。また、キャッシュ
機能では、ディスク・キャッシュの容量が、磁気ディス
ク装置の容量の1/100〜1/1000程度で小さい
ので、新たにデータ・ブロックをロードするためには、
キャッシュ中の古いブロックを磁気ディスクへ追い出す
か、古いブロックの上に新しいブロックを重ね書きし
て、キャッシュ・ディレクトリを書き換える必要があ
る。
That is, the prefetch function works effectively only when the data to be processed has a large capacity and the data is recorded in a continuous area. Further, in the cache function, the capacity of the disk cache is as small as 1/100 to 1/1000 of the capacity of the magnetic disk device. Therefore, in order to newly load a data block,
It is necessary to flush the old block in the cache to the magnetic disk or overwrite the old block with a new block to rewrite the cache directory.

【0005】このキャッシュ機能で、追い出しブロック
の決定方法として一般に採用されている方法は、LRU
アルゴリズムによる方法である。LRUアルゴリズムで
は、現在までの一定時間内に各ブロックにアクセスのあ
った回数、および最後にアクセスのあった時刻から現在
までの経過時間を考慮して、最も使われていないブロッ
クを追い出しブロックに選定する。
With this cache function, the method generally adopted as the method for determining the eviction block is LRU.
This is an algorithmic method. In the LRU algorithm, the least used block is selected as the eviction block, considering the number of times each block has been accessed within a certain time up to the present time and the elapsed time from the time of the last access to the present To do.

【0006】要するに、LRUアルゴリズムは、同一の
データへのアクセスは、時間的に集中することが多いの
で、過去に何回もアクセスされたデータは、将来におい
てもアクセスされる可能性が高い、と仮定して、余りア
クセスされないブロックから優先的に使用する。なお、
ライトスルー・キャッシュの場合には、古いブロックの
上に、単に新しいブロックを重ね書きして、キャッシュ
・ディレクトリを書き換えるだけであるが、どのブロッ
クに重ね書きを行うか、の選定方法は、追い出しブロッ
クを決定する場合と同じである。
In short, in the LRU algorithm, since access to the same data is often concentrated in time, data that has been accessed many times in the past is likely to be accessed in the future. Assuming that blocks that are rarely accessed are used first. In addition,
In the case of the write-through cache, the new block is simply overwritten on the old block and the cache directory is rewritten. However, the selection method of which block to overwrite is Is the same as when deciding.

【0007】このように、キャッシュ機能は、その機能
を十分発揮させるためには、大容量のバッファRAMと
複雑なバッファ管理が必要である。また、プリフェッチ
機能は、データが大容量で、そのデータが連続して記録
されている場合のみ有効である。以上のように、キャッ
シュ機能や、プリフェッチ機能には、それぞれ機能上の
制約があるので、必ずしも全ての高速アクセスに使用す
ることはできない。
As described above, the cache function requires a large-capacity buffer RAM and complicated buffer management in order to fully exhibit the function. The prefetch function is effective only when the data has a large capacity and the data is continuously recorded. As described above, since the cache function and the prefetch function have functional restrictions, they cannot be used for all high speed accesses.

【0008】そこで、キャッシュ機能とプリフェッチ機
能の長所を生かすために、追い出しブロックを決定する
LRUアルゴリズムとプリフェッチ機能とを組み合わせ
て用いる方法が、一般に行われている。以上が、磁気デ
ィスク装置を高速にアクセスする従来の方法である。次
に、光ディスク装置におけるプリフェッチ機能について
説明する。
Therefore, in order to make the best use of the advantages of the cache function and the prefetch function, a method of using a combination of the LRU algorithm for determining the eviction block and the prefetch function is generally used. The above is the conventional method for accessing the magnetic disk device at high speed. Next, the prefetch function in the optical disk device will be described.

【0009】図9は、リード命令の実行時におけるバッ
ファRAM内にリードするシーケンスの一例を示す図
で、(1) はノーマルリード、(2) はデュアルリードを示
す。
FIG. 9 is a diagram showing an example of a sequence for reading in the buffer RAM at the time of executing a read instruction, where (1) indicates normal read and (2) indicates dual read.

【0010】この図9では、上位装置からのリード命令
の実行の終了後に、次のセクタ(リード命令で指定され
たセクタを転送した後の次のセクタ)をバッファRAM
内にリードするシーケンスを示している。まず、図9
(1) に示すノーマルリードでは、シーク動作後、ディス
クからバッファへのリード(R1)を行い、その後に、
バッファから上位装置への転送(B1)を行う。
In FIG. 9, after the execution of the read command from the host device is completed, the next sector (the next sector after the sector designated by the read command is transferred) is stored in the buffer RAM.
The sequence to read is shown in. First, FIG.
In the normal read shown in (1), after the seek operation, the read (R1) from the disk to the buffer is performed, and then,
Transfer (B1) from the buffer to the host device.

【0011】このような動作を、順次繰り返えし、指定
されたセクタ数のデータのバッファから上位装置への転
送(B3)が終了した後、最後にリードしたセクタの次
のセクタを、バッファ内にリード(R4)する(プリフ
ェッチ・リード)。このように、ノーマルリードでは、
最終のバッファ分の転送が終ったとき、プリフェッチ機
能によって、次のセクタのリードを行う。
The above operation is repeated in sequence, and after the transfer (B3) of the data of the designated number of sectors from the buffer to the host device is completed, the sector next to the last read sector is buffered. Read inside (R4) (prefetch read). In this way, in normal read,
When the transfer for the final buffer is completed, the prefetch function reads the next sector.

【0012】なお、最後にリードしたセクタのデータ
を、上位装置へ転送(B3)したときは、データ転送の
完了を示すステータスが、自動的に送出される。このス
テータスの送出は、タスクによって制御される。また、
プリフェッチ実行中のセレクションに対しては、プリフ
ェッチ動作を中断させるが、有効なリードデータがある
ときは、その部分のデータが、プリフェッチ・データと
して登録される。
When the data of the last read sector is transferred to the upper device (B3), the status indicating the completion of the data transfer is automatically transmitted. The sending of this status is controlled by the task. Also,
The prefetch operation is suspended for the selection during the prefetch, but when there is valid read data, the data of that portion is registered as the prefetch data.

【0013】このような動作は、図9(2) に示すデュア
ルリードの場合も同様であるが、デュアルリードでは、
シーク動作後、ディスクからバッファへリードしながら
(R1,R1′)、バッファのデータを上位装置へ転送
する(B1,B1′)点が、先のノーマルリードと異な
っている。デュアルリードでも、バッファから上位装置
への転送(B3,B3′)が終了した後、最後にリード
したセクタの次のセクタを、バッファ内にリード(R
4)する(プリフェッチ・リード)。
Such an operation is similar in the case of the dual read shown in FIG. 9 (2), but in the dual read,
After the seek operation, while reading from the disk to the buffer (R1, R1 '), the data in the buffer is transferred to the host device (B1, B1'), which is different from the normal read. Even in the dual read, after the transfer (B3, B3 ') from the buffer to the upper device is completed, the sector next to the last read sector is read into the buffer (R
4) Perform (prefetch read).

【0014】そして、このノーマルリードやデュアルリ
ードによるバッファへのリードと上位装置への転送は、
データが連続した領域に記録されている場合には、極め
て有効である。しかし、データが分散されて記録されて
いる場合には、効果は期待できない。
Then, the read to the buffer and the transfer to the host device by the normal read or dual read are
It is extremely effective when data is recorded in a continuous area. However, if the data is recorded in a dispersed manner, no effect can be expected.

【0015】以上のように、従来の磁気ディスク装置を
高速にアクセスする方法には、未解決の問題があり、全
ての種類のファイルに対して、高速アクセスすることは
できない、という不都合があった。なお、通常、大容量
のデータをリード/ライトする場合、特に、1つのデー
タを、連続していない領域にリード/ライトするとき
は、複数回のリード/ライト命令に分けて実行してい
る。
As described above, the conventional method of accessing the magnetic disk device at high speed has an unsolved problem, and there is an inconvenience that it is not possible to access all types of files at high speed. . Incidentally, when reading / writing a large amount of data, particularly when reading / writing one data to a non-continuous area, the read / write command is divided into a plurality of times and executed.

【0016】[0016]

【発明が解決しようとする課題】この発明では、従来の
磁気ディスク装置の高速アクセスで生じるこのような不
都合を解決し、1つのデータを連続していない領域にリ
ード/ライトするとき、必要最小限の位置情報によって
管理することにより、不連続の領域に記録されたデータ
を、連続したデータとして管理できるようにすると共
に、高速アクセスを可能にした磁気ディスク装置を提供
することを目的とする。
SUMMARY OF THE INVENTION The present invention solves such inconvenience caused by high-speed access of a conventional magnetic disk device, and when reading / writing one data to a non-contiguous area, the minimum necessary It is an object of the present invention to provide a magnetic disk device that enables high-speed access while managing data recorded in discontinuous areas as continuous data by managing the position information.

【0017】[0017]

【課題を解決するための手段】この発明では、第1に、
少なくとも1枚の磁気ディスクと、該磁気ディスクに対
応する記録・再生を行う磁気ヘッドとを有する磁気ディ
スク装置において、 データをリード/ライトしたときの位置を、データ連
続情報(データが他の位置情報のデータと連続している
ことを示す第1の情報)と、データリード情報(データ
の一部、または全部がバッファRAM内に存在すること
を示す第2の情報)と、データ常駐情報(データを常に
バッファ内にリードしておくことを示す第3の情報)と
を含むフラグ領域と、スタートセクタ番号と、セク
タ数と、スタートアドレスとエンドアドレスとで示さ
れるバッファアドレス、とから構成される位置情報を格
納する位置情報管理テーブルを備え、データのリード/
ライト動作時に、前記位置情報管理テーブルの位置情報
を管理するように構成している。
According to the present invention, firstly,
In a magnetic disk device having at least one magnetic disk and a magnetic head for recording / reproducing corresponding to the magnetic disk, the position at which data is read / written is determined as data continuity information (data indicates other position information). Information indicating that the data is continuous, data read information (second information indicating that part or all of the data exists in the buffer RAM), and data resident information (data). Is always read in the buffer) and a start sector number, the number of sectors, and a buffer address indicated by a start address and an end address. It has a location information management table that stores location information,
The position information of the position information management table is managed during the write operation.

【0018】第2に、上記第1の磁気ディスク装置にお
いて、位置情報を上位装置から設定する位置情報設定手
段を備え、該位置情報設定手段によって、上位装置から
位置情報を設定するように構成している。
Secondly, the first magnetic disk device is provided with position information setting means for setting position information from the host device, and the position information setting means sets the position information from the host device. ing.

【0019】第3に、上記第1の磁気ディスク装置にお
いて、位置情報を管理するテーブルから、次にリードさ
れるデータが記録されている位置を検索し、磁気ヘッド
を移動させる記録位置検索・ヘッド移動手段と、検索し
た位置のセクタのデータを磁気ディスク装置のバッファ
RAM内にリードするリード手段、とを備えた構成であ
る。
Thirdly, in the first magnetic disk device, the recording position search / head for moving the magnetic head is searched by searching the position where the data to be read next is recorded from the table for managing the position information. The configuration includes a moving means and a reading means for reading the data of the sector at the searched position into the buffer RAM of the magnetic disk device.

【0020】第4に、上記第1の磁気ディスク装置にお
いて、位置情報におけるデータ連続情報を作成するとき
の連続したデータのリード/ライトの終了を、命令の種
類が変わった時点で判断する判断手段を備え、該判断手
段によって連続したデータのリード/ライトの終了を検
知するように構成している。
Fourthly, in the first magnetic disk device, the judgment means for judging the end of continuous data read / write when creating the data continuity information in the position information at the time when the type of the command is changed. And the end of continuous data read / write is detected by the determination means.

【0021】第5に、上記第1の磁気ディスク装置にお
いて、位置情報におけるデータ連続情報を作成するとき
の連続したデータのリード/ライトの終了を、リード/
ライト命令の実行間隔から判断する判断手段を備え、該
判断手段によって連続したデータのリード/ライトの終
了を検知するように構成している。
Fifthly, in the first magnetic disk device, the end of read / write of continuous data when creating the data continuous information in the position information is read / written.
A judgment unit for judging from the execution interval of the write command is provided, and the judgment unit detects the end of continuous data read / write.

【0022】第6に、上記第5の磁気ディスク装置にお
いて、リード/ライト命令の終了を判断する実行間隔
を、上位装置から設定する実行間隔設定手段を備え、該
実行間隔設定手段によって、上位装置から実行間隔を設
定するように構成している。
Sixthly, in the fifth magnetic disk device, there is provided an execution interval setting means for setting the execution interval for judging the end of the read / write command from the host device, and the execution interval setting means causes the host device to execute. It is configured to set the execution interval from.

【0023】[0023]

【作用】この発明では、従来、大容量のデータをリード
/ライトする場合で、特に、1つのデータを連続してい
ない領域にリード/ライトするときは、複数回のリード
/ライト命令に分けて実行している点に着目し、複数回
に分割されたデータのリード/ライトを行ったときの位
置を、データ連続情報として記憶しておき、次のデータ
のリード/ライト時に、利用するようにしている(請求
項1の発明)。第2に、この発明の磁気ディスク装置が
接続された上位装置が、データが分割されて記憶されて
いることを知っているときは、上位装置が、連続情報と
して磁気ディスク装置に設定しておく(請求項2の発
明)。
According to the present invention, conventionally, when a large amount of data is read / written, particularly when one data is read / written to a non-continuous area, it is divided into a plurality of read / write instructions. Paying attention to the point of execution, the position when reading / writing data divided multiple times is stored as data continuity information so that it can be used when reading / writing the next data. (The invention of claim 1). Secondly, when the host device to which the magnetic disk device of the present invention is connected knows that the data is divided and stored, the host device sets it as continuous information in the magnetic disk device. (Invention of Claim 2).

【0024】第3に、キャッシュ機能とプリフェッチ機
能を向上させるために、位置情報に基いて、リード命令
で指定される位置のデータが、バッファ内にある(常駐
指定あるいはプリフェッチ機能でリード済み)ときに
は、バッファ内のデータを転送し、ディスク上のデータ
のリードは行わない。さらに、リード動作の終了後は、
次のデータの位置を検索し、バッファ内にデータをリー
ドしておく(請求項3の発明)。
Thirdly, in order to improve the cache function and the prefetch function, when the data at the position designated by the read instruction is in the buffer (based on the location information or read by the prefetch function) based on the position information. , The data in the buffer is transferred, and the data on the disk is not read. Furthermore, after the read operation is completed,
The position of the next data is searched and the data is read into the buffer (the invention of claim 3).

【0025】ところで、磁気ディスク装置それ自身で
は、複数回に分割されたデータのライト動作の終了を判
定することはできない。そこで、第4に、1つの連続し
たデータに対して、複数回のリード/ライト命令が実行
されたときは、その一連のリード/ライトの終了を判断
するために、命令の種類が変わった時点(例えば、リー
ドの場合には、リード以外の命令)で、一連のリード/
ライト動作が終了した、と判断する(請求項4の発
明)。
By the way, the magnetic disk device itself cannot judge the end of the write operation of the data divided into a plurality of times. Therefore, fourth, when a plurality of read / write instructions are executed for one continuous data, when the type of the instruction is changed to determine the end of the series of read / writes. (For example, in the case of read, a command other than read)
It is determined that the write operation has ended (the invention of claim 4).

【0026】第5に、磁気ディスク装置それ自身が、複
数回に分割されたデータのリード/ライト動作の終了を
判定することはできないので、リード/ライト命令が一
定時間、あるいは上位装置から設定された時間内に実行
されないときは、一連のリード/ライトが終了した、と
判断する(請求項5と請求項6の発明)。
Fifth, since the magnetic disk device itself cannot judge the end of the read / write operation of the data divided into a plurality of times, the read / write command is set for a fixed time or from the host device. When it is not executed within the predetermined time, it is determined that a series of read / write has been completed (the inventions of claims 5 and 6).

【0027】[0027]

【実施例1】次に、この発明の磁気ディスク装置につい
て、図面を参照しながら、その実施例を詳細に説明す
る。この実施例は、主として請求項1の発明に対応して
いるが、請求項2から請求項6の発明にも関連する。
Embodiment 1 Next, the magnetic disk device of the present invention will be described in detail with reference to the drawings. This embodiment mainly corresponds to the invention of claim 1, but is also related to the inventions of claims 2 to 6.

【0028】この発明の磁気ディスク装置では、1つの
データを、連続していない領域へリード/ライトするた
めに、位置情報管理テーブを使用して位置情報を記憶す
る点に特徴を有している。そこで、この発明の磁気ディ
スク装置で使用する位置情報管理テーブル(後出の図2
のRAM24に記憶されるテーブル)について説明す
る。
The magnetic disk device of the present invention is characterized in that the position information management table is used to store the position information in order to read / write one piece of data to a discontinuous area. . Therefore, the position information management table used in the magnetic disk device of the present invention (see FIG.
The table stored in the RAM 24) will be described.

【0029】図2は、この発明の磁気ディスク装置で使
用される位置情報管理テーブルについて、その位置情報
のフォーマットの一例を示す図である。図において、A
はフラグ、Bはスタートセクタ番号、Cはセクタ数、D
はバッファアドレス(スタート)、Eはバッファアドレ
ス(エンド)を示す。
FIG. 2 is a diagram showing an example of the format of the position information regarding the position information management table used in the magnetic disk device of the present invention. In the figure, A
Is a flag, B is a start sector number, C is the number of sectors, and D is
Indicates a buffer address (start), and E indicates a buffer address (end).

【0030】この図2に示すように、位置情報管理テー
ブルは、N個の位置情報の格納が可能であるように構成
されている。それぞれの位置情報管理テーブル(1〜
N)に記憶される位置情報は、フラグA、スタートセク
タ番号B、セクタ数C、バッファアドレス(スタート)
D、バッファアドレス(エンド)E、によって構成され
る。
As shown in FIG. 2, the position information management table is constructed so that N pieces of position information can be stored. Each position information management table (1 to
The position information stored in N) includes a flag A, a start sector number B, a sector number C, and a buffer address (start).
D, buffer address (end) E.

【0031】フラグAには、次の3つの情報が含まれて
いる。 1)データ連続情報 m(1≦m<N)番目の位置情報のデータが、(m+
1)番目の位置情報のデータと連続であることを示す情
報(第1の情報)。
The flag A contains the following three pieces of information. 1) Data continuation information The data of the m (1 ≦ m <N) th position information is (m +
1) Information indicating that it is continuous with the data of the first position information (first information).

【0032】2)データリード情報 位置情報のスタートセクタ番号Bからのデータの一部ま
たは全部が、バッファアドレスD,Eで示されるバッフ
ァRAM25内に存在することを示す情報(第2の情
報)。
2) Data read information Information indicating that part or all of the data from the start sector number B of the position information exists in the buffer RAM 25 indicated by the buffer addresses D and E (second information).

【0033】3)データ常駐情報 位置情報のスタートセクタ番号Bからのデータは、優先
的にバッファRAM25内にリードしておくことを示す
情報(第3の情報)。
3) Data Resident Information Information indicating that the data from the start sector number B of the position information is preferentially read into the buffer RAM 25 (third information).

【0034】この発明の磁気ディスク装置では、このよ
うな位置情報を使用して、データのリード/ライト動作
を行う。位置情報は、図2に示したように、フラグA、
スタートセクタ番号B、セクタ数C、バッファアドレス
(スタート)D、バッファアドレス(エンド)E、から
構成されている。
The magnetic disk device of the present invention uses such position information to perform data read / write operations. The position information is, as shown in FIG.
It comprises a start sector number B, a sector number C, a buffer address (start) D, and a buffer address (end) E.

【0035】この位置情報は、リード/ライト動作が終
了する度ごとに、一時的にバッファRAMに記憶された
位置情報で更新される。したがって、位置情報管理テー
ブルに記憶される位置情報によって、不連続の領域に記
録されたデータを連続したデータとして管理することが
できる。
This position information is updated with the position information temporarily stored in the buffer RAM every time the read / write operation is completed. Therefore, the position information stored in the position information management table can manage the data recorded in the discontinuous area as continuous data.

【0036】図1は、この発明の磁気ディスク装置につ
いて、上位装置と接続されたディスク装置の要部構成の
一実施例を示す機能ブロック図である。図において、1
は上位装置、2は磁気ディスク装置で、21はI/F
(インターフェース)コントローラ、22はCPU、2
3はROM、24はRAM、25はバッファRAM、2
6はリード/ライト制御回路、3は磁気ディスクを示
す。
FIG. 1 is a functional block diagram showing an embodiment of the main configuration of a disk device connected to a host device in the magnetic disk device of the present invention. In the figure, 1
Is a host device, 2 is a magnetic disk device, and 21 is an I / F
(Interface) Controller, 22 is CPU, 2
3 is ROM, 24 is RAM, 25 is buffer RAM, 2
Reference numeral 6 is a read / write control circuit, and 3 is a magnetic disk.

【0037】この図1に示したこの発明の磁気ディスク
装置は、RAM24に、位置情報を管理するためのテー
ブル(位置情報管理テーブル)を記憶させる点を除け
ば、基本的な構成は、従来の装置と同様であり、また、
磁気ディスク装置2が、上位装置1と接続されてファイ
リングシステムを構成することも公知である。この図1
の装置では、上位装置1が、磁気ディスク装置2に対し
て、リード/ライト命令を実行する。
The magnetic disk device according to the present invention shown in FIG. 1 has a basic configuration except that a table for managing position information (position information management table) is stored in the RAM 24. Similar to the device, and also
It is also known that the magnetic disk device 2 is connected to the host device 1 to form a filing system. This Figure 1
In the above device, the host device 1 executes a read / write command to the magnetic disk device 2.

【0038】I/Fコントローラ21は、磁気ディスク
装置2と上位装置1との間でインターフェースを制御す
る。ROM23には、磁気ディスク装置2の制御ソフト
ウェア(ファームウェア)が格納されている。
The I / F controller 21 controls the interface between the magnetic disk device 2 and the host device 1. The ROM 23 stores control software (firmware) for the magnetic disk device 2.

【0039】RAM24には、この発明の磁気ディスク
装置で使用するためのテーブル、すなわち、位置情報を
管理するためのテーブル(管理テーブル)を記憶する。
バッファRAM25は、リード/ライトするデータを一
時的に記憶するメモリである。
The RAM 24 stores a table for use in the magnetic disk device of the present invention, that is, a table (management table) for managing position information.
The buffer RAM 25 is a memory that temporarily stores data to be read / written.

【0040】リード/ライト制御回路26は、磁気ディ
スク3へのリード/ライトの制御を行う機能を有してい
る。最初に、データのライト時の動作を説明する。この
データのライト動作は、1回のデータのライトの場合で
ある。
The read / write control circuit 26 has a function of controlling read / write to the magnetic disk 3. First, the operation at the time of writing data will be described. This data write operation is for one-time data write.

【0041】図3は、この発明の磁気ディスク装置にお
いて、データのライト時の主要な処理の流れを示すフロ
ーチャートである。図において、#1〜#5はステップ
を示す。
FIG. 3 is a flow chart showing the main processing flow at the time of writing data in the magnetic disk device of the present invention. In the figure, # 1 to # 5 indicate steps.

【0042】ステップ#1で、上位装置1が、磁気ディ
スク装置2に対して、ライト命令を実行する。次のステ
ップ#2で、磁気ディスク装置2は、データを磁気ディ
スク3にライトする。
At step # 1, the host device 1 executes a write command to the magnetic disk device 2. In the next step # 2, the magnetic disk device 2 writes the data to the magnetic disk 3.

【0043】ステップ#3で、そのときの位置情報を一
時的にRAM24内の位置情報管理テーブルに記憶す
る。ステップ#4で、ライト位置のデータをバッファR
AM25内にリードするかどうか判断する。
At step # 3, the position information at that time is temporarily stored in the position information management table in the RAM 24. In step # 4, the data at the write position is buffer R
It is determined whether or not to lead in the AM25.

【0044】もし、リードしておくときは、次のステッ
プ#5へ進み、ライトデータをバッファRAM25内に
保持して、この図3のフローを終了する。また、ステッ
プ#4で判断した結果、ライト位置のデータをバッファ
RAM25内にリードしない場合は、そのまま、この図
3のフローを終了する。
If the data is to be read, the process proceeds to the next step # 5, the write data is held in the buffer RAM 25, and the flow of FIG. 3 is terminated. If it is determined in step # 4 that the data at the write position is not read into the buffer RAM 25, the flow of FIG.

【0045】以上のステップ#1〜#5の処理によっ
て、1回のデータのライト動作が実行される。なお、常
に、ライト位置のデータを、バッファRAM25内にリ
ードする(読み込む)ように設定されているときは、ス
テップ#4を省略する。
By the processing of the above steps # 1 to # 5, one data write operation is executed. If it is set to always read (read) the data at the write position into the buffer RAM 25, step # 4 is omitted.

【0046】次に、データのリード時の動作を説明す
る。このデータのリード動作も、1回のデータのリード
の場合である。
Next, the operation at the time of reading data will be described. This data read operation is also the case of one-time data read.

【0047】図4は、この発明の磁気ディスク装置にお
いて、データのリード時の主要な処理の流れを示すフロ
ーチャートである。#11〜#16はステップを示す。
FIG. 4 is a flow chart showing the main processing flow at the time of reading data in the magnetic disk device of the present invention. # 11 to # 16 indicate steps.

【0048】ステップ#11で、上位装置1が、磁気デ
ィスク装置2に対して、リード命令を実行する。ステッ
プ#12で、磁気ディスク装置2は、バッファRAM2
5内にデータがあるかどうかチェックする。
In step # 11, the host device 1 executes a read command to the magnetic disk device 2. In step # 12, the magnetic disk device 2 sets the buffer RAM 2
Check if there is data in 5.

【0049】もし、バッファRAM25内にデータがな
ければ、次のステップ#13で、磁気ディスク3からデ
ータをリードして、上位装置1へデータを転送する。先
のステップ#12で判断した結果、バッファRAM25
内にデータがあるときは、ステップ#14へ進む。
If there is no data in the buffer RAM 25, in the next step # 13, the data is read from the magnetic disk 3 and transferred to the host device 1. As a result of the determination made in step # 12, the buffer RAM 25
If there is data inside, go to step # 14.

【0050】ステップ#14で、バッファRAM25内
のデータを上位装置1へ転送する。ステップ#15へ進
み、上位装置1へデータを転送した後、そのときの位置
情報を、一時的にRAM24に記憶する。ステップ#1
6で、位置情報管理テーブルから、次にリードされるセ
クタのデータを、磁気ディスク3からバッファRAM2
5にリードする。
In step # 14, the data in the buffer RAM 25 is transferred to the host device 1. After proceeding to step # 15 and transferring the data to the higher-level device 1, the position information at that time is temporarily stored in the RAM 24. Step # 1
At 6, the data of the sector to be read next from the position information management table is transferred from the magnetic disk 3 to the buffer RAM 2
Lead to 5.

【0051】この位置情報のリードは、次のいずれかの
状態になるまで続けられる。 1) 上位装置1が磁気ディスク装置2をアクセスする
まで。 2) 位置情報管理テーブルで示されるセクタのデータ
を全てバッファRAM25にリードするまで。 3) バッファRAM25が一杯になるまで。
The reading of the position information is continued until one of the following states is achieved. 1) Until the host device 1 accesses the magnetic disk device 2. 2) Until all the data of the sector indicated by the position information management table is read into the buffer RAM 25. 3) Until the buffer RAM 25 is full.

【0052】以上のステップ#11〜#16の処理によ
って、1回のデータのリード動作が実行される。このよ
うに、この発明の磁気ディスク装置では、位置情報管理
テーブルの位置情報によって、一連のデータのライト/
リード動作を行う。
By the processing of steps # 11 to # 16 described above, one data read operation is executed. As described above, in the magnetic disk device of the present invention, a series of data write / write operations is performed based on the position information in the position information management table.
Perform read operation.

【0053】そして、先の図3や図4に示したフローに
よって、一連のデータのライト/リード動作が終了する
と、RAM24内に一時的に記憶しておいた位置情報
で、位置情報管理テーブルの内容を更新し、一時的に記
憶しておいた位置情報をクリアする。次に、位置情報管
理テーブルの更新動作を説明する。
When a series of data write / read operations are completed according to the flow shown in FIGS. 3 and 4, the position information temporarily stored in the RAM 24 is stored in the position information management table. Update the contents and clear the temporarily stored location information. Next, the updating operation of the position information management table will be described.

【0054】図5は、この発明の磁気ディスク装置にお
いて、位置情報管理テーブルの更新時における主要な処
理の流れを示すフローチャートである。図において、#
21〜#23はステップを示す。
FIG. 5 is a flow chart showing the main processing flow when updating the position information management table in the magnetic disk device of the present invention. In the figure, #
21 to # 23 indicate steps.

【0055】ステップ#21で、一連のデータライト/
データリードが終了したかどうか判断する。終了したと
きは、次のステップ#22で、一時的に記憶しておいた
位置情報によって、位置情報管理テーブルの内容を更新
する。
At step # 21, a series of data write /
Judge whether data read is completed. When finished, in the next step # 22, the contents of the position information management table are updated with the position information temporarily stored.

【0056】ステップ#23で、一時的に記憶しておい
た位置情報をクリアして、この図5のフローを終了す
る。また、先のステップ#21で、一連のデータライト
/データリードが終了していないと判断したときは、直
ちにこの図5のフローを終了する。
At step # 23, the temporarily stored position information is cleared, and the flow of FIG. 5 ends. Further, when it is determined in the previous step # 21 that the series of data write / data read is not completed, the flow of FIG. 5 is immediately terminated.

【0057】以上のステップ#21〜#23の処理によ
って、1回のデータのライト/リード動作が終了した後
の位置情報管理テーブルの更新が行われる。この発明の
磁気ディスク装置では、位置情報を、必要最小限の情報
で構成しているので、位置情報管理テーブルのためのR
AM領域の使用を最小限にすることができると共に、こ
の位置情報は、データ連続情報を有しているので、不連
続の領域に記録されたデータを連続したデータとして管
理することもできる。
By the processing in steps # 21 to # 23 described above, the position information management table is updated after one data write / read operation is completed. In the magnetic disk device of the present invention, since the position information is composed of the minimum necessary information, R for the position information management table is used.
The use of the AM area can be minimized, and since the position information has data continuity information, the data recorded in the discontinuous area can be managed as continuous data.

【0058】[0058]

【実施例2】この発明の磁気ディスク装置について、他
の実施例を説明する。この実施例は、請求項2の発明に
対応している。
Second Embodiment Another embodiment of the magnetic disk device of the present invention will be described. This embodiment corresponds to the invention of claim 2.

【0059】この第2の実施例では、先の実施例で説明
した位置情報を上位装置から設定することができるよう
にして、リード命令実行時のプリフェッチ機能が、即座
に有効にされるようにしている。次に、上位装置1によ
って、磁気ディスク装置2へ位置情報を設定するための
動作を説明する。
In the second embodiment, the position information described in the previous embodiment can be set from the host device so that the prefetch function at the time of executing a read instruction is immediately enabled. ing. Next, the operation for setting the position information in the magnetic disk device 2 by the host device 1 will be described.

【0060】図6は、この発明の磁気ディスク装置にお
いて、上位装置1が磁気ディスク装置2に対して位置情
報を設定するときの主要な処理の流れを示すフローチャ
ートである。図において、#31〜#32はステップを
示す。
FIG. 6 is a flow chart showing the main processing flow when the host device 1 sets position information in the magnetic disk device 2 in the magnetic disk device of the present invention. In the figure, # 31 to # 32 indicate steps.

【0061】ステップ#31で、上位装置1は、磁気デ
ィスク装置2に対して、位置情報設定命令を実行する。
ステップ#32で、上位装置1は、位置情報を位置情報
管理テーブルに登録する。
At step # 31, the host device 1 executes a position information setting command to the magnetic disk device 2.
In step # 32, the higher level device 1 registers the position information in the position information management table.

【0062】以上のステップ#31〜#32の処理によ
って、上位装置1の磁気ディスク装置2に対する位置情
報の設定動作が終了する。このように、位置情報を上位
装置から設定することにより、リード命令実行時のプリ
フェッチ機能を、即座に有効にすることができる。
By the above processing of steps # 31 to # 32, the setting operation of the position information for the magnetic disk device 2 of the host device 1 is completed. In this way, by setting the position information from the host device, the prefetch function at the time of executing the read instruction can be immediately enabled.

【0063】[0063]

【実施例3】この発明の磁気ディスク装置について、第
3の実施例を説明する。この実施例は、請求項4の発明
に対応している。
Third Embodiment A third embodiment of the magnetic disk device of the present invention will be described. This embodiment corresponds to the invention of claim 4.

【0064】この第3の実施例では、連続したデータの
リード/ライト動作の終了を、命令が変わったことによ
って判断しているので、連続したデータの位置情報管理
テーブルを正確に作成することができる。次に、連続し
たデータのリード/ライト動作の終了の判断について説
明する。
In the third embodiment, since the end of the continuous data read / write operation is determined by the change of the command, the continuous data position information management table can be accurately created. it can. Next, the determination of the end of the continuous data read / write operation will be described.

【0065】図7は、この発明の磁気ディスク装置にお
いて、連続したデータのリード/ライト動作終了の判断
の主要な処理の流れを示すフローチャートである。図に
おいて、#41〜#43はステップを示す。
FIG. 7 is a flow chart showing the main processing flow for determining the end of a continuous data read / write operation in the magnetic disk device of the present invention. In the figure, # 41 to # 43 indicate steps.

【0066】ステップ#41で、リードまたはライト命
令が終了した後、次の命令が他の命令(例えば、リード
時のときはリード命令以外の命令、同様に、ライト時の
ときはライト命令以外の命令)かどうか判断する。次の
命令が他の命令のときは、ステップ#43へ進み、位置
情報管理テーブルの容内を更新する動作を行って、この
図7のフローを終了する。
At step # 41, after the read or write command is completed, the next command is another command (for example, a command other than the read command when reading, and a command other than the write command when writing). Command). When the next command is another command, the process proceeds to step # 43 to update the contents of the position information management table, and the flow of FIG. 7 ends.

【0067】先のステップ#41で判断した結果、次の
命令が他の命令でないときは、ステップ#42へ進み、
リードまたはライト命令が終了した後、一定時間経過し
たかどうか判断する。もし、一定時間が経過したとき
は、連続したデータのリード/ライトが終了したものと
判断して、ステップ#43へ進み、位置情報管理テーブ
ルの容内を更新する動作を行って、この図7のフローを
終了する。
As a result of the judgment in the previous step # 41, if the next instruction is not another instruction, the process proceeds to step # 42,
After the read or write command is completed, it is determined whether a fixed time has passed. If a certain period of time has passed, it is determined that the continuous data read / write has been completed, the process proceeds to step # 43, and the operation of updating the contents of the position information management table is performed. Ends the flow.

【0068】また、先のステップ#42で判断した結
果、一定時間が経過していなければ、再び、先のステッ
プ#41へ戻り、同様の処理を繰り返えす。以上のステ
ップ#41〜#43の処理によって、連続したデータの
リード/ライトの終了が、命令が変わったことによって
判断されるので、連続したデータの位置情報管理テーブ
ルを正確に作成することができる。
If it is determined in the previous step # 42 that the predetermined time has not elapsed, the process returns to the previous step # 41 and the same processing is repeated. Through the processing of steps # 41 to # 43 described above, the end of reading / writing continuous data is determined by the change of the command, so that the position information management table of continuous data can be accurately created. .

【0069】[0069]

【実施例4】この発明の磁気ディスク装置について、第
4の実施例を説明する。この実施例は、請求項6の発明
に対応しているが、請求項5の発明にも関連する。請求
項5の発明では、連続したデータのリード/ライトの終
了を、リード/ライト命令の実行間隔から判断するよう
にしているので、命令が変わらない場合にも、連続した
データの位置情報管理テーブルを正確に作成することが
できる。
Fourth Embodiment A fourth embodiment of the magnetic disk device of the present invention will be described. This embodiment corresponds to the invention of claim 6, but also relates to the invention of claim 5. According to the fifth aspect of the present invention, the end of the continuous data read / write is judged from the execution interval of the read / write instruction. Therefore, even if the instruction does not change, the continuous data position information management table Can be created accurately.

【0070】この第4の実施例では、請求項5の発明に
加え、連続したデータのリード/ライトの終了を判断す
る実行間隔(時間)を、上位装置から設定することがで
きるようにしているので、上位装置のシステム(OS:
オペレーティングシステム)に合わせたリード/ライト
命令の終了を判断することが可能になる。次に、上位装
置1が、連続したデータのライト/リード動作の終了を
判断するための時間を設定する動作について説明する。
In the fourth embodiment, in addition to the fifth aspect of the invention, the execution interval (time) for judging the end of continuous data read / write can be set from the host device. Therefore, the system (OS:
It is possible to judge the end of the read / write instruction according to the operating system. Next, an operation in which the host device 1 sets a time for determining the end of the continuous data write / read operation will be described.

【0071】図8は、この発明の磁気ディスク装置にお
いて、上位装置1が連続したデータのライト/リード動
作の終了を判断するための時間を設定するときの主要な
処理の流れを示すフローチャートである。図において、
#51〜#52はステップを示す。
FIG. 8 is a flow chart showing the main processing flow when the host device 1 sets the time for judging the end of the continuous data write / read operation in the magnetic disk device of the present invention. . In the figure,
# 51 to # 52 indicate steps.

【0072】ステップ#51で、上位装置1は、磁気デ
ィスク装置2へリード/ライトの終了間隔の時間設定命
令を実行する。ステップ#52で、終了判定間隔の時間
を転送する。
In step # 51, the host device 1 executes a time setting command for the read / write end interval to the magnetic disk device 2. In step # 52, the time of the end determination interval is transferred.

【0073】以上のステップ#51〜#52の処理によ
って、上位装置1の磁気ディスク装置2に対する連続し
たデータのライト/リード動作の終了を判断するための
時間の設定動作が終了する。このように、連続したデー
タのリード/ライトの終了を判断する実行間隔(時間)
を、上位装置から設定することができるようにしている
ので、、上位装置のシステム(OS:オペレーティング
システム)に合わせたリード/ライト命令の終了を判断
することが可能になる。
By the processes of steps # 51 to # 52, the time setting operation for judging the end of the continuous data write / read operation for the magnetic disk device 2 of the host device 1 is completed. In this way, the execution interval (time) to judge the end of continuous data read / write
Since it can be set by the host device, it is possible to determine the end of the read / write command that matches the system (OS: operating system) of the host device.

【0074】[0074]

【発明の効果】請求項1の磁気ディスク装置では、リー
ド/ライトしたときの位置情報は、必要最小限の情報で
構成されている。したがって、位置情報管理テーブルの
ためのRAM領域の使用を最小限にすることができる。
また、位置情報は、データ連続情報を有しているので、
不連続の領域に記録されたデータを連続したデータとし
て管理することもできる。
According to the magnetic disk drive of the first aspect, the position information at the time of reading / writing is composed of the minimum necessary information. Therefore, the use of the RAM area for the position information management table can be minimized.
In addition, since the position information has data continuity information,
It is also possible to manage the data recorded in the discontinuous area as continuous data.

【0075】請求項2の磁気ディスク装置によれば、位
置情報を上位装置から設定することができる。したがっ
て、リード命令実行時のプリフェッチ機能を、即座に有
効にすることができる。
According to the magnetic disk device of the second aspect, the position information can be set from the host device. Therefore, the prefetch function at the time of executing the read instruction can be immediately enabled.

【0076】請求項3の磁気ディスク装置では、次にリ
ードされるデータが記録されている位置へ磁気ヘッドを
移動(シーク)させ、次にリードされるデータをバッフ
ァRAM内にリードしておく。したがって、次に実行さ
れるリード命令に対して、直ちにデータを転送すること
ができる。
In the magnetic disk drive of the third aspect, the magnetic head is moved (seeked) to the position where the data to be read next is recorded, and the data to be read next is read into the buffer RAM. Therefore, the data can be immediately transferred in response to the read instruction to be executed next.

【0077】請求項4の磁気ディスク装置においては、
連続したデータのリード/ライトの終了を、命令が変わ
ったことによって判断している。したがって、連続した
データの位置情報管理テーブルを正確に作成することが
できる。
In the magnetic disk drive of claim 4,
The end of continuous data read / write is judged by the change of the instruction. Therefore, the position information management table of continuous data can be created accurately.

【0078】請求項5の磁気ディスク装置においては、
連続したデータのリード/ライトの終了を、リード/ラ
イト命令の実行間隔から判断するようにしている。した
がって、命令が変わらない場合にも、連続したデータの
位置情報管理テーブルを正確に作成することができる。
In the magnetic disk drive of claim 5,
The end of continuous data read / write is judged from the execution interval of the read / write command. Therefore, even if the command does not change, the position information management table of continuous data can be accurately created.

【0079】請求項6の磁気ディスク装置によれば、連
続したデータのリード/ライトの終了を判断する実行間
隔(時間)を、上位装置から設定することができる。し
たがって、上位装置のシステム(OS:オペレーティン
グシステム)に合わせたリード/ライト命令の終了を判
断することができる。
According to the magnetic disk device of the sixth aspect, the execution interval (time) for judging the end of reading / writing of continuous data can be set from the host device. Therefore, it is possible to determine the end of the read / write instruction according to the system (OS: operating system) of the host device.

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

【図1】この発明の磁気ディスク装置について、上位装
置と接続されたディスク装置の要部構成の一実施例を示
す機能ブロック図である。
FIG. 1 is a functional block diagram showing an embodiment of a main part configuration of a disk device connected to a host device in a magnetic disk device of the present invention.

【図2】この発明の磁気ディスク装置で使用される位置
情報管理テーブルについて、その位置情報のフォーマッ
トの一例を示す図である。
FIG. 2 is a diagram showing an example of a position information format of a position information management table used in the magnetic disk device of the present invention.

【図3】この発明の磁気ディスク装置において、データ
のライト時の主要な処理の流れを示すフローチャートで
ある。
FIG. 3 is a flowchart showing a main processing flow when writing data in the magnetic disk device of the present invention.

【図4】この発明の磁気ディスク装置において、データ
のリード時の主要な処理の流れを示すフローチャートで
ある。
FIG. 4 is a flowchart showing a main processing flow at the time of reading data in the magnetic disk device of the present invention.

【図5】この発明の磁気ディスク装置において、位置情
報管理テーブルの更新時における主要な処理の流れを示
すフローチャートである。
FIG. 5 is a flow chart showing a main processing flow when updating the position information management table in the magnetic disk device of the present invention.

【図6】この発明の磁気ディスク装置において、上位装
置1が磁気ディスク装置2に対して位置情報を設定する
ときの主要な処理の流れを示すフローチャートである。
FIG. 6 is a flowchart showing a main processing flow when the host device 1 sets position information to the magnetic disk device 2 in the magnetic disk device of the present invention.

【図7】この発明の磁気ディスク装置において、連続し
たデータのリード/ライト動作終了の判断の主要な処理
の流れを示すフローチャートである。
FIG. 7 is a flowchart showing a main processing flow for determining the end of read / write operation of continuous data in the magnetic disk device of the present invention.

【図8】この発明の磁気ディスク装置において、上位装
置1が連続したデータのライト/リード動作の終了を判
断するための時間を設定するときの主要な処理の流れを
示すフローチャートである。
FIG. 8 is a flowchart showing a main processing flow when the upper level device 1 sets a time for determining the end of continuous data write / read operations in the magnetic disk device of the present invention.

【図9】リード命令の実行時におけるバッファRAM内
にリードするシーケンスの一例を示す図である。
FIG. 9 is a diagram showing an example of a sequence for reading into a buffer RAM when a read instruction is executed.

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

1 上位装置 2 磁気ディスク装置 21 I/Fコントローラ 22 CPU 23 ROM 24 RAM 25 バッファRAM 26 リード/ライト制御回路 3 磁気ディスク 1 Host Device 2 Magnetic Disk Device 21 I / F Controller 22 CPU 23 ROM 24 RAM 25 Buffer RAM 26 Read / Write Control Circuit 3 Magnetic Disk

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも1枚の磁気ディスクと、該磁
気ディスクに対応する記録・再生を行う磁気ヘッドとを
有する磁気ディスク装置において、 データをリード/ライトしたときの位置を、データ連
続情報(データが他の位置情報のデータと連続している
ことを示す第1の情報)と、データリード情報(データ
の一部、または全部がバッファRAM内に存在すること
を示す第2の情報)と、データ常駐情報(データを常に
バッファ内にリードしておくことを示す第3の情報)と
を含むフラグ領域と、スタートセクタ番号と、セク
タ数と、スタートアドレスとエンドアドレスとで示さ
れるバッファアドレス、とから構成される位置情報を格
納する位置情報管理テーブルを備え、 データのリード/ライト動作時に、前記位置情報管理テ
ーブルの位置情報を管理することを特徴とする磁気ディ
スク装置。
1. In a magnetic disk device having at least one magnetic disk and a magnetic head for recording / reproducing corresponding to the magnetic disk, the position when data is read / written is set as data continuity information (data Is continuous with data of other position information), and data read information (second information indicating that part or all of the data exists in the buffer RAM), A flag area including data resident information (third information indicating that data is always read in the buffer), a start sector number, a sector number, and a buffer address indicated by a start address and an end address, A position information management table configured to store position information composed of the Magnetic disk apparatus characterized by managing the location information.
【請求項2】 請求項1の磁気ディスク装置において、 位置情報を上位装置から設定する位置情報設定手段を備
え、 該位置情報設定手段によって、上位装置から位置情報を
設定することを特徴とする磁気ディスク装置。
2. The magnetic disk device according to claim 1, further comprising: position information setting means for setting position information from a higher-level device, wherein the position information setting means sets the position information from the higher-level device. Disk device.
【請求項3】 請求項1の磁気ディスク装置において、 位置情報を管理するテーブルから、次にリードされるデ
ータが記録されている位置を検索し、磁気ヘッドを移動
させる記録位置検索・ヘッド移動手段と、 検索した位置のセクタのデータを磁気ディスク装置のバ
ッファRAM内にリードするリード手段、とを備えたこ
とを特徴とする磁気ディスク装置。
3. The magnetic disk drive according to claim 1, wherein a table for managing position information is searched for a position at which data to be read next is recorded, and a recording position search / head moving means for moving the magnetic head. And a read means for reading the data of the sector at the searched position into the buffer RAM of the magnetic disk device.
【請求項4】 請求項1の磁気ディスク装置において、 位置情報におけるデータ連続情報を作成するときの連続
したデータのリード/ライトの終了を、命令の種類が変
わった時点で判断する判断手段を備え、 該判断手段によって連続したデータのリード/ライトの
終了を検知することを特徴とする磁気ディスク装置。
4. The magnetic disk device according to claim 1, further comprising a judging means for judging the end of continuous data read / write when creating the data continuity information in the position information when the type of the instruction changes. A magnetic disk device, wherein the judgment means detects the end of continuous data read / write.
【請求項5】 請求項1の磁気ディスク装置において、 位置情報におけるデータ連続情報を作成するときの連続
したデータのリード/ライトの終了を、リード/ライト
命令の実行間隔から判断する判断手段を備え、 該判断手段によって連続したデータのリード/ライトの
終了を検知することを特徴とする磁気ディスク装置。
5. The magnetic disk device according to claim 1, further comprising a judging means for judging the end of continuous data read / write when creating the data continuity information in the position information from the execution interval of the read / write command. A magnetic disk device, wherein the judgment means detects the end of continuous data read / write.
【請求項6】 請求項5の磁気ディスク装置において、 リード/ライト命令の終了を判断する実行間隔を、上位
装置から設定する実行間隔設定手段を備え、 該実行間隔設定手段によって、上位装置から実行間隔を
設定することを特徴とする磁気ディスク装置。
6. The magnetic disk device according to claim 5, further comprising an execution interval setting means for setting an execution interval for determining the end of the read / write instruction from a higher-level device, and the execution interval setting means for executing from the higher-level device. A magnetic disk device characterized by setting an interval.
JP28067392A 1992-09-26 1992-09-26 Magnetic disk drive Expired - Fee Related JP3435176B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28067392A JP3435176B2 (en) 1992-09-26 1992-09-26 Magnetic disk drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28067392A JP3435176B2 (en) 1992-09-26 1992-09-26 Magnetic disk drive

Publications (2)

Publication Number Publication Date
JPH06111482A true JPH06111482A (en) 1994-04-22
JP3435176B2 JP3435176B2 (en) 2003-08-11

Family

ID=17628339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28067392A Expired - Fee Related JP3435176B2 (en) 1992-09-26 1992-09-26 Magnetic disk drive

Country Status (1)

Country Link
JP (1) JP3435176B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872955A (en) * 1994-11-29 1999-02-16 International Business Machines Corporation Method and apparatus for reading and writing data in a disk drive system
KR100333299B1 (en) * 1998-05-15 2002-04-24 모리시타 요이찌 Methods of copying, recording and editing data on the disk media and the disk recording apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872955A (en) * 1994-11-29 1999-02-16 International Business Machines Corporation Method and apparatus for reading and writing data in a disk drive system
KR100333299B1 (en) * 1998-05-15 2002-04-24 모리시타 요이찌 Methods of copying, recording and editing data on the disk media and the disk recording apparatus

Also Published As

Publication number Publication date
JP3435176B2 (en) 2003-08-11

Similar Documents

Publication Publication Date Title
EP1280063A2 (en) Cache control methods and apparatus for hard disk drives
JP3898782B2 (en) Information recording / reproducing device
US4466059A (en) Method and apparatus for limiting data occupancy in a cache
JP3183993B2 (en) Disk control system
JPH08328752A (en) Device and method for recording information
US20060236051A1 (en) High-speed snapshot method
JP3586887B2 (en) Information recording / reproducing apparatus and data cache method
JPH06342395A (en) Method and medium for storage of structured data
JP2531907B2 (en) Buffer memory management method and device for permitting division
JPS58155464A (en) Detection of sequential data stream
JP2001312373A (en) Write method for data and disk drive device
US6092145A (en) Disk drive system using sector buffer for storing non-duplicate data in said sector buffer
KR19980029917A (en) How to improve read cache performance on magnetic disk drives
JPH11175381A (en) Information recording and reproducing device
US5872955A (en) Method and apparatus for reading and writing data in a disk drive system
US20010020260A1 (en) Method and system of reading and writing data by a disk drive apparatus
JP3435176B2 (en) Magnetic disk drive
JPH076088A (en) Information storage device
JP3969809B2 (en) Data buffer management method in storage device
JPH0773107A (en) Control method for disk system
JPH0934791A (en) Information storage device
JP3083530B2 (en) Cache memory data management method and cache control device
JPH04311216A (en) External storage controller
JP2973474B2 (en) Magneto-optical disk drive
JPH0612328A (en) Method for storing data in cache memory

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080530

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees