JPH02299037A - File allocation processing system - Google Patents

File allocation processing system

Info

Publication number
JPH02299037A
JPH02299037A JP1119799A JP11979989A JPH02299037A JP H02299037 A JPH02299037 A JP H02299037A JP 1119799 A JP1119799 A JP 1119799A JP 11979989 A JP11979989 A JP 11979989A JP H02299037 A JPH02299037 A JP H02299037A
Authority
JP
Japan
Prior art keywords
group
storage device
file
disk
external storage
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
JP1119799A
Other languages
Japanese (ja)
Inventor
Yoshinori Tanaka
田中 好則
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1119799A priority Critical patent/JPH02299037A/en
Publication of JPH02299037A publication Critical patent/JPH02299037A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概要〕 ディスク記憶装置などの外部記憶装置に対して。[Detailed description of the invention] 〔overview〕 For external storage devices such as disk storage devices.

作成するファイルの割り当てを行う計算機システムにお
けるファイル割り当て処理方式に関し。
Regarding a file allocation processing method in a computer system that allocates files to be created.

ファイル割り当て先の外部記憶装置の領域が不足する場
合に、柔軟に対処できるようにし、ユーザ・プログラム
等の簡略化や互換性の向上を可能とすることを目的とし
The purpose of this system is to enable flexible handling when there is insufficient space on an external storage device to which files can be allocated, and to simplify user programs and improve compatibility.

外部記憶装置を任意の用途ごとにグループ化した情報を
管理するグループ管理テーブルと、そのグループ管理テ
ーブルに、外部記憶装置に関するグループ定義情報を登
録するグループ定義処理部と、ファイルの作成依頼に対
し、指定された外部記憶装置へのファイル割り付け処理
を行い、その指定された外部記憶装置への割り付けが失
敗した場合に、その指定された外部記憶装置が属するグ
ループ内の他の外部記憶装置に、順次割り付け処理を行
うファイル作成処理部とを備えるように構成する。
A group management table that manages information on grouping external storage devices according to arbitrary usage, a group definition processing unit that registers group definition information regarding external storage devices in the group management table, and a file creation request that Performs file allocation processing to a specified external storage device, and if allocation to the specified external storage device fails, the file allocation process is performed sequentially to other external storage devices in the group to which the specified external storage device belongs. and a file creation processing section that performs allocation processing.

〔産業上の利用分野〕[Industrial application field]

本発明は、ディスク記憶装置などの外部記憶装置に対し
て1作成するファイルの割り当てを行う計算機システム
におけるファイル割り当て処理方式に関する。
The present invention relates to a file allocation processing method in a computer system that allocates one file to be created to an external storage device such as a disk storage device.

〔従来の技術〕[Conventional technology]

計算機システムにおいて、ディスク記憶装置(着脱可能
なディスク記憶媒体を含む)等にデータを格納するため
のファイルを作成する場合、従来1次のように行ってい
た。
In a computer system, when creating a file for storing data in a disk storage device (including a removable disk storage medium), etc., the process is conventionally performed as follows.

ファイルを割り当てようとするディスク記憶装置に、空
領域がどれくらいあるかを、空領域の大きさを調べるコ
マンドを使用して参照する。
Use the command to check the amount of free space to see how much free space is available on the disk storage device to which you want to allocate the file.

空領域の大きさから、ファイルの作成が可能なディスク
記憶*2を選択し、そのディスク記憶装置を指定してフ
ァイルを作成する。
Based on the size of the free space, select a disk storage*2 that allows file creation, designate that disk storage device, and create a file.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来方式によれば、ファイルの作成をシステムに依願す
るプログラムは、ファイル割り当て先の空領域情報を参
照して、ファイルの割り当て先を指定しなければならな
い、そのため、そのプログラムの処理が複雑になるとい
う問題があった。
According to the conventional method, a program that requests the system to create a file must refer to the free space information of the file allocation destination and specify the file allocation destination, which makes the processing of that program complicated. There was a problem.

また、ファイルを作成する部分のプログラムが。Also, the part of the program that creates the file.

