JP3212668B2 - Virtual disk unit - Google Patents

Virtual disk unit

Info

Publication number
JP3212668B2
JP3212668B2 JP04238892A JP4238892A JP3212668B2 JP 3212668 B2 JP3212668 B2 JP 3212668B2 JP 04238892 A JP04238892 A JP 04238892A JP 4238892 A JP4238892 A JP 4238892A JP 3212668 B2 JP3212668 B2 JP 3212668B2
Authority
JP
Japan
Prior art keywords
record
physical
input
physical record
output
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
JP04238892A
Other languages
Japanese (ja)
Other versions
JPH05216596A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP04238892A priority Critical patent/JP3212668B2/en
Publication of JPH05216596A publication Critical patent/JPH05216596A/en
Application granted granted Critical
Publication of JP3212668B2 publication Critical patent/JP3212668B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、磁気記憶装置と同様に
半導体記憶部の記憶領域内でトラックに対応した領域に
レコードを書き込み及び読み出しする仮想ディスク装置
に関し、特に、仮想ディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual disk device for writing and reading a record to and from a region corresponding to a track in a storage region of a semiconductor storage unit, similarly to a magnetic storage device.

【0002】[0002]

【従来の技術】従来、この種の仮想ディスク装置では、
レコードをアクセスする際に、当該レコードが記憶され
ているトラック全体を読み込み、トラック内を検索して
レコードを探し出していた。
2. Description of the Related Art Conventionally, in this kind of virtual disk device,
When a record is accessed, the entire track in which the record is stored is read, and the record is searched for in the track.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の仮想デ
ィスク装置においては、次のような課題があった。 トラック全体を読み込むため、転送量が大きくなって
転送時間がかかるとともに、転送に要するバッファ領域
も大きくなってしまう。 トラック全体を検索してレコードを探し出すため、時
間がかかる。
The above-mentioned conventional virtual disk device has the following problems. Since the entire track is read, the transfer amount becomes large and the transfer time becomes long, and the buffer area required for the transfer becomes large. It takes time to search the entire track for records.

【0004】本発明は、上記課題にかんがみてなされた
もので、アクセス時間を短くするとともに、記憶領域を
削減することが可能な仮想ディスク装置の提供を目的と
する。
[0004] The present invention has been made in view of the above problems, and has as its object to provide a virtual disk device capable of shortening an access time and reducing a storage area.

【0005】[0005]

