JP2980326B2 - Disk controller - Google Patents

Disk controller

Info

Publication number
JP2980326B2
JP2980326B2 JP1225403A JP22540389A JP2980326B2 JP 2980326 B2 JP2980326 B2 JP 2980326B2 JP 1225403 A JP1225403 A JP 1225403A JP 22540389 A JP22540389 A JP 22540389A JP 2980326 B2 JP2980326 B2 JP 2980326B2
Authority
JP
Japan
Prior art keywords
data
read
disk
file
sector
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
JP1225403A
Other languages
Japanese (ja)
Other versions
JPH0388018A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1225403A priority Critical patent/JP2980326B2/en
Publication of JPH0388018A publication Critical patent/JPH0388018A/en
Application granted granted Critical
Publication of JP2980326B2 publication Critical patent/JP2980326B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明はディスク制御装置に関し、特にディスク装
置に対するファイルの書き込みおよび読み出しを制御す
るディスク制御装置に関する。
The present invention relates to a disk control device, and more particularly, to a disk control device that controls writing and reading of a file to and from a disk device.

(従来の技術) ディスクオペレーティングシステム(DOS)を使用す
るコンピュータシステムにおいては、ディスク装置上の
ある特定の場所にファイルアロケーションテーブル(FA
T)領域が設けられている。このFATは、ディスク装置の
データ記憶領域の使用状態つまりデータ記憶領域におけ
るファイルの割り当て状態を示すためのもので、このFA
Tにはファイルが記憶されているセクタ位置の繋がりを
示すクラスト情報が含まれている。
(Prior Art) In a computer system using a disk operating system (DOS), a file allocation table (FA) is stored in a specific location on a disk device.
T) A region is provided. This FAT indicates the use status of the data storage area of the disk device, that is, the file allocation status in the data storage area.
T includes crust information indicating the connection between the sector positions where the file is stored.

クラスタ情報は一般に複数のクラスタを有しており、
各クラスタはファイルが格納されているディスク上のセ
クタ位置を示すポインタとして機能する。
Cluster information generally has multiple clusters,
Each cluster functions as a pointer indicating the sector position on the disk where the file is stored.

したがって、ホストコンピュータは、ファイルオープ
ン時においてそのFAT内のクラスタ情報を参照して実際
にファイルの存在するセクタ位置を求め、ディスク制御
装置に対してそのセクタ位置へのアクセスすなわち読み
出し指示を行う。1つのファイルが複数のセクタに亙っ
て記憶されている倍には、ホストコンピュータはクラス
タ情報に基づいて引き続くセクタ位置を求め、そのセク
タ位置への読み出し指示を繰り返し行う。
Therefore, when the file is opened, the host computer refers to the cluster information in the FAT to find the sector position where the file actually exists, and instructs the disk controller to access, ie, read, the sector position. When one file is stored over a plurality of sectors, the host computer obtains a subsequent sector position based on the cluster information and repeatedly issues a read instruction to the sector position.

このように、従来はアクセスするセクタ位置を決定す
るために、ホストコンピュータによってFATの内容を逐
次参照することが必要であった。このため、ディスク装
置に対して高速アクセスを実行することが困難であっ
た。
As described above, conventionally, it has been necessary to sequentially refer to the contents of the FAT by the host computer in order to determine the position of the sector to be accessed. For this reason, it was difficult to execute high-speed access to the disk device.

(発明が解決しようとする課題) 従来では、アクセスするセクタ位置を決定するために
ホストコンピュータによってFATの内容を逐次参照する
ことが必要であり、ディスク装置に対して高速アクセス
に実行できない欠点があった。
(Problems to be Solved by the Invention) Conventionally, in order to determine the position of the sector to be accessed, it is necessary to sequentially refer to the contents of the FAT by the host computer, and there is a disadvantage that the disk device cannot be accessed at high speed. Was.

この発明はこの様な点に鑑みなされたもので、ディス
ク装置に対して高速アクセスを実行することができるデ
ィスク制御装置を提供する事を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide a disk control device capable of executing high-speed access to a disk device.

[発明の構成] (課題を解決するための手段および作用) この発明は、ディスク装置に対するデータの書き込み
および読み出しを制御するディスク制御装置において、
記憶手段と、データ格納手段と、ファイルが記憶されて
いるセクタ位置の繋がりを示すクラスタ情報を含む前記
ディスク装置上のファイルアロケーションテーブル領域
の内容のコピーを前記記憶手段に書き込む手段と、前記
ディスク装置のデータ領域に対するホストコンピュータ
からの読み出し要求に応答して、その読み出し要求が新
ファイルに関する読み出し要求であるか否かを判別する
手段と、新ファイルに関する読み出し要求であるとき、
前記記憶手段のファイルアロケーションテーブルを参照
して、前記読み出し要求で指定されたセクタが属するフ
ァイルを構成するデータのセクタ位置を順次検出するセ
クタ位置検出手段と、このセクタ位置検出手段で検出さ
れた各セクタ位置のデータを前記データ格納手段に先読
みする先読み手段とを具備し、ファイル単位でデータを
先読みできるようにしたことを特徴とする。
[Structure of the Invention] (Means and Action for Solving the Problems) The present invention relates to a disk control device that controls writing and reading of data to and from a disk device.
Storage means, data storage means, means for writing in the storage means a copy of the contents of the file allocation table area on the disk device, including cluster information indicating the connection between the sector positions where the files are stored, and the disk device Means for determining, in response to a read request from the host computer for the data area, whether the read request is a read request for a new file; and
A sector position detecting unit for sequentially detecting a sector position of data constituting a file to which the sector specified by the read request belongs by referring to a file allocation table of the storage unit; A prefetch means for prefetching data at a sector position into the data storage means, so that data can be prefetched in file units.

このディスク制御装置においては、ホストコンピュー
タから新ファイルに関する読み出し要求が発行される度
に、ファイルアロケーションテーブルを参照することに
より読み出し要求によって指定されたセクタが属するフ
ァイルを構成するデータのセクタ位置が順次検出され、
その検出された各セクタ位置からデータが先読みされ
る。このように、あるファイルのセクタが最初に読み出
し要求された段階で、そのファイルを構成する各データ
を先読みするというファイル単位での先読み処理を行う
ことにより、たとえ読み出し要求されたセクタが属する
ファイルを構成するデータが複数のトラックに分散して
格納されている場合等であっても、引き続く同一ファイ
ルに関する読み出し要求で指定されたセクタデータを即
座にホストコンピュータに渡すことが可能となる。
In this disk controller, every time a read request for a new file is issued from the host computer, the sector position of data constituting the file to which the sector specified by the read request belongs is sequentially detected by referring to the file allocation table. And
Data is pre-read from each of the detected sector positions. As described above, when a sector of a file is first requested to be read, by performing a read-ahead process in file units of pre-reading each data constituting the file, even if the file to which the sector requested to read belongs is performed. Even when the constituent data is distributed and stored in a plurality of tracks, the sector data specified by the subsequent read request for the same file can be immediately transferred to the host computer.

(実施例) 以下、図面を参照してこの発明の実施例を説明する。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図にこの発明の一実施例に係わるディスク制御装
置を用いたコンピュータシステムの概略を示す。ホスト
コンピュータ11はこのシステム全体の制御を司るもので
あり、ディスクコントローラ12を介してディスクドライ
ブ装置13に接続されている。ディスクコントローラ12
は、ホストコンピュータ11からの書き込み指示および読
みだし指示に従ってディスクドライブ装置13を制御す
る。このディスクドライブ装置13は、例えばフロッピー
ディスクやハードディスク装置等のディスク装置14に対
して書き込みおよび読み出しを実行する。
FIG. 1 schematically shows a computer system using a disk control device according to an embodiment of the present invention. The host computer 11 controls the entire system, and is connected to a disk drive device 13 via a disk controller 12. Disk controller 12
Controls the disk drive device 13 in accordance with a write instruction and a read instruction from the host computer 11. The disk drive device 13 writes and reads data to and from a disk device 14 such as a floppy disk or a hard disk device.

