[go: up one dir, main page]

JPH05274200A - Purge control method for name cache mechanism in pass name retrieval - Google Patents

Purge control method for name cache mechanism in pass name retrieval

Info

Publication number
JPH05274200A
JPH05274200A JP4066528A JP6652892A JPH05274200A JP H05274200 A JPH05274200 A JP H05274200A JP 4066528 A JP4066528 A JP 4066528A JP 6652892 A JP6652892 A JP 6652892A JP H05274200 A JPH05274200 A JP H05274200A
Authority
JP
Japan
Prior art keywords
name
file
name cache
search
cache
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
JP4066528A
Other languages
Japanese (ja)
Inventor
Katsumi Yakida
克己 八木田
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 JP4066528A priority Critical patent/JPH05274200A/en
Publication of JPH05274200A publication Critical patent/JPH05274200A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】 本発明は、パス名検索におけるネームキャッ
シュ機構のパージ制御方法に関し、パス名の検索を高速
化し、システム全体の処理効率の低下を抑止することを
目的とする。 【構成】 多階層ファイルシステムにおいて、ファイル
の特定をパス名で行うシステムで、ファイル名とシステ
ム内のファイル管理テーブルを対応付けるネームキャッ
シュテーブルからなるネームキャッシュ機構を保持する
システムにおいて、パス名検索時での、該ネームキャッ
シュテーブルのパージを、選択的に指定された範囲、例
えば、装置名, ファイルシステム等を単位として行うよ
うに構成する。
(57) [Summary] [Object] The present invention relates to a purge control method of a name cache mechanism in a path name search, and an object thereof is to speed up the search of a path name and prevent a decrease in the processing efficiency of the entire system. [Structure] In a multi-layered file system, a system that identifies a file by a path name, and a system that has a name cache mechanism consisting of a name cache table that associates a file name with a file management table in the system The name cache table is purged in a unit of a selectively designated range, for example, a device name or a file system.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、多階層のファイルシス
テムを有するシステムにおいて、ファイルの特定をパス
名指定によって行うシステムの基本動作の性能を向上さ
せる方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for improving the basic operation performance of a system in which a file is specified by specifying a path name in a system having a multi-layered file system.

【0002】図4は、従来の多階層のファイルシステム
を有するデータ処理システムにおいて、特定のファイル
をアクセスする際の、従来のファイル検索方法を説明す
る図であり、(a) は該多階層のファイルシステムの構成
例を示し、(b) は従来の該多階層のファイルシステムを
検索する方法を示している。
FIG. 4 is a diagram for explaining a conventional file search method when a specific file is accessed in a data processing system having a conventional multi-layer file system. FIG. A configuration example of a file system is shown, and (b) shows a conventional method for searching the multi-layered file system.

【0003】該多階層のファイルシステムでは、図4
(a) に示したように階層構成になっているが、実際のフ
ァイル記憶装置 2内では、図4(b) に示したように、先
頭のアドレス領域に「ファイル管理テーブル」(i-node)
20a〜が、インデックスリスト(iリスト) 20の形式で
設けられており、図4(a) の多階層のファイルシステム
を構成している特定のファイルを検索する場合、先ず、
ルートファイルシステムの最上位に位置する「/」が指
示する「ファイル管理テーブル」(i-node) 20a (これ
は、システムに固有の位置に設定されている) を参照
し、該「ファイル管理テーブル」(i-node) 20aがポイン
トしているディレクトリファイル 200を読み出し、必要
とするファイル(例えば、「FILE1 」) を検索するのに
適切な配下のファイル、例えば、「DIR1」をサーチし
て、そのファイルの番号 (この番号は、上記インデック
スリスト 20 の位置を指示している)(R1) を認識して、
該当の番号(R1)に対応する「ファイル管理テーブル」(i
-node) 20bを検知する。
In the multi-layered file system, FIG.
Although it has a hierarchical structure as shown in (a), in the actual file storage device 2, as shown in FIG. 4 (b), a "file management table" (i-node )
20a to 20a are provided in the form of an index list (i list) 20, and when searching for a specific file that constitutes the multi-layered file system of FIG. 4 (a), first,
Refer to the "file management table" (i-node) 20a (this is set in the system-specific position) designated by "/" at the top of the root file system, and "(I-node) 20a reads the directory file 200 pointed to, searches for a file under it, such as" DIR1 ", that is suitable for finding the required file (for example," FILE1 "), Recognize the file number (this number indicates the position of index list 20 above) (R1),
"File management table" (i
-node) Detect 20b.

