JPS63158641A - Idle file control system - Google Patents

Idle file control system

Info

Publication number
JPS63158641A
JPS63158641A JP61314884A JP31488486A JPS63158641A JP S63158641 A JPS63158641 A JP S63158641A JP 61314884 A JP61314884 A JP 61314884A JP 31488486 A JP31488486 A JP 31488486A JP S63158641 A JPS63158641 A JP S63158641A
Authority
JP
Japan
Prior art keywords
record
bit
file
idle
data file
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
Application number
JP61314884A
Other languages
Japanese (ja)
Inventor
Tetsuji Hino
日野 哲治
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 JP61314884A priority Critical patent/JPS63158641A/en
Publication of JPS63158641A publication Critical patent/JPS63158641A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To shorten a program processing time, and to make a control efficient by obtaining the idle record of a data file with the aid of a bit information stored in a bit map file. CONSTITUTION:When a bit 24 is 1, a corresponding record 27 is in the course of being used, and when the bit 24' is '0', the corresponding record 27' is the idle record. When a program to use the data file 25 obtains the idle record from the file 25, it searches the bit information 23 of the bit map file 21, and when the 0-bit 24' is obtained, the record 27, which has the same record correspondence number as the said bit correspondence number, is obtained as the idle record. Afterwards, when the obtained record is used, the bit 24' concerned is made to be '1'. Besides, when the record 27, which is used by the program to use the file 25, is made to be the idle record, the bit 24, the record 27 corresponds to, is made to '0'.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル空き管理方式、特に1デイスクフアイ
ル装置を備えたコンピュータシステムにおけるファイル
空き管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file free space management method, particularly to a file free space management method in a computer system equipped with a one-disk file device.

〔共通的技術〕[Common technology]

一般に、汎用コンピュータ・ミニコンピユータの基本オ
ペレーティングシステムのファイル管理方式は、順編成
、相対編成、索引順編成の3種類を管理する。これらの
うちレコード番号でアクセスできる相対編成ファイルの
アクセス効率が、最も高いことは良く知られている。
Generally, the basic operating system of a general-purpose computer/minicomputer manages three types of file management methods: sequential organization, relative organization, and indexed sequential organization. It is well known that of these, relative organization files that can be accessed by record number have the highest access efficiency.

〔従来の技術〕[Conventional technology]

従来のファイル空き管理方式は、1つのレコードが使用
中か未使用かの情報がそのレコードの中にあシ、プログ
ラムが空きレコードを得る場合、ファイルのレコードを
順次読み込み判定していた。
In conventional file space management methods, information on whether a record is in use or unused is stored in the record, and when a program obtains a free record, it reads the records in the file one after another and makes a determination.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のファイル空き管理方式は、空きし;−ド
を得るためにファイルのレコードを順次読み込んで判定
するため、プログラム処理時間が長くなり、効率が悪く
なるという欠点があった。
The above-mentioned conventional file free management method has the disadvantage that the program processing time becomes long and efficiency deteriorates because records of a file are sequentially read and determined in order to obtain free files.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のファイル空き管理方式は、ビット情報を格納す
るビットマップファイルののθビットを検索するステッ
プと、上記Oビットのビット相対位置と同じレコード相
対位置にある相対編成形式のデータファイルのレコード
を使用レコードとするステップと、ビットマップファイ
ルのの上記Oビットを1にするステップと、データファ
イルの使用レコードを空きレコードとするステップと、
上記使用レコードのレコード相対位置と同じビット相対
位置にあるビットマップファイルのの1ビットを0にす
るステップとを含んで構成される。
The file free space management method of the present invention includes the steps of searching for the θ bit of a bitmap file that stores bit information, and searching for a record of a relative format data file at the same record relative position as the above O bit bit position. a step of setting the O bit of the bitmap file to 1; and a step of setting the use record of the data file as a free record;
The method includes the step of setting one bit of the bitmap file at the same bit relative position as the record relative position of the used record to 0.

〔実施例〕〔Example〕

次に、本発明の一実施例について、図面を参照して詳細
に説明する。
Next, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例を示すフローチャート、第2
図は本発明の使用レコードを変換する一実施例を示すフ
ローチャート、第3図は前記実施例のファイル構成図で
ある。
FIG. 1 is a flowchart showing one embodiment of the present invention, and FIG.
The figure is a flowchart showing an embodiment of converting usage records of the present invention, and FIG. 3 is a file configuration diagram of the embodiment.