【課題を解決するための手段】本発明の仮想ディスク装
置は、少なくとも1つ以上の物理レコードを格納する物
理レコード格納域と、前記物理レコードが有効であるか
否かを示す有効フラグと前記物理レコードのトラック内
における相対変位を示すトラック内変位と前記物理レコ
ードのレコード長を示す物理レコード長とを含むアクセ
ス情報を前記物理レコード毎に格納するアクセス情報格
納域とからなるトラックを含む仮想ディスクを有する半
導体記憶装置と、入出力要求された論理レコードが存在
する前記半導体記憶装置と当該半導体記憶装置内の物理
レコードアドレスを求める論理レコード入出力手段と、
前記入出力要求が前記仮想ディスクに対する入出力要求
であるか否かを判断する物理レコード入出力手段と、前
記入出力要求が前記仮想ディスクに対する入出力要求で
ある場合には、前記物理レコードアドレス中のシリンダ
番号とトラック番号より前記物理レコードが存在するト
ラックの半導体記憶装置内アドレスを計算し、前記物理
レコードが存在するトラックの半導体記憶装置内アドレ
スと前記物理レコードアドレス中の物理番号より前記物
理レコードに対応するアクセス情報の半導体記憶装置内
アドレスを計算して前記物理レコードに対応するアクセ
ス情報を入力し、入力した前記物理レコードに対応する
アクセス情報に含まれる前記有効フラグが有効であると
きには、前記物理レコードが存在するトラックの半導体
記憶装置内アドレスと前記物理ディスクに対応するアク
セス情報に含まれる前記トラック内変位より前記物理レ
コードの半導体記憶装置内アドレスを計算し、前記物理
レコードに対応するアクセス情報に含まれる前記物理レ
コード長を転送長として前記物理レコードの入出力を行
うとともに、前記物理レコードを入出力した結果を前記
物理レコード入出力手段に通知する仮想ディスク入出力
手段とを備えた仮想ディスク装置であって、前記物理レ
コード入出力手段は、前記物理レコードを入出力した結
果の通知を受けるとともに、前記物理レコードを入出力
した結果を前記論理レコード入出力手段に通知し、前記
論理レコード入出力手段は、前記物理レコードを入出力
した結果の通知を受けるとともに、前記論理レコードの
入出力要求元に、入力要求の場合は前記論理レコードを
返却し、出力要求の場合にはその結果を返却することを
特徴とする。
SUMMARY OF THE INVENTION A virtual disk device according to the present invention stores at least one or more physical records.
Physical record storage area and whether the physical record is valid
Valid flag indicating whether or not in the physical record track
In-track displacement showing relative displacement at the physical record
Access length including the physical record length indicating the record length of the
Access information file that stores access information for each physical record.
Half with a virtual disk containing tracks consisting of storage areas
And the conductor storage device, a logical record output means for obtaining a physical record address of the semiconductor memory device and in the semiconductor memory device output requested logical record exists,
Physical record input / output means for determining whether the input / output request is an input / output request for the virtual disk; and if the input / output request is an input / output request for the virtual disk, the physical record address The semiconductor record address of the track where the physical record exists is calculated from the cylinder number and the track number of the physical record, and the physical record is calculated from the semiconductor memory address of the track where the physical record exists and the physical number in the physical record address. calculate the semiconductor memory device the address of the access information corresponding enter the access <br/> scan information corresponding to the physical records in the contained <br/> access information corresponding to the physical record entered When the valid flag is valid, the track in which the physical record exists is located in the semiconductor storage device. The semiconductor memory device the address of the physical records from the track in the displacement calculated contained in accession <br/> Seth information corresponding to the address physical disks, the physical
Performs input and output of the physical record as the transfer length the physical record length included in the access information corresponding to the record, the virtual disk output means for notifying the result of the input and output the physical records to the physical record output means Wherein the physical record input / output means receives a notification of the result of input / output of the physical record, and notifies the logical record input / output means of a result of input / output of the physical record. The logical record input / output means receives a notification of the result of input / output of the physical record, and returns the logical record to the input / output request source of the logical record in the case of an input request, and returns the logical record in the case of an output request. Is characterized by returning the result.

【0006】[0006]

【作用】上記のように構成した請求項1にかかる発明に
おいては、レコードのアクセスに際してアクセス手段
は、トラック内におけるレコードの記憶状況を保持する
アクセス情報記憶領域を読み込み、必要なレコードの記
憶領域を求めてから当該レコードをアクセスする。
According to the first aspect of the present invention, at the time of accessing a record, the access means reads an access information storage area which holds a storage state of the record in the track, and sets a storage area of a necessary record. Access the record after requesting.

【0007】[0007]

【実施例】以下、図面にもとづいて本発明の実施例を説
明する。図1は、本発明の一実施例にかかる仮想ディス
ク装置のブロック図である。同図において、1はファイ
ル処理プログラム、2は論理レコード入出力手段、3は
物理レコード入出力手段、4は仮想ディスク入出力手
段、5は半導体記憶装置である。また、半導体記憶装置
5内において、6は仮想ディスク、7はトラック、8は
物理レコード格納領域、9は物理レコード、10はアク
セス情報格納域、11はアクセス情報である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a virtual disk device according to one embodiment of the present invention. 1, reference numeral 1 denotes a file processing program, 2 denotes a logical record input / output unit, 3 denotes a physical record input / output unit, 4 denotes a virtual disk input / output unit, and 5 denotes a semiconductor storage device. Further, in the semiconductor storage device 5, 6 is a virtual disk, 7 is a track, 8 is a physical record storage area, 9 is a physical record, 10 is an access information storage area, and 11 is access information.

【0008】図2は、仮想ディスク入出力手段4を構成
するプログラムのフローチャートである。同図におい
て、21はトラックアドレス計算ステップ、22はアク
セス情報アドレス計算ステップ、24は物理レコード有
効判定ステップ、25は物理レコードアドレス計算ステ
ップ、26は物理レコード不検出報告ステップ、27は
物理レコード入出力ステップ、28は正常終了報告ステ
ップである。
FIG. 2 is a flowchart of a program constituting the virtual disk input / output means 4. In the figure, 21 is a track address calculation step, 22 is an access information address calculation step, 24 is a physical record validity determination step, 25 is a physical record address calculation step, 26 is a physical record non-detection report step, and 27 is a physical record input / output. Step 28 is a normal end report step.

