JP3435176B2 - Magnetic disk drive - Google Patents

Magnetic disk drive

Info

Publication number
JP3435176B2
JP3435176B2 JP28067392A JP28067392A JP3435176B2 JP 3435176 B2 JP3435176 B2 JP 3435176B2 JP 28067392 A JP28067392 A JP 28067392A JP 28067392 A JP28067392 A JP 28067392A JP 3435176 B2 JP3435176 B2 JP 3435176B2
Authority
JP
Japan
Prior art keywords
data
read
magnetic disk
position information
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP28067392A
Other languages
Japanese (ja)
Other versions
JPH06111482A (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.)
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

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に、
磁気ディスクに対応する記録・再生を行う磁気ヘッドと
を有する磁気ディスク装置において、データを連続して
いない領域からリードまたは連続していない領域へライ
トするときに位置情報を記憶する位置情報管理テーブル
をRAM内に格納し、上記位置情報管理テーブルに記憶
される位置情報の一つは、データ連続情報(上記位置情
報管理テーブルに格納された位置情報のデータが他の上
記位置情報管理テーブルに格納された位置情報のデータ
と連続していることを示す第1の情報)と、データリー
ド情報(データの一部、または全部がバッファRAM内
に存在することを示す第2の情報)と、データ常駐情報
(データを常にバッファRAM内にリードしておくこと
を示す第3の情報)とを含むフラグ領域と、スタートセ
クタ番号と、セクタ数と、データが格納されているバッ
ファRAMのスタートアドレスとエンドアドレスとで示
されるバッファアドレスとから構成され、データのリー
ドまたはライト動作時に、上記位置情報管理テーブルの
位置情報を管理するように構成している。
According to the present invention, firstly,
In a magnetic disk device having a magnetic head for recording / reproducing corresponding to a magnetic disk, a position information management table that stores position information when reading or writing data from a non-continuous area to a non-continuous area is provided. One of the position information stored in the RAM and stored in the position information management table is data continuity information (the data of the position information stored in the position information management table is stored in another position information management table). Information indicating that the data is continuous with the position information data, data read information (second information indicating that part or all of the data exists in the buffer RAM), and data resident. information and flag area including the (always third information indicating that you read in the buffer RAM data) and a start sector number, section And a buffer address indicated by a start address and an end address of a buffer RAM in which data is stored. The position information of the position information management table is managed at the time of a data read or write operation. is doing.

【0018】[0018]

【0019】第に、上記第1の磁気ディスク装置にお
いて、上記位置情報管理テーブルから、次にリードされ
るデータが記録されている位置を検索し、磁気ヘッドを
移動させる記録位置検索・ヘッド移動手段と、検索した
位置のセクタのデータを磁気ディスク装置のバッファR
AM内にリードするリード手段、とを備えた構成であ
る。
[0019] Second, in the first magnetic disk device, from the location information management table, and searches the position data being then read is recorded, the recording position search head movement for moving the magnetic head Means and the data of the sector at the searched position is stored in the buffer R of the magnetic disk device.
And a read means for reading in the AM.

【0020】第に、上記第1の磁気ディスク装置にお
いて、上記位置情報におけるデータ連続情報を作成する
ときの連続したデータのリードまたはライトの終了を、
命令の種類が変わった時点で判断する判断手段を備え、
その判断手段によって連続したデータのリードまたはラ
イトの終了を検知するように構成している。
[0020] Thirdly, in the first magnetic disk device, the end of the read or write consecutive data when creating a data continuously information in the position information,
Equipped with a judgment means to judge when the type of instruction has changed,
The determination means is configured to detect the end of continuous data read or write.

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

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

【0023】[0023]