割り当て先のディスク記憶装置を意識しているため5台
数や各用途などのディスク構成が違うシステムに移行す
る場合には、そのプログラムを修正しなければならない
という問題があった。すなわち、あるディスク記憶装置
に対して、ファイルの割り付けが失敗した場合に5次に
どのディスク記憶装置に割り付けを試みるかというよう
な情報を。
Since the system is aware of the disk storage device to which it is allocated, there is a problem in that the program must be modified when migrating to a system with a different disk configuration, such as the number of five units or each purpose. That is, information such as which disk storage device to try to allocate next if file allocation fails for a certain disk storage device.

完全に管理しなければならないため、各システムごとに
ディスク構成の違いを考慮した対処が必要であった。
Since complete management was required, it was necessary to take into account the differences in disk configuration for each system.

本発明は上記問題点の解決を図り、ファイル割り当て先
の外部記憶装置の領域が不足する場合に。
The present invention aims to solve the above-mentioned problems when the area of the external storage device to which files are allocated is insufficient.

柔軟に対処できるようにし、ユーザ・プログラム等の簡
略化や互換性の向上を可能とすることを目的としている
The purpose is to enable flexible handling, simplify user programs, and improve compatibility.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の構成例を示す。 FIG. 1 shows an example of the configuration of the present invention.

第1図において、10はキーボード等の入力装置、11
はCPUおよびメモリ等からなる処理装置、12はグル
ープ定義コマンドの処理を行うグループ定義処理部、1
3はグループ管理テーブル。
In FIG. 1, 10 is an input device such as a keyboard, 11
1 is a processing device consisting of a CPU, memory, etc.; 12 is a group definition processing unit that processes group definition commands;
3 is the group management table.

14は各ディスク記憶装置ごとの制御情報を持つディス
ク管理ブロック、15はファイル作成処理部、16はデ
ィスク記憶装置を表す。
14 represents a disk management block having control information for each disk storage device, 15 represents a file creation processing section, and 16 represents a disk storage device.

以下、外部記憶装置の代表的なものとして、ディスク記
憶装置16にファイルを割り当てる例を説明する0本発
明の対象となる外部記憶装置としては、ディスク記憶装
置16に限らず9例えば各種記憶装置の論理ボリューム
や物理ボリュームといった。ファイルを割り当てる対象
となる領域管理単位に同様に通用することができる。
An example of allocating files to the disk storage device 16 as a typical external storage device will be explained below.External storage devices to which the present invention applies are not limited to the disk storage device 16; such as logical volumes and physical volumes. The same applies to the area management unit to which files are allocated.

各ディスク記憶装置16に対して、1個ずつのディスク
管理ブロック14が設けられる0本発明では、ディスク
記憶装W16を任意の用途ごとに。
In the present invention, one disk management block 14 is provided for each disk storage device 16. In the present invention, the disk storage device W16 can be used for each arbitrary purpose.

グループ化できるようになっており、その管理情報を、
グループ管理テーブル13として記憶する。
It is now possible to group, and its management information can be
It is stored as the group management table 13.

この例では、DISKI、DISK2.・・・、DIS
Kmのディスク名を持つディスク記憶装置lI!16が
、グループ−1に属するようにグループ化されている。
In this example, DISKI, DISK2. ..., DIS
Disk storage device lI with disk name Km! 16 are grouped to belong to group-1.

グループ定義処理部12は、グループ定義コマンドに対
し、グループ管理テーブル13を更新し。
The group definition processing unit 12 updates the group management table 13 in response to the group definition command.

指定されたグループに指定されたディスク記憶装置16
を登録する処理を行うものである。
Disk storage device 16 specified for the specified group
This process performs the process of registering.

ファイル作成処理部15は、ファイル作成コマンドによ
るファイルの作成依顛に対し、指定されたディスク記憶
装置16へのファイル割り付け処理を行い、その指定さ
れたディスク記憶装置16への割り付けが失敗した場合
に、グループ管理テーブル13 (ディスク管理ブロッ
ク14を含む)を参照し、その指定されたディスク記憶
装置16が属するグループ内の他のディスク記憶装置1
6に1割り付けが成功するか、グループ内の全ディスク
記憶装置、16に対する割り付け処理が失敗するまで、
順次割り付け処理を行うように構成される。
The file creation processing unit 15 performs file allocation processing to a specified disk storage device 16 in response to a file creation request by a file creation command, and if the allocation to the specified disk storage device 16 fails, , refer to the group management table 13 (including the disk management block 14) and check other disk storage devices 1 in the group to which the specified disk storage device 16 belongs.
Until the allocation of 1 to 6 succeeds or the allocation process for all disk storage devices in the group, 16, fails.
It is configured to perform sequential allocation processing.

なお、これらのコマンドは、入力装置10から投入可能
であり、また、プログラムからの起動も可能である。
Note that these commands can be input from the input device 10, and can also be started from a program.

〔作用〕[Effect]

ファイルを割り当てるディスク記憶装置16等を、いく
つかずつまとめてグループという単位で扱い、用途別に
分類することにより、システムにおける外部記憶装置の
管理が容易になる。
The management of external storage devices in the system is facilitated by treating the disk storage devices 16 and the like to which files are assigned in groups and classifying them according to their uses.

一方、ユーザ・プロ゛グラムなどは、グループを意識す
る必要はなく、ファイルを作成する場合に。
On the other hand, user programs do not need to be aware of groups when creating files.

従来と同様に最初に作成したいディスク名等を指定すれ
ば、そのディスク名を持つディスク記憶装置へのファイ
ルの割り当てが行われる。そして。
As in the past, if you first specify the name of the disk you want to create, the file will be allocated to the disk storage device with that disk name. and.

その割り当てが失敗した場合、自動的に同グループ内の
他のディスク記憶装置16への割り付け処理へ移るので
、事前に空領域を調べる処理などが不要となる。
If the allocation fails, the process automatically moves to allocation to other disk storage devices 16 in the same group, so there is no need to perform a process of checking empty space in advance.

グループ定義情報の登録については、システムごとに任
意に行うことができるので、ディスク構成が違うシステ
ムへ移行する場合などにも、ファイルを作成するプログ
ラムの修正を行う必要がない。
Group definition information can be registered arbitrarily for each system, so there is no need to modify the program that creates files even when migrating to a system with a different disk configuration.

〔実施例〕〔Example〕

第2図は本発明の一実施例で用いられるディスク管理ブ
ロックの例、第3図は本発明の実施例を示す。
FIG. 2 shows an example of a disk management block used in an embodiment of the present invention, and FIG. 3 shows an embodiment of the present invention.

ディスク管理ブロック14は、ディスク記憶装置16に
対するアクセスのための制御情報を持つテーブルである
0本実施例では、第2図に示すように、ディスク名およ
び各種制御情報に加えて。
The disk management block 14 is a table containing control information for accessing the disk storage device 16. In this embodiment, as shown in FIG. 2, in addition to the disk name and various control information.

グループ番号および同じグループに属するディスク記憶
装置16を相互にポイントするための右ポインタ、左ポ
インタの記憶領域を持つ、グループ内で先頭のディスク
管理ブロック14は、グループ管理テーブル13におけ
るグループ別のエントリからポイントされる。
The first disk management block 14 in a group, which has a storage area for a group number and a right pointer and a left pointer for mutually pointing disk storage devices 16 belonging to the same group, is based on the entry for each group in the group management table 13. Points will be given.

グループ定義コマンドによって、該当するグループへの
ディスク管理ブロック14のキューイングを行う。
The group definition command queues the disk management block 14 to the corresponding group.

なお1図に示すグループ管理テーブル13と各ディスク
管理ブロック14とを一体的なテーブルとして構成する
ことも可能である。
Note that it is also possible to configure the group management table 13 and each disk management block 14 shown in FIG. 1 as an integrated table.

ファイル作成時の処理は2例えば第3図に示すようにな
る。以下の説明における(al〜+flは、第3図に示
す処理Tal〜fflに対応する。
The processing at the time of file creation is as shown in FIG. 3, for example. (al~+fl in the following description corresponds to the processing Tal~ffl shown in FIG. 3).

(al  ディスク名rDIsK2Jに、rFILEI
Jのファイルを作成することを指示するファイル作成(
CRTF I LE)コマンド30が投入されたとする
。ファイル作成処理部15は、最初に、DISK2のデ
ィスク管理ブロック14を参照して、DISK2の名前
を持つディスク記憶装置16に、ファイルの作成を試み
る。
(al Disc name rDIsK2J, rFILEI
File creation (
Assume that the CRTF I LE) command 30 is input. The file creation processing unit 15 first refers to the disk management block 14 of DISK2 and attempts to create a file in the disk storage device 16 having the name of DISK2.

山) ファイルの作成が正常に行われたならば8処理を
終了する。領域不足のため、ファイルの割り付けが失敗
したならば1次の処理Telへ移る。
8) If the file creation is successful, process 8 ends. If file allocation fails due to insufficient space, the process moves to the first process Tel.

fe)  ディスク管理ブロック14における右ポイン
タまたは左ポインタの一方をたどることにより。
fe) By following either the right pointer or the left pointer in the disk management block 14.

グループ内の次のディスク管理ブロック14に対応する
ディスク記憶装置16に、ファイルの作成を試みる。
An attempt is made to create a file in the disk storage device 16 corresponding to the next disk management block 14 in the group.