本発明のファイル空き管理方式は、ビット情報23を格
納するビットマップファイルの21のOビット24′を
検索するステップ11と、上記ビット24′のビット相
対位置と同じレコード相対位置にある相対編成形式のデ
ータファイル25のレコード27′を使用レコードとす
るステップ12と、ビットマップファイルの21の上記
Oビット24′を1にするステップ13と、データファ
イル25の使用レコード27を空きレコードとするステ
ップ14と、上記使用レコード27のレコード相対位置
と同じビット相対位置にあるビットマップファイルの2
1の1ビット24をOにするステップ15とを含んで構
成される。
The file free space management method of the present invention includes step 11 of searching for 21 O bits 24' of a bitmap file storing bit information 23, and a relative organization format at the same record relative position as the bit relative position of bit 24'. A step 12 in which the record 27' of the data file 25 is set as a used record, a step 13 in which the O bit 24' of 21 in the bitmap file is set to 1, and a step 14 in which the used record 27 in the data file 25 is set as an empty record. and 2 of the bitmap file at the same bit relative position as the record relative position of the usage record 27 above.
and step 15 of setting one bit 24 of 1 to O.

次に本発明の詳細な説明する。Next, the present invention will be explained in detail.

ビットマップファイルの21に格納されているビット情
報23の各ビット23は、そのビット相対番号22と一
対一に対応しているデータファイル25のレコード相対
番号26を持つレコード27の状態を示している。ビッ
ト24が1の時、対応するレコード27は使用中レコー
ドであシ、ビット24′がOの時、対応するレコード2
7′は空きレコードである。データファイル25を使用
するプログラムがデータファイル25から空きレコード
を得る場合は、ビットマップファイルの21のビット情
報23を検索しOピット24′が得られた時、そのビッ
ト相対番号と同じレコード相対番号をもつレコード27
′が空きレコードとして得られる。
Each bit 23 of the bit information 23 stored in 21 of the bitmap file indicates the status of the record 27 having the record relative number 26 of the data file 25, which corresponds one-to-one with the bit relative number 22. . When bit 24 is 1, the corresponding record 27 is in use; when bit 24' is O, the corresponding record 2 is in use.
7' is an empty record. When a program that uses the data file 25 obtains a free record from the data file 25, it searches for the bit information 23 of 21 in the bitmap file, and when the O pit 24' is obtained, the record relative number is the same as that bit relative number. Record 27 with
′ is obtained as an empty record.

その後、得られたレコードを使用する場合は、該当する
ビット情報23ビット24′を1にする。
Thereafter, when using the obtained record, the corresponding bit information 23 bit 24' is set to 1.

また、データファイル25を使用するプログラムが、使
用していたデータファイル25のレコード27を空きレ
コードとする場合は、そのレコード27の該当するビッ
ト情報23のビット24を0にする。
Further, when the program using the data file 25 makes the record 27 of the data file 25 that it was using an empty record, the bit 24 of the corresponding bit information 23 of the record 27 is set to 0.

〔発明の効果〕〔Effect of the invention〕

本発明のファイル空き管理方式は、ビットマップファイ
ルのに格納されているビット情報によりデータファイル
の空きレコードを得るためプログラム処理時間が短く、
効率が良くなるという効果がある。
The file free space management method of the present invention obtains free records in a data file using bit information stored in a bitmap file, so the program processing time is short.
This has the effect of improving efficiency.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すフローチャート、第2
図は本発明の使用レコードを変換する一実施例を示すフ
ローチャート、第3図は前記実施例のファイル構成図で
ある。 11・・・・・・ビットマップファイルののOビットを
検索するステップ、12・・・・・・ビットのビット相
対位置と同じレコード相対位置にあるデータファイルの
レコードを使用レコードとするステップ、13・・・・
・・ビットマップファイルののOビットを1にするステ
ップ、14・・・・・・データファイルの使用レコード
を空きレコードとするステップ、15・・・・・・使用
レコードのレコード相対位置と同じビット相対位置にあ
るビットマップファイルのの1ビットを0にするステッ
プ、21・・・・・・ビットマップファイルの、22・
・・・・・ビット相対番号を示す数字、23・・・・・
・ビット情報、24.24’・・・・・・ビット、25
・・・・・・相対編成形式のデータファイル、26・・
・・・・レコード相対番号を示す数字、27.27’・
・・・・・レコー訃°。 7″、・・、・ 代理人 弁理士  内 原  ゛晋 °、3ソ 毛1図 万2回
FIG. 1 is a flowchart showing one embodiment of the present invention, and FIG.
The figure is a flowchart showing an embodiment of converting usage records of the present invention, and FIG. 3 is a file configuration diagram of the embodiment. 11... step of searching for the O bit of the bitmap file, 12... step of setting the record of the data file at the same record relative position as the bit relative position of the bit as the record to be used, 13・・・・・・
... Step of setting the O bit of the bitmap file to 1, 14 ... Step of making the used record of the data file a free record, 15 ... ... The same bit as the record relative position of the used record Step 21 of setting 1 bit of the bitmap file at a relative position to 0...22 of the bitmap file
...Number indicating bit relative number, 23...
・Bit information, 24.24'...Bit, 25
・・・・・・Relative organization format data file, 26...
...Number indicating relative record number, 27.27'.
... Record death. 7″... Agent Patent Attorney Shin Uchihara, 3 Soge 1 million 2 times