【作用】この発明では、従来、大容量のデータをリード
またはライトする場合で、特に、1つのデータを連続し
ていない領域にリードまたはライトするときは、複数回
のリードまたはライト命令に分けて実行している点に着
目し、位置情報管理テーブルに、複数回に分割されたデ
ータのリードまたはライトを行ったときの位置を、デー
タ連続情報として記憶しておき、次のデータのリードま
たはライト時に、利用するようにしている(請求項1の
発明)
According to the present invention, conventionally, when a large amount of data is read or written, particularly when one data is read or written in an area which is not continuous, it is divided into a plurality of read or write instructions. Focusing on the point of execution, the position information management table stores the position when reading or writing data divided multiple times as data continuity information, and then reads or writes the next data. Sometimes it is used (the invention of claim 1) .

【0024】第に、キャッシュ機能とプリフェッチ機
能を向上させるために、位置情報に基いて、リード命令
で指定される位置のデータが、バッファ内にある(常駐
指定あるいはプリフェッチ機能でリード済み)ときに
は、バッファ内のデータを転送し、ディスク上のデータ
のリードは行わない。さらに、リード動作の終了後は、
次のデータの位置を検索し、バッファ内にデータをリー
ドしておく(請求項3の発明)。
[0024] Second, in order to improve the caching and prefetching capabilities, based on the positional information, the data of the position designated by the read command, (already read in persistence specification or prefetch function) in the buffer sometimes , 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】ところで、磁気ディスク装置それ自身で
は、複数回に分割されたデータのライト動作の終了を判
定することはできない。そこで、第に、1つの連続し
たデータに対して、複数回のリードまたはライト命令が
実行されたときは、その一連のリードまたはライトの終
了を判断するために、命令の種類が変わった時点(例え
ば、リードの場合には、リード以外の命令)で、一連の
リードまたはライト動作が終了した、と判断する(請求
の発明)。
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. Point Therefore, the third, for one continuous data, when the plurality of read or write instruction is executed, in order to determine the end of the series of read or write type instruction has changed (For example, in the case of read, an instruction other than read) determines that a series of read or write operations has ended (the invention of claim 3 ).

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

【0027】[0027]

【実施例1】次に、この発明の磁気ディスク装置につい
て、図面を参照しながら、その実施例を詳細に説明す
る。この実施例は、主として請求項1の発明に対応して
いるが、請求項2から請求項の発明にも関連する。
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 5 .

【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) The data of the data continuation information 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]

【この発明の参考となる磁気ディスク装置の例】この発
明の参考となる磁気ディスク装置について説明する
[Example of a magnetic disk apparatus that can be used as a guide of the present invention] Explain with the magnetic disk device that can be used as a guide of the present invention.

【0059】この例では、先の実施例で説明した位置情
報を上位装置から設定することができるようにして、リ
ード命令実行時のプリフェッチ機能が、即座に有効にさ
れるようにしている。次に、上位装置1によって、磁気
ディスク装置2へ位置情報を設定するための動作を説明
する。
[0059] In Example of this, and to be able to set the position information described in the previous example from the host device, the prefetch function in a read instruction execution, is to be in effect immediately. 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はステップを示す。
[0060] FIG. 6, in the magnetic disk device of this,
6 is a flowchart showing a main processing flow when the host device 1 sets position information for the magnetic disk device 2. 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, that is, the magnetic disk
Data is divided and stored in the host device to which the device is connected
When the host device knows that the
By setting in the magnetic disk device as information
Therefore, the prefetch function at the time of executing the read instruction can be immediately enabled.

【0063】[0063]

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

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

【実施例3】この発明の磁気ディスク装置について、第
の実施例を説明する。この実施例は、請求項の発明
に対応しているが、請求項の発明にも関連する。請求
の発明では、連続したデータのリード/ライトの終
了を、リード/ライト命令の実行間隔から判断するよう
にしているので、命令が変わらない場合にも、連続した
データの位置情報管理テーブルを正確に作成することが
できる。
[Third Embodiment] A magnetic disk device of the present invention will be described below.
Example 3 will be described. This embodiment corresponds to the invention of claim 5 , but is also related to the invention of claim 4 . According to the fourth aspect of the present invention, 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 continuous data position information management table Can be created accurately.

