JPH0675834A - File space securing system - Google Patents
File space securing systemInfo
- Publication number
- JPH0675834A JPH0675834A JP4228217A JP22821792A JPH0675834A JP H0675834 A JPH0675834 A JP H0675834A JP 4228217 A JP4228217 A JP 4228217A JP 22821792 A JP22821792 A JP 22821792A JP H0675834 A JPH0675834 A JP H0675834A
- Authority
- JP
- Japan
- Prior art keywords
- file
- space
- disk
- free
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はファイルスペース確保方
式に関し、特にファイル作成処理及びファイル拡張処理
において、ディスク上に空きスペースが存在しない時
に、使用されていないファイルのデータを圧縮すること
で空きスペースを確保し、ファイル作成処理及びファイ
ル拡張処理を継続させることが可能なディスク上のファ
イルスペースを有効利用することを目的とするファイル
スペース確保方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file space securing method, and in particular, in file creation processing and file extension processing, when there is no free space on the disk, the data of unused files is compressed to free space. The present invention relates to a file space securing method aiming to effectively utilize a file space on a disk that secures the file and can continue the file creating process and the file expanding process.
【0002】[0002]
【従来の技術】従来は、ファイル作成処理及びファイル
拡張処理において、ディスク上に要求ファイルスペース
分の空きスペースが存在しなかった場合、アクセス頻度
が低くて使用されていないファイルが存在したとしても
ファイル作成処理及びファイル拡張処理が失敗し、異常
終了していた。2. Description of the Related Art Conventionally, in the file creating process and the file expanding process, when there is no free space corresponding to the requested file space on the disk, the file is not used even if the access frequency is low. The creation process and file extension process failed and ended abnormally.
【0003】[0003]
【発明が解決しようとする課題】上述した従来の技術で
は、ディスク上にファイルスペースの空きが存在しなく
なった時に、利用者が過去に作成したアクセス頻度が低
いファイルが、ディスク上に存在して無駄なスペース占
めていても、ファイル作成処理及びファイル拡張処理が
失敗して、異常終了してしまうという欠点がある。According to the above-mentioned conventional technique, when the file space is no longer available on the disk, a file created by the user in the past and having a low access frequency exists on the disk. Even if it occupies a wasted space, there is a drawback that the file creation process and the file expansion process fail and the process ends abnormally.
【0004】本発明の目的は、利用者があらかじめ適切
な未使用日数しきい値を設定することで、ディスク上に
ファイルスペースの空きが存在しなくなっても、ディス
ク上のファイルの内、設定された未使用日数しきい値以
上アクセスされていないファイルが存在すれば、当該フ
ァイルをデータ圧縮することで、ディスク上に空きファ
イルスペースを作成してファイル作成処理及びファイル
拡張処理を継続させることを可能とし、ディスク上のフ
ァイルスペースが有効に利用できるファイルスペース確
保方式を提供することにある。An object of the present invention is to set an appropriate unused days threshold value in advance by a user, so that even if there is no file space on the disk, it is set within the file on the disk. If there is a file that has not been accessed for more than the unused days threshold, it is possible to create a free file space on the disk and continue the file creation process and file expansion process by compressing the data of the file. It is to provide a file space securing method that can effectively use the file space on the disk.
【0005】[0005]
【課題を解決するための手段】本発明のファイルスペー
ス確保方式は、ディスク上に任意にファイルを作成及び
アクセスできるファイルシステムにおいて、ファイル作
成要求を受け取り、ファイルを作成するための情報とし
てファイル名及びファイルサイズ等を入手して、後記フ
ァイルスペース確保手段を呼び出してファイルスペース
を確保し、その確保したファイルスペース情報及びファ
イル名等をディスク上にファイルディレクトリとして書
き出し、ファイルを作成するファイル作成手段と、出力
要求に伴って、ファイルへデータ出力処理を行う際にフ
ァイル拡張が必要となった時、拡張すべきファイルスペ
ースを後記ファイルスペース確保手段を呼び出して確保
し、その確保した拡張分のファイルスペース情報をファ
イルディレクトリ上に反映して、入出力処理を継続する
ファイル拡張手段と、ファイルに対してファイル使用終
了要求が出された時にファイルのファイルディレクトリ
にファイルのアクセス日付を登録するファイル使用終了
手段と、前記ファイル作成手段またはファイル拡張手
段、後記ファイル使用開始手段から要求された確保すべ
きファイルサイズを元に、ディスク上のスペース管理テ
ーブルから要求ファイルサイズ分を確保して、スペース
管理テーブルを更新するファイルスペース確保手段と、
前記ファイルスペース確保手段において、ディスク上に
空きスペースがないと判断された時に、ディスク上にす
でに存在するファイルのファイルディレクトリを全て検
索して、現在の日付とアクセスされた日付の差が指定さ
れた未使用日数しきい値より大きく、かつその内で一番
アクセスが古いファイルを見つける低アクセス頻度ファ
イル抽出手段と、前記低アクセス頻度ファイル抽出手段
で見つけたファル内のデータを圧縮し、圧縮によって空
き状態となったファイルスペース部分をスペース管理テ
ーブルに反映してファイルスペースを解放し、空きファ
イルスペースを作成する空きファイルスペース作成手段
と、ディスク上に存在するファイルに対してファイル使
用要求が出された時にファイルのファイルディレクトリ
をチェックして、ファイルのデータが圧縮されていた場
合、圧縮前のファイルサイズ分のファイルスペースを前
記ファイルスペース確保手段を呼び出すことで確保し、
その後圧縮されたデータを拡張してファイルが使用でき
る状態にするファイル使用開始手段とを有し、ファイル
作成及びファイル拡張時に空きディスクスペースが存在
しなくても、使用されていないファイルのデータを圧縮
して空きスペースを作成することでファイル作成及びフ
ァイル拡張を行う。According to the file space securing method of the present invention, in a file system capable of arbitrarily creating and accessing a file on a disk, a file creation request is received and a file name and information are created as information for creating the file. Obtain the file size, etc., call the file space securing means described later to secure the file space, write the secured file space information and file name etc. as a file directory on the disk, and create a file, and a file creating means, When a file extension is required when performing data output processing to a file in response to an output request, the file space to be extended is secured by calling the file space securing means described below, and the file space information for the secured extension is secured. The file directory File extension means for continuing the input / output processing, file use end means for registering the access date of the file in the file directory of the file when a file use end request is issued for the file, and the file creation Means, file expansion means, and file space securing means for securing the requested file size from the space management table on the disk based on the file size to be secured requested by the file use starting means, and updating the space management table When,
When the file space securing means determines that there is no free space on the disk, it searches all the file directories of files already existing on the disk and specifies the difference between the current date and the accessed date. Compress the data in the file found by the low access frequency file extraction means that finds the file with the oldest access among the files that is larger than the unused days threshold value, and free it by compression A file use request was issued to a file existing on the disk and a free file space creating means for creating a free file space by releasing the file space by reflecting the file space part in the state in the space management table. Sometimes checking the file directory for a file, If the data of Airu is compressed, the file size of the file space before compression secured by calling the file space securing section,
After that, it has a file use starting means for expanding the compressed data to make the file usable, and compressing the data of the unused files even if there is no free disk space at the time of file creation and file expansion. Then, a file is created and a file is expanded by creating an empty space.
【0006】[0006]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0007】図1は本発明のファイルスペース確保方式
の一実施例を示す構成図である。FIG. 1 is a block diagram showing an embodiment of a file space securing system of the present invention.
【0008】本実施例のファイルスペース確保方式は、
図1に示すように、ファイルの作成及びアクセスを行う
利用者(100)とディスク装置(109)とディスク
装置(109)上の使用スペース情報を管理するスペー
ス管理テーブル(110)とディスク装置(109)内
に確保されるファイルスペース(112)とファイルス
ペース(112)を管理するファイルディレクトリ(1
11)とファイル作成手段(101)とファイル使用開
始手段(102)と利用者(100)からのデータ出力
要求を受け取り、データの出力動作を行うデータ出力処
理(103)とファイル拡張手段(104)とファイル
使用終了手段(105)とファイルスペース確保手段
(106)と低アクセス頻度ファイル抽出手段(10
7)と空きファイルスペース作成手段(108)とから
構成されている。The file space securing system of this embodiment is
As shown in FIG. 1, a user (100) who creates and accesses a file, a disk device (109), a space management table (110) for managing used space information on the disk device (109), and a disk device (109). ), And the file directory (1) that manages the file space (112) and the file space (112)
11), a file creating means (101), a file use starting means (102), a data output request (103) for receiving a data output request from a user (100), and performing a data output operation, and a file expanding means (104). A file use ending means (105), a file space securing means (106), and a low access frequency file extracting means (10).
7) and an empty file space creating means (108).
【0009】図2は、利用者(100)からファイル作
成要求を受け取った時のファイル作成手段(101)の
処理の一例を示す流れ図である。FIG. 2 is a flow chart showing an example of processing of the file creating means (101) when a file creating request is received from the user (100).
【0010】図3は、利用者(100)からファイルの
使用開始要求を受け取った時のファイル使用開始手段
(102)の処理の一例を示す流れ図である。FIG. 3 is a flowchart showing an example of processing of the file use starting means (102) when a file use start request is received from the user (100).
【0011】図4は、利用者(100)からデータ出力
要求を受け取った時のデータ出力処理(103)の処理
の一例を示す流れ図である。FIG. 4 is a flow chart showing an example of the data output process (103) when a data output request is received from the user (100).
【0012】図5は、データ出力処理(103)におい
てファイル拡張が必要となった時のファイル拡張手段
(104)の処理の一例を示す流れ図である。FIG. 5 is a flow chart showing an example of the processing of the file expansion means (104) when the file expansion is required in the data output processing (103).
【0013】図6は、利用者(100)からファイルの
使用終了要求を受け取った時のファイル使用終了手段
(105)の処理の一例を示す流れ図である。FIG. 6 is a flow chart showing an example of the processing of the file use end means (105) when a file use end request is received from the user (100).
【0014】図7は、ファイル作成手段(101)、フ
ァイル使用開始手段(102)、ファイル拡張手段(1
04)からファイルスペース確保要求を受け取った時の
ファイルスペース確保手段(106)の処理の一例を示
す流れ図である。FIG. 7 shows a file creating means (101), a file use starting means (102) and a file expanding means (1).
14 is a flow chart showing an example of processing of a file space securing means (106) when a file space securing request is received from 04).
【0015】図8は、ファイルスペース確保手段(10
6)からアクセス頻度の低いファイルの抽出要求を受け
取った時の低アクセス頻度ファイル抽出手段(107)
の処理の一例を示す流れ図である。FIG. 8 shows a file space securing means (10
6) A low access frequency file extraction means (107) when receiving an extraction request for a file with a low access frequency from 6)
6 is a flowchart showing an example of the processing of FIG.
【0016】図9は、ファイルスペース確保手段(10
6)から低アクセス頻度ファイル抽出手段(107)を
呼び出して抽出されたアクセス頻度の低いファイルを元
に、ファイルスペース(112)の空きを作成する要求
を受け取った時の空きファイルスペース作成手段(10
8)の処理の一例を示す流れ図である。FIG. 9 shows a file space securing means (10
6) The low access frequency file extracting means (107) is called from the low access frequency file extracting means (107), and the empty file space creating means (10) is received when the request for creating the empty space of the file space (112) is received based on the extracted file with low access frequency
It is a flow chart showing an example of processing of 8).
【0017】図2でファイル作成手段(101)の処理
手順を説明する。利用者(100)からのファイル作成
要求を受け取り、指定されたファイル名及びファイルサ
イズ等を入手する(ステップ201)。入手したファイ
ルサイズ分のファイルスペース(112)をディスク装
置(109)から確保するため、ファイルスペース確保
手段(106)へ制御を渡す(ステップ202)。ファ
イルスペース確保手段(106)から制御が戻って来た
らファイルスペース(112)が確保できたかをファイ
ルスペース確保手段(106)のリターン情報からチェ
ックする(ステップ203)。ファイルスペース(11
2)が確保できなかった場合は、利用者(100)にフ
ァイル作成が失敗したことの異常を通知する(ステップ
204)。ファイルスペース(112)が確保できた場
合は、ファイルディレクトリ(111)のイメージを作
成して、利用者(100)から入手したファイル名と確
保したファイルスペース(112)の位置及びサイズ等
をファイルディレクトリ(111)上に格納する(ステ
ップ205)。そして、そのファイルディレクトリ(1
11)をディスク装置(109)上に書き出す(ステッ
プ206)。The processing procedure of the file creating means (101) will be described with reference to FIG. A file creation request from the user (100) is received, and the specified file name, file size, etc. are obtained (step 201). In order to secure the file space (112) for the obtained file size from the disk device (109), control is passed to the file space securing means (106) (step 202). When the control returns from the file space securing means (106), it is checked from the return information of the file space securing means (106) whether the file space (112) has been secured (step 203). File space (11
If 2) cannot be secured, the user (100) is notified of the abnormality that the file creation has failed (step 204). When the file space (112) can be secured, an image of the file directory (111) is created, and the file name obtained from the user (100) and the position and size of the secured file space (112) are stored in the file directory. It is stored on (111) (step 205). Then, the file directory (1
11) is written on the disk device (109) (step 206).
【0018】図3でファイル使用開始手段(102)の
処理手順を説明する。利用者(100)からのファイル
使用開始要求を受け取り、使用するファイルに該当する
ファイルディレクトリ(111)をディスク装置(10
9)から読み込む(ステップ301)。ファイルディレ
クトリ(111)内の情報からファイルのデータが圧縮
されていないかをチェックする(ステップ302)。デ
ータが圧縮されていない場合は、ファイルディレクトリ
(111)に対してファイル使用中表示を立てて(ステ
ップ311)、ディスク装置(109)へ書き出す(ス
テップ312)。データが圧縮されている場合は、圧縮
前のファイルサイズ分のファイルスペース(112)を
確保するため、ファイルスペース確保手段(106)へ
制御を渡す(ステップ303)。ファイルスペース確保
手段(106)から制御が戻って来たらファイルスペー
ス(112)が確保できたかをファイルスペース確保手
段(106)のリターン情報からチェックする(ステッ
プ304)。ファイルスペース(112)が確保できな
かった場合は、利用者(100)にファイル使用開始処
理が失敗したことの異常を通知する(ステップ30
5)。ファイルスペース(112)が確保できた場合
は、データ圧縮されているデータを拡張しながら新たに
確保したファイルスペース(112)内に書き出す(ス
テップ306)。全てのデータの拡張が終了したらディ
スク装置(109)上のスペース管理テーブルを読み込
み(ステップ307)、圧縮データが格納されていたフ
ァイルスペース(112)の領域を未使用状態に変更し
て(ステップ308)ディスク装置(109)へ書き出
す(ステップ309)。次に新たに確保したファイルス
ペース(112)の位置及びサイズをファイルディレク
トリ(111)に格納し、ファイルのデータが圧縮され
ていないという表示を立てる(ステップ310)。更に
ファイル使用中表示を立てて(ステップ311)ディス
ク装置(109)にファイルディレクトリ(111)を
書き出す(ステップ312)。The processing procedure of the file use starting means (102) will be described with reference to FIG. A file use start request from a user (100) is received, and a file directory (111) corresponding to a file to be used is set in the disk device (10
9) is read (step 301). It is checked from the information in the file directory (111) whether the file data is compressed (step 302). If the data is not compressed, a file in-use display is set up in the file directory (111) (step 311) and written to the disk device (109) (step 312). If the data is compressed, control is passed to the file space securing means (106) in order to secure the file space (112) for the file size before compression (step 303). When control is returned from the file space securing means (106), it is checked from the return information of the file space securing means (106) whether the file space (112) has been secured (step 304). If the file space (112) cannot be secured, the user (100) is notified of the abnormality that the file use start processing has failed (step 30).
5). When the file space (112) can be secured, the compressed data is expanded and written into the newly secured file space (112) (step 306). When the expansion of all data is completed, the space management table on the disk device (109) is read (step 307), and the area of the file space (112) where the compressed data was stored is changed to an unused state (step 308). ) Writing to the disk device (109) (step 309). Next, the position and size of the newly secured file space (112) are stored in the file directory (111), and an indication that the file data is not compressed is made (step 310). Further, a file busy display is set up (step 311) and the file directory (111) is written to the disk device (109) (step 312).
【0019】図4でデータ出力処理(103)の処理手
順を説明する。利用者(100)からデータ出力要求を
受け取り、データ出力するファイルのファイルディレク
トリ(111)をディスク装置(109)から読み込む
(ステップ401)。ファイルディレクトリ(111)
内のファイルスペース(112)の位置及びサイズから
現在のファイルスペース(112)の領域以外にデータ
を出力する要求かをチェックする(ステップ402)。
現在のファイルスペース(112)の領域以内のデータ
出力要求であれば、ディスク装置(109)に対して実
際のデータ出力動作を行う(ステップ406)。現在の
ファイルスペース(112)の領域以外のデータ出力要
求であれば、足りない領域のファイルサイズ分のファイ
ルスペース(112)を確保するため、ファイル拡張手
段(104)へ制御を渡す(ステップ403)。ファイ
ル拡張手段(104)から制御が戻って来たらファイル
拡張が正常に行われたかをファイル拡張手段(104)
のリターン情報からチェックする(ステップ404)。
ファイル拡張に失敗した場合は、利用者(100)にデ
ータ出力処理(103)が失敗したことの異常を通知す
る(ステップ405)。ファイル拡張が成功した場合
は、ディスク装置(109)に対して実際のデータ出力
動作を行う(ステップ406)。The processing procedure of the data output processing (103) will be described with reference to FIG. A data output request is received from the user (100), and the file directory (111) of the data output file is read from the disk device (109) (step 401). File directory (111)
It is checked from the position and size of the file space (112) in the file space (112) whether it is a request to output data to a region other than the current file space (112) (step 402).
If the data output request is within the current file space (112), the actual data output operation is performed to the disk device (109) (step 406). If it is a data output request other than the area of the current file space (112), control is passed to the file expansion means (104) in order to secure the file space (112) of the file size of the insufficient area (step 403). . When control is returned from the file expansion means (104), it is determined whether the file expansion has been normally performed.
Check from the return information of (step 404).
If the file extension fails, the user (100) is notified of the failure of the data output process (103) (step 405). When the file expansion is successful, the actual data output operation is performed to the disk device (109) (step 406).
【0020】図5でファイル拡張手段(104)の処理
手順を説明する。データ出力処理(103)からファイ
ル拡張要求に受け取り、足りない領域のファイルサイズ
分のファイルスペース(112)を確保するため、ファ
イルスペース確保手段(106)へ制御を渡す(ステッ
プ501)。ファイルスペース確保手段(106)から
制御が戻って来たらファイルスペース(112)が確保
できたかをファイルスペース確保手段(106)のリタ
ーン情報からチェックする(ステップ502)。ファイ
ルスペース(112)が確保できなかった場合は、デー
タ出力処理(103)にファイル拡張処理が失敗したこ
とをリターン情報として通知する(ステップ503)。
ファイルスペース(112)が確保できた場合は、新た
に確保したファイルスペース(112)の位置及びサイ
ズを、ファイルディレクトリ(111)内のすでに格納
されている現在のファイルスペース(112)の位置及
びサイズに付加する形で格納し(ステップ504)、デ
ィスク装置(109)にファイルディレクトリ(11
1)を書き出す(ステップ505)。The processing procedure of the file expansion means (104) will be described with reference to FIG. The file output request is received from the data output process (103), and control is passed to the file space securing means (106) to secure the file space (112) for the file size of the insufficient area (step 501). When the control returns from the file space securing means (106), it is checked from the return information of the file space securing means (106) whether the file space (112) has been secured (step 502). If the file space (112) cannot be secured, the fact that the file expansion process has failed is notified to the data output process (103) as return information (step 503).
When the file space (112) can be secured, the position and size of the newly secured file space (112) are set to the position and size of the current file space (112) already stored in the file directory (111). To the file directory (11) in the disk device (109).
1) is written out (step 505).
【0021】図6でファイル使用終了手段(105)の
処理手順を説明する。利用者(100)からファイルの
使用終了要求を受け取り、使用するファイルに該当する
ファイルディレクトリ(111)をディスク装置(10
9)から読み込む(ステップ601)。読み込んだファ
イルディレクトリ(111)内のファイル使用中表示を
削除し(ステップ602)、現在の日付をファイルのア
クセス日付としてファイルディレクトリ(111)内に
格納する(ステップ603)。次にディスク装置(10
9)へファイルディレクトリ(111)を書き出す(ス
テップ604)。The processing procedure of the file use ending means (105) will be described with reference to FIG. Upon receiving a file use end request from the user (100), the file directory (111) corresponding to the file to be used is set to the disk device (10
9) is read (step 601). The file in-use display in the read file directory (111) is deleted (step 602), and the current date is stored in the file directory (111) as the file access date (step 603). Next, the disk device (10
The file directory (111) is written to 9) (step 604).
【0022】図7でファイルスペース確保手段(10
6)の処理手順を説明する。ファイル作成手段(10
1)、ファイル使用開始手段(102)、ファイル拡張
手段(104)からのファイルスペース確保要求を受け
取り、まずディスク装置(109)からスペース管理テ
ーブル(110)を読み込む(ステップ701)。要求
ファイルサイズ分の空きファイルスペース(112)が
ディスク装置(109)上に存在するかを読み込んだス
ペース管理テーブル(110)からチェックし(ステッ
プ702)、要求ファイルサイズ分の空きが存在するな
らばスペース管理テーブル(110)上の要求ファイル
サイズ分のファイルスペース(112)の領域を使用中
状態に変更して、ファイルスペース(112)を確保し
(ステップ707)、スペース管理テーブル(110)
をディスク装置(109)へ書き出す(ステップ70
8)。要求ファイルサイズ分の空きが存在しないならば
アクセス頻度の低いファイルを抽出するため、低アクセ
ス頻度ファイル抽出手段(107)へ制御を渡す(ステ
ップ703)。低アクセス頻度ファイル抽出手段(10
7)から制御が戻って来たらアクセス頻度の低いファイ
ルが抽出できたかを低アクセス頻度ファイル抽出手段
(107)のリターン情報からチェックする(ステップ
704)。アクセス頻度の低いファイルの抽出ができな
かった場合は、ファイル確保手段(106)を呼び出し
た側にリターン情報としてファイルスペース(112)
の確保が失敗したことを通知する(ステップ705)。
アクセス頻度の低いファイルが抽出できた場合は、抽出
されたアクセス頻度の低いファイルのデータを圧縮して
空きファイルスペース(112)を作成するため、空き
ファイルスペース作成手段(108)へ制御を渡す(ス
テップ706)。空きファイルスペース作成手段(10
8)から制御が戻って来たら、要求ファイルサイズ分の
空きファイルスペース(112)がディスク装置(10
9)上に存在するかのチェックを繰り返して行う(ステ
ップ702)。In FIG. 7, the file space securing means (10
The processing procedure of 6) will be described. File creation means (10
1), a file space securing request is received from the file use starting means (102) and the file expansion means (104), and the space management table (110) is first read from the disk device (109) (step 701). It is checked from the read space management table (110) whether a free file space (112) for the requested file size exists on the disk device (109) (step 702), and if there is a free space for the requested file size. The area of the file space (112) for the requested file size on the space management table (110) is changed to the in-use state to secure the file space (112) (step 707), and the space management table (110).
To the disk device (109) (step 70)
8). If there is no free space for the requested file size, a file with low access frequency is extracted, and therefore control is passed to the low access frequency file extraction means (107) (step 703). Low access frequency file extraction means (10
When the control returns from step 7), it is checked from the return information of the low access frequency file extraction means (107) whether a file with a low access frequency has been extracted (step 704). When the file with low access frequency cannot be extracted, the file space (112) is returned to the side that called the file securing means (106) as return information.
Is secured (step 705).
When a file with a low access frequency can be extracted, the data of the extracted file with a low access frequency is compressed to create a free file space (112), so control is passed to the free file space creating means (108) ( Step 706). Free file space creation means (10
When the control returns from 8), the free file space (112) for the requested file size is allocated to the disk device (10).
9) It is repeatedly checked whether it exists above (step 702).
【0023】図8で低アクセス頻度ファイル抽出手段
(107)の処理手順を説明する。まず、ディスク装置
(109)上に存在するファイルのファイルディレクト
リ(111)を読み込む(ステップ801)。次に読み
込んだファイルディレクトリ(111)内のファイル使
用中表示が立っているかをチェックし(ステップ80
2)、ファイル使用中表示が立っている場合はディスク
装置(109)上の全てのファイルをチェックしたかの
処理へ制御を移し(ステップ806)、そうでない場合
は現在の日付と読み込んだファイルディレクトリ(11
1)内のファイルアクセス日付の差が利用者(100)
が設定した未使用日数しきい値より大きいかをチェック
する(ステップ803)。未使用日数しきい値より小さ
い場合はディスク装置(109)上の全てのファイルを
チェックしたかの処理へ制御を移し(ステップ80
6)、そうでない場合は未使用日数しきい値より大きい
ファイルの内で一番アクセスが古いファイルかをチェッ
クする(ステップ804)。一番アクセスが古いファイ
ルの場合は、作業用エリアに当該ファイルディレクトリ
(111)のイメージを格納して置く(ステップ80
5)。一番アクセスが古くない場合は、ディスク装置
(109)上の全てのファイルをチェックしたかの処理
へ制御を移し、そのチェック処理を行う(ステップ80
6)。その結果、ディスク装置(109)上の全てのフ
ァイルをチェックしていないのであればディスク装置
(109)から次のファイルディレクトリ(111)を
読み込む処理を繰り返し(ステップ801)、ディスク
装置(109)上の全てのファイルを処理したのであれ
ば作業用エリアに未使用ファイルのファイルディレクト
リ(111)のイメージが格納されているかをチェック
する(ステップ807)。格納されていなければアクセ
ス頻度の低いファイルの抽出に失敗したことをリターン
情報としてファイルスペース確保手段(106)へ通知
し(ステップ808)、格納されていればアクセス頻度
の低いファイルの抽出処理を終了する。The processing procedure of the low access frequency file extraction means (107) will be described with reference to FIG. First, the file directory (111) of the file existing on the disk device (109) is read (step 801). Next, it is checked whether the file in-use display in the read file directory (111) is displayed (step 80).
2) If the file in-use display is on, control is transferred to the process of checking all files on the disk device (109) (step 806), and if not, the current date and the read file directory. (11
The difference in the file access dates in 1) is the user (100)
It is checked whether the number of unused days is larger than the set number of unused days threshold (step 803). If it is smaller than the unused days threshold, the control is transferred to the process of checking all the files on the disk device (109) (step 80).
6) If not, it is checked whether the file is the oldest accessed file among the files larger than the unused days threshold value (step 804). If the file is the oldest accessed file, the image of the file directory (111) is stored and placed in the work area (step 80).
5). If the access is not the oldest, the control is transferred to the process of checking all the files on the disk device (109), and the check process is performed (step 80).
6). As a result, if all the files on the disk device (109) have not been checked, the process of reading the next file directory (111) from the disk device (109) is repeated (step 801), and the disk device (109) is read. If all the files have been processed, it is checked whether or not the image of the file directory (111) of the unused file is stored in the work area (step 807). If it is not stored, the fact that the extraction of the infrequently accessed file has failed is notified to the file space securing means (106) as return information (step 808), and if it is stored, the extraction processing of the infrequently accessed file is terminated. To do.
【0024】図9で空きファイルスペース作成手段(1
08)の処理手順を説明する。低アクセス頻度ファイル
抽出手段(107)で作業用エリアに格納されたファイ
ルディレクトリ(111)を元に、ディスク装置(10
9)からデータを読み込み、そのデータを圧縮して再度
ディスク装置(109)へ圧縮したデータを書き出す
(ステップ901)。データ圧縮の結果、空きとなった
ファイルサイズ分のファイルスペース(112)の領域
をスペース管理テーブル(110)上で未使用状態に変
更し(ステップ902)、ディスク装置(109)へス
ペース管理テーブル(110)を書き出す(ステップ9
03)。次に作業用エリアのアクセス頻度の低いファイ
ルのファイルディレクトリ(111)内のデータ圧縮す
る前のファイルスペース(112)のサイズをデータ圧
縮後のサイズに変更し(ステップ904)、データ圧縮
したことの表示を当該ファイルディレクトリ(111)
に立てて(ステップ905)、ディスク装置(109)
へファイルディレクトリ(111)を書き出す(ステッ
プ906)。In FIG. 9, an empty file space creating means (1
08) will be described. Based on the file directory (111) stored in the work area by the low access frequency file extraction means (107), the disk device (10
The data is read from 9), the data is compressed, and the compressed data is written again to the disk device (109) (step 901). As a result of the data compression, the area of the file space (112) corresponding to the file size that becomes free is changed to the unused state on the space management table (110) (step 902), and the space management table ( 110) (step 9)
03). Next, the size of the file space (112) in the file directory (111) of the file with low access frequency in the work area before data compression is changed to the size after data compression (step 904). Display the file directory (111)
Stand (step 905), disk device (109)
The file directory (111) is written to (step 906).
【0025】[0025]
【発明の効果】以上説明したように、本発明のファイル
スペース確保方式は、利用者があらかじめ適切な未使用
日数しきい値を設定することで、ディスク上にファイル
スペースの空きが存在しなくなっても、ディスク上のフ
ァイルの内、設定された未使用日数しきい値以上アクセ
スされていないファイルが存在すれば、当該ファイルを
データ圧縮することで、ディスク上に空きファイルスペ
ースを作成してファイル作成処理及びファイル拡張処理
を継続させることを可能とし、ディスク上のファイルス
ペースを有効に利用できる。As described above, according to the file space securing method of the present invention, the user sets an appropriate unused days threshold value in advance, so that there is no file space available on the disk. Also, if there is a file that has not been accessed for more than the set unused days threshold among the files on the disk, the file is compressed to create free file space on the disk and create the file. The processing and the file expansion processing can be continued, and the file space on the disk can be effectively used.
【図1】本発明のファイルスペース確保方式の一実施例
を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a file space securing system of the present invention.
【図2】本実施例におけるファイル作成手段の処理の一
例を示す流れ図である。FIG. 2 is a flowchart showing an example of processing of a file creating means in this embodiment.
【図3】本実施例におけるファイル使用開始手段の処理
の一例を示す流れ図である。FIG. 3 is a flowchart showing an example of processing of a file use starting means in the present embodiment.
【図4】本実施例におけるデータ出力処理の処理の一例
を示す流れ図である。FIG. 4 is a flowchart illustrating an example of a data output process according to the present exemplary embodiment.
【図5】本実施例におけるファイル拡張手段の処理の一
例を示す流れ図である。FIG. 5 is a flow chart showing an example of processing of a file expansion unit in the present embodiment.
【図6】本実施例におけるファイル使用終了手段の処理
の一例を示す流れ図である。FIG. 6 is a flow chart showing an example of processing of a file use end means in the present embodiment.
【図7】本実施例におけるファイルスペース確保手段の
処理の一例を示す流れ図である。FIG. 7 is a flow chart showing an example of processing of a file space securing unit in the present embodiment.
【図8】本実施例における低アクセス頻度ファイル抽出
手段の処理の一例を示す流れ図である。FIG. 8 is a flowchart showing an example of processing of a low access frequency file extraction means in the present embodiment.
【図9】本実施例における空きファイルスペース作成手
段の処理の一例を示す流れ図である。FIG. 9 is a flow chart showing an example of processing of a free file space creating means in this embodiment.
100 利用者 101 ファイル作成手段 102 ファイル使用開始手段 103 データ出力処理 104 ファイル拡張手段 105 ファイル使用終了手段 106 ファイルスペース確保手段 107 低アクセス頻度ファイル抽出手段 108 空きファイルスペース作成手段 109 ディスク装置 110 スペース管理テーブル 111 ファイルディレクトリ 112 ファイルスペース 100 User 101 File Creating Means 102 File Use Starting Means 103 Data Output Processing 104 File Expansion Means 105 File Use Ending Means 106 File Space Securing Means 107 Low Access Frequency File Extracting Means 108 Free File Space Creating Means 109 Disk Devices 110 Space Management Tables 111 file directory 112 file space
Claims (1)
アクセスできるファイルシステムにおいて、ファイル作
成要求を受け取り、ファイルを作成するための情報とし
てファイル名及びファイルサイズ等を入手して、後記フ
ァイルスペース確保手段を呼び出してファイルスペース
を確保し、その確保したファイルスペース情報及びファ
イル名等をディスク上にファイルディレクトリとして書
き出し、ファイルを作成するファイル作成手段と、出力
要求に伴って、ファイルへデータ出力処理を行う際にフ
ァイル拡張が必要となった時、拡張すべきファイルスペ
ースを後記ファイルスペース確保手段を呼び出して確保
し、その確保した拡張分のファイルスペース情報をファ
イルディレクトリ上に反映して、入出力処理を継続する
ファイル拡張手段と、ファイルに対してファイル使用終
了要求が出された時にファイルのファイルディレクトリ
にファイルのアクセス日付を登録するファイル使用終了
手段と、前記ファイル作成手段またはファイル拡張手
段、後記ファイル使用開始手段から要求された確保すべ
きファイルサイズを元に、ディスク上のスペース管理テ
ーブルから要求ファイルサイズ分を確保して、スペース
管理テーブルを更新するファイルスペース確保手段と、
前記ファイルスペース確保手段において、ディスク上に
空きスペースがないと判断された時に、ディスク上にす
でに存在するファイルのファイルディレクトリを全て検
索して、現在の日付とアクセスされた日付の差が指定さ
れた未使用日数しきい値より大きく、かつその内で一番
アクセスが古いファイルを見つける低アクセス頻度ファ
イル抽出手段と、前記低アクセス頻度ファイル抽出手段
で見つけたファル内のデータを圧縮し、圧縮によって空
き状態となったファイルスペース部分をスペース管理テ
ーブルに反映してファイルスペースを解放し、空きファ
イルスペースを作成する空きファイルスペース作成手段
と、ディスク上に存在するファイルに対してファイル使
用要求が出された時にファイルのファイルディレクトリ
をチェックして、ファイルのデータが圧縮されていた場
合、圧縮前のファイルサイズ分のファイルスペースを前
記ファイルスペース確保手段を呼び出すことで確保し、
その後圧縮されたデータを拡張してファイルが使用でき
る状態にするファイル使用開始手段とを有し、ファイル
作成及びファイル拡張時に空きディスクスペースが存在
しなくても、使用されていないファイルのデータを圧縮
して空きスペースを作成することでファイル作成及びフ
ァイル拡張を行うことを特徴とするファイルスペース確
保方式。1. A file system capable of arbitrarily creating and accessing a file on a disk, receiving a file creation request, obtaining a file name and file size as information for creating the file, and providing a file space securing means described later. To secure a file space, write the secured file space information, file name, etc. as a file directory on the disk, and create a file, and perform data output processing to the file in response to an output request. When a file extension is required at this time, the file space to be extended is secured by calling the file space securing means described below, and the secured file space information is reflected in the file directory to perform input / output processing. With file extension to continue , The file use end means for registering the access date of the file in the file directory of the file when the file use end request is issued to the file, the file creation means or the file extension means, and the file use start means described later. Based on the file size to be secured, a file space securing means for securing the requested file size from the space management table on the disk and updating the space management table,
When the file space securing means determines that there is no free space on the disk, it searches all the file directories of files already existing on the disk and specifies the difference between the current date and the accessed date. Compress the data in the file found by the low access frequency file extraction means that finds the file with the oldest access among the files that is larger than the unused days threshold value, and free it by compression A file use request was issued to a file existing on the disk and a free file space creating means for creating a free file space by releasing the file space by reflecting the file space part in the state in the space management table. Sometimes checking the file directory for a file, If the data of Airu is compressed, the file size of the file space before compression secured by calling the file space securing section,
After that, it has a file use starting means for expanding the compressed data to make the file usable, and compressing the data of the unused files even if there is no free disk space at the time of file creation and file expansion. A file space securing method characterized in that a file is created and a file is expanded by creating a free space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4228217A JPH0675834A (en) | 1992-08-27 | 1992-08-27 | File space securing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4228217A JPH0675834A (en) | 1992-08-27 | 1992-08-27 | File space securing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0675834A true JPH0675834A (en) | 1994-03-18 |
Family
ID=16873019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4228217A Pending JPH0675834A (en) | 1992-08-27 | 1992-08-27 | File space securing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0675834A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07325741A (en) * | 1994-05-30 | 1995-12-12 | Nec Corp | Management control system for data base data |
JPH09231109A (en) * | 1996-02-27 | 1997-09-05 | Nec Corp | File device |
CN107589910A (en) * | 2017-09-01 | 2018-01-16 | 厦门集微科技有限公司 | The method and system of the high in the clouds data management of user's custom strategies |
-
1992
- 1992-08-27 JP JP4228217A patent/JPH0675834A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07325741A (en) * | 1994-05-30 | 1995-12-12 | Nec Corp | Management control system for data base data |
JPH09231109A (en) * | 1996-02-27 | 1997-09-05 | Nec Corp | File device |
CN107589910A (en) * | 2017-09-01 | 2018-01-16 | 厦门集微科技有限公司 | The method and system of the high in the clouds data management of user's custom strategies |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4214712B2 (en) | Database page allocation processing method | |
KR100781515B1 (en) | Log Information Management System and Method for Transaction Processing | |
US7016890B2 (en) | Database system, method for forming replica of database, and computer-readable recording medium that records database replica forming program | |
CN114328018A (en) | Snapshot creating method, computing device and storage medium | |
CN113419897A (en) | File processing method and device, electronic equipment and storage medium thereof | |
JP2000215093A (en) | Device and method for image file | |
CN111309799A (en) | Method, device and system for realizing data merging and storage medium | |
JPH0675834A (en) | File space securing system | |
JPH09244933A (en) | Method and device for backing up data base | |
US7949632B2 (en) | Database-rearranging program, database-rearranging method, and database-rearranging apparatus | |
JPH027096B2 (en) | ||
JPH0844609A (en) | Data backup method | |
JPH08202603A (en) | Document preparing device and document file compiling method | |
JPH11102311A (en) | Database reorganization apparatus and program storage medium | |
JPH0378042A (en) | Automatic saving/reloading processing system for file | |
JPS63138442A (en) | Deleted file restoration processing method | |
JP2630103B2 (en) | File space reservation method | |
JPH02116936A (en) | Reorganizing system | |
JPH0337748A (en) | External storage accessing system utilizing main storage | |
CN114880277A (en) | Block device snapshot method, system and storage medium | |
JPH05250243A (en) | Data processing system for extended storage device | |
JPH06348556A (en) | Storage area management system | |
JPH05173863A (en) | Data base recovery control system | |
JPH0877047A (en) | Data base backup method | |
JP2000099533A (en) | File access method/system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19990810 |