ディスク装置14には、ローダ領域141、FAT領域142、
ディレクトリ領域143、およびデータ領域144が割り当て
られている。ローダ領域141は例えば電源投入時におい
てシステムを起動するためのプログラム領域であり、FA
T領域142はクラスタの繋がりを示す情報記憶領域であ
る。
The disk device 14 has a loader area 141, a FAT area 142,
A directory area 143 and a data area 144 are allocated. The loader area 141 is, for example, a program area for starting up the system when the power is turned on.
The T area 142 is an information storage area indicating the connection of clusters.

各クラスタは、ファイルがデータ領域144のどこに記
憶されているかを示すポインタであり、クラスタとセク
タ位置は1対1で対応している。したがって、FAT領域1
42を参照することによって、各ファイルに対応したセク
タ位置の繋がりを認識することができる。また、ディレ
クトリ領域143は各ファイルの登録情報すなわちファイ
ル名やファイルサイズ等を記憶する領域である。
Each cluster is a pointer indicating where the file is stored in the data area 144, and the cluster and the sector position correspond one-to-one. Therefore, FAT region 1
By referring to 42, the connection of the sector positions corresponding to each file can be recognized. The directory area 143 is an area for storing registration information of each file, that is, file names, file sizes, and the like.

ディスクコントローラ12には、ディスク装置14のFAT
領域142の内容がコピーされるFAT格納用メモリ121、お
よびディスク装置14のデータ領域144から読込んだデー
タを格納するデータバッファ122が設けられている。
The disk controller 12 has the FAT of the disk device 14
A FAT storage memory 121 into which the contents of the area 142 are copied, and a data buffer 122 for storing data read from the data area 144 of the disk device 14 are provided.

ディスクコントローラ12は、ホストコンピュータ11か
らのファイル読み出し指示を検出した際、その読み出し
指示により指定されたセクタ位置に引き続く次セクタ位
置を、メモリ121にコピーしたFAT領域142のクラスタ情
報を参照して求めると共に、その次セクタ位置の情報を
読込んでデータバッファ122に格納する機能を有してい
る。
When detecting a file read instruction from the host computer 11, the disk controller 12 obtains a next sector position following the sector position specified by the read instruction with reference to the cluster information of the FAT area 142 copied to the memory 121. In addition, it has a function of reading the information of the next sector position and storing it in the data buffer 122.

さらに、ディスクコントローラ12は、メモリ121にコ
ピーしたクラスタ情報を参照することによって求めた次
セクタ位置が現在のセクタ位置と異なるシリンダ上に属
する場合、その次セクタ位置の情報を読込み動作に先立
って、ディスクドライブ装置13にシーク動作を開始させ
るための機能を有している。
Further, when the next sector position obtained by referring to the cluster information copied to the memory 121 belongs to a cylinder different from the current sector position, the disk controller 12 reads the information of the next sector position before the reading operation. It has a function for causing the disk drive device 13 to start a seek operation.

第2図には、ディスクコントローラ12の具体的な構成
の一例が示されている。図示のように、ディスクコント
ローラ12は、RAMより成るFAT格納用メモリ121、および
データバッファ122に加えて、マイクロプロセッサユニ
ット21、ROM22、ディスク制御部23、ホスト制御部24を
備えている。
FIG. 2 shows an example of a specific configuration of the disk controller 12. 2, the disk controller 12 includes a microprocessor unit 21, a ROM 22, a disk control unit 23, and a host control unit 24, in addition to a FAT storage memory 121 including a RAM and a data buffer 122.