【0070】この第の実施例では、請求項の発明に
加え、連続したデータのリード/ライトの終了を判断す
る実行間隔(時間)を、上位装置から設定することがで
きるようにしているので、上位装置のシステム(OS:
オペレーティングシステム)に合わせたリード/ライト
命令の終了を判断することが可能になる。次に、上位装
置1が、連続したデータのライト/リード動作の終了を
判断するための時間を設定する動作について説明する。
In the third embodiment, in addition to the invention of claim 4 , 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 or writing is composed of the minimum necessary information. Therefore, the use of the RAM area for the position information management table can be minimized. Further, since the position information has data continuity information, it is possible to manage the data recorded in the discontinuous area as continuous data.

【0075】[0075]

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

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

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

【0079】請求項の磁気ディスク装置によれば、連
続したデータのリードまたはライトの終了を判断する実
行間隔(時間)を、上位装置から設定することができ
る。したがって、上位装置のシステム(OS:オペレー
ティングシステム)に合わせたリードまたはライト命令
の終了を判断することができる。
According to the magnetic disk device of the fifth aspect , the execution interval (time) for judging the end of continuous data read or write can be set from the host device. Therefore, it is possible to determine the end of the read or write command that matches 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に対して位置情報
を設定するときの主要な処理の流れを示すフローチャー
トである。
[6] In reference to the magnetic disk unit according to the present invention, is a flowchart showing a flow of main processing when the host device 1 to set the position information to the magnetic disk unit 2.

【図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 Upper device 2 Magnetic disk unit 21 I / F controller 22 CPU 23 ROM 24 RAM 25 buffer RAM 26 Read / write control circuit 3 magnetic disk

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 3/06 - 3/08 G06F 12/08 G11B 20/10 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 3/06-3/08 G06F 12/08 G11B 20/10

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 磁気ディスクに対応する記録・再生を行
う磁気ヘッドとを有する磁気ディスク装置において、 データを連続していない領域からリードまたは連続して
いない領域へライトするときに位置情報を記憶する位置
情報管理テーブルをRAM内に格納し、前記位置情報管
理テーブルに記憶される位置情報の一つは、データ連続
情報(前記位置情報管理テーブルに格納された位置情報
のデータが他の前記位置情報管理テーブルに格納された
位置情報のデータと連続していることを示す第1の情
報)と、データリード情報(データの一部、または全部
がバッファRAM内に存在することを示す第2の情報)
と、データ常駐情報(データを常にバッファRAM内に
リードしておくことを示す第3の情報)とを含むフラグ
領域と、スタートセクタ番号と、セクタ数と、データが
格納されているバッファRAMのスタートアドレスとエ
ンドアドレスとで示されるバッファアドレスと、から構
成され、 データのリードまたはライト動作時に、前記位置情報管
理テーブルの位置情報を管理することを特徴とする磁気
ディスク装置
1. In a magnetic disk device having a magnetic head for recording / reproducing corresponding to a magnetic disk, position information is stored when data is read from or written to a non-continuous area. The position information management table is stored in the RAM, and one of the position information stored in the position information management table is data continuity information (the data of the position information stored in the position information management table is other position information). First information indicating that the position information data stored in the management table is continuous, and data read information (second information indicating that part or all of the data exists in the buffer RAM). )
And a data resident information (third information indicating that the data is always read in the buffer RAM), a start sector number, the number of sectors, and a buffer RAM in which the data is stored. A magnetic disk device comprising a buffer address represented by a start address and an end address, and managing position information of the position information management table at the time of data read or write operation .
【請求項2】 請求項1の磁気ディスク装置において、 前記位置情報管理テーブルから、次にリードされるデー
タが記録されている位置を検索し、磁気ヘッドを移動さ
せる記録位置検索・ヘッド移動手段と、検索した位置の
セクタのデータを磁気ディスク装置のバッファRAM内
にリードするリード手段、とを備えたことを特徴とする
磁気ディスク装置。
2. The magnetic disk device according to claim 1, further comprising: a recording position search / head moving unit that moves the magnetic head by searching the position information management table for a position where data to be read next is recorded. A read unit that reads the data of the sector at the searched position into the buffer RAM of the magnetic disk unit.
【請求項3】 請求項1の磁気ディスク装置において、 前記位置情報におけるデータ連続情報を作成するときの
連続したデータのリードまたはライトの終了を、命令の
種類が変わった時点で判断する判断手段を備え、該判断
手段によって連続したデータのリードまたはライトの終
了を検知することを特徴とする磁気ディスク装置。
3. The magnetic disk device according to claim 1, further comprising a determining means for determining the end of continuous data read or write when creating the data continuity information in the position information when the type of instruction changes. A magnetic disk drive, comprising: the determination means for detecting the end of continuous data read or write.
【請求項4】 請求項1の磁気ディスク装置において、 前記位置情報におけるデータ連続情報を作成するときの
連続したデータのリードまたはライトの終了を、リード
またはライト命令の実行間隔から判断する判断手段を備
え、該判断手段によって連続したデータのリードまたは
ライトの終了を検知することを特徴とする磁気ディスク
装置。
4. The magnetic disk device according to claim 1, further comprising a determining unit that determines the end of continuous data read or write when creating the data continuity information in the position information from the execution interval of the read or write command. A magnetic disk drive, comprising: the determination means for detecting the end of continuous data read or write.
【請求項5】 請求項の磁気ディスク装置において、 リードまたはライト命令の終了を判断する実行間隔を、
上位装置から設定する実行間隔設定手段を備え、該実行
間隔設定手段によって、上位装置から実行間隔を設定す
ることを特徴とする磁気ディスク装置。
5. The magnetic disk device according to claim 4 , wherein an execution interval for determining the end of a read or write command is
A magnetic disk device, comprising: an execution interval setting means for setting from an upper device, wherein the execution interval setting means sets the execution interval from the upper device.
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 JPH06111482A (en) 1994-04-22
JP3435176B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2968181B2 (en) * 1994-11-29 1999-10-25 インターナショナル・ビジネス・マシーンズ・コーポレイション Disk device and data writing / reading method
CN1150541C (en) * 1998-05-15 2004-05-19 松下电器产业株式会社 Data copying method for disc recorded medium, data recording method, data editing method and disc recorder