【0009】図3は、アクセス情報の内容を示す図であ
る。同図において、31は有効フラグ、32はトラック
内変位、33は物理レコード長である。
FIG. 3 is a diagram showing the contents of the access information. In the figure, 31 is a valid flag, 32 is a displacement within a track, and 33 is a physical record length.

【0010】次に、上記構成からなる本実施例の動作を
説明する。ファイル処理プログラム1は論理レコード入
出力手段2を起動して論理レコード入出力を行なう。論
理レコード入出力手段2は、要求論理レコードが存在す
る記憶装置と同記憶装置内の物理レコードアドレスを求
め、物理レコード入出力手段3を起動して当該記憶装置
に対する物理レコード入出力を行なう。仮想ディスク6
上のファイルの場合、物理レコードアドレスはシリンダ
番号とトラック番号と物理レコード番号からなるディス
クアドレスである。物理レコード入出力手段3は、仮想
ディスク6に対する物理レコード入出力要求である場
合、仮想ディスク入出力手段4を起動する。
Next, the operation of this embodiment having the above configuration will be described. The file processing program 1 activates the logical record input / output means 2 to perform logical record input / output. The logical record input / output means 2 obtains a physical record address in the storage device in which the requested logical record exists, and activates the physical record input / output means 3 to perform physical record input / output to the storage device. Virtual disk 6
In the case of the above file, the physical record address is a disk address including a cylinder number, a track number, and a physical record number. The physical record input / output means 3 activates the virtual disk input / output means 4 when the request is a physical record input / output request for the virtual disk 6.

【0011】仮想ディスク入出力手段4は、物理レコー
ド9のディスクアドレス中のシリンダ番号とトラック番
号より物理レコード9が存在するトラック7の半導体記
憶装置5内アドレスを計算し(ステップ21)、物理レ
コード9のディスクアドレス中の物理レコード番号より
物理レコード9に対応するアクセス情報11の半導体記
憶装置5内アドレスを計算し(ステップ22)、アクセ
ス情報11を入力する(ステップ23)。仮想ディスク
入出力手段4は、入力したアクセス情報11中の有効フ
ラグ31より物理レコード9が有効か無効かを判定し
(ステップ24)、無効である場合は物理レコード入出
力手段3に対して物理レコード不検出である旨を報告す
る(ステップ26)。
The virtual disk input / output means 4 calculates the address in the semiconductor memory device 5 of the track 7 on which the physical record 9 exists from the cylinder number and the track number in the disk address of the physical record 9 (step 21). Based on the physical record number in the disk address 9, the address of the access information 11 in the semiconductor storage device 5 corresponding to the physical record 9 is calculated (step 22), and the access information 11 is input (step 23). The virtual disk input / output unit 4 determines whether the physical record 9 is valid or invalid based on the valid flag 31 in the input access information 11 (step 24). The fact that no record is detected is reported (step 26).

【0012】有効である場合は、物理レコード9が存在
するトラック7の半導体記憶装置5内アドレスと入力し
たアクセス情報11中のトラック内変位32より物理レ
コード9の半導体記憶装置5内アドレスを計算し(ステ
ップ25)、アクセス情報11中の物理レコード長33
を転送長として物理レコード9の入出力を行ない(ステ
ップ27)、物理レコード入出力手段3に対して物理レ
コード入出力が正常終了した旨を報告する(ステップ2
8)。物理レコード入出力手段3は論理レコード入出力
手段2に対して物理レコード入出力が正常終了した旨を
報告し、論理レコード入出力手段2は入力処理の場合に
ファイル処理プログラム1に対して論理レコードを返却
し、出力処理の場合は論理レコード出力が正常終了した
旨を報告する。
If it is valid, the address of the physical record 9 in the semiconductor storage device 5 is calculated from the address in the semiconductor storage device 5 of the track 7 where the physical record 9 exists and the displacement 32 in the track in the input access information 11. (Step 25), physical record length 33 in access information 11
Of the physical record 9 using the transfer length as the transfer length (step 27), and reports to the physical record input / output means 3 that the physical record input / output has been completed normally (step 2).
8). The physical record input / output means 3 reports to the logical record input / output means 2 that the physical record input / output has been completed normally, and the logical record input / output means 2 sends a logical record to the file processing program 1 in the case of input processing. Is returned, and in the case of output processing, reports that the logical record output has been completed normally.

【0013】[0013]

【発明の効果】以上説明したように本発明は、要求され
る物理レコードの半導体記憶装置内におけるアドレスを
アクセス情報に基づいて求めることにより、次のような
効果を有する仮想ディスク装置を提供することができ
る。 物理レコードを一件入出力する場合、トラック全体を
入出力する代わりにアクセス情報を入力すればよいの
で、転送量が少なくなり、処理時間が短くなる。 トラック内を検索しないため、処理時間が短くなる。 トラックを読み込むバッファの代わりにアクセス情報
を読み込むバッファがればよいので主記憶量を削減でき
る。
As described above, the present invention provides a virtual disk device having the following effects by obtaining the address of a required physical record in a semiconductor storage device based on access information. Can be. When inputting / outputting one physical record, access information may be input instead of inputting / outputting the entire track, so that the transfer amount is reduced and the processing time is shortened. Since the search is not performed in the track, the processing time is shortened. Since a buffer for reading access information may be used instead of a buffer for reading tracks, the amount of main storage can be reduced.

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

【図1】本発明の一実施例にかかる仮想ディスク装置の
ブロック図である。
FIG. 1 is a block diagram of a virtual disk device according to one embodiment of the present invention.

【図2】仮想ディスク入出力手段を構成するプログラム
のフローチャートである。
FIG. 2 is a flowchart of a program constituting virtual disk input / output means.

【図3】アクセス情報の内容を示す図である。FIG. 3 is a diagram showing contents of access information.

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

4…仮想ディスク入出力手段 5…半導体記憶装置 6…仮想ディスク 7…トラック 9…物理レコード 10アクセス情報格納域 11…アクセス情報 31…有効フラグ 32…トラック内変位 33…物理レコード長 DESCRIPTION OF SYMBOLS 4 ... Virtual disk input / output means 5 ... Semiconductor storage device 6 ... Virtual disk 7 ... Track 9 ... Physical record 10 Access information storage area 11 ... Access information 31 ... Effective flag 32 ... Displacement in track 33 ... Physical record length

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 3/08 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 3/08

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 少なくとも1つ以上の物理レコードを格
納する物理レコード格納域と、前記物理レコードが有効
であるか否かを示す有効フラグと前記物理レコードのト
ラック内における相対変位を示すトラック内変位と前記
物理レコードのレコード長を示す物理レコード長とを含
むアクセス情報を前記物理レコード毎に格納するアクセ
ス情報格納域とからなるトラックを含む仮想ディスクを
有する半導体記憶装置と、 入出力要求された論理レコードが存在する前記半導体記
憶装置と当該半導体記憶装置内の物理レコードアドレス
を求める論理レコード入出力手段と、 前記入出力要求が前記仮想ディスクに対する入出力要求
であるか否かを判断する物理レコード入出力手段と、 前記入出力要求が前記仮想ディスクに対する入出力要求
である場合には、前記物理レコードアドレス中のシリン
ダ番号とトラック番号より前記物理レコードが存在する
トラックの半導体記憶装置内アドレスを計算し、前記物
理レコードが存在するトラックの半導体記憶装置内アド
レスと前記物理レコードアドレス中の物理番号より前記
物理レコードに対応するアクセス情報の半導体記憶装置
内アドレスを計算して前記物理レコードに対応するアク
セス情報を入力し、入力した前記物理レコードに対応す
るアクセス情報に含まれる前記有効フラグが有効である
ときには、前記物理レコードが存在するトラックの半導
体記憶装置内アドレスと前記物理ディスクに対応するア
クセス情報に含まれる前記トラック内変位より前記物理
レコードの半導体記憶装置内アドレスを計算し、前記物
理レコードに対応するアクセス情報に含まれる前記物理
レコード長を転送長として前記物理レコードの入出力を
行うとともに、前記物理レコードを入出力した結果を前
記物理レコード入出力手段に通知する仮想ディスク入出
力手段とを備えた仮想ディスク装置であって、 前記物理レコード入出力手段は、前記物理レコードを入
出力した結果の通知を受けるとともに、前記物理レコー
ドを入出力した結果を前記論理レコード入出力手段に通
知し、 前記論理レコード入出力手段は、前記物理レコードを入
出力した結果の通知を 受けるとともに、前記論理レコー
ドの入出力要求元に、入力要求の場合は前記論理レコー
ドを返却し、出力要求の場合にはその結果を返却するこ
とを特徴とする仮想ディスク装置。
(1) storing at least one physical record;
Physical record storage area to store and the physical record is valid
Validity flag indicating whether or not the
Intra-track displacement indicating relative displacement in the rack and the
Physical record length, which indicates the record length of the physical record.
Access information that stores access information for each physical record
A virtual disk containing tracks consisting of
And a semiconductor memory in which a logical record requested for input / output exists.
Storage device and physical record address in the semiconductor storage device
A logical record output means for obtaining the input and output request the input request is for the virtual disk
Physical record input / output means for determining whether or not the input / output request is an input / output request for the virtual disk
If it is, the syringe in the physical record address
The physical record exists from the data number and track number.
Calculate the address of the track in the semiconductor memory device, and
Of the track where the physical record exists in the semiconductor storage device
Address and the physical number in the physical record address.
Semiconductor storage device for access information corresponding to physical record
Address in the physical record
Access information and enter the corresponding physical record
The validity flag included in the access information is valid
Sometimes the semi-conductor of the track on which the physical record resides
Address in the physical storage device and the address corresponding to the physical disk.
From the in-track displacement included in the access information.
Calculate the address of the record in the semiconductor storage device,
The physical information included in the access information corresponding to the physical record.
Input / output of the physical record with record length as transfer length
And the result of inputting / outputting the physical record
Virtual disk input / output to notify physical record input / output means
And a physical disk input / output unit , wherein the physical record input / output unit inputs the physical record.
Receive notification of the output result and
Pass the result of input / output
The logical record input / output means inputs the physical record.
Receive notification of the output result and
If the input / output request source is an input request, the logical record
And return the result in the case of an output request.
A virtual disk device characterized by the following.
JP04238892A 1992-01-31 1992-01-31 Virtual disk unit Expired - Fee Related JP3212668B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04238892A JP3212668B2 (en) 1992-01-31 1992-01-31 Virtual disk unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04238892A JP3212668B2 (en) 1992-01-31 1992-01-31 Virtual disk unit

Publications (2)

Publication Number Publication Date
JPH05216596A JPH05216596A (en) 1993-08-27
JP3212668B2 true JP3212668B2 (en) 2001-09-25

Family

ID=12634691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04238892A Expired - Fee Related JP3212668B2 (en) 1992-01-31 1992-01-31 Virtual disk unit

Country Status (1)

Country Link
JP (1) JP3212668B2 (en)

Also Published As

Publication number Publication date
JPH05216596A (en) 1993-08-27

Similar Documents

Publication Publication Date Title
CA1187197A (en) Segmented storage logging and controlling
KR880011667A (en) How personal computers work
US20030115417A1 (en) Methods and apparatus for loading CRC values into a CRC cache in a storage controller
US5276878A (en) Method and system for task memory management in a multi-tasking data processing system
US20200183601A1 (en) Converting a virtual volume between volume types
JP3212668B2 (en) Virtual disk unit
JPS6045855A (en) Sequential access detecting method of magnetic disk device
JP3166827B2 (en) External storage device and cache memory control method
JPS6258351A (en) Optical disk cache system
JPS63291145A (en) Method for managing file
JP3750163B2 (en) Cache disk control
JP3076115B2 (en) Large magnetic disk drive
JP2903605B2 (en) File area management processing method
JP3564343B2 (en) Data transfer device and method during cache bypass
JPH01255028A (en) Method for making access to external storage device
JPS603224B2 (en) Data creation method for adjusting the number of page storage areas in page buffer memory
EP0460852A2 (en) System for maintaining data coherency between main and cache memories
JP4131579B2 (en) Data management system and data management method
JP2001014219A (en) Method and device for controlling cache
JP2912657B2 (en) File access processor
JP3480393B2 (en) Database access method and apparatus, and machine-readable recording medium recording program
JP3057883B2 (en) File reference method
JP2716163B2 (en) Cache memory control method
JPH05342152A (en) Buffer control system
JPH04205972A (en) Magnetic disk storage device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070719

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080719

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090719

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100719

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110719

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees