JP2000010842A - Method and system for file management - Google Patents

Method and system for file management

Info

Publication number
JP2000010842A
JP2000010842A JP10179125A JP17912598A JP2000010842A JP 2000010842 A JP2000010842 A JP 2000010842A JP 10179125 A JP10179125 A JP 10179125A JP 17912598 A JP17912598 A JP 17912598A JP 2000010842 A JP2000010842 A JP 2000010842A
Authority
JP
Japan
Prior art keywords
file
management
information
entry
block
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
JP10179125A
Other languages
Japanese (ja)
Inventor
Hiroyuki Endo
宏幸 遠藤
Hidetoshi Mukaida
英俊 向井田
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
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Tohoku 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 NEC Corp, NEC Software Tohoku Ltd filed Critical NEC Corp
Priority to JP10179125A priority Critical patent/JP2000010842A/en
Publication of JP2000010842A publication Critical patent/JP2000010842A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To arrange file information under the same directory in a continuous area as much as possible by a block-by-block allocation by managing a file information table by block. SOLUTION: The file information management unit table 23 has flags showing whether or not respective blocks are currently in use and bit information showing whether or not respective entries in the blocks are currently in use so as to manage a certain number of successive entries of the file information table 32 in blocks. A file control means 21 analyzes a file generation request and requests a file information managing means 22 to allocate an entry. The file information managing means 22 allocates entries of one unused block to a new directory by referring to the file information management table 23 and allocates one of them to one file. The remaining entries are reserved for next and succeeding file generation requests. All the entries in the block are used as a result of repetitive file generation and when a request is further made, an unused block is added for allocation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はファイル管理方法お
よび方式に関し、特に複数のディレクトリの下に複数の
ファイルシステムを構成する共用記憶装置におけるファ
イル管理方法および方式に関する。
The present invention relates to a file management method and method, and more particularly, to a file management method and method in a shared storage device in which a plurality of file systems are configured under a plurality of directories.

【0002】[0002]

【従来の技術】近年のネットワーク化された情報処理シ
ステムにおいては、ネットワーク上の複数のユーザが大
容量の外部記憶装置を共用し、各ユーザのファイルをそ
れぞれ独立のディレクトリの下で管理するようにして、
1台の外部記憶装置内に複数のファイルシステム(一つ
のディレクトリ配下のファイル群をファイルシステムと
称す)を構成することが行われている。
2. Description of the Related Art In a recent networked information processing system, a plurality of users on a network share a large-capacity external storage device, and files of each user are managed under independent directories. hand,
2. Description of the Related Art A plurality of file systems (a group of files under one directory is called a file system) are configured in one external storage device.

【0003】この種の用途に使用される外部記憶装置に
は、記憶領域をパーティションと呼ばれる複数の領域に
分割し、各パーティションを更にファイル実体が格納さ
れるファイル領域とファイル管理情報(格納位置,長
さ,ファイル名など)が格納される管理領域とに区分
し、管理領域内に複数のエントリ(一つのファイルの管
理情報を格納する単位領域をエントリと称す)から成る
ファイル情報テーブルを設けた装置が用いられる。この
場合、特開昭64―86389号公報や特開昭63―1
00549号公報に記載されているように、1パーティ
ションを1ファイルシステムに対応させると、ファイル
情報テーブルをそのままディレクトリとして使用するこ
とができるが、格納できるファイルシステム数がパーテ
ィション数に限定されるため装置の利用効率が悪くなる
難点がある。これに対する対応策として、ディレクトリ
を1個のファイルとして扱い、配下のファイルと同様に
ファイル情報テーブルの1エントリを使用してファイル
領域内に作成することにより、パーティション数と無関
係に多数のファイルシステムを収容できるようにするこ
とが行われている。
In an external storage device used for this type of application, a storage area is divided into a plurality of areas called partitions, and each partition is further divided into a file area in which a file entity is stored and file management information (storage location, A file information table including a plurality of entries (a unit area for storing management information of one file is referred to as an entry) is provided in the management area. A device is used. In this case, JP-A-64-86389 and JP-A-63-1
As described in Japanese Patent Publication No. 00549, if one partition corresponds to one file system, the file information table can be used as a directory as it is, but the number of file systems that can be stored is limited to the number of partitions. There is a drawback that the use efficiency of the system becomes poor. As a countermeasure against this, a directory is treated as one file, and one file entry is created in the file area using one entry of the file information table, similarly to the files under the directory, so that a large number of file systems can be created regardless of the number of partitions. Being able to accommodate is being done.

【0004】上述の考え方による従来のファイル管理方
式では、ディレクトリ配下に新たにファイルを作成する
場合、ディレクトリのエントリに近い位置にある未使用
のエントリをその都度検索して割り当てるようになって
いる。以下、ファイルを格納するディスク装置が、図4
に示すように、複数のシリンダごとにグループ化された
p+1個(pは正の整数)のシリンダグループC0 〜C
p に分割されており、シリンダグループC0 〜Cp の管
理領域内の所定の位置にそれぞれファイル情報テーブル
0 〜Tp が設けられている場合について説明する。
In the conventional file management system based on the above-described concept, when a new file is created under a directory, an unused entry located near a directory entry is searched and assigned each time. Hereinafter, the disk device for storing the file is
, P + 1 (p is a positive integer) cylinder groups C 0 -C grouped for each of a plurality of cylinders
p is divided into, a case will be described in which cylinder group C 0 -C respective file information table T in position in the management area of the p 0 through T p is provided.

【0005】この状態において、ディスク装置に収容さ
れるファイルシステムの数が少ない間は、ファイルシス
テムのディレクトリにファイル情報テーブルT0 〜Tp
の先頭のエントリが割り当てられるが、ファイルシステ
ム数がp+1を超えた場合には、同じファイル情報テー
ブルTk (k=0〜p)内に複数のディレクトリが割り
当てられる。
In this state, while the number of file systems accommodated in the disk device is small, the file information tables T 0 to T p are stored in the directory of the file system.
Is allocated, but when the number of file systems exceeds p + 1, a plurality of directories are allocated in the same file information table T k (k = 0 to p).

【0006】あるディレクトリがシリンダグループC0
内のファイル情報テーブルT0 にあり、そのディレクト
リ配下に新たにファイルを作成するため未使用のエント
リを検索する場合、最初にディレクトリと同じシリンダ
グループC0 内のファイル情報テーブルT0 を検索し、
ディレクトリのエントリに最も近い未使用のエントリを
割り当てる。しかし、ファイル情報テーブルT0 に未使
用のエントリが見つからない場合には、次のシリンダグ
ループC1 のファイル情報テーブルT1 を検索する。こ
のようにして、ディレクトリのエントリにできるだけ近
い位置から未使用のエントリをその都度検索して割り当
てるように構成されている。
A directory is a cylinder group C 0
When searching for an unused entry in the file information table T 0 in the same directory and creating a new file under the directory, the file information table T 0 in the same cylinder group C 0 as the directory is searched first,
Assign the unused entry closest to the directory entry. However, if the file information table T 0 is not found unused entries searches the file information table T 1 of the next cylinder group C 1. In this way, an unused entry is searched and assigned each time from a position as close as possible to a directory entry.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た従来のファイル管理方式では、収容できるファイルシ
ステム数に制限がなく装置を効率的に使用できる反面、
多くのディレクトリの下でファイルの作成と削除が繰り
返された後には、同じディレクトリ配下のファイルが記
憶装置上に分散して配置され、且つ同じディレクトリ配
下のファイルのエントリが同じファイル情報テーブル内
においても連続せずに分散してしまうことが避けられな
い。
However, in the above-described conventional file management system, the number of file systems that can be accommodated is not limited, and the device can be used efficiently.
After the creation and deletion of files under many directories are repeated, the files under the same directory are distributed and placed on the storage device, and the entries of the files under the same directory are stored in the same file information table. Dispersion without continuity is inevitable.

【0008】このように同じディレクトリ配下のファイ
ルのエントリが分散した場合、ファイルとして作成され
るディレクトリには必要最小限の情報としてファイル名
とそのファイルを管理するエントリへのポインタのみを
記録させているため、ファイル名のみの一覧表示には問
題ないがファイル属性を一覧表示させる場合には、必要
な情報の検索,収集および編集に余分な時間がかかると
いう問題点がある。
When the entries of files under the same directory are dispersed as described above, only a file name and a pointer to an entry for managing the file are recorded in a directory created as a file as necessary minimum information. Therefore, there is no problem in displaying a list of only file names, but when displaying a list of file attributes, there is a problem that extra time is required for searching, collecting, and editing necessary information.

【0009】本発明の目的は、上述した問題点をできる
だけ除去し、装置資源の利用効率との両立を図ったファ
イル管理方法および方式を提供することである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a file management method and system which eliminates the above-mentioned problems as much as possible and which is compatible with the utilization efficiency of device resources.

【0010】[0010]

【課題を解決するための手段】請求項1のファイル管理
方法は、ディレクトリの配下に所属するファイル群を複
数組収容する共用記憶装置のファイル管理方法であっ
て、格納されるファイル等の格納位置を含む管理情報を
記憶するファイル情報テーブルを連続した複数のエント
リから成るブロックに分割し、前記各ブロック及び所属
エントリの使用状況を管理するための管理エントリから
成るファイル情報管理テーブルを設け、前記各ディレク
トリに対して配下の各ファイルが使用する前記ファイル
情報テーブルのエントリを前記ファイル情報管理テーブ
ルを参照してブロック単位で割り当てるように構成され
ている。
According to a first aspect of the present invention, there is provided a file management method for a shared storage device accommodating a plurality of groups of files belonging to a directory. The file information table storing the management information including the above is divided into blocks made up of a plurality of continuous entries, and a file information management table made up of management entries for managing the use status of each block and belonging entries is provided. An entry of the file information table used by each file under the directory is allocated to the directory in block units with reference to the file information management table.

【0011】請求項2のファイル管理方法は、請求項1
記載のファイル管理方法において、前記ファイル情報管
理テーブルが、前記共用記憶装置を構成する記録媒体上
の複数に分割された各格納領域に対応してそれぞれ一つ
ずつ設けられ、前記ファイル情報管理テーブルが、複数
の前記ファイル情報テーブルに共通に一つ設けられてい
ることを特徴としている。
According to a second aspect of the present invention, there is provided a file management method according to the first aspect.
In the file management method described above, the file information management table is provided one by one corresponding to each of a plurality of divided storage areas on a recording medium configuring the shared storage device, and the file information management table is , One file information table is provided in common.

【0012】請求項3のファイル管理方式は、ディレク
トリの配下に所属するファイル群を複数組収容する共用
記憶装置のファイル管理方式であって、格納されるファ
イル等の格納位置を含む管理情報を記憶する多数のエン
トリで構成されるファイル情報テーブルと、前記ファイ
ル情報テーブルを連続した複数のエントリから成るブロ
ックに分割してブロック単位で各ブロック及び所属エン
トリの使用状況を管理するための管理エントリから成る
ファイル情報管理テーブルと、ファイル操作の要求を解
析して前記共用記憶装置との間の情報の授受を制御する
と共にファイルの作成要求の場合には当該ファイルが使
用する前記ファイル情報テーブルのエントリの割り当て
を要求するファイル制御手段と、前記ファイル制御手段
の要求に応じて前記ファイル情報管理テーブルを参照し
てブロック又はエントリの割り当てを行うファイル情報
管理手段とを備えて構成されている。
According to a third aspect of the present invention, there is provided a file management system for a shared storage device accommodating a plurality of groups of files belonging to a directory, wherein management information including storage locations of files to be stored is stored. And a management entry for dividing the file information table into blocks made up of a plurality of continuous entries and managing the use status of each block and belonging entries in block units. Analyzes a file information management table and a file operation request to control the transfer of information to and from the shared storage device, and allocates entries of the file information table used by the file in the case of a file creation request File control means for requesting Refers to the file information management table is configured to include a file information management means for allocating a block or entry.

【0013】請求項4のファイル管理方式は、請求項3
記載のファイル管理方式において、前記ファイル情報管
理テーブルの各管理エントリが、当該管理エントリが管
理するブロックを識別するためのブロック番号を格納す
るブロック番号領域と、当該ブロックが割り当て済みか
否かを示すフラグ情報を格納する割当フラグ領域と、当
該ブロック内の各所属エントリの使用状況を示すビット
列を格納するエントリ使用状況ビットマップ領域と、同
じディレクトリに追加して割り当てられる次のブロック
の管理エントリへのポインタ情報を格納するポインタ領
域とから成り、前記ファイル情報テーブルの各エントリ
が、当該エントリがディレクトリ用に割り当てられた際
に管理エントリの識別情報を格納するブロック番号領域
と、ファイル又はディレクトリの管理情報を格納する管
理情報領域とから成ることを特徴としている。
According to a fourth aspect of the present invention, there is provided a file management system.
In the file management method described above, each management entry of the file information management table indicates a block number area for storing a block number for identifying a block managed by the management entry, and indicates whether the block has been allocated. An allocation flag area for storing flag information, an entry usage bitmap area for storing a bit string indicating the usage status of each belonging entry in the block, and a management entry for the next block added and allocated to the same directory. A pointer area for storing pointer information, wherein each entry of the file information table is a block number area for storing identification information of a management entry when the entry is allocated for a directory; and file or directory management information. From the management information area to store It is characterized in Rukoto.

【0014】請求項5のファイル管理方式は、請求項3
又は請求項4記載のファイル管理方法において、前記フ
ァイル情報管理テーブルが、前記共用記憶装置を構成す
る記録媒体上の複数に分割された各格納領域に対応して
それぞれ一つずつ設けられ、前記ファイル情報管理テー
ブルが、複数の前記ファイル情報テーブルに共通に一つ
設けられていることを特徴としている。
According to a fifth aspect of the present invention, there is provided a file management system according to the third aspect.
5. The file management method according to claim 4, wherein the file information management table is provided one by one for each of a plurality of divided storage areas on a recording medium configuring the shared storage device, and It is characterized in that one information management table is provided in common for a plurality of the file information tables.

【0015】請求項6のファイル管理方式は、請求項
3,請求項4又は請求項5記載のファイル管理方式にお
いて、前記ファイル情報管理テーブルが、ディレクトリ
を作成するファイルの管理情報を記憶する第1のエント
リ群と、ディレクトリの配下のファイルの管理情報を記
憶する第2のエントリ群とに分割され、前記第2のエン
トリ群のみがブロックに分割されることを特徴としてい
る。
According to a sixth aspect of the present invention, in the file management system according to the third, fourth, or fifth aspect, the file information management table stores management information of a file for creating a directory. , And a second entry group for storing management information of files under the directory, and only the second entry group is divided into blocks.

【0016】[0016]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0017】図1は、本発明の実施の形態の構成を示す
ブロック図である。図1に示す実施の形態は、キーボー
ド等の入力装置1と、プログラム制御で動作するコンピ
ュータ2と、磁気ディスク装置等の記憶装置3とから構
成されている。コンピュータ2は、ファイル管理に必要
な機能として、ファイル制御手段21,ファイル情報管
理手段22,ファイル情報管理テーブル23及び入出力
制御手段24を含み、記憶装置3の記憶領域には、ファ
イル実体を格納するファイル領域31と、ファイル領域
31に格納するファイルやディレクトリの管理情報を格
納するエントリの集合であるファイル情報テーブル32
とが含まれている。
FIG. 1 is a block diagram showing the configuration of the embodiment of the present invention. The embodiment shown in FIG. 1 includes an input device 1 such as a keyboard, a computer 2 that operates under program control, and a storage device 3 such as a magnetic disk device. The computer 2 includes a file control unit 21, a file information management unit 22, a file information management table 23, and an input / output control unit 24 as functions necessary for file management, and the storage area of the storage device 3 stores a file entity. File area 31, and a file information table 32 which is a set of entries for storing management information of files and directories stored in the file area 31.
And are included.

【0018】ファイル制御手段21は、記憶装置3に収
容されるすべてのファイルシステムを管理し制御する手
段であり、入力装置1により入力されたファイルの作
成,削除等のファイル操作の要求を解析し、入出力制御
手段24を介して記憶装置3との間で情報の授受を行う
と共に、ファイルの作成要求の場合には、そのファイル
が使用するファイル情報テーブル32の中のエントリの
割り当てをファイル情報管理手段22へ要求する。
The file control means 21 manages and controls all file systems accommodated in the storage device 3, and analyzes a file operation request such as creation or deletion of a file input by the input device 1. In addition to transmitting and receiving information to and from the storage device 3 via the input / output control means 24, in the case of a file creation request, the assignment of entries in the file information table 32 used by the file is Request to the management means 22.

【0019】ファイル情報管理手段22は、ファイル情
報テーブル32を連続した一定数のエントリから成る複
数のブロックに分割して管理する手段であり、ファイル
情報管理テーブル23によりブロック単位でブロック及
びブロック内エントリの使用状況を把握し、ファイル制
御手段21からの要求により新規作成ファイルに対して
エントリの割り当てを行う。
The file information management means 22 manages the file information table 32 by dividing the file information table 32 into a plurality of blocks each consisting of a continuous fixed number of entries. The use status of the file is grasped, and an entry is assigned to a newly created file in response to a request from the file control means 21.

【0020】ファイルの作成要求が例えば新規ユーザか
らのものであり、新規にファイルシステムを開設してデ
ィレクトリを新たに作成する必要がある場合には、ファ
イル情報管理テーブル23を参照して未使用の1ブロッ
クのエントリ群を割り当て、ブロックの先頭エントリを
新規のディレクトリ用に割り当てる。続いて、ディレク
トリに割り当てたブロック中の2番目のエントリを作成
要求のあったファイルに割り当てる。ブロック中の残り
のエントリは、次回以降のファイル作成要求に備えて予
約しておく。ファイル作成が繰り返されブロック内の全
エントリを使用して更に要求があれば、未使用のブロッ
クを追加して割り当てる。このようにして、ディレクト
リ配下に存在するファイルが使用するエントリを、ブロ
ック単位で連続して配置するように動作する。
If the file creation request is from, for example, a new user and it is necessary to open a new file system and create a new directory, the file information management table 23 is referred to for unused files. An entry group of one block is allocated, and the head entry of the block is allocated for a new directory. Subsequently, the second entry in the block allocated to the directory is allocated to the file requested to be created. The remaining entries in the block are reserved for subsequent file creation requests. If the file creation is repeated and there is a further request using all entries in the block, an unused block is added and allocated. In this way, the operation is performed so that the entries used by the files existing under the directory are continuously arranged in block units.

【0021】ファイル情報管理テーブル23は、図1に
示すように、ファイル情報テーブル32のエントリをブ
ロック単位で管理するためのn+1個(nは正の整数)
の管理エントリから成り、各管理エントリは、ブロック
を識別するブロック番号Bi(i=0〜n)を格納する
ブロック番号領域と、そのブロックが既に割り当て済み
であるか否かを示すフラグ情報を格納する割当フラグ領
域と、ブロック中の各エントリが使用中か否かを示すビ
ット列を格納するエントリ使用状況ビットマップ領域
と、ポインタ領域とから構成されている。エントリ使用
状況ビットマップは、Mi0からMimまでのm+1個(m
は正の整数)のビットの集合で、1ビットのON/OF
Fによって対応するファイル情報テーブル32のエント
リ番号Mij(i=0〜n,j=0〜m)のエントリが使
用中であるか未使用であるかを示している。ポインタ部
には、一つのディレクトリに複数のブロックが割り当て
られた場合に、後続のブロックの管理エントリを示すポ
インタ情報としてブロック番号が格納される。図1の状
態は、ブロック番号B0 ,B1 及びB3 のブロックがデ
ィレクトリに割り当てられ使用中であり、ブロック番号
0 とB1 の2ブロックが同一のディレクトリに割り当
てられていることを示している。
As shown in FIG. 1, the file information management table 23 has (n + 1) (n is a positive integer) for managing entries of the file information table 32 in block units.
Each management entry includes a block number area for storing a block number B i (i = 0 to n) for identifying a block, and flag information indicating whether or not the block has already been allocated. It comprises an allocation flag area for storing, an entry use status bitmap area for storing a bit string indicating whether each entry in the block is in use, and a pointer area. Entry usage bitmap, m + 1 or from M i0 to M im (m
Is a set of bits of 1-bit ON / OF
F indicates whether the entry of the corresponding entry number M ij (i = 0 to n, j = 0 to m) of the file information table 32 is in use or unused. When a plurality of blocks are allocated to one directory, a block number is stored in the pointer section as pointer information indicating a management entry of a subsequent block. The state in FIG. 1 shows that blocks with block numbers B 0 , B 1 and B 3 are assigned to directories and are in use, and two blocks with block numbers B 0 and B 1 are assigned to the same directory. ing.

【0022】ファイル情報テーブル32は、一つのファ
イルあるいはディレクトリの情報を持った構造体の集合
であり、この構造体の一つ一つをエントリと呼ぶ。図2
は、ファイル情報テーブル32のデータ構成の一例を示
す説明図である。ファイル情報テーブル32は、図2に
示すように、m+1個のエントリから成るn+1個のブ
ロックB0 〜Bn に分割され、各エントリには、それぞ
れエントリを識別するためのエントリ番号Mij(i=0
〜n,j=0〜m)を格納するエントリ番号領域と、デ
ィレクトリに使用される場合に当該ディレクトリに割り
当てられた先頭ブロックのブロック番号を格納するブロ
ック番号領域と、ファイル又はディレクトリの管理情報
(格納位置,大きさ,識別情報など)を格納するファイ
ル管理情報領域とから構成されている。図2の状態は、
ブロックB0 のエントリ番号M00のエントリ及びブロッ
クB3 のエントリ番号M30のエントリがディレクトリに
使用されていることを表している。
The file information table 32 is a set of structures having information on one file or directory, and each of these structures is called an entry. FIG.
FIG. 4 is an explanatory diagram showing an example of a data configuration of a file information table 32. File information table 32, as shown in FIG. 2, is divided n + 1 blocks B 0 .about.B n consisting of m + 1 entries, each entry, entry number M ij for identifying an entry, respectively (i = 0
To n, j = 0 to m), a block number area for storing a block number of a first block allocated to the directory when used for a directory, and file or directory management information ( Storage area, size, identification information, etc.). The state in FIG.
Entry Entry No. M 30 entries and block B 3 of the entry number M 00 of the block B 0 represents a that has been used for the directory.

【0023】図3は、図1のファイル情報管理手段の動
作を示すフローチャートである。以下、図1及び図2を
参照しながら、図3のフローチャートに従って図1の実
施の形態の動作を詳細に説明する。
FIG. 3 is a flowchart showing the operation of the file information management means of FIG. Hereinafter, the operation of the embodiment of FIG. 1 will be described in detail according to the flowchart of FIG. 3 with reference to FIG. 1 and FIG.

【0024】まず、入力装置1からファイル操作の要求
が入力されると、ファイル制御手段21は与えられたフ
ァイル操作要求を解析する。ファイル制御手段21は、
記憶装置3に収容されているすべてのファイルシステム
のディレクトリのエントリを対照リスト等により管理し
ており、ファイル操作要求が既存のディレクトリ配下の
ファイル作成要求であれば、ファイルを作成するディレ
クトリに割り当てられているエントリの読み込みを入出
力制御手段24に要求する。次に、入出力制御手段24
が記憶装置3から読み込んだエントリをファイル情報管
理手段22へ供給すると共に、新たに作成するファイル
用のエントリの割り当てを要求する。一方、ファイル操
作要求が新規ディレクトリ配下へのファイル作成要求で
あれば、ディレクトリを作成すためのエントリの割り当
てをファイル情報管理手段22に対して要求する。
First, when a file operation request is input from the input device 1, the file control means 21 analyzes the given file operation request. The file control means 21
The directory entries of all the file systems contained in the storage device 3 are managed by a comparison list or the like. If the file operation request is a file creation request under an existing directory, the file operation request is assigned to the directory in which the file is created. The input / output control unit 24 requests the input / output control unit 24 to read the entry. Next, the input / output control means 24
Supplies the entry read from the storage device 3 to the file information management means 22, and requests allocation of a newly created file entry. On the other hand, if the file operation request is a request to create a file under the new directory, it requests the file information management unit 22 to allocate an entry for creating a directory.

【0025】ファイル情報管理手段22は、ファイル制
御手段21からの割り当て要求が新規ディレクトリに対
するものか既存のディレクトリ配下のファイルに対する
ものかを判断する(ステップS1)。既存のディレクト
リ配下のファイルに対する割り当て要求の場合は、渡さ
れたエントリのブロック番号領域を参照し、ファイル情
報管理テーブル23の該当するブロック番号の管理エン
トリを検索し、そのエントリ使用状況ビットマップ領域
を調べる(ステップS2)。例えば、渡されたエントリ
のブロック番号領域にブロック番号B3 が格納されてい
たとすると、ブロック番号B3 の管理エントリのエント
リ使用状況ビットマップ領域に格納されているM30〜M
3mのビット列から未使用のビットを検索する。検索の結
果、未使用のビットが見つかればそのビットを使用状態
に更新し(ステップS5)、使用状態に変更したビット
に対応するエントリ番号をファイル制御手段21へ通知
して処理を終了する(ステップS6)。
The file information management means 22 determines whether the allocation request from the file control means 21 is for a new directory or for a file under an existing directory (step S1). In the case of an allocation request for a file under the existing directory, the block number area of the passed entry is referred to, the management entry of the corresponding block number in the file information management table 23 is searched, and the entry usage bitmap area is changed. Check (step S2). For example, if the block number B 3 is stored in the block number area of the passed entry, M 30 to M 30 stored in the entry use bitmap area of the management entry of the block number B 3
Search for unused bits from the 3m bit string. As a result of the search, if an unused bit is found, the bit is updated to the use state (step S5), the entry number corresponding to the bit changed to the use state is notified to the file control means 21, and the process is terminated (step S5). S6).

【0026】ステップS1において割り当て要求が新規
ディレクトリに対するものであった場合、及びステップ
S2において管理エントリのエントリ使用状況ビットマ
ップ領域に未使用ビットがなかった場合は、新しくブロ
ックを割り当てるためにファイル情報管理テーブル23
の割当フラグ領域を検索する(ステップS3)。その結
果、使用中のフラグが立っていない未使用の管理エント
リがあれば、その中の一つをあらかじめ定められた基準
により選択し、割当フラグ領域に使用中のフラグを立て
てそのブロックを割り当て(ステップS4)、ステップ
S5に進み、エントリ使用状況ビットマップ領域の先頭
エントリに対応するビットを使用状態に更新し、変更し
たビットに対応する先頭エントリのエントリ番号をファ
イル制御手段21へ通知して処理を終了する。なお、ス
テップS4で割り当てたブロックのブロック番号は前の
管理エントリのポインタ領域、又はディレクトリに割り
当てられたエントリのブロック番号領域に格納される。
又、未使用ブロックから割り当てブロックを選択する基
準としては、既存ディレクトリへの追加割り当ての場合
は既に割り当てられているブロックに隣接するブロック
を、新規ディレクトリへの割り当ての場合は前後に未使
用ブロックがあるブロックを優先して選択するよう設定
するのが望ましい。
If the allocation request is for a new directory in step S1 and if there is no unused bit in the entry usage bitmap area of the management entry in step S2, the file information management is performed to allocate a new block. Table 23
(Step S3). As a result, if there is an unused management entry in which the use flag is not set, one of them is selected based on a predetermined criterion, the use flag is set in the allocation flag area, and the block is allocated. (Step S4) The process proceeds to step S5 to update the bit corresponding to the first entry in the entry use status bitmap area to the use state, and notify the file control unit 21 of the entry number of the first entry corresponding to the changed bit. The process ends. The block number of the block allocated in step S4 is stored in the pointer area of the previous management entry or the block number area of the entry allocated to the directory.
In addition, as a criterion for selecting an allocation block from unused blocks, a block adjacent to an already allocated block in the case of additional allocation to an existing directory, and an unused block before and after in the case of allocation to a new directory are allocated. It is desirable to set so as to preferentially select a certain block.

【0027】ステップS3において未使用の管理エント
リが存在しなかった場合には、ファイル情報管理手段2
2は、ファイル制御手段21に対して割り当て不能を通
知して処理を終了する(ステップS7)。
If there is no unused management entry in step S3, the file information management means 2
2 notifies the file control means 21 of the non-assignment and ends the process (step S7).

【0028】新規ディレクトリ配下でのファイル作成要
求の場合は、ファイル制御手段21は、ディレクトリ用
に割り当てられたブロックの先頭エントリを使用してデ
ィレクトリを作成し、ディレクトリ用のエントリのブロ
ック番号領域にブロック番号を登録してから、そのディ
レクトリ配下でのファイル用のエントリの割り当てをフ
ァイル情報管理手段22に要求することになる。
In the case of a file creation request under a new directory, the file control means 21 creates a directory using the head entry of the block allocated for the directory, and creates a block in the block number area of the directory entry. After the number is registered, the file information management unit 22 is requested to assign a file entry under the directory.

【0029】なお、コンピュータ2に設けるファイル情
報管理テーブル23及びファイル制御手段21が使用す
る対照リストは、記憶装置3のファイル格納状態に対応
する管理情報であり、記憶装置3の管理領域内にファイ
ル情報テーブル32と共に格納しておくことが望まし
い。従って、運用開始時に呼び出してコンピュータ2の
メモリ上に展開し、更新があれば記憶装置3の格納情報
に反映させる。
The file information management table 23 provided in the computer 2 and the comparison list used by the file control means 21 are management information corresponding to the file storage state of the storage device 3 and are stored in the management area of the storage device 3. It is desirable to store the information together with the information table 32. Therefore, it is called at the start of operation and is expanded on the memory of the computer 2.

【0030】以上に説明した構成および動作により、デ
ィレクトリの配下にはブロック単位でファイル情報テー
ブルのエントリが確保されるため、少なくともディレク
トリ配下のm個(ディレクトリ用を含めてm+1個)の
エントリは記憶領域内の連続領域に配置されることにな
り、ファイル属性の一覧表示などの際には情報の検索収
集が容易に行える。ブロックを構成するエントリ数mが
大きいと、ディレクトリに確保されて未使用のままとな
るエントリが多くなり記憶装置の利用効率が低くなるの
で、ブロックのエントリ数mは余り大きくせず、ブロッ
ク数nを記憶装置に収容するファイルシステム数に比べ
て大きくする方がよい。
According to the configuration and operation described above, entries of the file information table are secured under the directory in block units, so that at least m entries (m + 1 entries including those for directories) under the directory are stored. Since the information is arranged in a continuous area in the area, search and collection of information can be easily performed when a list of file attributes is displayed. If the number m of entries forming a block is large, the number of entries secured in the directory and remaining unused increases, and the utilization efficiency of the storage device decreases. Therefore, the number m of block entries is not increased so much, and the number of blocks n Should be larger than the number of file systems accommodated in the storage device.

【0031】上述した図1の実施の形態では、本発明の
基本的な技術思想を説明するため、記憶装置3の全記憶
領域に対して一つのファイル情報テーブル32が存在す
るものとして説明した。本発明の技術思想は、一つのフ
ァイル情報テーブルに限定されるものではなく、従来の
技術に関連して説明した図4のように、記憶領域を複数
のパーティションに分割し、各パーティションにそれぞ
れ独立のファイル情報テーブルを設けた場合にも適用す
ることができる。この場合には、ファイル情報管理テー
ブルは、複数のファイル情報テーブルに対してブロック
単位の管理を行うための管理エントリを有するものとな
る。すなわち、ファイル情報テーブル数をp個とし、そ
れぞれをn個のブロックに分割したとすると、ファイル
情報管理テーブルの管理エントリ数はp×nとなる。
In the embodiment of FIG. 1 described above, in order to explain the basic technical idea of the present invention, it has been described that one file information table 32 exists for all storage areas of the storage device 3. The technical idea of the present invention is not limited to a single file information table, but a storage area is divided into a plurality of partitions as shown in FIG. Also, the present invention can be applied to a case where the file information table is provided. In this case, the file information management table has a management entry for managing a plurality of file information tables on a block basis. That is, if the number of file information tables is p and each is divided into n blocks, the number of management entries in the file information management table is p × n.

【0032】又、上述した実施の形態の説明では、ディ
レクトリを作成するためのファイル情報テーブルのエン
トリには、ブロックの先頭のエントリが使用され、あら
かじめ特定されていないものとした。これに対し、ファ
イル情報テーブルをディレクトリ用と一般ファイル用と
に分離し、一般ファイル用のファイル情報テーブルのみ
をブロック分割して割り当て、ディレクトリ用のファイ
ル情報テーブルのエントリは先頭から使用する構成とす
ることもできる。又、ブロック内のエントリ数は同一と
したが、同一に限定されるものではない。
In the above description of the embodiment, it is assumed that the entry at the head of the block is used as the entry of the file information table for creating the directory and is not specified in advance. On the other hand, the file information table is divided into a directory file and a general file, and only the file information table for the general file is divided into blocks and assigned, and the entry of the file information table for the directory is used from the beginning. You can also. Further, the number of entries in the block is the same, but is not limited to the same.

【0033】更に、ファイル情報管理テーブルの管理エ
ントリは、ブロック内の所属エントリの使用状況を管理
するためにエントリ使用状況ビットマップを備え、1エ
ントリをそれぞれ1ビットで管理するものとした。この
方法に限られず、例えば使用中のエントリの番号を登録
することで管理することも可能であり、ファイル情報管
理テーブル及びファイル情報テーブルの構成は例示のも
のに限定されるものではない。
Further, the management entry of the file information management table has an entry use state bitmap for managing the use state of the entry belonging to the block, and each entry is managed by one bit. The present invention is not limited to this method. For example, the management can be performed by registering the number of the entry in use, and the configurations of the file information management table and the file information table are not limited to the examples.

【0034】[0034]

【発明の効果】以上詳細に説明したように、本発明のフ
ァイル管理方法および方式によれば、記憶装置に格納さ
れるファイル等の格納位置を含む管理情報を記憶するフ
ァイル情報テーブルを連続した複数のエントリから成る
ブロックに分割し、各ブロック及びブロック所属エント
リの使用状況を管理するファイル情報管理テーブルを設
け、ディレクトリに使用するファイル情報テーブルのエ
ントリに対し配下のファイルが使用するエントリをこの
ファイル情報管理テーブルを参照してブロック単位で割
り当てるため、同一のディレクトリ配下に作成されたフ
ァイルのエントリはブロック単位で記憶装置上の連続領
域に配置されることになる。従って、ディレクトリ配下
のファイル属性の一覧を表示をさせる場合、ファイル情
報を記憶装置の連続領域から読み出すことができ高速に
表示を行うことが可能となる。
As described above in detail, according to the file management method and method of the present invention, a plurality of continuous file information tables for storing management information including storage locations of files and the like stored in a storage device are provided. And a file information management table for managing the use status of each block and block belonging entries is provided. For each entry of the file information table used for the directory, the entry used by the subordinate file is referred to as this file information. Since allocation is performed in block units with reference to the management table, file entries created under the same directory are arranged in continuous areas on the storage device in block units. Therefore, when displaying a list of the file attributes under the directory, the file information can be read from the continuous area of the storage device, and the display can be performed at high speed.

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

【図1】本発明の実施の形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】図1のファイル情報テーブルの構成例を示す説
明図である。
FIG. 2 is an explanatory diagram showing a configuration example of a file information table in FIG. 1;

【図3】図1のファイル情報管理手段の動作を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing an operation of the file information management means of FIG. 1;

【図4】共用磁気ディスク装置の記憶領域の構成例を示
した説明図である。
FIG. 4 is an explanatory diagram showing a configuration example of a storage area of the shared magnetic disk device.

【符号の説明】[Explanation of symbols]

1 入力装置 2 コンピュータ 3 記憶装置 21 ファイル制御手段 22 ファイル情報管理手段 23 ファイル情報管理テーブル 24 入出力制御手段 31 ファイル領域 32 ファイル情報テーブル C0 〜Cp シリンダグループ T0 〜Tp ファイル情報テーブル1 input device 2 computer 3 memory 21 file control unit 22 the file information managing means 23 file information management table 24 output control unit 31 the file area 32 file information table C 0 -C p cylinder group T 0 through T p file information table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 向井田 英俊 宮城県仙台市青葉区一番町1−10−23 東 北日本電気ソフトウェア株式会社内 Fターム(参考) 5B082 CA03 CA08 CA18 CA19 EA01 EA07 FA16 GC05  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Hidetoshi Muida 1-10-23 Ichibancho, Aoba-ku, Sendai-shi, Miyagi F-term in Tohoku NEC Software Corporation 5B082 CA03 CA08 CA18 CA19 EA01 EA07 FA16 GC05

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ディレクトリの配下に所属するファイル
群を複数組収容する共用記憶装置のファイル管理方法で
あって、格納されるファイル等の格納位置を含む管理情
報を記憶するファイル情報テーブルを連続した複数のエ
ントリから成るブロックに分割し、前記各ブロック及び
所属エントリの使用状況を管理するための管理エントリ
から成るファイル情報管理テーブルを設け、前記各ディ
レクトリに対して配下の各ファイルが使用する前記ファ
イル情報テーブルのエントリを前記ファイル情報管理テ
ーブルを参照してブロック単位で割り当てることを特徴
とするファイル管理方法。
1. A file management method for a shared storage device accommodating a plurality of file groups belonging to a directory, wherein a file information table for storing management information including a storage position of a file to be stored is continuously provided. A file information management table comprising management entries for managing the use status of each block and belonging entries, divided into blocks comprising a plurality of entries, wherein the files used by each file under the directory A file management method, wherein entries in an information table are allocated in block units with reference to the file information management table.
【請求項2】 前記ファイル情報管理テーブルが、前記
共用記憶装置を構成する記録媒体上の複数に分割された
各格納領域に対応してそれぞれ一つずつ設けられ、前記
ファイル情報管理テーブルが、複数の前記ファイル情報
テーブルに共通に一つ設けられていることを特徴とする
請求項1記載のファイル管理方法。
2. The file information management table is provided one by one corresponding to each of a plurality of divided storage areas on a recording medium constituting the shared storage device. 2. The file management method according to claim 1, wherein one file information table is provided in common for the file information tables.
【請求項3】 ディレクトリの配下に所属するファイル
群を複数組収容する共用記憶装置のファイル管理方式で
あって、格納されるファイル等の格納位置を含む管理情
報を記憶する多数のエントリで構成されるファイル情報
テーブルと、前記ファイル情報テーブルを連続した複数
のエントリから成るブロックに分割してブロック単位で
各ブロック及び所属エントリの使用状況を管理するため
の管理エントリから成るファイル情報管理テーブルと、
ファイル操作の要求を解析して前記共用記憶装置との間
の情報の授受を制御すると共にファイルの作成要求の場
合には当該ファイルが使用する前記ファイル情報テーブ
ルのエントリの割り当てを要求するファイル制御手段
と、前記ファイル制御手段の要求に応じて前記ファイル
情報管理テーブルを参照してブロック又はエントリの割
り当てを行うファイル情報管理手段とを備えたことを特
徴とするファイル管理方式。
3. A file management method for a shared storage device accommodating a plurality of groups of files belonging to a directory, comprising a plurality of entries for storing management information including storage locations of files to be stored. A file information management table for dividing the file information table into blocks each having a plurality of continuous entries and managing the use status of each block and belonging entries in block units;
File control means for analyzing a file operation request to control the transfer of information to and from the shared storage device and, in the case of a file creation request, requesting allocation of an entry of the file information table used by the file; And a file information management means for allocating blocks or entries by referring to the file information management table in response to a request from the file control means.
【請求項4】 前記ファイル情報管理テーブルの各管理
エントリが、当該管理エントリが管理するブロックを識
別するためのブロック番号を格納するブロック番号領域
と、当該ブロックが割り当て済みか否かを示すフラグ情
報を格納する割当フラグ領域と、当該ブロック内の各所
属エントリの使用状況を示すビット列を格納するエント
リ使用状況ビットマップ領域と、同じディレクトリに追
加して割り当てられる次のブロックの管理エントリへの
ポインタ情報を格納するポインタ領域とから成り、前記
ファイル情報テーブルの各エントリが、当該エントリが
ディレクトリ用に割り当てられた際に管理エントリの識
別情報を格納するブロック番号領域と、ファイル又はデ
ィレクトリの管理情報を格納する管理情報領域とから成
ることを特徴とする請求項4記載のファイル管理方式。
4. Each of the management entries in the file information management table has a block number area for storing a block number for identifying a block managed by the management entry, and flag information indicating whether or not the block has been allocated. , An entry usage bitmap area for storing a bit string indicating the usage status of each belonging entry in the block, and pointer information to a management entry of the next block additionally allocated to the same directory Each entry of the file information table stores a block number area for storing identification information of a management entry when the entry is allocated for a directory, and a file or directory management information. And a management information area for The file management method according to claim 4.
【請求項5】 前記ファイル情報管理テーブルが、前記
共用記憶装置を構成する記録媒体上の複数に分割された
各格納領域に対応してそれぞれ一つずつ設けられ、前記
ファイル情報管理テーブルが、複数の前記ファイル情報
テーブルに共通に一つ設けられていることを特徴とする
請求項4又は請求項5記載のファイル管理方式。
5. The file information management table is provided one by one corresponding to each of a plurality of divided storage areas on a recording medium constituting the shared storage device. 6. The file management method according to claim 4, wherein one file information table is provided in common for the file information tables.
【請求項6】 前記ファイル情報管理テーブルが、ディ
レクトリを作成するファイルの管理情報を記憶する第1
のエントリ群と、ディレクトリの配下のファイルの管理
情報を記憶する第2のエントリ群とに分割され、前記第
2のエントリ群のみがブロックに分割されることを特徴
とする請求項3,請求項4又は請求項5記載のファイル
管理方式。
6. A file information management table according to claim 1, wherein said file information management table stores management information of a file for creating a directory.
And a second entry group for storing management information of files under the directory, and only the second entry group is divided into blocks. The file management method according to claim 4 or claim 5.
JP10179125A 1998-06-25 1998-06-25 Method and system for file management Pending JP2000010842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10179125A JP2000010842A (en) 1998-06-25 1998-06-25 Method and system for file management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10179125A JP2000010842A (en) 1998-06-25 1998-06-25 Method and system for file management

Publications (1)

Publication Number Publication Date
JP2000010842A true JP2000010842A (en) 2000-01-14

Family

ID=16060440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10179125A Pending JP2000010842A (en) 1998-06-25 1998-06-25 Method and system for file management

Country Status (1)

Country Link
JP (1) JP2000010842A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100714691B1 (en) 2005-05-04 2007-05-04 삼성전자주식회사 Apparatus and method for saving and managing additional data of file system
US8139513B2 (en) 2007-01-18 2012-03-20 Nec Corporation Wireless base station apparatus capable of effectively using wireless resources according to sorts of data
JP2012088842A (en) * 2010-10-18 2012-05-10 Canon Inc File management device, file management method, and computer program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100714691B1 (en) 2005-05-04 2007-05-04 삼성전자주식회사 Apparatus and method for saving and managing additional data of file system
US8139513B2 (en) 2007-01-18 2012-03-20 Nec Corporation Wireless base station apparatus capable of effectively using wireless resources according to sorts of data
JP2012088842A (en) * 2010-10-18 2012-05-10 Canon Inc File management device, file management method, and computer program

Similar Documents

Publication Publication Date Title
JP2724269B2 (en) Data storage management system and method for performing storage allocation based on requested service class
JP6542909B2 (en) File operation method and apparatus
US7107323B2 (en) System and method of file distribution for a computer system in which partial files are arranged according to various allocation rules
US8312242B2 (en) Tracking memory space in a storage system
JP2005100451A (en) Efficient storage of object in file system
JPS6310250A (en) Managing system for virtual logical volume
JP2005530242A (en) Storage system having partitioned movable metadata
US6804761B1 (en) Memory allocation system and method
TW201025114A (en) File system for storage device which uses different cluster sizes
WO2004055675A1 (en) File management apparatus, file management program, file management method, and file system
WO2024078429A1 (en) Memory management method and apparatus, computer device, and storage medium
US6895487B2 (en) Methods for intra-partition parallelism for inserts
US7765378B1 (en) Utilization of memory storage
US7509461B1 (en) Method and apparatus for intelligent buffer cache pre-emption
EP0694831A2 (en) Computer system having storage unit provided with data compression function andmethod of management of storage area thereof
JPH04251346A (en) Method for hierarchically grouping document in data processing system
JP2009237811A (en) Allocation control program, allocation controller, and allocation control method
US10311026B2 (en) Compressed data layout for optimizing data transactions
JPH06259308A (en) Method and system for management of decentralized data base
JP2000010842A (en) Method and system for file management
JP2006079463A (en) Method, apparatus, system, and program for managing buffer for recording time series data
JP2000267818A (en) Method for realizing partition by removable device
CN107168645B (en) Storage control method and system of distributed system
JPH0869399A (en) File management device
JP2001265626A (en) File management method, data processor and storage medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030401