Claims (1)

【特許請求の範囲】[Claims] ビット情報を格納するビットマップファイルの0ビット
を検索する第1のステップと、前記0ビットのビット相
対位置と同じレコード相対位置にある相対編成形式のデ
ータファイルのレコードを使用レコードとする第2のス
テップと、ビットマップファイルの前記0ビットを1に
する第3のステップと、データファイルの使用レコード
を空きレコードとする第4のステップと、前記使用レコ
ードのレコード相対位置と同じビット相対位置にあるビ
ットマップファイルの1ビットを0にする第5のステッ
プとを含むことを特徴とするファイル空き管理方式。
A first step of searching for a 0 bit in a bitmap file that stores bit information, and a second step of searching for a 0 bit in a bitmap file that stores bit information, and a second step in which a record of a data file in a relative organization format at the same record relative position as the bit relative position of the 0 bit is used as a record. a third step of setting the 0 bit of the bitmap file to 1; and a fourth step of setting the used record of the data file to a free record, the bit relative position being the same as the record relative position of the used record. and a fifth step of setting one bit of the bitmap file to 0.
JP61314884A 1986-12-23 1986-12-23 Idle file control system Pending JPS63158641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61314884A JPS63158641A (en) 1986-12-23 1986-12-23 Idle file control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61314884A JPS63158641A (en) 1986-12-23 1986-12-23 Idle file control system

Publications (1)

Publication Number Publication Date
JPS63158641A true JPS63158641A (en) 1988-07-01

Family

ID=18058783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61314884A Pending JPS63158641A (en) 1986-12-23 1986-12-23 Idle file control system

Country Status (1)

Country Link
JP (1) JPS63158641A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04342044A (en) * 1991-05-20 1992-11-27 Fujitsu Ltd Record retrieving device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61160133A (en) * 1985-01-09 1986-07-19 Hitachi Ltd Data input control method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61160133A (en) * 1985-01-09 1986-07-19 Hitachi Ltd Data input control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04342044A (en) * 1991-05-20 1992-11-27 Fujitsu Ltd Record retrieving device

Similar Documents

Publication Publication Date Title
US6341308B1 (en) Input/output device information management system for multi-computer system
JPS63158641A (en) Idle file control system
CN107861956B (en) Method and device for inquiring data record of bayonet passing vehicle
JPH0744426A (en) File management method for file system
JPH04236639A (en) File space management system
JPH02116936A (en) Reorganizing system
JPS62273678A (en) Test method for magnetic disk device
JP2507399B2 (en) Database equipment
JPH0371349A (en) File control system
JP2658097B2 (en) Secondary file creation method
JPH03226829A (en) Information processor
JPH04195559A (en) Subfile management system
JPS60124750A (en) Data processing system
JPH02220151A (en) Variable length data access system
JPS6286583A (en) Test method for magnetic disk device
JPS62180437A (en) File input/output system
JPS58190750U (en) Computer software error information storage device
JPH0877045A (en) File sharing system
JPS5911341U (en) Data setting device
JPH01216423A (en) Record retrieval system
JPH04314129A (en) File managing system
JPH01136252A (en) File structure
JPH03164839A (en) Data storage system
JPH02208750A (en) File access system
JPH0823867B2 (en) Adjacency search method using aggregate files