マイクロプロセッサユニット21は、ROM22に記憶され
たプログラムに従ってこのディスクコントローラ12の全
体の動作を制御するものであり、バス20を介して、FAT
格納用メモリ121、データバッファ122、ROM22、ディス
ク制御部23、およびホスト制御部24に相互接続されてい
る。
The microprocessor unit 21 controls the overall operation of the disk controller 12 according to a program stored in the ROM 22.
The storage memory 121, the data buffer 122, the ROM 22, the disk controller 23, and the host controller 24 are interconnected.

マイクロプロセッサユニット21は、FAT格納用メモリ1
21にコピーされたFAT領域142のクラスタ情報を参照して
次セクタ位置を求める等の処理を実行する。ディスク制
御部23は、ディスク装置14からデータを読込み、その読
込んだデータをバッファ122に格納するディスク転送処
理を実行する。ホスト制御部24は、バッファ122に格納
されたデータをホストコンピュータ11に転送するホスト
転送処理を実行する。
The microprocessor unit 21 is a memory 1 for FAT storage.
Processing such as obtaining the next sector position with reference to the cluster information of the FAT area 142 copied to 21 is executed. The disk control unit 23 executes a disk transfer process of reading data from the disk device 14 and storing the read data in the buffer 122. The host control unit 24 executes a host transfer process of transferring the data stored in the buffer 122 to the host computer 11.

次に、第3図乃至第6図のフローチャートを参照し
て、ディスクコントローラ12の動作を説明する。
Next, the operation of the disk controller 12 will be described with reference to the flowcharts of FIGS.

第3図には、FAT領域142の内容をFAT格納メモリ121に
コピーした後のディスクコントローラ12の全体の動作を
示すフローチャートである。FATのコピー動作は、電源
投入時と、ホストコンピュータ11によってFAT領域142が
更新された時すなわちホストコンピュータ11からのFAT
書き込み指示を検出した時に自動的に実行される。
FIG. 3 is a flowchart showing the overall operation of the disk controller 12 after copying the contents of the FAT area 142 to the FAT storage memory 121. The FAT copy operation is performed when the power is turned on and when the FAT area 142 is updated by the host computer 11, that is, when the FAT area
It is automatically executed when a write instruction is detected.

第3図のフローチャートにおいて、ステップS1はホス
トコンピュータ11から読み出し指示が発行されたか否か
を判断するステップであり、ホストコンピュータ11から
の読み出し指示が検出された場合には、ステップA2の読
み出し処理ルーチンが実行される。読み出し指示には、
ディスクアクセスのためのアドレスデータも含まれてい
る。この読み出し処理の詳細は、第4図で後述する。
In the flowchart of FIG. 3, step S1 is a step for determining whether or not a read instruction has been issued from the host computer 11, and if a read instruction from the host computer 11 has been detected, the read processing routine of step A2 is performed. Is executed. The read instruction includes
Address data for disk access is also included. The details of the reading process will be described later with reference to FIG.

ステップS3は、“ディスク転送フラグ”を検出して、
ディスク装置14からデータを読み出す必要があるか否か
を判断するステップである。この“ディスク転送フラ
ク”は、ホストコンピュータ11からの読み出し指示に対
応した全クラスタに関する読み出し処理が終了してない
事を示すものであり、前述の読み出し指示に対する読み
出し処理ルーチンでセットされる。このため、“ディス
ク転送フラグ”がセットされている場合には、ディスク
装置14のデータを読込むステップA4のディスク転送処理
ルーチンが実行される。このディスク転送処理ルーチン
の詳細は、第5図で後述する。
Step S3 detects the “disk transfer flag” and
This is a step of determining whether data needs to be read from the disk device 14. This “disk transfer flag” indicates that the read processing for all clusters corresponding to the read instruction from the host computer 11 has not been completed, and is set in the read processing routine for the above read instruction. Therefore, when the "disk transfer flag" is set, the disk transfer processing routine of step A4 for reading the data of the disk device 14 is executed. The details of the disk transfer processing routine will be described later with reference to FIG.

ステップS5は、“ホスト転送フラグ”を検出して、ホ
ストコンピュータ11によって指示された読み出しデータ
をホストコンピュータ11に送ったか否かを判断するステ
ップである。この“ホスト転送フラグ”は、ホストコン
ピュータ11にデータをまだ送っていない事を示すもので
あり、前述のディスク転送処理ルーチンでセットされ
る。このため、“ホスト転送フラグ”がセットされてい
る場合には、ディスク装置14から読込んだデータをホス
トコンピュータ11に送出するホスト転送処理ルーチンが
実行される。このホスト転送処理ルーチンは、第6図で
後述する。
Step S5 is a step in which the “host transfer flag” is detected to determine whether or not the read data specified by the host computer 11 has been sent to the host computer 11. This "host transfer flag" indicates that data has not yet been sent to the host computer 11, and is set in the above-described disk transfer processing routine. Therefore, when the “host transfer flag” is set, a host transfer processing routine for sending data read from the disk device 14 to the host computer 11 is executed. This host transfer processing routine will be described later with reference to FIG.

以上の判断処理ステップA1,A3,A5は、アイドル処理の
延長と考えることができる。
The above determination processing steps A1, A3, A5 can be considered as an extension of the idle processing.

次に、第4図を参照して、ステップA2の読み出し処理
ルーチンについて説明する。
Next, the read processing routine of step A2 will be described with reference to FIG.

すなわち、ディスクコントローラ12はホストコンピュ
ータ11からのファイルの読み出し指示を検出した際、ま
ずホストコンピュータ11によって指定されたセクタ位置
と予め用意されている所定のパラメータとに基づいてそ
のセクタ位置に対応したクラスタを逆計算によって算出
し(ステップB1)、その算出したクラスタをFAT格納用
メモリ121にコピーされているFAT領域142のクラスタ情
報から探し出す(ステップB2)。このステップB2の処理
では、その探し出したクラスタを基準としてメモリ121
のクラスタ情報が参照され、その基準クラスタに引き続
くクラスタに基づいて次セクタ位置が算出される。
That is, when the disk controller 12 detects an instruction to read a file from the host computer 11, first, based on a sector position designated by the host computer 11 and a predetermined parameter prepared in advance, a cluster corresponding to the sector position is determined. Is calculated by inverse calculation (step B1), and the calculated cluster is searched for from the cluster information of the FAT area 142 copied to the FAT storage memory 121 (step B2). In the process of step B2, the memory 121 is referred to based on the found cluster.
And the next sector position is calculated based on the cluster following the reference cluster.

この様にして、ホストコンピュータ11から次の読み出
し指示が発行される前に、そのファイルに関係する次セ
クタ位置が次々に求められる。
In this way, before the next read instruction is issued from the host computer 11, the next sector position related to the file is obtained one after another.

そして、ホストコンピュータ11からの読み出し指示が
新ファイルに対するものか或いは現在読み出し実行中の
ファイルに対するものかが判断される(ステップB3)。
これは、例えば最初のクラスタ参照か否かによって判断
できる。最初のクラスタ参照であれば新ファイルである
し、引き続く参照であれば同じファイルに対する読み出
しである。
Then, it is determined whether the read instruction from the host computer 11 is for a new file or a file that is currently being read (step B3).
This can be determined by, for example, whether or not the first cluster reference is made. If it is the first cluster reference, it is a new file, and if it is a subsequent reference, it is a read for the same file.

新ファイルの場合は、まずバッファ122の初期化が実
行され(ステップB4)、その後に“ディスク転送フラ
ク”がセットされる。
In the case of a new file, first, the buffer 122 is initialized (step B4), and thereafter, "disk transfer flag" is set.

次ぎに、第5図のフローチャートを参照して、ステッ
プA4のディスク転送処理ルーチンを説明する。このディ
スク転送処理ルーチンは、データ読み出し処理ルーチン
で“ディスク転送フラグ”がセットされた場合に、ディ
スク装置14からディスクコントローラ12へのデータの読
み込み動作を実行するものである。すなわち、ディスク
転送処理ルーチンでは、まず、第4図の読み出し処理で
求めた次セクタ位置から実際のシークアドレスが求めら
れる(ステップC1)。
Next, the disk transfer processing routine of step A4 will be described with reference to the flowchart of FIG. The disk transfer processing routine executes an operation of reading data from the disk device 14 to the disk controller 12 when the "disk transfer flag" is set in the data read processing routine. That is, in the disk transfer processing routine, first, an actual seek address is obtained from the next sector position obtained in the read processing of FIG. 4 (step C1).

次いで、そのシークアドレスに基づいて、次セクタ位
置と現在のセクタ位置が同一シリンダ上に属すか否かが
判断される(ステップC2)。同一シリンダ上で無い場合
にはシーク動作が必要なので、ディスクドライブ装置13
にシーク動作を開始させる(ステップC3)。次いで、シ
ーク動作の終了を検出すると(ステップC4)、バッファ
フル状態か否かが判断される(ステップC5)。
Next, based on the seek address, it is determined whether or not the next sector position and the current sector position belong to the same cylinder (step C2). If not on the same cylinder, a seek operation is required.
Starts a seek operation (step C3). Next, when the end of the seek operation is detected (step C4), it is determined whether or not the buffer is full (step C5).

データバッファ122に空き領域があれば、ディスクド
ライブ13によるディスク装置14に対するデータの読み出
し動作が実行され(ステップC6)、この後、“ホスト転
送フラグ”がセットされる(ステップC7)。
If there is free space in the data buffer 122, the data read operation of the disk drive 13 by the disk drive 13 is executed (step C6), and thereafter, the "host transfer flag" is set (step C7).

次に、先のステップC1でシーク位置を求めたクラスタ
がファイルの最終クラスタか否かが判断され(ステップ
C8)、最終クラスタの場合は、“ディスク転送フラグ”
がリセットされ(ステップC10)、その後にファイル終
了となる。最終クラスタでない場合は、再び次ぎのクラ
スタが求められ(ステップC9)、“ディスク転送フラ
グ”をリセットせずに、その求めたクラスタを保持した
状態で終了となる。この結果、ステップC1〜C9の処理が
繰り返される。
Next, it is determined whether or not the cluster whose seek position was obtained in the previous step C1 is the last cluster of the file (step C1).
C8), "Disk transfer flag" for the last cluster
Is reset (step C10), and then the file ends. If it is not the last cluster, the next cluster is obtained again (step C9), and the process ends without resetting the “disk transfer flag” and holding the obtained cluster. As a result, the processing of steps C1 to C9 is repeated.

この様にして、第5図に示したディスク転送処理ルー
チンでは、ホストコンピュータ11から読み出し指示が発
行された後は、バッファフルで待たされるか、最終クラ
スタを検出して処理が終了するまで、次々にクラスタが
求められて、ディスク装置14からデータが順次読み出さ
れてデータバッファ122に格納される。
In this manner, in the disk transfer processing routine shown in FIG. 5, after the read instruction is issued from the host computer 11, the buffer is kept full or the last cluster is detected until the processing is completed. The data is sequentially read from the disk device 14 and stored in the data buffer 122.

次に、第6図のフローチャートを参照して、ステップ
A6のホスト転送処理ルーチンを説明する。このホスト転
送処理ルーチンは、ディスク転送処理ルーチンで“ホス
ト転送フラグ”がセットされた場合に、ホストコンピュ
ータ11に対するデータ転送を実行するものである。
Next, referring to the flowchart of FIG.
The A6 host transfer processing routine will be described. This host transfer processing routine executes data transfer to the host computer 11 when the "host transfer flag" is set in the disk transfer processing routine.