Also Published As

Publication number Publication date
JPH06111482A (en) 1994-04-22

Similar Documents

Publication Publication Date Title
EP1280063A2 (en) Cache control methods and apparatus for hard disk drives
US4466059A (en) Method and apparatus for limiting data occupancy in a cache
JP3183993B2 (en) Disk control system
JP3898782B2 (en) Information recording / reproducing device
JPH08328752A (en) Device and method for recording information
US20060236051A1 (en) High-speed snapshot method
JPS58155464A (en) Detection of sequential data stream
JP4067293B2 (en) Cache control program and cache processing computer
JPH06342395A (en) Method and medium for storage of structured data
JP2003150447A (en) Cache buffer control method and controller
JPH07334426A (en) Information recording and reproducing device and data caching method
JPS63186348A (en) Apparatus for heightening utility of single writing/multiple reading memory medium
KR19980029917A (en) How to improve read cache performance on magnetic disk drives
US7406547B2 (en) Sequential vectored buffer management
US6654852B2 (en) Method and system of reading and writing data by a disk drive apparatus
JP3435176B2 (en) Magnetic disk drive
JPH076088A (en) Information storage device
JP2943896B2 (en) Computer system and disk data control method
JPH0934791A (en) Information storage device
JPH11134255A (en) Management method for data buffer in storage device
JPH0944315A (en) Memory device and its method
JP3083530B2 (en) Cache memory data management method and cache control device
JP2001117818A (en) Memory managing device, managing method, and recording medium recorded with managing program
JP2002342038A (en) Disk device controlling execution order of commands
JPH10124387A (en) Unit and method for cache control

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