JPS61177532A - Area control system - Google Patents

Area control system

Info

Publication number
JPS61177532A
JPS61177532A JP60018324A JP1832485A JPS61177532A JP S61177532 A JPS61177532 A JP S61177532A JP 60018324 A JP60018324 A JP 60018324A JP 1832485 A JP1832485 A JP 1832485A JP S61177532 A JPS61177532 A JP S61177532A
Authority
JP
Japan
Prior art keywords
area
magnetic disk
reorganization
area management
unused
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
JP60018324A
Other languages
Japanese (ja)
Inventor
Hironobu Kamano
釜野 広信
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 JP60018324A priority Critical patent/JPS61177532A/en
Publication of JPS61177532A publication Critical patent/JPS61177532A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To use magnetic disk effectively and efficiently and to shorten an input time by performing the reconstitution of a magnetic disk device. CONSTITUTION:In-use area control information that an area control system has is inputted by an in-use area control information input part 11 to generate a table containing file names 21, area start addresses 22, and area end addresses 23. The area start addresses 22 are used as key to classify the table by a table generating part 12 for reconstitution, generating a table format 31. Reconstitution processing is performed by a reconstitution processing part 13 on the basis of the table to obtain a table format 32 eventually, and this table format 32 is a new in-use are control information table.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデータ処理装置と共に使用される磁気ディスク
装置のファイル領域を管理する領域管理装置、ならびに
上記ファイル領域の再編成を行う再編成処理装置に関す
る。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to an area management device that manages a file area of a magnetic disk device used with a data processing device, and a reorganization processing device that reorganizes the file area. Regarding.

(従来の技術) 従来、磁気ディスク上に未使用領域が点在した場合には
、ファイル取得を行うと第6図に示すように磁気ディス
ク60上に点在してファイル領域61−63が取得され
るため、このファイルに対するファイル領域管理用テー
ブルもそれに伴って大きく取る必要が生じていた。
(Prior Art) Conventionally, when unused areas are scattered on a magnetic disk, when files are acquired, file areas 61 to 63 are acquired scattered on the magnetic disk 60 as shown in FIG. Therefore, the file area management table for this file had to be made larger accordingly.

(発明が解決しようとする問題点) しかし、このテーブルは固定形式で取られて管理されて
いるため、ファイル領域を拡張するには領域管理システ
ム全体を修正しなければならないと云う欠点があった。
(Problem to be solved by the invention) However, since this table is taken and managed in a fixed format, there was a drawback that the entire area management system had to be modified in order to expand the file area. .

さらに、第7図に示すように点在するファイル領域71
と連続するファイル領域72とのアドレス範囲を2で表
わすものとすれば、磁気ディスクヘッドによりファイル
を入出力するに際して書込み/読出し時間はLの大きさ
に比例して当然大きくなると云う欠点があった。
Furthermore, as shown in FIG.
If the address range between L and the continuous file area 72 is represented by 2, there is a drawback that the writing/reading time naturally increases in proportion to the size of L when inputting and outputting files using a magnetic disk head. .

本発明の目的は、磁気ディスク装置上のファイル領域の
取得、および解放によって生じた点在する未使用領域情
報をファイル領域管理装置より入力し、再編成を行う再
編成装置を構成して未使用領域を1箇所に集めることに
より上記欠点を除去し、磁気ディスク装置を有効に利用
すると共に、入出力時間を短縮することができるように
構成した領域管理システムを提供することにある。
An object of the present invention is to configure a reorganization device that inputs scattered unused area information generated by acquisition and release of file areas on a magnetic disk device from a file area management device, and reorganizes unused areas. It is an object of the present invention to provide an area management system configured to eliminate the above drawbacks by collecting areas in one place, effectively utilize a magnetic disk device, and shorten input/output time.

(問題点を解決するための手段) 本発明による領域管理システムは領域管理手段と、テー
ブル生成手段と、再編成手段とを具備して構成したもの
である。
(Means for Solving the Problems) The area management system according to the present invention includes an area management means, a table generation means, and a reorganization means.