このホスト転送処理ルーチンでは、まず、データバッ
ファ122にデータが入力済みであるか否かが判断され
(ステップD1)、まだ入力されていなければ入力される
まで待機される。入力済みの場合は、データバッファ12
2の内容がホスト制御部24によってホストコンピュータ1
1に転送される(ステップD2)。そして、“ホスト転送
フラグ”がリセットされて(ステップD3)、処理が終了
される。
In the host transfer processing routine, first, it is determined whether or not data has been input to the data buffer 122 (step D1). If not, the process waits until the data is input. If already input, data buffer 12
The content of 2 is the host computer 1 by the host control unit 24
Transferred to 1 (step D2). Then, the “host transfer flag” is reset (step D3), and the process ends.

この様に、第6図に示したホスト転送処理ルーチンで
は、ホストコンピュータ11からの読み出し指示によって
指定された分のデータのみホストコンピュータ11へ転送
した段階で処理が終了され、データバッファ122に先読
みされたデータはホストコンピュータ11から読み出し指
示が実際に発行された時に転送される。
In this manner, in the host transfer processing routine shown in FIG. 6, when only the data specified by the read instruction from the host computer 11 is transferred to the host computer 11, the processing is terminated, and the data buffer 122 prefetches the data. The data is transferred when a read instruction is actually issued from the host computer 11.

したがって、ホストコンピュータ11からの2回目以降
の読み出し指示については、データバッファ122に先読
みされたデータをホストコンピュータ11に転送するだけ
で済むので、高速アクセスが可能となる。
Therefore, with respect to the second and subsequent read instructions from the host computer 11, it is only necessary to transfer the data pre-read in the data buffer 122 to the host computer 11, so that high-speed access is possible.

[発明の効果] 以上のように、この発明によれば、ディスク装置に対
する高速アクセスを実行することが可能になる。
[Effects of the Invention] As described above, according to the present invention, high-speed access to a disk device can be performed.

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

第1図はこの発明の一実施例に係わるディスク制御装置
を示すブロック図、第2図は第1図に示したディスク制
御装置の具体的な構成の一例を示すブロック図、第3図
乃至第6図はそれぞれ第1図に示したディスク制御装置
の動作を説明するフローチャートである。 11……ホストコンピュータ、12……ディスクコントロー
ラ、13……ディスクドライブ装置、14……ディスク装
置、121……FAT格納用メモリ、122……データバッフ
ァ。
FIG. 1 is a block diagram showing a disk control device according to an embodiment of the present invention, FIG. 2 is a block diagram showing an example of a specific configuration of the disk control device shown in FIG. 1, and FIGS. FIG. 6 is a flowchart for explaining the operation of the disk control device shown in FIG. 11 Host computer, 12 Disk controller, 13 Disk drive device, 14 Disk device, 121 FAT storage memory, 122 Data buffer.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ディスク装置に対するデータの書き込みお
よび読み出しを制御するディスク制御装置において、 記憶手段と、データ格納手段と、ファイルが記憶されて
いるセクタ位置の繋がりを示すクラスタ情報を含む前記
ディスク装置上のファイルアロケーションテーブル領域
の内容のコピーを前記記憶手段に書き込む手段と、前記
ディスク装置のデータ領域に対するホストコンピュータ
からの読み出し要求に応答して、その読み出し要求が新
ファイルに関する読み出し要求であるか否かを判別する
手段と、新ファイルに関する読み出し要求であると、前
記記憶手段のファイルアロケーションテーブルを参照し
て、前記読み出し要求で指定されたセクタが属するファ
イルを構成するデータのセクタ位置を順次検出するセク
タ位置検出手段と、このセクタ位置検出手段で検出され
た各セクタ位置のデータを前記データ格納手段に先読み
する先読み手段とを具備し、ファイル単位でデータを先
読みできるようにしたことを特徴とするディスク制御装
置。
1. A disk control device for controlling writing and reading of data to and from a disk device, wherein the disk device includes a storage unit, a data storage unit, and cluster information indicating a connection between sector positions where files are stored. Means for writing a copy of the contents of the file allocation table area to the storage means, and responding to a read request from the host computer for the data area of the disk device, determining whether the read request is a read request for a new file. And a sector for sequentially detecting the sector position of the data constituting the file to which the sector specified by the read request belongs by referring to the file allocation table of the storage unit if the read request is for a new file. Position detecting means; A disk control device comprising: a read-ahead means for pre-reading data at each sector position detected by the sector position detection means into the data storage means, so that data can be pre-read in file units.
【請求項2】前記ディスク制御装置は、さらに、前記セ
クタ位置検出手段によって検出されたセクタ位置が現在
のセクタ位置と異なるシリンダ上に属す場合、前記セク
タ位置検出手段によって検出されたセクタ位置からデー
タを読み出すための前記先読み手段による先読み動作に
先立ってシーク動作を開始させる手段を具備することを
特徴とする請求項1記載のディスク制御装置。
2. The disk control apparatus according to claim 1, wherein said sector position detected by said sector position detecting means belongs to a cylinder different from a current sector position, and said data is read from said sector position detected by said sector position detecting means. 2. The disk control device according to claim 1, further comprising: means for starting a seek operation prior to a pre-read operation by the pre-read means for reading out the data.
JP1225403A 1989-08-31 1989-08-31 Disk controller Expired - Fee Related JP2980326B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1225403A JP2980326B2 (en) 1989-08-31 1989-08-31 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1225403A JP2980326B2 (en) 1989-08-31 1989-08-31 Disk controller

Publications (2)

Publication Number Publication Date
JPH0388018A JPH0388018A (en) 1991-04-12
JP2980326B2 true JP2980326B2 (en) 1999-11-22

Family

ID=16828820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1225403A Expired - Fee Related JP2980326B2 (en) 1989-08-31 1989-08-31 Disk controller

Country Status (1)

Country Link
JP (1) JP2980326B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6589918B2 (en) 2000-06-22 2003-07-08 Nsk Ltd. Conductive grease and rolling apparatus packed with the same
DE60134679D1 (en) 2000-10-20 2008-08-14 Eisai R&D Man Co Ltd Nitrogen-containing aromatic heterocycles
EP1683785B1 (en) 2003-11-11 2013-10-16 Eisai R&D Management Co., Ltd. Urea derivative and process for producing the same
EP3444363B1 (en) 2011-06-03 2020-11-25 Eisai R&D Management Co., Ltd. Biomarkers for prediciting and assessing responsiveness of thyroid and kidney cancer subjects to lenvatinib compounds
BR112017002827B1 (en) 2014-08-28 2023-04-18 Eisai R&D Management Co., Ltd HIGHLY PURE QUINOLINE DERIVATIVE AND METHOD FOR PRODUCING THE SAME

Also Published As

Publication number Publication date
JPH0388018A (en) 1991-04-12

Similar Documents

Publication Publication Date Title
EP0848321B1 (en) Method of data migration
US4593354A (en) Disk cache system
JP3254429B2 (en) Data transfer / management system and method
US20070005904A1 (en) Read ahead method for data retrieval and computer system
JPH06131259A (en) Method of data transfer between memory and auxiliary memory
US8458289B1 (en) Methods and apparatus for providing content
JP2002123424A (en) System and method for dynamically reallocating memory in computer system
US8010733B1 (en) Methods and apparatus for accessing content
JP2003337722A (en) Computer system
JP2980326B2 (en) Disk controller
US6725348B1 (en) Data storage device and method for reducing write misses by completing transfer to a dual-port cache before initiating a disk write of the data from the cache
JP3566319B2 (en) Information storage device
JPH11161527A (en) Data storage system
JPH11212733A (en) External storage system
JPH1011337A (en) Method for controlling data in storage device
JP3122702B2 (en) Disk device write-back control method
JP2002108704A (en) Disk cache control system
JP3066623B2 (en) Disk cache control method
JPH09146834A (en) Disk device
JPH04113432A (en) Virtual storage control method
JP3491335B2 (en) Information transfer device
JPH0754482B2 (en) Computer system
JPH0677243B2 (en) Magnetic disk processing device
JPH033184A (en) Disk controller
JPH09237224A (en) Disk array device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees