JP2000181764A - File managing system - Google Patents
File managing systemInfo
- Publication number
- JP2000181764A JP2000181764A JP10353578A JP35357898A JP2000181764A JP 2000181764 A JP2000181764 A JP 2000181764A JP 10353578 A JP10353578 A JP 10353578A JP 35357898 A JP35357898 A JP 35357898A JP 2000181764 A JP2000181764 A JP 2000181764A
- Authority
- JP
- Japan
- Prior art keywords
- file
- area
- unused
- unused continuous
- secured
- 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.)
- Pending
Links
- 238000007726 management method Methods 0.000 description 19
- 238000000034 method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、磁気ディスク装
置等において、作業ファイルなどを連続配置可能に管理
するファイル管理システムに関する。[0001] 1. Field of the Invention [0002] The present invention relates to a file management system for managing work files and the like so that they can be continuously arranged in a magnetic disk device or the like.
【0002】[0002]
【従来の技術】コンピュータ装置に設けられる記憶手段
として、データの書き換えが可能な磁気ディスク装置な
どのディスク装置が広く使用されている。このディスク
装置ではデータは一定の区切を有し、ファイルと呼ばれ
るデータ集合を単位として管理され、このデータ集合は
他のデータと区別するためにファイル名を持っている。
また、一般に、コンピュータのディスク装置上のファイ
ルは、読み書きを繰り返すうちに不連続な領域に配置さ
れ易くなり、この場合にも、ディスクヘッドがその読み
書きを指定された各ファイルごとに行うことになる。2. Description of the Related Art Disk devices such as magnetic disk devices capable of rewriting data are widely used as storage means provided in computer devices. In this disk device, data has a certain division and is managed in units of a data set called a file, and this data set has a file name to distinguish it from other data.
Generally, a file on a disk device of a computer is likely to be arranged in a discontinuous area as reading and writing are repeated. In this case, the disk head performs reading and writing for each specified file. .
【0003】[0003]
【発明が解決しようとする課題】しかしながら、かかる
従来のファイル管理方法にあっては、ファイルが不連続
に配置されている場合に、指定したファイルがディスク
装置のどの位置にあるかを走査によって検出するとき、
ディスク装置内の連続した領域に配置されたファイルを
走査する場合に比べて、ディスクヘッドの移動量が大き
くなり、データの入出力に要する時間が著しく長くなる
という課題があった。However, in such a conventional file management method, when a file is arranged discontinuously, a position of a specified file on a disk device is detected by scanning. and when,
As compared with the case of scanning a file arranged in a continuous area in a disk device, the amount of movement of the disk head becomes large, and the time required for data input / output becomes extremely long.
【0004】この発明は前記のような課題を解決するも
のであり、ファイルをディスク装置上に可能な限り連続
配置することができ、これによってディスクアクセス時
間の大幅な短縮を図るとともに、ディスクヘッド装置の
耐久性を向上できるファイル管理システムを得ることを
目的とする。SUMMARY OF THE INVENTION The present invention solves the above-mentioned problems, and allows files to be arranged as continuously as possible on a disk device, thereby greatly reducing disk access time and improving the disk head device. An object of the present invention is to obtain a file management system capable of improving the durability of a file.
【0005】[0005]
【課題を解決するための手段】前記目的達成のため、請
求項1の発明にかかるファイル管理システムは、ディス
ク装置内のファイルにデータを格納する前に、ファイル
のために必要になる領域の大きさを決定し、このファイ
ルを要求する利用者プログラムと、前記ディスク装置内
のファイル配置テーブルにもとづいて、ディスク上に確
保可能な複数の未使用連続領域が登録されている未使用
連続領域テーブルとを有し、ファイル領域選択解放手段
に、前記未使用連続領域テーブルを参照させて、前記必
要な大きさのファイルが確保可能な未使用連続領域を決
定させ、その未使用連続領域をファイルとして前記ディ
スク装置内に確保させ、前記未使用連続領域テーブルか
らその未使用連続領域の登録を削除させるとともに、前
記利用者プログラムに前記確保したファイルデータを格
納して処理を行わせるようにしたものである。In order to achieve the above object, a file management system according to the first aspect of the present invention provides a file management system which stores an area required for a file before storing data in the file in a disk device. And a user program requesting this file, and an unused continuous area table in which a plurality of unused continuous areas that can be secured on the disk are registered based on the file arrangement table in the disk device. Having the file area selection and release means refer to the unused continuous area table to determine an unused continuous area in which a file of the required size can be secured, and use the unused continuous area as a file. In the disk device, the registration of the unused continuous area is deleted from the unused continuous area table, and the user program is deleted. The one in which the file data secured and so as to perform the processing stored in.
【0006】また、請求項2の発明にかかるファイル管
理システムは、前記ファイル領域処理手段により、前記
未使用連続領域の一部のみをファイルとして前記ディス
ク装置内に確保した場合に、その確保した一部を除く余
剰部分を前記未使用連続領域テーブルに登録するように
したものである。In the file management system according to the second aspect of the present invention, when only a part of the unused continuous area is secured as a file in the disk device by the file area processing means, the secured area is saved. The surplus portion excluding the copy portion is registered in the unused continuous area table.
【0007】また、請求項3の発明にかかるファイル管
理システムは、前記ファイル領域処理手段により、前記
ファイルに格納されたデータの前記処理後に、前記利用
者プログラムからの通知を受けて、前記ディスク装置内
のファイルの領域を解放するようにしたものである。In the file management system according to the third aspect of the present invention, the disk device receives a notification from the user program after the processing of the data stored in the file by the file area processing means. This is to free up the file area in the file.
【0008】また、請求項4の発明にかかるファイル管
理システムは、未使用連続領域が多数ある場合に、前記
未使用連続領域テーブルを複数用意して、これらを未使
用連続領域の大きさによって使い分けるようにしたもの
である。In the file management system according to the present invention, when there are a large number of unused continuous areas, a plurality of unused continuous area tables are prepared, and these are used depending on the size of the unused continuous areas. It is like that.
【0009】また、請求項5の発明にかかるファイル管
理システムは、前記ファイル領域処理手段により、前記
解放した領域を未使用連続領域として未使用連続領域テ
ーブルに登録するようにしたものである。In the file management system according to the present invention, the released area is registered as an unused continuous area in an unused continuous area table by the file area processing means.
【0010】また、請求項6の発明にかかるファイル管
理システムは、前記ファイルを、ディスク装置内にデー
タを一時的に格納するための作業ファイルまたは永久的
に格納するための永久ファイルとしたものである。Further, in the file management system according to the present invention, the file is a work file for temporarily storing data in a disk device or a permanent file for storing data permanently. is there.
【0011】[0011]
【発明の実施の形態】以下、この発明の実施の一形態を
図について説明する。図1はこの発明のファイル管理シ
ステムを示すブロック図であり、同図において、1は利
用者プログラムであり、これがディスク装置としてのデ
ィスク装置21〜23のうち、例えばディスク装置21
内のファイルとしての作業ファイルにデータを格納する
前に、この作業ファイルのために必要になる領域の大き
さを決定し、この作業ファイルを要求するように機能す
る。また、12は未使用連続領域テーブルで、これが前
記ディスク装置21〜23内のファイル配置テーブル2
1a,22a,23aにもとづいて、ディスク上に確保
可能な複数の未使用連続領域を登録している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a file management system according to the present invention. In FIG. 1, reference numeral 1 denotes a user program, which is a disk device among disk devices 21 to 23, for example, a disk device 21.
Before storing data in a work file as a file in the system, the size of an area required for the work file is determined, and the function of requesting the work file is performed. Reference numeral 12 denotes an unused continuous area table, which is a file allocation table 2 in the disk devices 21 to 23.
A plurality of unused continuous areas that can be secured on the disk are registered based on 1a, 22a, and 23a.
【0012】さらに、11はファイル領域処理手段とし
てのファイル領域選択解放手段で、これが未使用連続領
域テーブル12を参照して、前記必要な大きさのファイ
ルが確保可能な未使用連続領域を決定し、その未使用連
続領域をファイルとして前記ディスク装置21〜23内
に確保し、前記未使用連続領域テーブル12からその未
使用連続領域の登録を削除するとともに、前記利用者プ
ログラム1に前記確保したファイルデータを格納して処
理を行わせるように機能する。なお、前記作業ファイル
は、複数の磁気ディスク装置21〜23にまたがって配
置することができないものとする。Further, reference numeral 11 denotes a file area selection / release means as a file area processing means, which refers to an unused continuous area table 12 to determine an unused continuous area in which a file of the required size can be secured. The unused continuous area is secured as a file in the disk devices 21 to 23, the registration of the unused continuous area is deleted from the unused continuous area table 12, and the secured file is stored in the user program 1. It functions to store and process data. It is assumed that the work file cannot be arranged over a plurality of magnetic disk devices 21 to 23.
【0013】次に、利用者プログラム1がデータを作業
ファイルに格納し、そのデータに対し何らかの処理を行
う一連の処理を概念的に説明する。未使用連続領域テー
ブル12の内容は図2(a),(b),(c)に示す通
りであり、未使用連続領域テーブル12には、それぞれ
の磁気ディスク装置21〜23内のファイル配置テーブ
ル21a,22a,23aにもとづいて、それぞれの磁
気ディスク上の確保可能な連続した領域(以下、未使用
連続領域と呼ぶ)が複数個(図2では4個)登録されて
いる。利用者プログラム1が作業ファイルにデータを格
納する前に、利用者プログラム1は、作業ファイルのた
めに必要になる領域の大きさを決定し、ファイル領域選
択解放手段11へ必要な大きさの作業ファイルを要求す
る。Next, a series of processes in which the user program 1 stores data in a work file and performs some processing on the data will be conceptually described. The contents of the unused continuous area table 12 are as shown in FIGS. 2A, 2B, and 2C. The unused continuous area table 12 has a file arrangement table in each of the magnetic disk devices 21 to 23. A plurality (four in FIG. 2) of continuous areas that can be secured (hereinafter referred to as unused continuous areas) on each magnetic disk are registered on the basis of 21a, 22a, and 23a. Before the user program 1 stores the data in the work file, the user program 1 determines the size of the area required for the work file and sends the file area selection / release unit 11 the work of the required size. Request a file.
【0014】このため、ファイル領域選択解放手段11
は未使用連続領域テーブル12を参照し、その必要な大
きさの作業ファイルを確保可能な未使用連続領域を決定
し、その領域を作業ファイルとして確保し、利用者プロ
グラム1へその領域の位置を通知する。ここでは磁気デ
ィスク装置21内に作業ファイルの領域を確保したもの
とする。未使用連続領域テーブル12からはその確保さ
れた領域の登録は削除されるが、その未使用連続領域の
一部のみを、作業ファイルとして確保した場合は、ファ
イル領域選択解放手段11は作業ファイルとして確保し
た一部を除く余剰部分を、未使用連続領域テーブル12
に登録(更新)する。For this reason, the file area selection and release means 11
Refers to the unused continuous area table 12, determines an unused continuous area in which a work file of the required size can be secured, reserves the area as a work file, and notifies the user program 1 of the location of the area. Notice. Here, it is assumed that a work file area is secured in the magnetic disk device 21. The registration of the reserved area is deleted from the unused continuous area table 12, but if only a part of the unused continuous area is reserved as a work file, the file area selection / release unit 11 sets the work file as a work file. The surplus part excluding the secured part is stored in the unused continuous area table 12.
Register (update) in.
【0015】続いて、利用者プログラム1はファイル領
域選択解放手段11によって確保された領域にデータを
格納して、処理を行なう。利用者プログラム1による処
理終了後は作業ファイルに格納されたデータは不要にな
るため、利用者プログラム1からは、使用した作業ファ
イルが不要になったことを、ファイル領域選択解放手段
11に通知し、ファイル領域選択解放手段11はその通
知を受けると、作業ファイルの領域を解放する。ファイ
ル領域選択解放手段11は解放した領域を未使用連続領
域テーブル12に登録(更新)する。Subsequently, the user program 1 stores data in the area secured by the file area selection and release means 11 and performs processing. After the processing by the user program 1, the data stored in the work file becomes unnecessary, so the user program 1 notifies the file area selection / release means 11 that the used work file is no longer necessary. Upon receiving the notification, the file area selection / release unit 11 releases the area of the work file. The file area selection release unit 11 registers (updates) the released area in the unused continuous area table 12.
【0016】続いて、利用者プログラム1の処理につい
て、この発明での作業ファイルの領域確保と解放手順
を、図3のフロー図を使用して説明する。また、未使用
連続領域テーブル12として図2を使用し、利用者プロ
グラムは合計サイズが既知であるデータを計算機外から
入力して作業ファイルに格納し、この作業ファイルに格
納されたデータを参照しながら何らかの処理を行い、そ
の処理結果を計算機外へ出力して終了する場合について
説明する。利用者プログラムは、作業ファイルへのデー
タの格納を開始する際に(ステップS1)、そのデータ
の合計サイズを作業ファイルのために必要となる領域の
大きさとして決定し、ファイル領域選択解放手段11へ
通知し、必要な大きさの作業ファイルを要求する(ステ
ップS2)。ファイル領域選択解放手段11は磁気ディ
スク装置21,22,23内のどの領域を作業ファイル
として確保するか決定するため、未使用連続領域テーブ
ル12を参照する(ステップS3)。Next, with respect to the processing of the user program 1, a procedure for securing and releasing a work file area according to the present invention will be described with reference to the flowchart of FIG. 2 is used as the unused continuous area table 12, the user program inputs data having a known total size from outside the computer, stores the data in a work file, and refers to the data stored in the work file. A case where some processing is performed while the processing result is output outside the computer and the processing is terminated will be described. When the user program starts storing data in the work file (step S1), the user program determines the total size of the data as the size of the area required for the work file. To request a work file of a required size (step S2). The file area selection / release unit 11 refers to the unused continuous area table 12 to determine which area in the magnetic disk devices 21, 22, 23 is to be secured as a work file (step S3).
【0017】未使用連続領域テーブル12には、磁気デ
ィスク装置21,22,23内の未使用連続領域につい
て、図2に示すように、領域の大きさ、磁気ディスク装
置名、磁気ディスク装置内の位置が格納されている。作
業ファイル領域選択解放手段11は、未使用連続領域テ
ーブル12に登録された領域の中から、利用者プログラ
ムから通知された大きさよりも大きい領域のうち、最小
の領域を選択し(ステップS4)、利用者プログラムか
ら通知された大きさの分だけ領域を確保し(ステップS
5)、選択した領域を利用者プログラムへ通知して(ス
テップS6)未使用連続領域テーブル12からその領域
の登録を削除する(ステップS7)。ここで、選択した
領域の大きさが必要な大きさでない場合には(ステップ
S8)、確保した領域の余剰部分があれば余剰部分につ
いて未使用連続領域テーブル12に登録する(ステップ
S9)。一方、必要な大きさである場合には、利用者プ
ログラムが作業ファイルに対して処理を実行する(ステ
ップS10)。In the unused continuous area table 12, as shown in FIG. 2, the size of the unused continuous area in the magnetic disk devices 21, 22, 23, the name of the magnetic disk device, The position is stored. The work file area selection and release means 11 selects the smallest area from among the areas registered in the unused continuous area table 12 among the areas larger than the size notified from the user program (step S4). An area is secured for the size notified from the user program (step S
5) The selected area is notified to the user program (step S6), and the registration of the area is deleted from the unused continuous area table 12 (step S7). Here, if the size of the selected area is not the required size (step S8), if there is a surplus part of the secured area, the surplus part is registered in the unused continuous area table 12 (step S9). On the other hand, if the size is the required size, the user program executes a process on the work file (step S10).
【0018】こうして、利用者プログラムが作業ファイ
ルに対する処理を完了すると、作業ファイルに格納され
ているデータは不要になる。利用者プログラムはデータ
が不要になった時点で、使用した作業ファイルが不要に
なったことを、ファイル領域選択解放手段11に通知す
る(ステップS11)。ファイル領域選択解放手段11
はその通知を受けて、その作業ファイルの領域を解放す
る(ステップS12)。ここで、解放した領域は未使用
連続領域テーブル12に登録されるが、登録する前に未
使用連続領域テーブル12を検索して、その領域に連続
した領域が登録されているかどうかを判断する(ステッ
プS13)。解放した領域の後ろに連続した領域が登録
されている場合は、後ろに連続した領域について未使用
連続領域テーブル12から削除し、解放した領域と後ろ
に連続した領域の合計をこれから登録する領域の大きさ
とする。解放した領域の前に連続した領域が登録されて
いる場合は、解放した領域を未使用連続領域テーブル1
2に登録しないで、解放した領域の大きさを、その領域
の前に連続した領域の大きさに加算する(ステップS1
4)。一方、解放した領域に連続した未使用連続領域が
ない場合には、その解放した領域をそのまま未使用領域
テーブル12に登録し(ステップS15)、利用者プロ
グラムの処理を終了する(ステップS16)。When the user program completes the processing for the work file, the data stored in the work file becomes unnecessary. When the user program no longer needs the data, the user program notifies the file area selection and release unit 11 that the used work file is no longer needed (step S11). File area selection release means 11
Receives the notification and releases the area of the work file (step S12). Here, the released area is registered in the unused continuous area table 12, but before registration, the unused continuous area table 12 is searched to determine whether a continuous area is registered in that area ( Step S13). When a continuous area is registered after the released area, the continuous area is deleted from the unused continuous area table 12, and the total of the released area and the subsequent area is registered as the area to be registered. Size. When a continuous area is registered before the released area, the released area is stored in the unused continuous area table 1.
2, the size of the released area is added to the size of the continuous area before that area (step S1).
4). On the other hand, if there is no unused continuous area in the released area, the released area is registered as it is in the unused area table 12 (step S15), and the processing of the user program ends (step S16).
【0019】次に具体例について述べる。いま、利用者
プログラムが作業ファイルとして5000ビットの領域
をファイル領域選択解放手段11に要求したとする。ビ
ットは情報量の最小単位である。この段階で、未使用連
続領域テーブル12は図2(a)に示すように、作業フ
ァイル領域確保前の状態であったとする。ファイル領域
選択解放手段11は、未使用連続領域テーブル12を検
索し、5000ビットよりも大きい未使用連続領域のう
ち最小のものとして、未使用連続領域番号の3番を選択
し、磁気ディスク装置21の先頭から4423ビットの
位置から5000ビット分を確保する。このとき、3番
に登録されていた領域のうち、磁気ディスク装置21内
の位置9423ビットから702ビット分が余剰部分と
して残るので、ファイル領域選択解放手段11は未使用
連続領域テーブル12の3番の登録内容を、領域の大き
さ702ビット、磁気ディスク装置内の位置9423ビ
ットに変更する。このときの、未使用連続領域テーブル
12は、図2(b)に示すように、作業ファイル領域確
保後の状態になる。Next, a specific example will be described. Now, it is assumed that the user program requests the file area selection / release unit 11 to have a 5000-bit area as a work file. A bit is a minimum unit of information amount. At this stage, it is assumed that the unused continuous area table 12 is in a state before the work file area is secured as shown in FIG. The file area selection and release means 11 searches the unused continuous area table 12 and selects the unused continuous area number 3 as the smallest one of the unused continuous areas larger than 5000 bits. 5,000 bits from the position of 4423 bits from the beginning of. At this time, of the area registered in the third area, 702 bits from the position 9423 bits in the magnetic disk device 21 remain as a surplus part. Is changed to an area size of 702 bits and a position of 9423 bits in the magnetic disk drive. At this time, the unused continuous area table 12 is in a state after the work file area is secured, as shown in FIG.
【0020】この利用者プログラムで作業ファイル内の
データが不要になったとき、利用者プログラムは、作業
ファイルとして使用していた磁気ディスク装置21の先
頭から4423ビットの位置から5000ビット分が不
要になった旨を、ファイル領域選択解放手段11に通知
する。ファイル領域選択解放手段11はこの通知された
領域を解放する。ここで、解放する領域の終端は磁気デ
ィスク装置21の9422ビットの位置であり、未使用
連続領域テーブル12の3番に登録された領域の先頭4
423ビットの位置と連続することとなる。この結果、
ファイル領域選択解放手段11は未使用連続領域テーブ
ル12の3番の登録内容を、領域の大きさ5702ビッ
ト、磁気ディスク装置内の位置4423ビットに変更す
る。このとき、未使用連続領域テーブル12は、図2
(c)に示すように、作業ファイル領域解放後の状態に
なる。When the user program no longer needs the data in the work file, the user program no longer needs 5000 bits from the position of 4423 bits from the top of the magnetic disk device 21 used as the work file. The file area selection release unit 11 is notified of the change. The file area selection release unit 11 releases the notified area. Here, the end of the area to be released is the 9422-bit position of the magnetic disk device 21, and the beginning 4 of the area registered in the third of the unused continuous area table 12
It will be continuous with the position of 423 bits. As a result,
The file area selecting / releasing means 11 changes the registered content of the third in the unused continuous area table 12 to the area size 5702 bits and the position 4423 bits in the magnetic disk device. At this time, the unused continuous area table 12 corresponds to FIG.
As shown in (c), the state is after the work file area is released.
【0021】なお、前記のような作業ファイルに対し、
磁気ディスク装置内の一時的でないデータの置き場所を
永久ファイルと呼ぶ。この発明は永久ファイルに対して
も適用される。永久ファイルの場合も、作業ファイルの
場合とまったく同様にして、ファイル配置の管理が可能
である。また、未使用連続領域が多数ある場合、未使用
連続領域テーブル12の検索にかかる所要時間が増加す
る。未使用連続領域テーブル12を複数個用意し、未使
用連続領域の大きさによって使用する未使用連続領域テ
ーブルを使い分けると、未使用連続領域テーブルの検索
の所要時間の増加を低減することができる。Incidentally, for the work file as described above,
A place where non-temporary data is stored in the magnetic disk device is called a permanent file. The invention also applies to permanent files. In the case of a permanent file, the file arrangement can be managed in exactly the same way as in the case of a work file. When there are many unused continuous areas, the time required for searching the unused continuous area table 12 increases. If a plurality of unused continuous area tables 12 are prepared and the unused continuous area table to be used is selectively used depending on the size of the unused continuous area, an increase in the time required for searching for the unused continuous area table can be reduced.
【0022】図4は3個の未使用連続領域テーブル12
1,122,123をテーブル部120に設けた場合の
ファイル管理システムを示すブロック図であり、図5は
この場合のファイル管理手順を詳細に示すフローチャー
トである。この図4および図5の例について説明する
と、まず、利用者プログラム1は作業ファイルへのデー
タの格納を開始する際に(ステップS21)、そのデー
タの合計サイズを作業ファイルの大きさとして作業ファ
イル領域選択解放手段11へ通知し、必要な大きさの作
業ファイルを要求する(ステップS22)。ここで、そ
の作業ファイルの領域の大きさが10000ビット以下
か否かを判定し(ステップS23)、10000ビット
以下の場合には、未使用連続領域テーブル121から領
域を検索する(ステップS24)。FIG. 4 shows three unused continuous area tables 12.
FIG. 5 is a block diagram showing a file management system when 1, 122 and 123 are provided in the table unit 120, and FIG. 5 is a flowchart showing the file management procedure in this case in detail. 4 and 5, when the user program 1 starts storing data in a work file (step S21), the total size of the data is set to the size of the work file. It notifies the area selection release unit 11 and requests a work file of a required size (step S22). Here, it is determined whether or not the size of the area of the work file is 10000 bits or less (step S23). If it is 10000 bits or less, the area is searched from the unused continuous area table 121 (step S24).
【0023】また、領域の大きさが10000ビット以
下でない場合には、続いて、作業ファイルの領域の大き
さが100000ビット以下か否かを判定し(ステップ
S25)、100000ビット以下である場合には、未
使用連続領域テーブル122から領域を検索する(ステ
ップS26)。一方、ステップS25で100000ビ
ット以下でないと判定された場合には、未使用連続領域
テーブル123から領域を検索する(ステップS2
7)。そして、各未使用連続領域テーブル121,12
2,123のいずれかから領域を検索した後は、その検
索した領域を確保し(ステップS28)、その検索した
領域を利用者プログラムへ通知して(ステップS2
9)、未使用連続領域テーブル121,122,123
からその領域の登録を削除する(ステップS30)。If the size of the area is not smaller than 10000 bits, it is determined whether the size of the area of the work file is smaller than 100,000 bits (step S25). Retrieves an area from the unused continuous area table 122 (step S26). On the other hand, if it is determined in step S25 that the number is not less than 100,000 bits, an area is searched from the unused continuous area table 123 (step S2).
7). Then, each unused continuous area table 121, 12
After searching for an area from either of the areas 2 and 123, the searched area is secured (step S28), and the searched area is notified to the user program (step S2).
9), unused continuous area tables 121, 122, 123
The registration of the area is deleted from (step S30).
【0024】そして、ここで検索した領域の大きさが必
要な領域と等しいか否かを調べ(ステップS31)、等
しくない場合には、作業ファイルとして確保した一部を
除く余剰領域の大きさが10000ビット以下か否かを
判定する(ステップS32)。この判定の結果、100
00ビット以下である場合には、未使用連続領域テーブ
ル121に余剰領域を登録し(ステップS33)、一
方、10000ビット以下でない場合には、余剰領域の
大きさが100000ビット以下か否かを判定し(ステ
ップS34)、100000ビット以下である場合に
は、未使用連続領域テーブル122に余剰領域を登録し
(ステップS35)、一方、100000ビット以下で
ない場合には、未使用連続領域テーブル123に余剰領
域の登録を行う(ステップS36)。Then, it is checked whether or not the size of the searched area is equal to the required area (step S31). If not, the size of the surplus area excluding a part secured as a work file is determined. It is determined whether it is less than or equal to 10,000 bits (step S32). As a result of this judgment, 100
If it is not more than 00 bits, the surplus area is registered in the unused continuous area table 121 (step S33). If it is not more than 10,000 bits, it is determined whether or not the size of the surplus area is not more than 100,000 bits. (Step S34), if the number is less than 100,000 bits, the surplus area is registered in the unused continuous area table 122 (Step S35). An area is registered (step S36).
【0025】このような余剰領域の各登録を行った後
は、あるいは検索した領域の大きさが必要な大きさでな
い場合には、利用者プログラムが作業ファイルに対して
処理を実行する(ステップS37)。こうして、利用者
プログラムが作業ファイルに対する処理を完了すると、
作業ファイルに格納されているデータは不要になる。利
用者プログラムはデータが不要になった時点で、使用し
た作業ファイルが不要になったことを、ファイル領域選
択解放手段11に通知する(ステップS38)。ファイ
ル領域選択解放手段11はその通知を受けてその作業フ
ァイルの領域を解放する(ステップS39)。ここで、
解放した領域は未使用連続領域テーブル12に登録され
るが、登録する前に未使用連続領域テーブル121,1
22,123を検索して、その領域に連続した領域が登
録されているかどうかを判断する(ステップS40)。
そして、連続した未使用領域がある場合には、連続した
領域を未使用連続領域テーブル121,122,123
からそれぞれ削除し(ステップS41)、続いて、解放
した未使用連続領域に連続した領域のサイズを加算する
(ステップS42)。After each registration of such a surplus area, or when the size of the searched area is not the required size, the user program executes a process on the work file (step S37). ). Thus, when the user program completes the processing for the work file,
The data stored in the work file becomes unnecessary. When the data is no longer needed, the user program notifies the file area selection / release means 11 that the used work file is no longer needed (step S38). Upon receiving the notification, the file area selection release unit 11 releases the area of the work file (step S39). here,
The released area is registered in the unused continuous area table 12, but before the registration, the unused continuous area table 121, 1
22 and 123 are searched to determine whether or not a continuous area is registered in the area (step S40).
If there is a continuous unused area, the continuous area is stored in the unused continuous area tables 121, 122, and 123.
(Step S41), and the size of the continuous area is added to the released unused continuous area (step S42).
【0026】続いて、前記の解放した未使用連続領域の
大きさが10000ビット以下か否かを判定し(ステッ
プS43)、10000ビット以下である場合には、未
使用連続領域テーブル121に解放領域を登録し(ステ
ップS44)、10000ビット以下でない場合には、
解放領域の大きさが100000ビット以下か否かを判
定し(ステップS45)、100000ビット以下であ
る場合には、未使用連続領域テーブル122に解放領域
を登録し(ステップS46)、100000ビット以下
でない場合には、未使用連続領域テーブル123に解放
領域の登録を行う(ステップS47)。そしてこれらの
各登録を行った後、利用者プログラム処理が終了する
(ステップS48)。Subsequently, it is determined whether or not the size of the released unused continuous area is 10000 bits or less (step S43). If the size is 10000 bits or less, the unused area is stored in the unused continuous area table 121. Is registered (step S44), and if it is not less than 10,000 bits,
It is determined whether or not the size of the release area is equal to or less than 100,000 bits (step S45). If the size is equal to or less than 100,000 bits, the release area is registered in the unused continuous area table 122 (step S46). In this case, the release area is registered in the unused continuous area table 123 (step S47). After performing these registrations, the user program processing ends (step S48).
【0027】この発明では、ファイルの大きさと磁気デ
ィスク内の位置の単位として、情報量の最小単位である
ビットを使用している。これに対し、磁気ディスク内の
領域の単位をビットではなく、一定量の情報の集まり
(以下、クラスタと呼ぶ)で管理する場合、未使用領域
管理テーブル12に登録される領域の大きさと磁気ディ
スク装置内の位置もクラスタ単位となる。利用者プログ
ラム1からの領域の要求において、その大きさがクラス
タ以外の単位である場合、ファイル領域選択解放手段1
1はその大きさをクラスタ単位に換算する。In the present invention, a bit, which is a minimum unit of information amount, is used as a unit of a file size and a position in a magnetic disk. On the other hand, when the unit of the area in the magnetic disk is managed not by bits but by a fixed amount of information (hereinafter referred to as a cluster), the size of the area registered in the unused area management table 12 and the magnetic disk The position in the device is also in cluster units. If the size is a unit other than the cluster in the area request from the user program 1, the file area selection / release means 1
1 converts the size into cluster units.
【0028】[0028]
【発明の効果】以上のように、この発明によれば、ディ
スク装置内のファイルにデータを格納する前に、ファイ
ルのために必要になる領域の大きさを決定し、このファ
イルを要求する利用者プログラムと、前記ディスク装置
内のファイル配置テーブルにもとづいて、ディスク上に
確保可能な複数の未使用連続領域が登録されている未使
用連続領域テーブルとを有し、ファイル領域選択解放手
段に、前記未使用連続領域テーブルを参照させて、前記
必要な大きさのファイルが確保可能な未使用連続領域を
決定させ、その未使用連続領域をファイルとして前記デ
ィスク装置内に確保させ、前記未使用連続領域テーブル
からその未使用連続領域の登録を削除させるとともに、
前記利用者プログラムに前記確保したファイルデータを
格納して処理を行わせるように構成したので、ファイル
をディスク装置上に可能な限り連続配置することがで
き、これによってディスクアクセス時間の短縮化を図る
とともに、ディスクヘッド装置の耐久性を向上できると
いう効果が得られる。また、未使用連続領域が多数ある
場合に、前記未使用連続領域テーブルを複数用意して、
これらを未使用連続領域の大きさによって使い分けるよ
うにすることで、未使用連続領域テーブルの検索の所要
時間を低減できるという効果が得られる。As described above, according to the present invention, before storing data in a file in a disk device, the size of an area required for the file is determined, and the file is requested to be used. User program and an unused continuous area table in which a plurality of unused continuous areas that can be secured on the disk are registered based on a file arrangement table in the disk device. By referring to the unused continuous area table, an unused continuous area in which a file of the required size can be secured is determined, and the unused continuous area is secured as a file in the disk device. While deleting the registration of the unused continuous area from the area table,
Since the user program is configured to store the secured file data and perform processing, the files can be arranged as continuously as possible on the disk device, thereby shortening the disk access time. In addition, the effect of improving the durability of the disk head device can be obtained. Also, when there are many unused continuous areas, a plurality of the unused continuous area tables are prepared,
By using these differently according to the size of the unused continuous area, it is possible to reduce the time required for searching the unused continuous area table.
【図1】 この発明の実施の一形態によるファイル管理
システムを示すブロック図である。FIG. 1 is a block diagram showing a file management system according to an embodiment of the present invention.
【図2】 図1における未使用連続領域テーブルを示す
テーブル図である。FIG. 2 is a table showing an unused continuous area table in FIG. 1;
【図3】 この発明による作業ファイルの管理手順を示
すフロー図である。FIG. 3 is a flowchart showing a work file management procedure according to the present invention.
【図4】 この発明の実施の他の形態によるファイル管
理システムを示すブロック図である。FIG. 4 is a block diagram showing a file management system according to another embodiment of the present invention.
【図5】 図4におけるファイル管理システムの作業フ
ァイルの管理手順を示すフロー図である。FIG. 5 is a flowchart showing a work file management procedure of the file management system in FIG. 4;
1 利用者プログラム 11 ファイル領域選択解放手段(ファイル領域処理手
段) 12,121,122,123 未使用連続領域テーブ
ル 21,22,23 磁気ディスク装置(ディスク装置)Reference Signs List 1 user program 11 file area selection / release means (file area processing means) 12, 121, 122, 123 unused continuous area table 21, 22, 23 magnetic disk device (disk device)
Claims (6)
納する前に、ファイルのために必要になる領域の大きさ
を決定し、このファイルを要求する利用者プログラム
と、 前記ディスク装置内のファイル配置テーブルにもとづい
て、ディスク上に確保可能な複数の未使用連続領域が登
録されている未使用連続領域テーブルと、 該未使用連続領域テーブルを参照して、前記必要な大き
さのファイルが確保可能な未使用連続領域を決定し、そ
の未使用連続領域をファイルとして前記ディスク装置内
に確保し、前記未使用連続領域テーブルからその未使用
連続領域の登録を削除するとともに、前記利用者プログ
ラムに前記確保したファイルデータを格納して処理を行
わせるファイル領域処理手段とを備えたことを特徴とす
るファイル管理システム。1. Before storing data in a file in a disk device, a size of an area required for the file is determined, a user program requesting the file, and a file arrangement in the disk device An unused continuous area table in which a plurality of unused continuous areas that can be secured on the disk are registered based on the table, and a file of the required size can be secured by referring to the unused continuous area table. The unused contiguous area is determined, the unused contiguous area is secured in the disk device as a file, and the registration of the unused contiguous area is deleted from the unused contiguous area table. A file management system comprising: file area processing means for storing secured file data and performing processing.
用連続領域の一部のみをファイルとして前記ディスク装
置内に確保した場合には、その確保した一部を除く余剰
部分を前記未使用連続領域テーブルに登録することを特
徴とする請求項1に記載のファイル管理システム。2. The file area processing means, when only a part of the unused continuous area is secured as a file in the disk device, a surplus part excluding the secured part is stored in the unused continuous area. The file management system according to claim 1, wherein the file management system registers the information in a table.
イルに格納されたデータの前記処理後に、前記利用者プ
ログラムからの通知を受けて、前記ディスク装置内のフ
ァイルの領域を解放することを特徴とする請求項1に記
載のファイル管理システム。3. The file area processing means, after the processing of the data stored in the file, receives a notification from the user program and releases a file area in the disk device. The file management system according to claim 1, wherein
記未使用連続領域テーブルを複数用意して、これらを未
使用連続領域の大きさによって使い分けることを特徴と
する請求項1に記載のファイル管理システム。4. The apparatus according to claim 1, wherein when there are a large number of unused continuous areas, a plurality of unused continuous area tables are prepared, and these are used depending on the size of the unused continuous areas. File management system.
した領域を未使用連続領域として未使用連続領域テーブ
ルに登録することを特徴とする請求項3に記載のファイ
ル管理システム。5. The file management system according to claim 3, wherein the file area processing unit registers the released area as an unused continuous area in an unused continuous area table.
タを一時的に格納するための作業ファイルまたは永久的
に格納するための永久ファイルであることを特徴とする
請求項1乃至請求項3のいずれかに記載のファイル管理
システム。6. The file according to claim 1, wherein the file is a work file for temporarily storing data in a disk device or a permanent file for storing data permanently. The file management system described in Crab.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10353578A JP2000181764A (en) | 1998-12-11 | 1998-12-11 | File managing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10353578A JP2000181764A (en) | 1998-12-11 | 1998-12-11 | File managing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000181764A true JP2000181764A (en) | 2000-06-30 |
Family
ID=18431795
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10353578A Pending JP2000181764A (en) | 1998-12-11 | 1998-12-11 | File managing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000181764A (en) |
Cited By (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6920611B1 (en) | 2002-11-25 | 2005-07-19 | Visa U.S.A., Inc. | Method and system for implementing a loyalty merchant component |
| US6964695B2 (en) | 2001-03-13 | 2005-11-15 | Carbon Technologies Nv | Method and equipment for removing volatile compounds from air |
| US7051923B2 (en) | 2003-09-12 | 2006-05-30 | Visa U.S.A., Inc. | Method and system for providing interactive cardholder rewards image replacement |
| US7104446B2 (en) | 2003-09-03 | 2006-09-12 | Visa U.S.A., Inc. | Method, system and portable consumer device using wildcard values |
| US7121456B2 (en) | 2002-09-13 | 2006-10-17 | Visa U.S.A. Inc. | Method and system for managing token image replacement |
| US7653602B2 (en) | 2003-11-06 | 2010-01-26 | Visa U.S.A. Inc. | Centralized electronic commerce card transactions |
| US7725369B2 (en) | 2003-05-02 | 2010-05-25 | Visa U.S.A. Inc. | Method and server for management of electronic receipts |
| US8005763B2 (en) | 2003-09-30 | 2011-08-23 | Visa U.S.A. Inc. | Method and system for providing a distributed adaptive rules based dynamic pricing system |
| US8010405B1 (en) | 2002-07-26 | 2011-08-30 | Visa Usa Inc. | Multi-application smart card device software solution for smart cardholder reward selection and redemption |
| US8015060B2 (en) | 2002-09-13 | 2011-09-06 | Visa Usa, Inc. | Method and system for managing limited use coupon and coupon prioritization |
| US8407083B2 (en) | 2003-09-30 | 2013-03-26 | Visa U.S.A., Inc. | Method and system for managing reward reversal after posting |
| US8429048B2 (en) | 2009-12-28 | 2013-04-23 | Visa International Service Association | System and method for processing payment transaction receipts |
| US8554610B1 (en) | 2003-08-29 | 2013-10-08 | Visa U.S.A. Inc. | Method and system for providing reward status |
| US8626577B2 (en) | 2002-09-13 | 2014-01-07 | Visa U.S.A | Network centric loyalty system |
| US9852437B2 (en) | 2002-09-13 | 2017-12-26 | Visa U.S.A. Inc. | Opt-in/opt-out in loyalty system |
| US11132691B2 (en) | 2009-12-16 | 2021-09-28 | Visa International Service Association | Merchant alerts incorporating receipt data |
| JP2024006671A (en) * | 2022-07-04 | 2024-01-17 | 株式会社デンソー | Electronic control device, area allocation method and area allocation program |
-
1998
- 1998-12-11 JP JP10353578A patent/JP2000181764A/en active Pending
Cited By (41)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6964695B2 (en) | 2001-03-13 | 2005-11-15 | Carbon Technologies Nv | Method and equipment for removing volatile compounds from air |
| US8010405B1 (en) | 2002-07-26 | 2011-08-30 | Visa Usa Inc. | Multi-application smart card device software solution for smart cardholder reward selection and redemption |
| US8626577B2 (en) | 2002-09-13 | 2014-01-07 | Visa U.S.A | Network centric loyalty system |
| US8015060B2 (en) | 2002-09-13 | 2011-09-06 | Visa Usa, Inc. | Method and system for managing limited use coupon and coupon prioritization |
| US7121456B2 (en) | 2002-09-13 | 2006-10-17 | Visa U.S.A. Inc. | Method and system for managing token image replacement |
| US10460338B2 (en) | 2002-09-13 | 2019-10-29 | Visa U.S.A. Inc. | Network centric loyalty system |
| US9852437B2 (en) | 2002-09-13 | 2017-12-26 | Visa U.S.A. Inc. | Opt-in/opt-out in loyalty system |
| US7374078B2 (en) | 2002-09-13 | 2008-05-20 | Visa U.S.A. Inc. | Method and system for managing token image replacement |
| US7591412B2 (en) | 2002-09-13 | 2009-09-22 | Visa U.S.A. Inc. | Method and system for managing token image replacement |
| US8239261B2 (en) | 2002-09-13 | 2012-08-07 | Liane Redford | Method and system for managing limited use coupon and coupon prioritization |
| US7624917B2 (en) | 2002-09-13 | 2009-12-01 | Visa U.S.A. Inc. | Method and system for managing token image replacement |
| US6920611B1 (en) | 2002-11-25 | 2005-07-19 | Visa U.S.A., Inc. | Method and system for implementing a loyalty merchant component |
| US7987120B2 (en) | 2003-05-02 | 2011-07-26 | Visa U.S.A. Inc. | Method and portable device for management of electronic receipts |
| US8346634B2 (en) | 2003-05-02 | 2013-01-01 | Visa U.S.A. Inc. | Method and apparatus for management of electronic receipts on portable devices |
| US7827077B2 (en) | 2003-05-02 | 2010-11-02 | Visa U.S.A. Inc. | Method and apparatus for management of electronic receipts on portable devices |
| US7725369B2 (en) | 2003-05-02 | 2010-05-25 | Visa U.S.A. Inc. | Method and server for management of electronic receipts |
| US8386343B2 (en) | 2003-05-02 | 2013-02-26 | Visa U.S.A. Inc. | Method and user device for management of electronic receipts |
| US9087426B2 (en) | 2003-05-02 | 2015-07-21 | Visa U.S.A. Inc. | Method and administration system for management of electronic receipts |
| US8554610B1 (en) | 2003-08-29 | 2013-10-08 | Visa U.S.A. Inc. | Method and system for providing reward status |
| US8793156B2 (en) | 2003-08-29 | 2014-07-29 | Visa U.S.A. Inc. | Method and system for providing reward status |
| US8141777B2 (en) | 2003-09-03 | 2012-03-27 | Visa U.S.A. Inc. | Method and system using wildcard values |
| US7104446B2 (en) | 2003-09-03 | 2006-09-12 | Visa U.S.A., Inc. | Method, system and portable consumer device using wildcard values |
| US7611054B2 (en) | 2003-09-03 | 2009-11-03 | Visa U.S.A. Inc. | Mobile phone including wildcard data string |
| US7367501B2 (en) | 2003-09-03 | 2008-05-06 | Visa U.S.A. Inc. | Method, system and portable consumer device using wildcard values |
| US7350702B2 (en) | 2003-09-03 | 2008-04-01 | Visa U.S.A. Inc. | Method, system and portable consumer device using wildcard values |
| US7900831B2 (en) | 2003-09-03 | 2011-03-08 | Visa U.S.A. Inc. | Method and system using wildcard values |
| US7051923B2 (en) | 2003-09-12 | 2006-05-30 | Visa U.S.A., Inc. | Method and system for providing interactive cardholder rewards image replacement |
| US7464870B2 (en) | 2003-09-12 | 2008-12-16 | Visa U.S.A. Inc. | Method and system for providing interactive cardholder rewards image replacement |
| US7857216B2 (en) | 2003-09-12 | 2010-12-28 | Visa U.S.A. Inc. | Method and system for providing interactive cardholder rewards image replacement |
| US7857215B2 (en) | 2003-09-12 | 2010-12-28 | Visa U.S.A. Inc. | Method and system including phone with rewards image |
| US8407083B2 (en) | 2003-09-30 | 2013-03-26 | Visa U.S.A., Inc. | Method and system for managing reward reversal after posting |
| US8244648B2 (en) | 2003-09-30 | 2012-08-14 | Visa U.S.A. Inc. | Method and system for providing a distributed adaptive rules based dynamic pricing system |
| US9141967B2 (en) | 2003-09-30 | 2015-09-22 | Visa U.S.A. Inc. | Method and system for managing reward reversal after posting |
| US8005763B2 (en) | 2003-09-30 | 2011-08-23 | Visa U.S.A. Inc. | Method and system for providing a distributed adaptive rules based dynamic pricing system |
| US9710811B2 (en) | 2003-11-06 | 2017-07-18 | Visa U.S.A. Inc. | Centralized electronic commerce card transactions |
| US7653602B2 (en) | 2003-11-06 | 2010-01-26 | Visa U.S.A. Inc. | Centralized electronic commerce card transactions |
| US11132691B2 (en) | 2009-12-16 | 2021-09-28 | Visa International Service Association | Merchant alerts incorporating receipt data |
| US8650124B2 (en) | 2009-12-28 | 2014-02-11 | Visa International Service Association | System and method for processing payment transaction receipts |
| US8429048B2 (en) | 2009-12-28 | 2013-04-23 | Visa International Service Association | System and method for processing payment transaction receipts |
| JP2024006671A (en) * | 2022-07-04 | 2024-01-17 | 株式会社デンソー | Electronic control device, area allocation method and area allocation program |
| JP7765354B2 (en) | 2022-07-04 | 2025-11-06 | 株式会社デンソー | Electronic control device, area allocation method, and area allocation program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2000181764A (en) | File managing system | |
| US6014730A (en) | Dynamic adding system for memory files shared among hosts, dynamic adding method for memory files shared among hosts, and computer-readable medium recording dynamic adding program for memory files shared among hosts | |
| JPH08129457A (en) | Method and apparatus for expansion,reduction and redistribution of external storage structure | |
| US4115850A (en) | Apparatus for performing auxiliary management functions in an associative memory device | |
| US7421446B1 (en) | Allocation of storage for a database | |
| JPH1063551A (en) | Information processing device | |
| JPH07152498A (en) | Information processing system | |
| JPH07244642A (en) | Parallel processing computers | |
| JP3882461B2 (en) | Storage device system and backup acquisition method thereof | |
| JP2006251990A (en) | Database reorganization program and database reorganization method | |
| JPH025150A (en) | Magnetic disk volume free area control system | |
| JP2641399B2 (en) | File management device | |
| JPH06110741A (en) | Computer device | |
| JP3050194B2 (en) | A system for dynamically adding a shared memory file between hosts, a method for dynamically adding a shared memory file between hosts, and a recording medium storing a program for dynamically adding a shared memory file between hosts | |
| JP2912657B2 (en) | File access processor | |
| JP2817911B2 (en) | Access control method for keyed files | |
| JPH09293055A (en) | System and method for exclusive control over shared file in loosely coupled multiple computer system, and medium for storing exclusive control program | |
| JP2002132555A (en) | System, method and record medium of database access | |
| JPH1091369A (en) | Method and device for deleting printer driver, and medium where printer driver deleting program is recorded | |
| JP3022829B2 (en) | Automatic storage device allocation device | |
| JPH0520264A (en) | Method for controlling buffer | |
| JPH11316703A (en) | Method for storing optical disk | |
| JPH01255028A (en) | How to access external storage devices | |
| JPH0744426A (en) | File system file management method | |
| JPH01158528A (en) | Selecting product control processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20020813 |