【0004】該番号の「ファイル管理テーブル」(i-nod
e) 20bは、上記ファイル「DIR1」の配下にあるファイル
に対するディレクトリファイル 201を構成しており、該
ディレクトリファイル 201をサーチして、所定のファイ
ル「FILE1 」に対応する上記インデックスリスト 20 上
の位置、即ち、番号 n2 を検知し、該番号 n2 に対応す
る「ファイル管理テーブル」(i-node) 20cを検知して、
該ディレクトリファイル「DIR10 」20c の配下にある実
際のファイル、例えば、前述の「FILE1 」や、他のファ
イル「FILE2 」〜のアドレスを認識した後、目指すファ
イル「FILE1 」をアクセスするという処理を行う。
The "file management table" of the number (i-nod
e) 20b constitutes a directory file 201 for files under the file "DIR1", searches the directory file 201, and locates on the index list 20 corresponding to a predetermined file "FILE1". That is, the number n2 is detected, the "file management table" (i-node) 20c corresponding to the number n2 is detected,
The actual file under the directory file "DIR10" 20c, for example, the above-mentioned "FILE1" and the addresses of other files "FILE2" are recognized, and then the target file "FILE1" is accessed. ..

【0005】このファイル検索方法では、該多階層のフ
ァイルシステムの一つの階層のディレクトリファイルを
辿る毎に、ファイル記憶装置 2をアクセスする必要があ
り、パス名検索効率を著しく低下させてしまうという問
題があった。
In this file search method, it is necessary to access the file storage device 2 every time a directory file in one hierarchy of the multi-layered file system is traced, and the path name search efficiency is significantly reduced. was there.

【0006】そこで、改良されたパス名検索方法におい
ては、ネームキャッシュ機構 1が導入されるようになっ
た。図5は、ネームキャッシュ機構によにパス名検索方
法を説明する図である。
Therefore, the name cache mechanism 1 has been introduced in the improved path name search method. FIG. 5 is a diagram for explaining a path name search method by the name cache mechanism.

【0007】従来のネームキャッシュ機構とは、該図5
(a) に示されているように、システム内のメモリ上にフ
ァイル名 11 とファイル名 11 に対応するシステム内の
ファイル管理テーブル(fctテーブルと呼ぶ)20a 〜
を対応付けるテーブル(ネームキャッシュテーブルと呼
ぶ)10を保持し、初回のパス名検索終了時に検索したフ
ァイルのファイル名 11 とファイル管理テーブル 20a〜
の対をネームキャッシュテーブル 10 に登録し、以降の
パス名検索時には、パス名中に含まれる各ファイル名に
対応したファイル管理テーブル 20a〜を、該ネームキャ
ッシュ機構 1に登録されたネームキャッシュテーブル 1
0 を検索することで求めることを可能とした機構であ
る。
The conventional name cache mechanism is shown in FIG.
As shown in (a), a file name 11 and a file management table (called an fct table) 20a in the system corresponding to the file name 11 on the memory in the system 20a
A table (referred to as a name cache table) 10 that associates with each other is stored, and the file name 11 and the file management table 20a to
Pairs are registered in the name cache table 10, and in the subsequent path name search, the file management tables 20a to 20a corresponding to each file name included in the path name are registered in the name cache mechanism 1
It is a mechanism that makes it possible to obtain by searching for 0.

【0008】これにより、パス名検索がメモリ上のネー
ムキャッシュテーブル 10 を走査するだけで可能とな
り、パス名検索中の実媒体との入出力回数が削減でき、
パス名検索処理の高速化が図れるものである。
As a result, the path name search can be performed only by scanning the name cache table 10 on the memory, and the number of input / output operations with the real medium during the path name search can be reduced,
The path name search processing can be speeded up.

【0009】然して、該多階層のファイルシステムを有
するシステムにおいて、従来は、該ファイルシステム
は、例えば、ディスク装置に限られており、該ディスク
装置を、システム運用中に取り外すというようなことは
殆どないといって良かった。
However, in a system having the multi-layered file system, the file system is conventionally limited to, for example, a disk device, and it is almost impossible to remove the disk device during system operation. It was nice to say that there is no.

【0010】たまに、特定のディスク装置を、障害等で
取り外す場合には、電源を切断して、該当のディスク装
置を取り外した後、該データ処理システム全体を初期化
する際、上記ネームキャッシュ 1を新規に作成すること
で、新しいシステム構成に対応したネームキャッシュ 1
によるシステムの運用が可能であることから、従来は、
一つのファイル記憶装置を取り外す毎に、該ネームキャ
ッシュ 1をパージしても、実際上の問題はなかったし、
元々、該ファイル記憶装置を取り外すこともなかった為
に、該ファイル記憶装置を取り外すことで、該ネームキ
ャッシュ 1をパージする方法で問題はなかった。
Occasionally, when a specific disk device is removed due to a failure or the like, the power supply is cut off, the corresponding disk device is removed, and then the name cache 1 is deleted when the entire data processing system is initialized. Create a new name cache that supports the new system configuration 1
Since it is possible to operate the system by
Purging the name cache 1 every time one file storage was removed did not cause any practical problems,
Originally, since the file storage device was never removed, there was no problem in the method of purging the name cache 1 by removing the file storage device.