領域管理手段は、磁気ディスク装置上の使用領域と未使
用領域とを管理するためのものである。
The area management means is for managing used areas and unused areas on the magnetic disk device.

テーブル生成手段は、領域取得および領域解放によって
生じ九点在する未使用領域の情報を領域管理手段よシ取
出して再編成するのに使用されるテーブルを生成するた
めのものである。
The table generation means is for generating a table used for extracting and reorganizing information on nine unused areas caused by area acquisition and area release by the area management means.

再編成手段は、テーブルによって再編成を行って連続し
たひとつの領域を生成するためのものである。
The reorganization means performs reorganization using a table to generate one continuous area.

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

第1図は、本発明による領域管理システムの一部の一実
施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a portion of an area management system according to the present invention.

第1図において、11は使用領域管理情報入力部、12
は再編成用テーブル作成部、13は再編成処理部、14
は未使用領域管理情報作成部である。
In FIG. 1, 11 is a used area management information input section, 12
13 is a reorganization table creation unit; 13 is a reorganization processing unit; 14 is a reorganization table creation unit;
is an unused area management information creation unit.

第2図は、本発明による領域管理システムの他の一部の
一実施例に含まれた使用領域管理テーブルの内容を示す
説明図である。第2図において、21はファイル名、2
2は領域開始アドレス、23は領域終了アドレスである
FIG. 2 is an explanatory diagram showing the contents of a used area management table included in another embodiment of the area management system according to the present invention. In Figure 2, 21 is the file name, 2
2 is an area start address, and 23 is an area end address.

第3図は、第1図および第2図におけるテーブルの処理
過程を示す説明図である。第3図において、31は第2
図に示した使用領域管理テーブルを読込み、第1図の再
編成用テーブル作成部12で出力されたテーブル形式で
あり、32は第1図の再編成処理部13で出力されたテ
ーブル形式である。
FIG. 3 is an explanatory diagram showing the table processing process in FIGS. 1 and 2. In Figure 3, 31 is the second
This is the table format output by the reorganization table creation section 12 in FIG. 1 after reading the used area management table shown in the figure, and 32 is the table format output by the reorganization processing section 13 in FIG. 1. .

第4図は、本発明による領域管理システムのさらに他の
一部の一実施例に含まれた未使用管理テーブルを示す説
明図である。第4図において、41は未使用領域開始ア
ドレス、42は未使用領域最終アドレスである。
FIG. 4 is an explanatory diagram showing an unused management table included in yet another embodiment of the area management system according to the present invention. In FIG. 4, 41 is an unused area start address, and 42 is an unused area final address.

領域管理システムの備えた使用領域管理情報を使用領域
管理情報入力部11によって入力し、第2図によって示
すファイル名21と、領域開始アドレス22と、領域終
了アドレス23とのテーブルを作成する。領域開始アド
レス22をキーとして上記のテーブルを再編成用テーブ
ル作成部12で分類し、第3図のテーブル形式31を作
成している。このテーブルをもとにして再編成処理部1
3で再編成処理を行い、第3図のテーブル形式32を結
果的に得ている。このテーブル形式32が新しい使用領
域管理情報テーブルとなる。第4図は、上記をもとにし
て未使用領域管理情報作成部12で生成されたテーブル
であり、新しい未使用領域管理情報テーブルとなる。
The used area management information provided by the area management system is inputted by the used area management information input unit 11, and a table of file name 21, area start address 22, and area end address 23 shown in FIG. 2 is created. Using the area start address 22 as a key, the above table is classified by the reorganization table creation section 12 to create the table format 31 shown in FIG. 3. Based on this table, the reorganization processing unit 1
3, the reorganization process is performed and the table format 32 shown in FIG. 3 is obtained as a result. This table format 32 becomes a new used area management information table. FIG. 4 shows a table generated by the unused area management information creation section 12 based on the above, and becomes a new unused area management information table.

以下に、第5図に従って本発明による再編成方式を説明
する。第5図において、151は使用領域テーブル、1
52は未使用領域テーブル、51は使用領域テーブル1
510屓序nの初期値としてlを代入するステップであ
り、52は未使用領域の先頭アドレスエに磁気ディスク
装置の有する最初の物理アドレスdをセットするステッ
プで6 ’; s 53は使用領域の終了から開始を差
引きファイルサイズを求めるステップであシ、54は未
使用領域の先頭アドレスと使用領域テーブルの使用領域
開始アドレスとを比較し、再編成の対象であるか否かを
判定するステップである。
The reorganization method according to the present invention will be described below with reference to FIG. In FIG. 5, 151 is a used area table, 1
52 is an unused area table, 51 is a used area table 1
510 is a step of substituting l as the initial value of the order n, 52 is a step of setting the first physical address d of the magnetic disk device to the first address of the unused area, and 6'; 54 is a step of subtracting the start from the end to obtain the file size, and 54 is a step of comparing the start address of the unused area and the used area start address of the used area table to determine whether or not it is a target for reorganization. It is.

すなわち、使用領域開始アドレスが大きいときには現フ
ァイルが再編成の対象となり、等しいときには処理対象
外となる。55は最初にステップ53で計算されたファ
イルサイズ単位で使用領域な読出し、その後で未使用領
域の開始アドレスから書出すステップである。56は未
使用領域の先頭アドレスを更新することにより現未使用
領域の先頭アドレスに7アイルサイズを加算すると共に
、使用領域の開始と終了とを更新するステップである。
That is, when the used area start address is large, the current file is targeted for reorganization, and when it is equal, it is not targeted for processing. 55 is a step of first reading out the used area in units of file size calculated in step 53, and then writing from the start address of the unused area. 56 is a step of updating the start address of the unused area, thereby adding 7 isles size to the starting address of the current unused area, and updating the start and end of the used area.

使用領域の開始アドレスにはIを代入し、終了アドレス
には未使用領域の先頭にファイルサイズを加えた工を代
入する。57は次の使用領域テーブル処理を実行するた
め、テーブルポインタを1だけ増分するステップであシ
、58は使用領域テーブル上の全ファイルに対して処理
が終了したか否かをチェックし、終了したものであれば
処理が終了され、終了でなければ再度、再編成処理を実
行するステップである。
I is assigned to the start address of the used area, and I is assigned to the end address of the unused area plus the file size. 57 is a step of incrementing the table pointer by 1 in order to execute the next used area table processing, and 58 is a step of checking whether or not processing has been completed for all files on the used area table, and then completing the process. If it is, the process is terminated; if it is not, the reorganization process is executed again.

(発明の効果) 本発明は以上説明したように、磁気ディスク装置の再編
成を行うことにより、$気ディスクを有効、且つ、効率
よく使用できると云う効果がある。
(Effects of the Invention) As described above, the present invention has the effect that a $100 disk can be used effectively and efficiently by reorganizing a magnetic disk device.

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

第1図は、本発明による領域管理システムの一部の一実
施例を示すブロック図である。 第2図は、本発明による領域管理システムの他の一部の
一実施例を示す使用領域管理テーブルの内容を示す説明
図である。 第3図は、第1図および第2図におけるテーブルの処理
過程を示す説明図である。 第4図は、本発明による領域管理システムのさらに他の
一部の一実施例に含まれた未使用管理テーブルを示す説
明図である。 第5図は、本発明による領域管理システムの再編成方式
を示すフローチャートである。 第6図は、磁気ディスク上に点在して未使用領域を割当
てたファイルの一例を示す説明図である。 第7図は、磁気ディスク上に同一のファイル容量を有す
る2つのファイルを連続して割当てた場合と、点在して
割当てられた場合とのアドレスの大きさを比較した説明
図である。 11−14.51〜58−・・処理ステップ21・・・
ファイル名  22,23,41.42・・・アドレス
31.32,151.152−・・テーブル60・・・
磁気ディスク領域 61〜63,71.72・・・ファイル領域11図 才2図 才3図 才4図 (禾イ史…11ち東′) 25図
FIG. 1 is a block diagram showing an embodiment of a portion of an area management system according to the present invention. FIG. 2 is an explanatory diagram showing the contents of a used area management table showing another embodiment of the area management system according to the present invention. FIG. 3 is an explanatory diagram showing the table processing process in FIGS. 1 and 2. FIG. 4 is an explanatory diagram showing an unused management table included in yet another embodiment of the area management system according to the present invention. FIG. 5 is a flowchart showing a reorganization method of the area management system according to the present invention. FIG. 6 is an explanatory diagram showing an example of files scattered on a magnetic disk to which unused areas are allocated. FIG. 7 is an explanatory diagram comparing address sizes when two files having the same file capacity are allocated consecutively on a magnetic disk and when they are allocated scattered. 11-14.51-58-...Processing step 21...
File name 22, 23, 41.42...Address 31.32, 151.152-...Table 60...
Magnetic disk areas 61 to 63, 71, 72...File area 11, 2, 3, 4 (History...11 East') Figure 25

Claims (1)

【特許請求の範囲】[Claims] 磁気ディスク装置上の使用領域と未使用領域とを管理す
るための領域管理手段と、領域取得および領域解放によ
つて生じた点在する未使用領域の情報を前記領域管理手
段より取出して再編成するのに使用されるテーブルを生
成するためのテーブル生成手段と、前記テーブルによつ
て再編成を行つて連続したひとつの領域を生成するため
の再編成手段とを具備して構成したことを特徴とする領
域管理システム。
An area management means for managing used areas and unused areas on a magnetic disk device, and information on scattered unused areas caused by area acquisition and area release is retrieved from the area management means and reorganized. and a reorganization means for reorganizing the table to generate one continuous area. area management system.
JP60018324A 1985-02-01 1985-02-01 Area control system Pending JPS61177532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60018324A JPS61177532A (en) 1985-02-01 1985-02-01 Area control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60018324A JPS61177532A (en) 1985-02-01 1985-02-01 Area control system

Publications (1)

Publication Number Publication Date
JPS61177532A true JPS61177532A (en) 1986-08-09

Family

ID=11968431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60018324A Pending JPS61177532A (en) 1985-02-01 1985-02-01 Area control system

Country Status (1)

Country Link
JP (1) JPS61177532A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02118856A (en) * 1988-10-28 1990-05-07 Nec Corp File control system
JPH04338843A (en) * 1991-04-01 1992-11-26 Xerox Corp File compact designing method for electronic printing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02118856A (en) * 1988-10-28 1990-05-07 Nec Corp File control system
JPH04338843A (en) * 1991-04-01 1992-11-26 Xerox Corp File compact designing method for electronic printing system

Similar Documents

Publication Publication Date Title
JP2664137B2 (en) IC card
US6341308B1 (en) Input/output device information management system for multi-computer system
CN107729541A (en) A kind of data processing method, device and computer-readable recording medium
JPS61177532A (en) Area control system
JPH039426A (en) Software development environment storing system
JPS61101852A (en) Method of preparing file
JPH03255547A (en) Memory dump output system
JPS6380344A (en) File rearrangement system
JP3056128B2 (en) Work area securing method
JPH0667946A (en) Exclusive controller in database having hierarchy structure
JPH113259A (en) Resource management system applying simulation
JPS6349834A (en) Managing system for knowledge having coverage
JPH0245842A (en) Data file control system
JPH05257766A (en) Specified file output system
JPS6130299B2 (en)
JPH03226829A (en) Information processor
JPH0573389A (en) Recovering method for file
JPS63150724A (en) Data access processing system
JPH0561741A (en) File writing system
JPS6290735A (en) File dumping/comparing system
JPH04155545A (en) Dump collection processing method
JPH0460849A (en) Partitioned file control device
JPH05210467A (en) Method for copying to plural floppy disks
JPH03164839A (en) Data storage system
JPH04314129A (en) File managing system