(di  ファイルの作成が正常に行われたならば、処
理を終了する。領域不足のため、ファイルの割り付けが
失敗したならば2次の処理(elへ移る。
(If the di file is created normally, the process ends. If the file allocation fails due to insufficient space, move to the secondary process (el).

+81  グループ内のすべてのディスク記憶語W16
に割り付け処理を行ったかどうかを調べる。ディスク管
理ブロック14のポインタをたどって。
+81 All disk memory words in group W16
Check whether allocation processing has been performed. Following the pointer in the disk management block 14.

最初のディスク管理ブロック14に戻ったとき。When returning to the first disk management block 14.

グループ終了と判断する。グループ終了でない場合、処
理(C1に制御を戻し、同様に処理を繰り返す。
Decide that the group has ended. If the group has not ended, control is returned to process C1 and the process is repeated in the same way.

(fl  グループ終了になった場合、グループ内のど
のディスク記憶装置16に対してもファイルを割り当て
ることができないので9割り付ける空領域なしとして、
エラー終了する。
(If the fl group ends, it is not possible to allocate a file to any disk storage device 16 in the group, so there is no free space to allocate.
Ends with error.

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

以上説明したように2本発明によれば、グループを用途
別に定義することができ、領域不足によってファイルの
割り付けが失敗した場合、自動的に同じグループ内の他
の装置への割り付けを行うので3フアイルを作成して使
用するプログラムやオペレータ操作の闇路化が可能にな
る。特に、ファイルを必要とする資源の退避および復元
等の管理を容易に行うことができるようになる。
As explained above, according to the present invention, groups can be defined for each purpose, and if file allocation fails due to insufficient space, allocation is automatically performed to other devices within the same group. This makes it possible to create and use programs and operator operations in secret. In particular, management such as saving and restoring resources that require files can be easily performed.

また、ディスク構成の違うシステムに移行する場合、フ
ァイルを作成するプログラムを変更せずに、そのシステ
ム上にグループを定義することにより、簡単に移行する
ことができるようになる。
Additionally, when migrating to a system with a different disk configuration, you can easily migrate by defining groups on that system without changing the program that creates files.

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

第1図は本発明の構成例。 第2図は本発明の一実施例で用いられるディスク管理ブ
ロックの例。 第3図は本発明の実施例を示す。 図中、10は入力装置、11は処理装置、12はグルー
プ定義処理部、13はグループ管理テーブル、14はデ
ィスク管理ブロック、15はファイル作成処理部、16
はディスク記憶装置を表す。
FIG. 1 shows a configuration example of the present invention. FIG. 2 is an example of a disk management block used in one embodiment of the present invention. FIG. 3 shows an embodiment of the invention. In the figure, 10 is an input device, 11 is a processing device, 12 is a group definition processing section, 13 is a group management table, 14 is a disk management block, 15 is a file creation processing section, 16
represents a disk storage device.

Claims (1)

【特許請求の範囲】 外部記憶装置(16)に対して、作成するファイルの割
り当てを行う計算機システムにおけるファイル割り当て
処理方式において、 外部記憶装置を任意の用途ごとにグループ化した情報を
管理するグループ管理テーブル(13)と、そのグルー
プ管理テーブルに、外部記憶装置に関するグループ定義
情報を登録するグループ定義処理部(12)と、 ファイルの作成依頼に対し、指定された外部記憶装置へ
のファイル割り付け処理を行い、その指定された外部記
憶装置への割り付けが失敗した場合に、その指定された
外部記憶装置が属するグループ内の他の外部記憶装置に
、順次割り付け処理を行うファイル作成処理部(15)
とを備えたことを特徴とするファイル割り当て処理方式
[Claims] In a file allocation processing method in a computer system that allocates files to be created to an external storage device (16), there is provided a group management method for managing information in which external storage devices are grouped according to arbitrary uses. a table (13); a group definition processing unit (12) that registers group definition information regarding external storage devices in the group management table; a file creation processing unit (15) that sequentially performs allocation processing to other external storage devices in the group to which the specified external storage device belongs if the allocation to the specified external storage device fails;
A file allocation processing method characterized by comprising:
JP1119799A 1989-05-12 1989-05-12 File allocation processing system Pending JPH02299037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1119799A JPH02299037A (en) 1989-05-12 1989-05-12 File allocation processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1119799A JPH02299037A (en) 1989-05-12 1989-05-12 File allocation processing system

Publications (1)

Publication Number Publication Date
JPH02299037A true JPH02299037A (en) 1990-12-11

Family

ID=14770515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1119799A Pending JPH02299037A (en) 1989-05-12 1989-05-12 File allocation processing system

Country Status (1)

Country Link
JP (1) JPH02299037A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07281939A (en) * 1994-04-15 1995-10-27 Nec Corp File transfer system
JP2001067249A (en) * 1999-08-26 2001-03-16 Nec Ic Microcomput Syst Ltd Installer and install method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6341925A (en) * 1986-08-08 1988-02-23 Nec Corp Controlling system for disk space

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6341925A (en) * 1986-08-08 1988-02-23 Nec Corp Controlling system for disk space

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07281939A (en) * 1994-04-15 1995-10-27 Nec Corp File transfer system
JP2001067249A (en) * 1999-08-26 2001-03-16 Nec Ic Microcomput Syst Ltd Installer and install method

Similar Documents

Publication Publication Date Title
US5715452A (en) Process of transferring file, process of gaining access to data and process of writing data
JPS6310250A (en) Managing system for virtual logical volume
US20080162863A1 (en) Bucket based memory allocation
JPH07175698A (en) File system
JPH04213129A (en) Memory control system and memory control method
US7058656B2 (en) System and method of using extensions in a data structure without interfering with applications unaware of the extensions
JPH02299037A (en) File allocation processing system
US5918243A (en) Computer mechanism for reducing DASD arm contention during parallel processing
JPH08115238A (en) File system
JPH06110759A (en) File system
JP2565129B2 (en) Volume division management method
JPH02156348A (en) Overflow area control method for plural hash tables
US5659744A (en) Data file store system with means for efficiently managing freeing of data blocks
JPS62163154A (en) Virtual logic volume system
JP2609705B2 (en) File control method
Panda Operating System
JP3022829B2 (en) Automatic storage device allocation device
JPH06110741A (en) Computer equipment
JPH0337748A (en) External storage accessing system utilizing main storage
JPS63276626A (en) Dividing and managing system for secondary storage device
JPH03127137A (en) File area allocating system
JPH04155546A (en) Multivolume file processing method
JPS6327936A (en) File management method
JPH04225441A (en) Continuous allocation file device
JPH01309118A (en) File/device control system