【0011】然しながら、最近のように、可搬型のフロ
ッピーディスクが導入されるようになってくると、該フ
ロッピーディスクを度々、システムから取り外すことが
多くなり、その度に、該ネームキャッシュ 1をパージす
る従来方法では、該ネームキャッシュ 1による、特定フ
ァイルの高速検索ができなくなることから、効果的なネ
ームキャッシュ 1のパージ方法が必要とされるようにな
ってきた。
However, with the recent introduction of portable floppy disks, the floppy disks are often removed from the system, and the name cache 1 is purged each time. In the conventional method described above, the name cache 1 cannot search the specific file at high speed, so that an effective method of purging the name cache 1 has been required.

【0012】[0012]

【従来の技術】前述の図5は、ネームキャッシュテーブ
ル機構によにパス検索方法を説明する図であり、図6
は、従来のネームキャッシュテーブルのパージ方法を説
明する図である。
2. Description of the Related Art FIG. 5 is a diagram for explaining a path search method using a name cache table mechanism.
FIG. 9 is a diagram illustrating a conventional name cache table purging method.

【0013】前述のように、従来のネームキャッシュ機
構とは、システム内のメモリ上にファイル名 11 とファ
イル名に対応するシステム内のファイル管理テーブル 2
0a〜を対応付けるネームキャッシュテーブル 10 を保持
し、初回のパス名検索終了時に検索したファイルのファ
イル名 11 とファイル管理テーブル 20a〜の対をネーム
キャッシュ 1に登録し、以降のパス名検索時にパス名中
に含まれる各ファイル名 11 に対応したファイル管理テ
ーブル 20a〜を、各ネームキャッシュテーブル10 を検
索することで求めることを可能とした機構である。
As described above, the conventional name cache mechanism is the file name 11 in the memory in the system and the file management table 2 in the system corresponding to the file name.
The name cache table 10 that correlates 0a to is held, the pair of the file name 11 of the file searched at the end of the first path name search and the file management table 20a to is registered in the name cache 1, and the path name is searched at the subsequent path name search. It is a mechanism that makes it possible to obtain the file management tables 20a to 20a corresponding to the respective file names 11 contained therein by searching the respective name cache tables 10.

【0014】これにより、パス名検索がメモリ上のネー
ムキャッシュテーブル 10 を走査するだけで可能とな
り、パス名検索中の実媒体との入出力回数が削減でき、
パス名検索処理の高速化が図れるものである。
As a result, the path name search can be performed only by scanning the name cache table 10 on the memory, and the number of input / output operations with the real medium during the path name search can be reduced.
The path name search processing can be speeded up.

【0015】[0015]

【発明が解決しようとする課題】該ネームキャッシュ機
構 1は、最初のパス名検索時に検索を終えたファイル名
11 とファイル管理テーブル 20a〜の対をネームキャッ
シュテーブル 10 に登録し、以降の同一ファイルのパス
名検索時に、各ネームキャッシュテーブル 10 を利用
し、高速化を図る機構である。
The name cache mechanism 1 uses the file name that has been searched at the first path name search.
This is a mechanism for registering a pair of 11 and the file management table 20a to the name cache table 10 and then using each name cache table 10 when searching the path name of the same file thereafter, for speeding up.

【0016】現状では、前述のように、ファイルシステ
ムを使用しなくなった場合(ファイルシステムの取外し
時)、又は、システムのファイル管理テーブル 20a〜が
枯渇した場合(即ち、該ネームキャッシュ 1のためにシ
ステム内のファイル管理テーブル 20a〜を占有している
ため)に、図6a に示したように、該ネームキャッシュ
機構 1の全てのネームキャッシュテーブル 10 をパージ
してしまう。
At present, as described above, when the file system is no longer used (when the file system is removed) or when the file management table 20a of the system is exhausted (that is, for the name cache 1). Because the file management tables 20a to 20a in the system are occupied), all the name cache tables 10 of the name cache mechanism 1 are purged as shown in FIG. 6a.

【0017】このため、ファイルシステム、例えば、前
述のフロッピーディスクのような、可搬型のファイル記
憶装置が、頻繁に取付け/取外しされる場合は、ネーム
キャッシュテーブル 10 の全てが頻繁にパージされ、有
効に機能しなくなる。
Therefore, when a file system, for example, a portable file storage device such as the above-mentioned floppy disk, is frequently installed / removed, all of the name cache table 10 is frequently purged and effective. Will not work.

【0018】図5(a) では、全てのファイルがネームキ
ャッシュ 1に登録された状態を示している。この場合,
例えば“/DIR1/DIR10/FILE1”のパス
名検索は、ネームキャッシュテーブル 10 をサーチ (
→→:図5(b) に、そのときの動作フローを示す)
するだけでターゲット(“FILE1”)のファイル管
理テーブル 20c (図4参照)を検索でき、しかも、HD
1との実入出力処理は発生しない。
FIG. 5A shows a state in which all files are registered in the name cache 1. in this case,
For example, the path name search of "/ DIR1 / DIR10 / FILE1" searches the name cache table 10 (
→ →: Fig. 5 (b) shows the operation flow at that time)
The file management table 20c (see FIG. 4) of the target (“FILE1”) can be searched by simply doing
No actual input / output processing with 1 occurs.

【0019】然し、図6(a) に示したように、HD2の
取外しを行い (点線で示す) 、全てのネームキャッシュ
テーブル 10 が削除されてしまうと、その後“/DIR
1/DIR10/FILE1”のパス名検索が走ると、
図6(b) の動作フローで示したように、削除されたHD
2上のファイルでないにもかかわらず,ファイル管理テ
ーブルを読み込むための、削除されていないHD1に対
する入出力処理{ファイル管理テーブル(fct) A,B,
Cの獲得処理}が発生することとなり、処理速度が低下
することになる。
However, as shown in FIG. 6A, if the HD2 is removed (shown by the dotted line) and all the name cache tables 10 are deleted, then "/ DIR" is displayed.
When the path name search "1 / DIR10 / FILE1" runs,
As shown in the operation flow of Fig. 6 (b), the deleted HD
I / O processing for the undeleted HD1 to read the file management table even though it is not a file on file 2 {file management table (fct) A, B,
C acquisition processing} occurs, and the processing speed decreases.

【0020】即ち、図6(a),(b) に示したように、パス
名検索で実入出力装置(HD1)に対するアクセスを伴
うようになり、パス名検索効率が著しく低下し、結果的
にシステム全体の処理効率が低下してしまうという問題
があった。
That is, as shown in FIGS. 6 (a) and 6 (b), the path name search involves access to the actual input / output device (HD1), resulting in a significant decrease in path name search efficiency. In addition, there is a problem that the processing efficiency of the entire system is reduced.

【0021】本発明は上記従来の欠点に鑑み、パス名検
索におけるネームキャッシュ機構のパージ制御時での、
パス名の検索を高速化し、システム全体の処理効率の低
下を抑止することができるパージ制御方法を提供するこ
とを目的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention has the following advantages:
An object of the present invention is to provide a purge control method capable of speeding up the search for a path name and suppressing a decrease in the processing efficiency of the entire system.

【0022】[0022]

【課題を解決するための手段】図1,図2は、本発明の
一実施例を示した図であり、図1(a) はパージ可能なネ
ームキャッシュテーブルを検索する手順を示しており、
図1(b) は動作フローを示し、図2(c1),(c2) は、本発
明によるパージ制御を実施した後のネームキャッシュの
状態を示している。上記の問題点は下記の如くに構成し
たネームキャッシュテーブルのパージ制御方法によって
解決される。
FIGS. 1 and 2 are views showing an embodiment of the present invention, and FIG. 1 (a) shows a procedure for searching a purgeable name cache table.
FIG. 1B shows the operation flow, and FIGS. 2C1 and 2C2 show the state of the name cache after the purge control according to the present invention is performed. The above problems can be solved by the name cache table purge control method configured as follows.

【0023】多階層ファイルシステムにおいて、ファイ
ルの特定をパス名で行うシステムで、ファイル名 11 と
システム内のファイル管理テーブル(fct) 20a 〜を対応
付けるネームキャッシュテーブル 10 からなるネームキ
ャッシュ機構 1を保持するシステムにおいて、該ネーム
キャッシュテーブル 10 のパージを、選択的に指定され
た範囲(例えば、装置名 12,ファイルシステム等)を単
位として行うように構成する。
In a multi-layered file system, a system for identifying a file by a path name holds a name cache mechanism 1 consisting of a name cache table 10 that associates a file name 11 with a file management table (fct) 20a in the system. In the system, the name cache table 10 is purged in units of a selectively designated range (for example, device name 12, file system, etc.).

【0024】[0024]

【作用】即ち、本発明は,取外すファイルシステム (例
えば、ハードディスク装置:HD2)に含まれるファイルに
対応するネームキャッシュテーブル 10 のみをパージの
対象とし、有効なネームキャッシュテーブル 10 の削除
を極力行わないようにすることで、一度登録されたネー
ムキャシュテーブル 10 を効果的に再利用し、パス名検
索の処理速度の向上を図るようにしたものである。
In other words, according to the present invention, only the name cache table 10 corresponding to the file included in the file system to be removed (for example, hard disk device: HD2) is targeted for purging, and the effective name cache table 10 is not deleted as much as possible. By doing so, the name cache table 10 once registered is effectively reused, and the processing speed of the path name search is improved.

【0025】パージするファイルのネームキャッシュテ
ーブル 10 とパージしないファイルのネームキャッシュ
テーブル 10 の切り分けは、上記のように、装置名 12,
或いは、デバイス番号等のファイルシステムに依存した
情報で、且つ、各々のファイルがそのファイルシステム
の配下であると認識できる情報であれば何でもよい。
The name cache table 10 for files to be purged and the name cache table 10 for files not to be purged are separated into the device name 12, as described above.
Alternatively, any information may be used as long as it is information dependent on the file system, such as a device number, and that each file can be recognized as being under the control of that file system.

【0026】該対象のファイルシステムが取外された際
に、そのファイルシステム上にある、それぞれのファイ
ルのネームキャッシュテーブル 10 をファイルシステム
識別情報 (即ち、上記装置名 12,デバイス番号等) と比
較し、一致するネームキャッシュテーブルのみパージを
行うようにする。
When the target file system is removed, the name cache table 10 of each file on the file system is compared with the file system identification information (that is, the device name 12, device number, etc.). Then, only the matching name cache table is purged.

【0027】前述の図4(a) は、ハードディスク装置H
D1とHD2が“/DIR1”と“/DIR2”に取付
けられている状態を示している。この状態で“FILE
1”,”FILE2”,”FILE3”,”FILE
4”のパス名検索が発生すると、改良された従来方法で
は、図4(a) のネームキャッシュ 1の構造、即ち、ファ
イル名 11 とファイル管理テーブル 20a〜との対構造の
ネームキャッシュテーブル 10 が作成される。
FIG. 4A shows the hard disk device H.
It shows a state in which D1 and HD2 are attached to "/ DIR1" and "/ DIR2". In this state, "FILE
1 "," FILE2 "," FILE3 "," FILE "
When a path name search of 4 "occurs, the structure of the name cache 1 of FIG. 4 (a), that is, the name cache table 10 of the paired structure of the file name 11 and the file management table 20a-is generated by the improved conventional method. Created.

【0028】ここで、HD2が取外されると、従来で
は、図6(a) の構造となり、ネームキャッシュ 1上の全
てのネームキャッシュテーブル 10 はパージされてしま
う。そこで、前述のように、本発明の場合は、図1(b)
に示される動作フローに従って、ネームキャッシュ 1
が、例えば、装置名 12 でサーチされ、取外された装置
(HD2)上のファイルに対応するネームキャシュテー
ブル 10 だけがパージ(○印で示す)される。これによ
り、以降の、該HD1配下のファイルのパス名検索で
は、実入出力装置へのアクセスが発生せず、ネームキャ
ッシュ 1の走査のみで検索が完了し、余分な実入出力処
理が発生しなくなり、パス名検索処理が高速に行えると
いう効果が得られる。
Here, when the HD 2 is removed, the structure shown in FIG. 6A is conventionally used, and all the name cache tables 10 on the name cache 1 are purged. Therefore, as described above, in the case of the present invention, FIG.
Name cache 1 according to the operation flow shown in
However, for example, the name cache table 10 corresponding to the file on the removed device (HD2) is searched by the device name 12 and purged (indicated by a circle). As a result, in subsequent path name searches for files under the HD1, no access to the actual input / output device occurs, the search is completed only by scanning the name cache 1, and extra actual input / output processing occurs. As a result, the path name search process can be performed at high speed.

【0029】[0029]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1,図2,及び、図3が、本発明の一実施
例を示した図である。ここで、図3は、ネームキャッシ
ュテーブルの検索方法を示している。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1, FIG. 2, and FIG. 3 described above are views showing an embodiment of the present invention. Here, FIG. 3 shows a method of searching the name cache table.

【0030】本発明においては、多階層ファイルシステ
ムにおいて、ファイルの特定をパス名で行うシステム
で、ファイル名 11 とシステム内のファイル管理テーブ
ル 20a〜を対応付けるネームキャッシュテーブル 10 か
らなるネームキャッシュ機構 1を保持するシステムにお
いて、パス名検索時での、該ネームキャッシュテーブル
10 のパージを、選択的に指定された範囲、例えば、装
置名 12,ファイルシステム等を単位として行う手段が、
本発明を実施するのに必要な手段である。尚、全図を通
して同じ符号は同じ対象物を示している。
According to the present invention, in the multi-layered file system, a file is identified by a path name, and a name cache mechanism 1 comprising a file name 11 and a name cache table 10 for associating a file management table 20a ... In the holding system, the name cache table at the time of path name search
A means to perform 10 purges selectively in a specified range, for example, device name 12, file system, etc.
It is a necessary means for carrying out the present invention. The same reference numerals denote the same objects throughout the drawings.

【0031】以下、図4〜図6を参照しながら、図1〜
図3によって、本発明のパス名検索におけるネームキャ
ッシュ機構のパージ制御方法を説明する。図1(a) に本
発明を実現するネームキャッシュ機構のテーブル構造
と、図1(b) にパージ制御のフローについて例を示す。
1 to 3 with reference to FIGS.
The purge control method of the name cache mechanism in the path name search of the present invention will be described with reference to FIG. FIG. 1 (a) shows an example of a table structure of a name cache mechanism for realizing the present invention, and FIG. 1 (b) shows an example of a purge control flow.

【0032】図1(a) では、各ネームキャッシュテーブ
ル 10 に、ファイル名 11 に対応するファイル管理テー
ブル 20a〜だけでなく、そのファイルが存在する装置の
識別子として装置名 12 を保持している。該装置名 12
は、所謂、ファイル管理テーブル 20a〜内に存在してい
てもよい。
In FIG. 1A, each name cache table 10 holds not only the file management table 20a corresponding to the file name 11 but also the device name 12 as an identifier of the device in which the file exists. The device name 12
May exist in the so-called file management table 20a.

【0033】ここで、ハードディスク装置(HD2)の
取外し等で、ネームキャッシュ 1のパージが発生した場
合に、ネームキャッシュテーブル 10 の先頭からサーチ
し、各ネームキャッシュテーブル 10 の装置名 12 と,
取外しファイルシステムの装置名(HD2)を比較し、
一致するネームキャッシュテーブル 10 のみパージす
る。
Here, when purging of the name cache 1 occurs due to removal of the hard disk drive (HD2), etc., the name cache table 10 is searched from the beginning, and the device name 12 of each name cache table 10 and
Compare the device name (HD2) of the detached file system,
Purge only the matching name cache table 10.

【0034】即ち、図1(b) の動作フローに示したよう
に、本発明によるネームキャッシュのパージ方法では、
ネームキャシュテーブル 10 の情報として、ファイル名
11とファイル管理テーブル 20a〜に加え、ファイルシ
ステム識別情報として装置名12 を保持しており、取外
し等のパージのタイミングで、該装置名 12 を意識し
て、取外し装置上(例えば、HD2)にあるファイルに
対応するネームキャッシュテーブル 10 のみ初期化 (パ
ージ) が行える方法となっている。
That is, as shown in the operation flow of FIG. 1B, in the name cache purging method according to the present invention,
File name as information of the name cache table 10
In addition to 11 and the file management table 20a, the device name 12 is held as the file system identification information. At the timing of purging such as removal, the device name 12 is recognized and the device name 12 is displayed on the removal device (for example, HD2). Only the name cache table 10 corresponding to a certain file can be initialized (purged).

【0035】通常、ネームキャッシュ 1を作成すると
き、図3に示したように、公知のハッシュ論理 (検索キ
ーを定めるための算出式) に基づいて、各検索キー、例
えば、装置名といった検索キー毎に発生される番号との
対応を定めたハッシュテーブル3が作成される。
Generally, when the name cache 1 is created, as shown in FIG. 3, each search key, for example, a search key such as a device name is based on a known hash logic (calculation formula for determining the search key). A hash table 3 is created that defines the correspondence with the numbers generated for each.

【0036】該作成されたハッシュテーブル 3と、上記
ネームキャッシュテーブル 10 とをリンク (スケジュー
ル) させる。従って、該ネームキャッシュテーブル 10
を検索する場合には、上記ハッシュテーブル 3を検索し
て、該検索キーに対応する番号を特定し、該番号に対応
するエントリにリンクされているネームキャッシュテー
ブル 10 を検索するだけで、所望のキーに対応したネー
ムキャッシュテーブル 10 を高速に検知することができ
る。
The created hash table 3 and the name cache table 10 are linked (schedule). Therefore, the name cache table 10
When searching for, the hash table 3 is searched, the number corresponding to the search key is specified, and the name cache table 10 linked to the entry corresponding to the number is searched. The name cache table 10 corresponding to the key can be detected at high speed.

【0037】例えば、100 個のネームキャッシュテーブ
ル 10 があった場合、該ハッシュテーブル 3を使用する
ことにより、例えば、10個程度で構成されているハッシ
ュテーブル 3を検索するだけで、所望のネームキャッシ
ュテーブル 10 を検知することができる。
For example, when there are 100 name cache tables 10, by using the hash table 3, it is possible to retrieve the desired name cache by simply searching the hash table 3 composed of, for example, about 10. Table 10 can be detected.

【0038】上記の実施例ではファイルシステム識別情
報として装置名 12 を用い、これを比較することで取外
しファイルシステム上のファイルのネームキャッシュテ
ーブル 10 のみをパージすることを可能としているが、
これに限定されるものではなく、該装置名 12 の代わり
に、該装置名 12 と1対1に対応するデバイス番号をキ
ーにして、該パージしてもよいネームキャッシュテーブ
ル 10 を検索するようにしてもよいことはいう迄もない
ことである。
In the above embodiment, the device name 12 is used as the file system identification information, and by comparing this, it is possible to purge only the name cache table 10 of the file on the removed file system.
The present invention is not limited to this, and instead of the device name 12, a device number corresponding to the device name 12 in a one-to-one correspondence is used as a key to search the name cache table 10 that may be purged. It goes without saying that it is okay.

【0039】図2(a) は、本発明によるネームキャッシ
ュテーブル 10 のパージ制御を実行した後の、ネームキ
ャッシュ 1の状態を示している。本図から明らかなよう
に、例えば、ハードディスク装置 (HD2) の取外し
(点線で示す) でパージされるネームキャッシュテーブ
ル 10 は、該HD2上のファイルのみに限られ、HD1
のネームキャッシュテーブル 10 には何ら影響がないこ
とが分かる。つまり、その後の“/DIR1/DIR1
0/FILE1”のパス名検索{図2(c2)参照、詳細は
省略}は、実入出力処理を伴わないで可能となる。
FIG. 2 (a) shows the state of the name cache 1 after the purge control of the name cache table 10 according to the present invention is executed. As is clear from this figure, for example, when removing the hard disk drive (HD2)
The name cache table 10 purged by (shown by the dotted line) is limited to files on the HD2 only,
It can be seen that there is no effect on the name cache table 10 of. That is, "/ DIR1 / DIR1" after that
The path name search of 0 / FILE1 ”(see FIG. 2 (c2), details omitted) is possible without actual input / output processing.

【0040】このように、本発明は、多階層ファイルシ
ステムにおいて、ファイルの特定をパス名で行うシステ
ムで、ファイル名とシステム内のファイル管理テーブル
を対応付けるネームキャッシュテーブルからなるネーム
キャッシュ機構を保持するシステムにおいて、パス名検
索時での、該ネームキャッシュテーブルのパージを、選
択的に指定された範囲、例えば、装置名, ファイルシス
テム等を単位として行うようにしたところに特徴があ
る。
As described above, the present invention is a system in which a file is specified by a path name in a multi-layer file system, and holds a name cache mechanism composed of a name cache table that associates a file name with a file management table in the system. The system is characterized in that the name cache table is purged at the time of searching for a path name in a unit of a selectively designated range, for example, a device name or a file system.

【0041】[0041]

【発明の効果】以上、詳細に説明したように、本発明の
パス名検索におけるネームキャッシュ機構のパージ制御
方法は、多階層ファイルシステムにおいて、ファイルの
特定をパス名で行うシステムで、ファイル名とシステム
内のファイル管理テーブルを対応付けるネームキャッシ
ュテーブルからなるネームキャッシュ機構を保持するシ
ステムにおいて、パス名検索時での、該ネームキャッシ
ュテーブルのパージを、選択的に指定された範囲、例え
ば、装置名, ファイルシステム等を単位として行うよう
にしたものであるので、例えば、取外すファイルシステ
ム (ハードディスク装置等) 単位に限定した範囲で、選
択的に、ネームキャッシュテーブルのパージを行うこと
が可能となり、取外しファイルシステム外のファイルの
パス名検索におけるネームキャッシュテーブルのヒット
率が向上し、パス名検索が高速に行える。従って、シス
テムの動作上、パス名検索を頻繁に行うようなシステム
では、システム全体の基本動作の性能が向上する効果が
ある。
As described above in detail, according to the purge control method of the name cache mechanism in the path name search of the present invention, in a multi-layered file system, a file is identified by a path name, In a system that holds a name cache mechanism consisting of a name cache table that associates a file management table in the system, the purging of the name cache table at the time of searching for a path name is performed by selectively specifying a range, for example, device name, Since the file system is used as a unit, for example, it is possible to selectively purge the name cache table within the range limited to the file system (hard disk device etc.) to be removed. In the path name search of the file outside the system To improve the hit rate of over-time cache table, path name search can be performed at high speed. Therefore, in the system operation, in a system in which a path name is frequently searched, there is an effect that the performance of the basic operation of the entire system is improved.

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

【図1】本発明の一実施例を示した図(その1)FIG. 1 is a diagram showing an embodiment of the present invention (No. 1).

【図2】本発明の一実施例を示した図(その2)FIG. 2 is a diagram showing an embodiment of the present invention (part 2).

【図3】本発明の一実施例を示した図(その3)FIG. 3 is a diagram showing an embodiment of the present invention (part 3).

【図4】従来のファイル検索方法を説明する図FIG. 4 is a diagram illustrating a conventional file search method.

【図5】ネームキャッシュ機構によるパス名検索方法を
説明する図
FIG. 5 is a diagram illustrating a path name search method using a name cache mechanism.

【図6】従来のネームキャッシュテーブルのパージ方法
を説明する図
FIG. 6 is a diagram illustrating a conventional name cache table purging method.

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

1 ネームキャッシュ機構, 又は、ネームキャッシュ 10 ネームキャッシュテーブル 11 ファイル名 12 装置名 2 iリスト 20,20a,20b,20c ファイル管理テーブル(fct) 200 ルートファイルのディレクトリファイル 201 ディレクトリファイル 3 ハッシュテーブル 1 Name cache mechanism or name cache 10 Name cache table 11 File name 12 Device name 2 i-list 20,20a, 20b, 20c File management table (fct) 200 Root file directory file 201 Directory file 3 Hash table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】多階層ファイルシステムにおいて、ファイ
ルの特定をパス名で行うシステムで、ファイル名(11)と
システム内のファイル管理テーブル(fct)(20a 〜) を対
応付けるネームキャッシュテーブル(10)からなるネーム
キャッシュ機構(1) を保持するシステムにおいて、 ネームキャッシュテーブル(10)のパージを、選択的に指
定された装置名, ファイルシステム等 (12) を単位とし
て行うことを特徴とするパス名検索におけるネームキャ
ッシュのパージ制御方法。
1. A multi-layered file system in which a file is identified by a path name, and a name cache table (10) that associates a file name (11) with a file management table (fct) (20a ...) in the system In a system that has the following name cache mechanism (1), the name cache table (10) is purged in units of selectively specified device name, file system, etc. (12) Control method for name cache purging in.
JP4066528A 1992-03-25 1992-03-25 Purge control method for name cache mechanism in pass name retrieval Pending JPH05274200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4066528A JPH05274200A (en) 1992-03-25 1992-03-25 Purge control method for name cache mechanism in pass name retrieval

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4066528A JPH05274200A (en) 1992-03-25 1992-03-25 Purge control method for name cache mechanism in pass name retrieval

Publications (1)

Publication Number Publication Date
JPH05274200A true JPH05274200A (en) 1993-10-22

Family

ID=13318468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4066528A Pending JPH05274200A (en) 1992-03-25 1992-03-25 Purge control method for name cache mechanism in pass name retrieval

Country Status (1)

Country Link
JP (1) JPH05274200A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5784646A (en) * 1994-04-25 1998-07-21 Sony Corporation Hierarchical data storage processing apparatus for partitioning resource across the storage hierarchy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5784646A (en) * 1994-04-25 1998-07-21 Sony Corporation Hierarchical data storage processing apparatus for partitioning resource across the storage hierarchy
US6085262A (en) * 1994-04-25 2000-07-04 Sony Corporation Hierarchical data storage processing apparatus for partitioning resource across the storage hierarchy

Similar Documents

Publication Publication Date Title
US5590320A (en) Computer file directory system
US8271456B2 (en) Efficient backup data retrieval
JP4825719B2 (en) Fast file attribute search
JPS63121179A (en) Staging method
JPH05274200A (en) Purge control method for name cache mechanism in pass name retrieval
JP2004152239A (en) File management apparatus, file management method and program
JPH0561758A (en) Information link device
US6886021B1 (en) Method for tracking audit files spanning multiple tape volumes
KR19980063328A (en) Data output method of external storage device
US7617242B2 (en) Method and apparatus for reproducing play lists in record media
JPH0567389A (en) Information editing and retrieving device
JPH04252342A (en) Data archive controller for information processing system
JPH04361339A (en) File managing system for draw type optical disk
JPS60254342A (en) Controlling method of resources in using
JP2000066933A (en) Time series data management system
US9535624B1 (en) Duplicate management
JP2005109605A (en) Image management device
JPH0770194B2 (en) Write-once data recording method on write-once recording medium
JPS61103242A (en) High-speed retrieval system
JPS60160062A (en) Picture information memory retriever
JPH05127962A (en) Electronic disk file residence priority managing system
JPS60142416A (en) Storing and retrieving device of picture information
JP2861548B2 (en) Multiple host method
JP3585264B2 (en) Database system and data retrieval method
JPH08161194A (en) Trace method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030624