Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH07122861B2 - Name resolution device - Google Patents
[go: Go Back, main page]

JPH07122861B2 - Name resolution device - Google Patents

Name resolution device

Info

Publication number
JPH07122861B2
JPH07122861B2 JP4147236A JP14723692A JPH07122861B2 JP H07122861 B2 JPH07122861 B2 JP H07122861B2 JP 4147236 A JP4147236 A JP 4147236A JP 14723692 A JP14723692 A JP 14723692A JP H07122861 B2 JPH07122861 B2 JP H07122861B2
Authority
JP
Japan
Prior art keywords
path
directory
node
setting means
stage
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.)
Expired - Lifetime
Application number
JP4147236A
Other languages
Japanese (ja)
Other versions
JPH05342134A (en
Inventor
プラディープ シンハ
守 前川
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP4147236A priority Critical patent/JPH07122861B2/en
Publication of JPH05342134A publication Critical patent/JPH05342134A/en
Publication of JPH07122861B2 publication Critical patent/JPH07122861B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算機がネット
ワークを介して接続された分散環境における名前解決装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a name resolution device in a distributed environment in which a plurality of computers are connected via a network.

【0002】[0002]

【従来の技術】図18は分散システムの概念を示す図で
ある。図18において181、182、183はそれぞ
れノードとよばれる計算機であり、184はノードを接
続するネットワークである。分散システムでは一つの分
散オペレーティングシステムがシステム全てのノードの
資源管理を行う。ソフトやハード、プリンタやデータベ
ース、記憶装置等の管理される資源は、システムおいて
ユニークな名前を持ち、分散オペレーティングシステム
の一部であるネームーサーバが、資源の名前とロケーシ
ョンとの対応を管理する。
2. Description of the Related Art FIG. 18 is a diagram showing the concept of a distributed system. In FIG. 18, 181, 182, and 183 are computers called nodes, and 184 is a network connecting the nodes. In a distributed system, one distributed operating system manages resources for all nodes in the system. Managed resources such as software and hardware, printers, databases, and storage devices have unique names in the system, and a name server, which is a part of the distributed operating system, manages correspondence between resource names and locations.

【0003】ユーザプロセスが資源を使う場合、資源名
がネームサーバに送られ、ネームサーバが資源名を解析
し、ユーザプロセスにその資源のロケーションを返す。
その後、資源が配置されているノードの資源サーバにユ
ーザプロセスがその要求を送り処理が行われる。
When a user process uses a resource, the resource name is sent to the name server, which parses the resource name and returns the location of that resource to the user process.
After that, the user process sends the request to the resource server of the node where the resource is arranged, and processing is performed.

【0004】システムの中で資源名は境界記号’/’に
より区切られた要素名の列であるパスネームにより指定
される。ネームサーバはパスネームにより指定された資
源のロケーションを特定するために要素名とロケーショ
ンとの対からなるエントリーが登録されたディレクトリ
を管理する。
In the system, a resource name is designated by a path name which is a string of element names separated by a boundary symbol '/'. The name server manages a directory in which an entry consisting of a pair of element name and location is registered in order to specify the location of the resource designated by the path name.

【0005】与えられたパスネームから資源のロケーシ
ョンを抽出する作業、即ち、名前解決は、パスネームに
そって指定された要素名を順次検索していくことにより
行われる。例えば、パスネーム’/a/b/c’が与え
られると、最初の検索で要素名aがルートディレクト
リ’/’の中で、続いて要素名bがディレクトリ’/
a’の中で、そして最後に要素名cがディレクトリ’/
a/b’の中で検索されパスネームは解決される。
The work of extracting the location of a resource from a given pathname, that is, name resolution, is performed by sequentially retrieving the element names specified along the pathname. For example, when the path name '/ a / b / c' is given, the element name a is in the root directory '/' in the first search, and subsequently the element name b is in the directory '/'.
a ', and finally the element name c is the directory' /
The pathname is resolved by searching in a / b '.

【0006】図19は全てのディレクトリをシステムの
一つのノードに存在する単一のネームサーバにより管理
する方法(A Single Centralized Name Server)を示す概
念図である。図19において191はネームサーバ、1
94、195、196はノードを、192はネームサー
バが存在するノード、193はシステムに唯一存在する
ディレクトリである。
FIG. 19 is a conceptual diagram showing a method (A Single Centralized Name Server) of managing all directories by a single name server existing in one node of the system. In FIG. 19, 191 is a name server, 1
Reference numerals 94, 195 and 196 are nodes, 192 is a node where a name server exists, and 193 is a directory which only exists in the system.

【0007】図20はシステムの各ノードにネームサー
バを設け、それぞれのネームサーバがディレクトリのサ
ブセットを管理する方法(Several Distributed Name Se
rver)を示す概念図である。図20において201、2
01、203は各ノードが管理するディレクトリのサブ
セット、204、205、206は分散システムを構成
するノード、207、208、209は各ノードに設け
られたネームサーバ、2010、2011、2012は
ユーザプロセス、2013はネットワークである。
FIG. 20 shows a method in which a name server is provided in each node of the system and each name server manages a subset of directories (Several Distributed Name Se
It is a conceptual diagram which shows rver). 20, 201 and 2
01 and 203 are subsets of directories managed by each node, 204, 205 and 206 are nodes that constitute a distributed system, 207, 208 and 209 are name servers provided in each node, 2010, 2011 and 2012 are user processes, 2013 is a network.

【0008】[0008]

【発明が解決しようとする課題】しかしがら、従来の全
てのディレクトリをシステムの一つのノードに存在する
単一のネームサーバにより管理する方法ではシステムの
規模に対する融通性(スケーラビィリティ:scalabilit
y)に欠け、また、各ノードにネームサーバを設け、それ
ぞれのネームサーバがディレクトリのサブセットを管理
する方法ではスケーラビリティの問題は解消されるもの
の、1つのノードがダウンした場合、そのノードにより
管理される要素名を含むパスネームを解決することが不
可能となり十分な信頼性を得ることができないという問
題を有している。
However, in the conventional method of managing all directories by a single name server existing in one node of the system, the scalability for the scale of the system (scalabilit:
y) is missing, and a method of providing a name server on each node and managing each name server for a subset of the directory solves the scalability problem, but if one node goes down, it is managed by that node. There is a problem in that it is impossible to resolve a pathname including an element name that requires a sufficient reliability.

【0009】本発明は、上記従来技術におけるスケーラ
ビリティと信頼性に関する問題を解決するためのもので
あり、スケーラビリティに富み、且つ、ユーザのニーズ
に従い信頼性を動的に設定可能とする名前解決装置を提
供することを目的とする。
The present invention is intended to solve the problems relating to scalability and reliability in the above-mentioned prior art, and is a name resolution device which is rich in scalability and in which reliability can be dynamically set according to the needs of the user. The purpose is to provide.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
の本願発明による名前解決装置は、第1に他のノードに
問い合わせることなく自ノードで解決するパス名である
サブパスを指定するパラメータ設定手段と、各ディレク
トリに設けられたディレクトリが複製かどうかの情報を
記憶する信頼性領域と前記パラメータ設定手段により指
定された条件を満たすためにディレクトリを必要とした
回数を格納する参照領域に基づき前記パラメータ設定手
段により指定されたサブパスに従いディレクトリの管理
を行うサブパス設定手段を備えた構成となっている。
A name resolution device according to the present invention for solving the above-mentioned problems is, firstly, a parameter setting means for designating a sub-path which is a path name to be resolved at its own node without inquiring to other nodes. And a parameter provided on each of the directories based on a reliability area for storing information as to whether the directory is a copy and a reference area for storing the number of times the directory is required to satisfy the condition specified by the parameter setting means. The sub path setting means for managing the directory is provided according to the sub path designated by the setting means.

【0011】第2に、パス名解決の経路の中で必要とな
る他のノードへの最大移行回数を指定するパラメータ設
定手段と、各ディレクトリに設けられたディレクトリが
複製かどうかの情報を記憶する信頼性領域と前記パラメ
ータ設定手段により指定された条件を満たすためにディ
レクトリを必要とした回数を格納する参照領域に基づき
前記パラメータ設定手段により指定された最大移行回数
に従いディレクトリの管理を行うステージ設定手段を備
えた構成となっている。
Second, parameter setting means for designating the maximum number of times of migration to another node required in the path for path name resolution and information as to whether or not the directory provided in each directory is a copy are stored. Stage setting means for managing the directory according to the maximum number of times of migration specified by the parameter setting means based on the reliability area and the reference area for storing the number of times the directory is required to satisfy the condition specified by the parameter setting means It is configured with.

【0012】第3に、パス名解決の経路の中で末端ノー
ドを除く任意の2ノード間でとり得る経路の最低数を指
定するパラメータ設定手段と、各ディレクトリに設けら
れたディレクトリが複製かどうかの情報を記憶する信頼
性領域と前記パラメータ設定手段により指定された定義
を満たすために必要とされた回数を格納する参照領域に
基づきシステム中の全ノード数と前記パラメータ設定手
段により指定された経路の最低数に従いディレクトリの
管理を行うパス設定手段を備えた構成となっている。
Thirdly, parameter setting means for designating the minimum number of paths that can be taken between any two nodes other than the end node among paths for path name resolution, and whether or not the directories provided in each directory are duplicates. Of the total number of nodes in the system and the route specified by the parameter setting means based on the reliability area for storing the information of the information and the reference area for storing the number of times required to satisfy the definition specified by the parameter setting means. Is configured to include a path setting means for managing the directory according to the minimum number of.

【0013】第4に、他のノードに問い合わせることな
く自分のノードで解決できるパスからなるサブパスと、
パス名解決の経路の中で必要となる他のノードへの最大
移行回数と、パス名解決の経路の中で末端ノードを除く
任意の2ノード間でとり得る経路の最低数とを指定する
パラメータ設定手段と、各ディレクトリに設けられたデ
ィレクトリが複製かどうかの情報を記憶する信頼性領域
と前記パラメータ設定手段により指定された定義を満た
すために必要とされた回数を格納する参照領域に基づき
前記パラメータ設定手段により指定されたサブパスに従
いディレクトリの管理を行うサブパス設定手段と、前記
信頼性領域と前記参照領域とに基づき前記パラメータ設
定手段により指定された最大移行回数に従いディレクト
リの管理を行うステージ設定手段と、前記信頼性領域と
前記参照領域に記憶された情報に基づきシステム中の全
ノード数と前記経路の最低数に従いディレクトリの管理
を行うパス設定手段とを備えた構成となっている。
Fourth, a sub-path consisting of paths that can be resolved by one's own node without inquiring about other nodes,
A parameter that specifies the maximum number of transitions to other nodes required in the path for path name resolution, and the minimum number of paths that can be taken between any two nodes in the path for path name resolution, excluding the end node. Based on the setting means, a reliability area provided in each directory for storing information as to whether the directory is a copy and a reference area for storing the number of times required to satisfy the definition specified by the parameter setting means, Sub-path setting means for managing the directory according to the sub-path specified by the parameter setting means, and stage setting means for managing the directory according to the maximum number of transitions specified by the parameter setting means based on the reliability area and the reference area. Based on the information stored in the reliability area and the reference area, the total number of nodes in the system and the And it has a configuration that includes a path setting means for managing the directory in accordance with the minimum number.

【0014】[0014]

【作用】上記構成において、サブパス設定手段とステー
ジ設定手段とパス設定手段がパラメータ設定手段により
設定された信頼性に関する条件に必要となるディレクト
リを適切なノードに複製し、また必要が無くなった場合
にはそのディレクトリを削除することにより、無駄なデ
ィレクトリを管理することなくユーザが動的に信頼性を
定義することが可能となる。
In the above structure, when the sub-path setting means, the stage setting means, and the path setting means duplicate the directory required for the condition related to the reliability set by the parameter setting means to an appropriate node, and when it is no longer necessary. By deleting the directory, the user can dynamically define the reliability without managing unnecessary directories.

【0015】[0015]

【実施例】本発明の一実施例について図面を用いて説明
する。図1は本願発明の名前解決装置の構成を示すブロ
ック図である。図1において、11はユーザの要求を設
定するパラメータ設定手段、12はパラメータ設定手段
11により設定されユーザの要求に基づきディレクトリ
の複製及び削除を行うレプリカ設定手段であり、レプリ
カ設定手段12は、サブパス設定部13、m−ステージ
設定部14、k−パス設定部15から構成される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the name resolution device of the present invention. In FIG. 1, 11 is a parameter setting means for setting a user's request, 12 is a replica setting means set by the parameter setting means 11 for duplicating and deleting a directory based on a user's request, and the replica setting means 12 is a sub path. The setting unit 13, the m-stage setting unit 14, and the k-pass setting unit 15 are included.

【0016】パラメータ設定手段11にはユーザからの
要求として、ユーザが使用するユーザノードと解決すべ
きパスネームと共に、他のノードに問い合わせることな
く自分のノードで解決すべきパス名であるサブパスと、
パス名解決の経路の中で発生する他のノードへの移行回
数の最大値(m−ステージ値)と、パス名解決の経路の
中で末端ノードを除く任意の2ノード間でとり得る経路
の最低数(k−パス)とが設定される。
In the parameter setting means 11, as a request from the user, a user node used by the user and a path name to be resolved, and a sub path which is a path name to be resolved at the own node without inquiring to other nodes,
The maximum value (m-stage value) of the number of transitions to another node that occurs in the path of path name resolution and the path that can be taken between any two nodes in the path of path name resolution excluding the end node. The minimum number (k-pass) is set.

【0017】サブパスとは、解決すべきパスネーム中、
他のノードを参照することなく自分のノードで解決でき
るパスネームであり、サブパスが長ければそれだけ信頼
性が高くなる。m−ステージ値とは名前解決処理で必要
となるノード間の移行回数でありm−ステージ値が少な
い程信頼性が高くなる。また、k−パスとは名前解決の
経路の中で終端ノードを除く任意の2ノード間でとり得
るパスの最低数でありk−パス値が大きい程信頼性が増
す。
A subpath is a pathname to be resolved,
It is a pathname that can be resolved by your own node without referring to other nodes, and the longer the subpath, the higher the reliability. The m-stage value is the number of transitions between nodes required for name resolution processing, and the smaller the m-stage value, the higher the reliability. The k-path is the minimum number of paths that can be taken between any two nodes except the terminal node in the name resolution path, and the larger the k-path value, the higher the reliability.

【0018】図2は、解決すべきパスネーム’/a/b
/c/d’に対し、ノード1がサブパス’/a/b’を
満たす状態を示す図である。図2において202、20
3、204はそれぞれノード1上に存在するディレクト
リである。図2においてノード1からパスネーム’/a
/b/c/d’を解決する場合、ディレクトリ’
/’,’/a’,’/a/b’がノード1上に存在する
のでパスネーム中’/a/b’までは他のノードに移る
ことなく解決可能である。
FIG. 2 shows the pathname to be resolved '/ a / b.
FIG. 6 is a diagram showing a state in which node 1 satisfies subpath '/ a / b' for / c / d '. 202 and 20 in FIG.
Reference numerals 3 and 204 are directories existing on the node 1, respectively. In FIG. 2, the pathname '/ a from node 1
When resolving / b / c / d ', the directory'
Since / ',' / a ', and' / a / b 'exist on the node 1, it is possible to resolve the path name up to' / a / b 'without moving to another node.

【0019】図3は、ノード1におけるパスネーム’/
a/b/c/d’の解決において、m−ステージ値が2
である場合を示す図である。図3において31はノード
1、32はノード99、33はノード8を示す。図3の
状態でノード1からパスネーム’/a/b/c/d’を
解決する場合、’a’の検索のためにノード1から’/
a’が存在するノード99に移行する、次の’b’の検
索では’/a/b’が同じノード99に存在するのでノ
ード間の移行は必要なく、’c’の検索でノード8へ移
行する。従ってこの場合はノード間を2回移行する必要
があり、この移行回数がm−ステージ値である。なお、
ノード8では’/a/b/c/d’の存在位置が確定す
るのでそれ以上の移行は必要なく、名前解決はノード8
で完了する。、図4(a)はノード1におけるパスネー
ム’/a/b/c’の解決において、k−パス値が2の
状態を、図4(b)はk−パス値が3の状態を示す図で
ある。図4においてノード間を結ぶ線はディレクトリ間
の論理的なパスを示すものである。
FIG. 3 shows the pathname '/ in node 1.
In the resolution of a / b / c / d ', the m-stage value is 2
It is a figure which shows the case where it is. In FIG. 3, 31 indicates a node 1, 32 indicates a node 99, and 33 indicates a node 8. When the path name '/ a / b / c / d' is resolved from node 1 in the state of FIG. 3, node 1 '/'
In the next search for'b ', which moves to the node 99 in which a'exists, since there is no' / a / b 'in the same node 99, there is no need to move between nodes. Transition. Therefore, in this case, it is necessary to transfer between nodes twice, and this transfer count is the m-stage value. In addition,
In node 8, since the existence position of '/ a / b / c / d' is determined, further migration is not necessary, and name resolution is performed by node 8
Complete with. 4A shows a state in which the k-path value is 2 in the resolution of the path name '/ a / b / c' in the node 1, and FIG. 4B shows a state in which the k-path value is 3. Is. In FIG. 4, lines connecting the nodes indicate logical paths between directories.

【0020】レプリカ設定手段12は、パラメータ設定
手段11により上記パラメータを用いて定義されたユー
ザ要求を満たすために、各ディレクトリに設けられた信
頼性領域、参照領域に格納された情報に基づき、適切な
ディレクトリの複製及び削除を行う。
The replica setting means 12 is suitable for satisfying the user request defined by the parameter setting means 11 using the above parameters, based on the information stored in the reliability area and the reference area provided in each directory. Duplicate directories and delete them.

【0021】図5は、本発明で用いるディレクトリの構
造を示す図である。図5において50はオリジナルディ
レクトリであるかどうかを示す信頼性フィールド、51
はユーザの要求を満たすために同一ノードにおいてその
存在が要求された回数を示すレファレンスカウントフィ
ールド(RC)であり、オリジナルディレクトリのこれ
らの値は、信頼性RF=NO,レファレンスカウント=
0である。
FIG. 5 is a diagram showing the structure of a directory used in the present invention. In FIG. 5, reference numeral 50 denotes a reliability field indicating whether the original directory, 51
Is a reference count field (RC) indicating the number of times its presence was requested in the same node to satisfy the user's request, and these values in the original directory are: reliability RF = NO, reference count =
It is 0.

【0022】レプリカ設定手段12は、各々のディレク
トリに設けられた信頼性フィールド(FR)とレファレ
ンスカウントフィールド(RC)の2つのフィールドを
用いてディレクトリの管理を行う。信頼性フィールド
(FR)はそのディレクトリが複製されたものであるか
どうかを示すものであり、オリジナルの場合にはFR=
NO、複製の場合にはRF=YESが設定される。ま
た、レファレンスカウントフィールド(RC)はサブパ
ス、m−ステージ、k−パスのそれぞれに対応したサブ
パスレファレンスカウントフィールド(SPRC)、m
−ステージレファレンスカウントフィールド(MSR
C)、k−パスレファレンスカウントフィールド(KP
RC)から構成され、ユーザのあるパラメータ要求を満
たすためにディレクトリが複製された場合、または、異
なるユーザのパラメータ要求を満たすためにそのディレ
クトリが必要とされる度にその対応するRCに1が加算
され、そのパラメータ要求を満たすためにそのディレク
トリの存在が不必要となった場合には、対応するRCか
ら1が減じられる。
The replica setting means 12 manages the directory by using two fields, a reliability field (FR) and a reference count field (RC) provided in each directory. The reliability field (FR) indicates whether or not the directory is a duplicate, and in the case of the original, FR =
No, RF = YES is set in the case of duplication. Further, the reference count field (RC) is a subpath reference count field (SPRC), m corresponding to each of the subpath, m-stage, and k-path.
-Stage Reference Count Field (MSR
C), k-path reference count field (KP
RC) and the directory is duplicated to meet a user's certain parameter requirements, or whenever the directory is needed to meet different user's parameter requirements, one is added to its corresponding RC. If the existence of the directory is no longer needed to satisfy the parameter requirement, then the corresponding RC is decremented by one.

【0023】レプリカ設定手段12は、ユーザの信頼性
要求を満たすためにディレクトリを複製した場合にその
複製したディレクトリの信頼性フィールド(FR)の値
をYESに、対応するレファレンスカウントフィールド
の値を1にセットする。また、信頼性フィールドの値が
YESで、全てのレファレンスカウントフィールドの値
がゼロになったディレクトリはそのノードから削除す
る。
When the directory is duplicated to satisfy the reliability requirement of the user, the replica setting means 12 sets the value of the reliability field (FR) of the duplicated directory to YES and sets the value of the corresponding reference count field to 1 Set to. Further, a directory in which the value of the reliability field is YES and the values of all the reference count fields become zero is deleted from the node.

【0024】以上のように構成された名前解決装置にお
いて、各設定部の動作について図面を用いて説明する。
図6、図7、図8はサブパス設定部13の処理の流れを
示す図である。サブパス設定部13はパラメータ設定手
段11から解決すべきパスネームとユーザノード及びユ
ーザが希望するサブパスの値である新サブパスの入力後
(ステップ600)、新たなサブパスの指定がサブパス
の変更かどうかをチェックする(601)。この比較
は、例えばユーザ毎にパラメータ指定の履歴を保持して
おくことにより実現できる。変更であった場合、old-su
bpathを旧サブパスに、new-subpthをユーザが新に定義
した新たなサブパスの値に(603)、tot-dirs-oldを
旧サブパスに含まれるディレクトリ数に、tot-dirs-new
を新たなサブパスに含まれるディレクトリ数に設定し
(604)、tot-dirs-oldとtot-dirs-newとを比較する
(605)。
In the name resolution device configured as described above, the operation of each setting unit will be described with reference to the drawings.
6, 7, and 8 are diagrams showing the flow of processing of the sub-path setting unit 13. The sub-path setting unit 13 inputs from the parameter setting means 11 a path name to be resolved, a user node, and a new sub-path which is a value of the sub-path desired by the user (step 600), and then checks whether the designation of the new sub-path is a sub-path change. Yes (601). This comparison can be realized, for example, by holding a history of parameter designation for each user. Old-su if changed
bpath is the old subpath, new-subpth is the value of the new subpath newly defined by the user (603), tot-dirs-old is the number of directories included in the old subpath, and tot-dirs-new
Is set to the number of directories included in the new subpath (604), and tot-dirs-old and tot-dirs-new are compared (605).

【0025】両者が等しければ処理は必要ないので終了
する(606)。tot-dirs-old<tot-dirs-newであれば
サブパスの要求が強化されたことになり、subpathを新
たに定義されたサブパスの値に、jをtot-dirs-old+1
に、redeuceをFALSEにセットする(607)。tot
-dirs-old<tot-dirs-newであれば、サブパスの要求は
緩和されたことになり、subpathを旧サブパスの値に、
jをtot-dirs-new+1に、redeuceをTRUEにセット
する(608)。
If they are the same, the process is not necessary and the process is terminated (606). If tot-dirs-old <tot-dirs-new, the request for subpath is strengthened, and subpath is the newly defined subpath value and j is tot-dirs-old + 1.
Then, set redeuce to FALSE (607). tot
If -dirs-old <tot-dirs-new, then the subpath requirement is relaxed and subpath is set to the old subpath value.
j is set to tot-dirs-new + 1 and redeuce is set to TRUE (608).

【0026】601において、サブパスの変更でない場
合、即ち初めてサブパスが設定された場合はsubpathを
新たに定義されたサブパスの値に、jを1に、redeuce
をFALSEにセットし(602)、609の処理に行
く。609では、ユーザが定義したサブパスがパスネー
ムに対して適切なものであるかどうかをチェックし、不
適切な場合はユーザに警告を発し終了する(610)。
適切な場合、subpathに含まれるディレクトリの数tot-d
irsを求め、subpathに含まれるディレクトリを分解しi=
1からtot-dirsまで、dir(i)をsubpathのi番目のディレ
クトリにセットする(612)。
In step 601, when the subpath is not changed, that is, when the subpath is set for the first time, subpath is set to the value of the newly defined subpath, j is set to 1, and redeuce is set.
Is set to FALSE (602), and the process goes to 609. At 609, a check is made to see if the user-defined subpath is appropriate for the pathname, and if not, the user is alerted and exited (610).
Number of directories contained in subpath, if appropriate tot-d
Find irs, decompose the directories contained in subpath, and i =
From 1 to tot-dirs, dir (i) is set to the i-th directory of subpath (612).

【0027】図7の701において、reduceの値がFA
LSEの場合、即ちサブパスのリダクションが行われな
い場合は、新たなサブパスの要求を満たすためにはユー
ザノードに少なくとも1つのディレクトリの複製が必要
となる。この場合はsubpathのj番目のディレクトリか
ら(702)各ディレクトリがすでにユーザノードに存
在するかどうかを調べる(703)(704)(70
5)。ユーザノードに存在してそのディレクトリのFR
=YESなら(707)そのディレクトリのSPRCの
値を1つ増やす(708)。また、ユーザノードに存在
しない場合は、そのディレクトリをユーザノードにコピ
ーしFR=YES、SPRC=1、その他のRCを0に
セットする(706)。
In 701 of FIG. 7, the value of reduce is FA.
In the case of LSE, i.e. no reduction of subpaths is required, the user node needs to duplicate at least one directory in order to satisfy the request of the new subpath. In this case, from the jth directory of subpath (702), it is checked whether or not each directory already exists in the user node (703) (704) (70
5). FR of the directory that exists in the user node
If = YES (707), the SPRC value of the directory is incremented by 1 (708). If the directory does not exist in the user node, the directory is copied to the user node and FR = YES, SPRC = 1, and other RCs are set to 0 (706).

【0028】図7の703においてreduceがTRUEの
場合は、dir(j)からdir(tot-dirs)までのディレクトリ
はユーザのサブパスの要求のために必要でないので、図
8の801から807のループでdir(j)からdir(tot-di
r)までそのディレクトリのSPRCの値から1を減じる
(803)。そして、もし全てのRCの値が0になった
場合(804)にはそのディレクトリをユーザノードか
ら削除する(805)。 図9から図13ははm−ステ
ージ設定部14の処理の流れを示す図である。m−ステ
ージ設定部14は、パスネーム、ユーザノード、新mス
テージ値の入力後(901)、mステージの変更かどう
かを調べる(902)。変更であるならばold_m_stage
=旧mステージ値、new_m_stage=新mステージ値に設
定し(903)、両者を比較する(904)。両者が等
しければ処理は必要ないので終了する(905)。old_
m_stage<new_m_stageであればm_stage=新mステージ
値に設定(907)する。
When reduce is TRUE in 703 of FIG. 7, the directories from dir (j) to dir (tot-dirs) are not necessary for the user's request for the subpath, so the loop of 801 to 807 in FIG. From dir (j) to dir (tot-di
1) is subtracted from the SPRC value of the directory until r) (803). If all RC values become 0 (804), the directory is deleted from the user node (805). 9 to 13 are diagrams showing the flow of processing of the m-stage setting unit 14. After inputting the path name, the user node, and the new m stage value (901), the m-stage setting unit 14 checks whether or not the m stage is changed (902). Old_m_stage if it is a change
= Old m stage value, new_m_stage = new m stage value (903), and both are compared (904). If they are the same, the process is not necessary and the process is terminated (905). old_
If m_stage <new_m_stage, m_stage = new m stage value is set (907).

【0029】902において、mステージの変更で無い
場合、即ちユーザが初めてmステージを指定する場合
は、m_stage=新mステージ値に設定し(908)、9
10から処理を開始する。
In 902, when the m stage is not changed, that is, when the user specifies the m stage for the first time, m_stage = new m stage value is set (908), 9
The process starts from 10.

【0030】910で、パスネーム中に含まれるディレ
クトリの総数をtot_dirsとし、パスネーム中のディレク
トリを分解し、i=1からtot_dirsまで、dir(i)をパスネ
ームのi番目のディレクトリにセットする。次にhpps=t
pt_dirs−1、repeat=FASEにセットし(91
1)、m_sategeとhopsの値を比較する(912)。等し
ければ処理は行う必要がないので終了する(913)。
等しくない場合はi=1、j=2、node(i)=ユーザノ
ードにセットする(914)。
At 910, the total number of directories included in the pathname is set to tot_dirs, the directories in the pathname are decomposed, and dir (i) is set to the i-th directory of the pathname from i = 1 to tot_dirs. Then hpps = t
Set pt_dirs-1, repeat = FASE (91
1), the values of m_satege and hops are compared (912). If they are equal, it is not necessary to perform the process, and the process is terminated (913).
If they are not equal, i = 1, j = 2, node (i) = user node is set (914).

【0031】図10の1001からステップ1009の
ループで、パスネーム中の2つの連続したディレクトリ
が同一のノードに存在する場合(1002)に、hopsか
ら1を減じる(1006)ことにより現在のシステムの
状況を調べる。この処理はhops>m_stageの間だけ続けら
れる(1007)。
In the loop from 1001 to step 1009 in FIG. 10, when two consecutive directories in the pathname exist in the same node (1002), the current system status is reduced by subtracting 1 from hops (1006). Find out. This process continues only during hops> m_stage (1007).

【0032】もしシステムが既にhops≦m_stageであれ
ば、ユーザのm_staegeの要求を満たすために必要となる
ディレクトリは、そのMSRCに1を加算することによ
り識別しなければないならい(1005)。この処理は
repeatの値をTRUEにセットすることで制御する(1
010)(1012)。SPRCの値は、ステップ10
03でrepeatの値がTRUEであり、そのディレクトリ
が複製されたものである場合に限り(1004)、1加
算される。
If the system is already hops≤m_stage, then the directory needed to satisfy the user's m_staege request must be identified by adding 1 to its MSRC (1005). This process
Control by setting the value of repeat to TRUE (1
010) (1012). The value of SPRC is calculated in step 10.
Only if the repeat value in 03 is TRUE and the directory is duplicated (1004), 1 is added.

【0033】図11のループ1102から1107で、
パスネームの第2番目のディレクトリから全てのディレ
クトリに対し、それがユーザノードに存在するかどうか
を調べる(1103)。ユーザノードに存在しFR=Y
ESのディレクトリに対して(1104)、そのMSR
Cの値に1を加算する(1105)。
In loops 1102 to 1107 of FIG. 11,
It is checked whether all directories from the second directory of the path name exist in the user node (1103). It exists in the user node and FR = Y
For the ES directory (1104), its MSR
1 is added to the value of C (1105).

【0034】1103でユーザノードにそのディレクト
リが存在しない場合は、図12の1201で、そのディ
レクトリの存在するノードを調べ、ディレクトリをユー
ザノードにコピーし、FR=YES,MSRC=1、そ
の他のRCの値を0に設定する。次にいまコピーしたデ
ィレクトリに連接する次のディレクトリのロケーション
を調べる(1202)(1203)(1204)。
If the directory does not exist in the user node in 1103, the node in which the directory exists is checked in 1201 of FIG. 12, the directory is copied to the user node, and FR = YES, MSRC = 1, other RC Set the value of to 0. Next, the location of the next directory connected to the directory just copied is checked (1202) (1203) (1204).

【0035】そのディレクトリがユーザノードに存在し
(1205)、FR=YESであれば(1206)、そ
のディレクトリのMSRCに1を加算する。
If the directory exists in the user node (1205) and FR = YES (1206), 1 is added to MSRC of the directory.

【0036】ユーザノードではなく、コピーしたノード
と同一のノードに存在する場合、そのノードからユーザ
ノードにディレクトリをコピーし、FR=YES,MS
RC=1、その他のRC=0に設定する。ユーザノード
になく、且つコピーしたノードにも存在しない場合は、
hopsの値から1を減じ(1211)、m_stageの値と比
較する(1212)。m_stageよりも大きい場合にはj
の値に1を加えステップ100から同じ処理を繰り返
す。
If it exists not in the user node but in the same node as the copied node, the directory is copied from that node to the user node, and FR = YES, MS
Set RC = 1 and other RC = 0. If it does not exist in the user node and it does not exist in the copied node,
1 is subtracted from the value of hops (1211) and compared with the value of m_stage (1212). j if larger than m_stage
1 is added to the value of and the same process is repeated from step 100.

【0037】図9の904で、old_m_stage>new_m_sta
geの場合、hops_to_reduce=old_m_stage−new_m_stage
に、tot_dirsをパスネーム中のディレクトリの総数にセ
ットし(909)、図13の処理を行う。図13の10
32から1306で、パスネームの第2番目のディレク
トリからパスネーム中のユーザノードに存在しない最初
のディレクトリ(1303)、またはmステージの要求
のためにユーザノードに複製されたものでない最初のデ
ィレクトリを検索する(1304)。その後1308か
ら1313のループで、ユーザノードに存在する末端の
ディレクトリから(1307)、hops_to_reduceの値が
0になるまで(1312)、またはユーザノードに存在
するすべてのディレクトリに対し(1313)、MSR
Cの値から1を減じ(1308)、hops_to_reduceの値
から1を減じる(1311)。もし、MSRCの値から
1を減じた場合に、全てのRC=0となる場合には(1
039)、そのディレクトリをユーザノードから削除す
る(1310)。
At 904 in FIG. 9, old_m_stage> new_m_sta
In case of ge, hops_to_reduce = old_m_stage−new_m_stage
Then, tot_dirs is set to the total number of directories in the pathname (909), and the processing of FIG. 13 is performed. 13 of FIG.
At 32 to 1306, the second directory of the pathname is searched for the first directory (1303) that does not exist in the user node in the pathname, or the first directory that has not been replicated to the user node for the m stage request. (1304). Then, in a loop from 1308 to 1313, from the terminal directory existing in the user node (1307) until the value of hops_to_reduce becomes 0 (1312), or for all directories existing in the user node (1313), the MSR
1 is subtracted from the value of C (1308), and 1 is subtracted from the value of hops_to_reduce (1311). If all RC = 0 when 1 is subtracted from the value of MSRC, (1
039) and delete that directory from the user node (1310).

【0038】図14から図17はk−パス設定部15の
処理を示す図である。k−パス設定部はパスネーム、新
k−パス値、ユーザノードの他に、システムの全ノード
数tot_nodesを入力する。この全ノード数は分散システ
ムが構築されたとき、または、分散システムのノードに
変更が生じたときなどに決まる数であり、システムに固
有の値として設定されているものとする。
14 to 17 are diagrams showing the processing of the k-path setting unit 15. The k-path setting unit inputs the total number of nodes tot_nodes of the system in addition to the path name, new k-path value, and user node. The total number of nodes is a number determined when the distributed system is constructed or when the nodes of the distributed system are changed, and is set as a value unique to the system.

【0039】入力後(1401)k−パスの変更かどう
かを調べ(1402)、変更であればold_k_ppath=旧k
−パス値、new_k_path=新k−パス値、k_path=新k−
パス値に設定し(1403)、old_k_pathとnew_k_path
の値を比較する(1405)。両者が等しければ処理は
終了する(1406)。
After the input (1401), it is checked whether or not the k-path is changed (1402), and if it is changed, old_k_ppath = old k
-Path value, new_k_path = new k-path value, k_path = new k-
Set to path value (1403), old_k_path and new_k_path
The values of are compared (1405). If they are equal, the process ends (1406).

【0040】new_k_path>old_k_ppathであれば、reduc
e=FALSEに設定し(1408)、new_k_path<old
_k_ppathであれば、path_to_reduce=old_k_ppath−new
_k_path、reduce=TRUEに設定する(140
7)。
If new_k_path> old_k_ppath, reduce
Set e = FALSE (1408), new_k_path <old
If _k_ppath, path_to_reduce = old_k_ppath-new
Set _k_path, reduce = TRUE (140
7).

【0041】1401でk−パスの変更でない場合、即
ち、初めてk−パスが設定された場合、k-path=新k-パ
ス値、reduce=FALSEに設定した後(1404)、
1409から処理を開始する。1409でk-pathの値が
適切な値かどうかをチェックし、不適切な値であればk-
path=tot-nodes-1に設定する(1410)。次にk-pat
hが既に1以下であるかどうかを調べ(1411)、1
以下でありreduce=FALSEであれば(1412)、
処理は必要ないので終了する(1413)。
When the k-path is not changed in 1401, that is, when the k-path is set for the first time, after setting k-path = new k-path value and reduce = FALSE (1404),
The process starts from 1409. In 1409, the value of k-path is checked to see if it is an appropriate value.
Set path = tot-nodes-1 (1410). Then k-pat
Check whether h is already 1 or less (1411), 1
And if reduce = FALSE (1412),
Since processing is not necessary, the process ends (1413).

【0042】処理が必要な場合、1414でtot_dirsを
パスネーム中のディレクトリの総数とし、パスネーム中
のディレクトリを分解し、i=1からtot_dirsまでdir(i)
=パスネーム中のi番目のディレクトリに設定する。さ
らに、k-path=0ならば、k_path=1に設定する。ステッ
プ1415でi,j,node(i),total(i)の初期値を設定す
る。
If processing is required, 1414 sets tot_dirs as the total number of directories in the pathname, decomposes the directories in the pathname, and dir (i) from i = 1 to tot_dirs.
= Set to the i-th directory in the pathname. Further, if k-path = 0, set k_path = 1. In step 1415, initial values of i, j, node (i), total (i) are set.

【0043】図15の1501から1512のループ
で、パスネームの第2番目のディレクトリからユーザノ
ードに存在しない最初のディレクトリまでに対し処理が
行われる(1502)。ユーザノードに存在する(ユー
ザノード上で発見された)ディレクトリであり、FRか
YESのものに対しては、reduceの値がTRUEかFA
LSEかによってKPRCの値に1を加算するか1を減
じる処理が行われる(1503)(1505)(150
7)。KPRCから1を減じた場合に全てのRCの値が
0となるディレクトリに対してはユーザノードから削除
する(1508)(1509)。
In the loop of 1501 to 1512 of FIG. 15, processing is performed from the second directory of the path name to the first directory that does not exist in the user node (1502). For directories that exist in the user node (discovered on the user node) and have FR or YES, the value of reduce is TRUE or FA.
Depending on whether it is LSE, processing of adding 1 to the value of KPRC or subtracting 1 is performed (1503) (1505) (150).
7). All directories whose RC values are 0 when 1 is subtracted from KPRC are deleted from the user node (1508) (1509).

【0044】1502でユーザノードに存在しないディ
レクトリが発見された場合は図16に示す1601へ処
理が移行する。図16に示す処理では、同一ノードに存
在しない連接する2つのディレクトリ間のパスの数が新
たなk_pathを満たすように調整する。1601で2つの
ディレクトリ間に存在するパスの総数total_pathを計算
し、k_pathの値と比較する(1062)。
When a directory which does not exist in the user node is found in 1502, the processing shifts to 1601 shown in FIG. In the process shown in FIG. 16, the number of paths between two contiguous directories that do not exist in the same node is adjusted so as to satisfy the new k_path. In 1601, the total number of paths existing between two directories, total_path, is calculated and compared with the value of k_path (1062).

【0045】total_path≧k_pathであれば2つのディレ
クトリ間のパスを増やす必要はない。この場合にはパス
を新たなk_pathを満たす範囲内で削除するかまたはtota
l_path中のk個に対しKPRCの値を加算することによ
りk_pathのためにディレクトリが必要であることのマー
ク付けをreduceの値に従い行う。
If total_path ≧ k_path, it is not necessary to increase the path between two directories. In this case, delete the path within the range that satisfies the new k_path, or tota
Marking that a directory is required for k_path is performed according to the value of reduce by adding the value of KPRC to k in l_path.

【0046】redeuce=FALSEの場合はマーク付け
を行う。この場合は1064でマークする数mを計算
し、total(j)の中のm個のKPRCの値に1を加算する
(1605)。1062でtotal_path<k_pathの場合
は、k_pathを満たすために新たにいくつかのパスを作成
する必要がある。新たなパスは連接する2番目のディレ
クトリをm個の新たなノードにコピーすることにより作
成する。1607でmの個数を計算し、1608でm個
ディレクトリをコピーし、コピーしたFRをYES、K
PRC=1、その他のRC=0に設定すると共に、tota
l(j)個のKPRCの値に1を加算する。
When redeuce = FALSE, marking is performed. In this case, the number m to be marked in 1064 is calculated, and 1 is added to the m KPRC values in total (j) (1605). If total_path <k_path in 1062, it is necessary to create some new paths to satisfy k_path. A new path is created by copying the concatenated second directory to m new nodes. The number of m is calculated in 1607, the m directories are copied in 1608, and the copied FR is YES, K
PRC = 1 and other RC = 0 are set, and tota
Add 1 to the l (j) KPRC values.

【0047】1603でreduce=TRUEの場合は、パ
スのリダクションが必要な場合であり、図17の170
1へ処理が移る。2つの連接するディレクトリ間のパス
をリダクションする方法には2通り存在する。1702
から1706のループは隣接する1番目のディレクトリ
の複製を削除する場合の処理であり、この場合には1つ
の複製が削除される度に第2番目のディレクトリの個数
分(total(j)個)のパスが減じる(1706)。170
8から1712のループは連接する第2番目のディレク
トリの複製を削除する場合の処理であり、この場合には
1つの複製が削除される度に第1番目のディレクトリの
個数分(total(i)個)のパスが減じる(1712)。何
れの場合でも、パスのリダクションはそのディレクトリ
のKPRCの値を1つ減じることにより行われ(170
3)(1709)、全てのRC=0となった場合にその
ノードからディレクトリを削除することにより行われる
(1704)(1705)(1710)(1711)。
If reduce = TRUE in 1603, it means that reduction of the path is required, and 170 in FIG.
The process moves to 1. There are two ways to reduce the path between two concatenated directories. 1702
The loop from 1 to 1706 is a process for deleting the copy of the adjacent first directory. In this case, each time one copy is deleted, the number of the second directory is equal to the total number (total (j)). The number of passes is reduced (1706). 170
The loop from 8 to 1712 is a process for deleting the copy of the concatenated second directory. In this case, every time one copy is deleted, the number of the first directory (total (i) The number of passes is reduced (1712). In either case, path reduction is done by subtracting one from the KPRC value for that directory (170
3) (1709), when all RC = 0, the directory is deleted from the node (1704) (1705) (1710) (1711).

【0048】次に、具体的な例を用いて本装置の動きに
ついて説明する。全ノード数が6、ノード6にパスネー
ム’/a/b/c/d/e’により指定される資源情報
が格納されており、ノード1にルートディレクトリ’
/’、ノード2にディレクトリ’/a/b/c’、ノー
ド3にディレクトリ’/a’、ノード4にディレクト
リ’/a/b/c/d’、ノード5にディレクトリ’/
a/b’がそれぞれオリジナルディレクトリとして存在
する場合に、次の順番でそれぞれの指定がパラメータ設
定手段により行われた場合の処理の流れについて説明す
る。
Next, the operation of this apparatus will be described using a specific example. The total number of nodes is 6, and the resource information specified by the path name '/ a / b / c / d / e' is stored in node 6, and the root directory 'is stored in node 1.
/ ', Directory 2 for node' / a / b / c ', node 3 for directory' / a ', node 4 for directory' / a / b / c / d ', node 5 for directory' / '
A description will be given of the flow of processing in the case where a / b ′ exists as the original directories and the respective designations are made by the parameter setting means in the following order.

【0049】(1)ユーザ1が’(ユーザノード=ノー
ド1,パスネーム=’/a/b/c/d/e’,サブパ
ス=’/a’,’m−ステージ=2’,k−パス=2)
を指定。
(1) User 1 is' (user node = node 1, pathname = '/ a / b / c / d / e', subpath = '/ a', 'm-stage = 2', k-path = 2)
Specify.

【0050】(2)ユーザ2が(ユーザノード=ノード
1,パスネーム=’/a/b/c/d/e’,サブパス
=’/a/b’,m−ステージ=3,k−パス=3)を
指定。
(2) User 2 (user node = node 1, path name = '/ a / b / c / d / e', sub path = '/ a / b', m-stage = 3, k-path = Specify 3).

【0051】(3)ユーザ1が(ユーザノード=ノード
1,パスネーム=’/a/b/c/d/e’,サブパス
=’/’,m−ステージ=0’,k−パス=0)
を指定。
(3) User 1 (user node = node 1, pathname = '/ a / b / c / d / e', subpath = '/', m-stage = 0 ', k-path = 0)
Specify.

【0052】(4)ユーザ2が(ユーザノード=ノード
1,パスネーム=’/a/b/c /d/
e’,サブパス=’/’,m−ステージ=0,k−パス
=0) を指定。
(4) User 2 (user node = node 1, pathname = '/ a / b / c / d /
e ', sub-path =' / ', m-stage = 0, k-path = 0) is specified.

【0053】表1は初期状態における各ノード上のディ
レクトリの信頼性フィールド、レファレンスカウンタフ
ィールドの状態を示すものである。この状態におけるそ
れぞれのパラメータ値は(サブパス=’/’,m−ステ
ージ=4,k−パス=1)である。
Table 1 shows the states of the reliability field and the reference counter field of the directory on each node in the initial state. The respective parameter values in this state are (sub path = '/', m-stage = 4, k-path = 1).

【0054】[0054]

【表1】 [Table 1]

【0055】表2は(1)の指示に対するサブパス設定
部の処理が終了した状態を示すものである。(1)の指
示に対し、サブパス設定部は図6のステップ602でsu
bpath=’/a’、j=1,reduce=FALSE、ステッ
プ162でtot_dirs=2に設定され、図7のステップ7
03からステップ709のループで、’/’だけがユー
ザノードに存在し、2番目のディレクトリ’/a’がユ
ーザノード(node-1)に存在しないことが判明し(ステ
ップ705)、’/a’がノード3からユーザノードで
あるノード1に複製され、それぞれの値が設定される
(ステップ706)。複製後iの値が3にインクリメン
トされステップ703の分岐により処理が終了する。サ
ブパス設定部の処理が終了した状態におけるそれぞれの
パラメータ値は(サブパス=’/a’,m−ステージ=
3,k−パス=1)である。
Table 2 shows a state in which the processing of the sub-path setting unit in response to the instruction (1) is completed. In response to the instruction of (1), the sub-path setting unit executes su at step 602 in FIG.
bpath = '/ a', j = 1, reduce = FALSE, tot_dirs = 2 is set in step 162, and step 7 in FIG.
In the loop from 03 to step 709, it is found that only '/' exists in the user node and the second directory '/ a' does not exist in the user node (node-1) (step 705). 'Is duplicated from node 3 to node 1, which is the user node, and the respective values are set (step 706). After the duplication, the value of i is incremented to 3 and the process ends by the branch of step 703. The respective parameter values in the state where the processing of the sub-path setting unit is completed are (sub-path = '/ a', m-stage =
3, k-pass = 1).

【0056】[0056]

【表2】 [Table 2]

【0057】表3は(1)の指示に対し、サブパス設定
部、m−ステージ設定部の処理が終了した状態を示すも
のである。サブパス設定部の処理の終了後、m−ステー
ジ設定部の処理が開始される。m−ステージ設定部では
図9のステップ908でm_stage=2に、ステップ911
でhops=4,repeat=FALSEに設定される。図10
のステップ1002からステップ1009のループ
で、’/’と’/a’が同じノードに存在するのでhops
が4から3に変化する。ユーザのm−ステージの要求を
満たすためにはさらに1つhopsを減じる必要がある。図
11のステップ1102からステップ1107において
ノード1に存在する2番目のディレクトリから全てので
ディレクトリに対しそのMSRCの値に1を加算し、ま
た、ノード1に存在しない最初のディレクトリが検索さ
れる(1103)。従ってここでは’/a’のMSRC
に1が加算で、ノード1に存在しない最初のディレクト
BR>リとしてノード5に存在する’/a/b’が検索さ
れる。次に図12のステップ1201においてノード5
からノード1に’/a/b’がコピーされ、そのディレ
クトリの初期値が設定される。ステップ1202ではk
はノード2に存在する次のディレクトリ’/a/b/
c’をポイントする。ノード2はノード1ともノード5
とも等しくないので、ステップ1211においてhopsか
ら1が引かれ2に変わり、ステップ1212においてm-
stageとの比較の結果処理が終了する。
Table 3 shows a state in which the processes of the sub-path setting unit and the m-stage setting unit have been completed in response to the instruction (1). After the processing of the sub-path setting unit is completed, the processing of the m-stage setting unit is started. In the m-stage setting unit, m_stage = 2 in step 908 of FIG. 9 and step 911.
Is set to hops = 4, repeat = FALSE. Figure 10
In the loop from step 1002 to step 1009, since '/' and '/ a' exist in the same node, hops
Changes from 4 to 3. One more hops needs to be subtracted to meet the user's m-stage requirements. In steps 1102 to 1107 of FIG. 11, 1 is added to the value of the MSRC of all directories from the second directory existing in node 1 and the first directory not existing in node 1 is searched (1103). ). Therefore, here is the MSRC of '/ a'
1 is added to the first directory that does not exist in node 1.
BR> retrieving '/ a / b' existing in the node 5 is searched. Next, in step 1201 of FIG. 12, the node 5
'/ A / b' is copied from node 1 to node 1 and the initial value of that directory is set. K in step 1202
Is the next directory existing in node 2 '/ a / b /
Point to c '. Node 2 and node 1 and node 5
Since they are not equal to each other, 1 is subtracted from hops in step 1211 to change to 2 and m-
As a result of comparison with the stage, processing ends.

【0058】この状態のそれぞれのパラメータ値は(サ
ブパス=’/a/b’,m−ステージ=2,k−パス=
1)である。
The respective parameter values in this state are (subpath = '/ a / b', m-stage = 2, k-path =
1).

【0059】[0059]

【表3】 [Table 3]

【0060】表4は、サブパス設定部、m−ステージ設
定部、k−パス設定部の処理が終了した状態、即ち、
(1)の命令が完了した状態である。
Table 4 shows a state in which the processes of the sub-path setting unit, the m-stage setting unit, and the k-path setting unit have been completed, that is,
This is a state in which the instruction of (1) is completed.

【0061】図14のステップ1404でk_path=2、
reduce=FALSE、ステップ1414でtot_dirs=5
に設定される。図15のステップ1501からステップ
1512のループで、ノード1に存在する2番目のディ
レクトリから全てのでディレクトリに対しそのKPRC
の値に1を加算し、ノード1に存在しない最初のディレ
クトリが検索される(1502)。従ってこの場合で
は’/a’.’/a/b’のKPRCの値に1が加算さ
れ、ノード1に存在しない最初のディレクトリとしてノ
ード2に存在する’/a/b/c’が検索される。図1
6のステップ1601において、iによって特定される
ディレクトリ’/a/b’とjにより特定されるディレ
クトリ’/a/b/c’間のtotal_pathとして1が計算
される。従ってユーザの要求を満たすためにはステップ
1607に計算されたm=1のパスの増設が必要とな
る。ステップ1608でディレクトリ’/a/b/c’
が新たなノードとしてノード3上にノード2からコピー
され、そのKPRCが1に設定され、ステップ1609
でtotal(j)=2となる。次のステップ1610では、i
=4、total(i)=2、node(i)=ノード2、j=5に設
定され、jがtotal_dirsより小さいのでループ1610
からステップ1613が繰り返される。今度はステップ
1601でtotal_path=2と計算され、ステップ160
2でk_pathと値が等しいと判断さる。reduce=FALS
Eであるからステップ1604でm=0が計算され、ス
テップ1610でj=6になり、ステップ1611の判
断により処理は終了する。この状態のそれぞれのパラメ
ータ値は(サブパス=’/a/b’,m−ステージ=
2,k−パス=2)である。
In step 1404 of FIG. 14, k_path = 2,
reduce = FALSE, tot_dirs = 5 in step 1414
Is set to. In the loop from step 1501 to step 1512 in FIG. 15, the KPRC for all directories from the second directory existing in node 1
1 is added to the value of and the first directory that does not exist in node 1 is searched (1502). Therefore, in this case, '/ a'. 1 is added to the KPRC value of '/ a / b', and '/ a / b / c' existing in node 2 is searched as the first directory not existing in node 1. Figure 1
In step 1601 of 6, 1 is calculated as the total_path between the directory '/ a / b' specified by i and the directory '/ a / b / c' specified by j. Therefore, in order to satisfy the user's request, it is necessary to add the path of m = 1 calculated in step 1607. In step 1608, the directory '/ a / b / c'
Is copied from node 2 onto node 3 as a new node, its KPRC is set to 1, step 1609
So total (j) = 2. In the next step 1610, i
= 4, total (i) = 2, node (i) = node 2, j = 5, and j is smaller than total_dirs, loop 1610
To step 1613 are repeated. This time, total_path = 2 is calculated in step 1601, and step 160
In 2, it is judged that the value is equal to k_path. reduce = FALS
Since it is E, m = 0 is calculated in step 1604, j = 6 is set in step 1610, and the processing is ended by the determination in step 1611. The respective parameter values in this state are (sub-path = '/ a / b', m-stage =
2, k-pass = 2).

【0062】[0062]

【表4】 [Table 4]

【0063】次に、この状態から(2)の命令完了まで
を示したものが表5、表6、表7である。
Next, Table 5, Table 6, and Table 7 show from this state to the instruction completion of (2).

【0064】[0064]

【表5】 [Table 5]

【0065】(2)の指示に対し、サブパス設定部は図
6のステップ602でsubpath=’/a/b’、j=1,
reduce=FALSE、ステップ162でtot_dirs=3に
設定される。図7のステップ703からステップ709
のループで、’/a’と’/a/b’がユーザノードに
既に存在することが判明し、それぞれのSPRCの値に
1が加算される。’/a/b’のSPRCの値が加算さ
れた時にはi=4であり、tot_dirsより大きいのでステ
ップ703に従い処理が終了する。
In response to the instruction of (2), the sub-path setting unit executes sub-path = '/ a / b', j = 1, step 602 in FIG.
reduce = FALSE, tot_dirs = 3 is set in step 162. Steps 703 to 709 of FIG.
Loop, it is found that '/ a' and '/ a / b' already exist in the user node, and 1 is added to the respective SPRC values. When the SPRC value of '/ a / b' is added, i = 4, which is larger than tot_dirs, so the process ends in accordance with step 703.

【0066】この状態のそれぞれのパラメータ値は(サ
ブパス=’/a/b’,m−ステージ=2,k−パス=
2)である。表5において、ノード1の’/a’のSP
RC=2であることから、このディレクトリは2人のユ
ーザがサブパスの条件を満たすために必要としているこ
とが分かる。mーステージ設定部の処理が終了した状態
が表6である。
The respective parameter values in this state are (sub-path = '/ a / b', m-stage = 2, k-path =
2). In Table 5, SP of '/ a' of node 1
Since RC = 2, it can be seen that this directory is needed by two users to satisfy the sub-path condition. Table 6 shows a state in which the processing of the m-stage setting unit is completed.

【0067】[0067]

【表6】 [Table 6]

【0068】m−ステージ設定部では図9のステップ9
08でm_stage=3に、ステップ911でhops=4,repe
at=FALSEに設定される。図10のステップ100
2からステップ1009のループで、’/’と’/a’
が同じノードに存在するのでhopsが4から3に変化す
る。そしてステップ1007の分岐に従いステップ10
12でrepeat=TRUEに設定され、図9のステップ9
14に処理が移行する。再び図10に示すステップ10
01からステップ1009の処理が行われる。今度はre
peat=TRUEであるから、同一ノードに存在する連接
したディレクトリのMSRCの値に1が加算れる。その
結果’/a’のMSRCの値が2となる。この後hops=
3に減じられ、ステップ1007、ステップ101を介
して処理が終了する。
In the m-stage setting section, step 9 in FIG.
08, m_stage = 3, step 911: hops = 4, repeat
It is set to at = FALSE. Step 100 of FIG.
In the loop from 2 to step 1009, '/' and '/ a'
Exists in the same node, so hops changes from 4 to 3. Then, according to the branch of step 1007, step 10
In step 12, repeat = TRUE is set, and step 9 in FIG.
The processing shifts to 14. Step 10 shown in FIG. 10 again
The processing from 01 to step 1009 is performed. This time re
Since peat = TRUE, 1 is added to the value of MSRC of the connected directories existing in the same node. As a result, the MSRC value of '/ a' becomes 2. After this hops =
The number is reduced to 3, and the process ends through steps 1007 and 101.

【0069】この状態のそれぞれのパラメータ値は(サ
ブパス=’/a/b’,m−ステージ=2,k−パス=
2)である。次のk−パス設定部の処理が終了した状態
が表7である。
The respective parameter values in this state are (sub-path = '/ a / b', m-stage = 2, k-path =
2). Table 7 shows a state in which the processing of the next k-path setting unit is completed.

【0070】[0070]

【表7】 [Table 7]

【0071】図14のステップ1404でk_path=3、
reduce=FALSE、ステップ1414でtot_dirs=5
に設定される。図15のステップ1501からステップ
1512のループで、ノード1に存在する2番目のディ
レクトリから全てのでディレクトリに対しそのKPRC
の値に1を加算し、ノード1に存在しない最初のディレ
クトリが検索される(1502)。従って、’/
a’.’/a/b’のKPRCの値に1が加算され2に
なり、ノード1に存在しない最初のディレクトリとして
ノード2とノード3にに存在する’/a/b/c’が検
索される。図16のステップ1601において、iによ
って特定されるディレクトリ’/a/b’とjにより特
定されるディレクトリ’/a/b/c’間のtotal_path
として2が計算される。従ってユーザの要求を満たすた
めにはステップ1607に計算されたm=1のパスの増
設が必要となる。ステップ1608でディレクトリ’/
a/b/c’が新たなノードとしてノード4上にノード
2からコピーされ、そのKPRCが1に設定され、その
他の’/a/b/c’のKPRCの値がオリジナルを除
き1加算される。即ち、ノード3の’/a/b/c’の
KPRCの値を2にする。
In step 1404 of FIG. 14, k_path = 3,
reduce = FALSE, tot_dirs = 5 in step 1414
Is set to. In the loop from step 1501 to step 1512 in FIG. 15, the KPRC for all directories from the second directory existing in node 1
1 is added to the value of and the first directory that does not exist in node 1 is searched (1502). Therefore, '/
a '. 1 is added to the KPRC value of '/ a / b' to become 2, and '/ a / b / c' existing in node 2 and node 3 is searched as the first directory not existing in node 1. In step 1601 of FIG. 16, total_path between the directory '/ a / b' specified by i and the directory '/ a / b / c' specified by j
Is calculated as 2. Therefore, in order to satisfy the user's request, it is necessary to add the path of m = 1 calculated in step 1607. Directory '/ in step 1608
a / b / c 'is copied from node 2 onto node 4 as a new node, its KPRC is set to 1, and the other KPRC values of' / a / b / c 'are incremented by 1 except for the original. It That is, the KPRC value of “/ a / b / c” of the node 3 is set to 2.

【0072】引続き、ステップ1609でtotal(j)=3
に設定され、ステップ1610でi=4、total(i)=
3、node(i)=ノード2、j=5に設定され、jがtotal
_dirsより小さいのでループ1610からステップ16
13が繰り返される。今度はステップ1601でtotal_
path=3と計算され、ステップ1602でk_pathより大
と判断さる。reduce=FALSEであるからステップ1
604でm=0が計算され、ステップ1610でj=6
になり、ステップ1611の判断により処理は終了す
る。
Subsequently, in step 1609, total (j) = 3
Is set in step 1610, i = 4, total (i) =
3, node (i) = node 2, j = 5, j is total
It is smaller than _dirs, so loop 1610 to step 16
13 is repeated. This time in step 1601 total_
It is calculated that path = 3, and it is judged to be larger than k_path in step 1602. Since reduce = FALSE, step 1
In step 604, m = 0 is calculated, and in step 1610, j = 6.
Then, the process is terminated by the judgment in step 1611.

【0073】この状態、即ち(1)(2)の指示が終了
した状態のそれぞれのパラメータ値は(サブパス=’/
a/b’,m−ステージ=2,k−パス=3)である。
In this state, that is, in the state in which the instructions (1) and (2) have been completed, the respective parameter values are (subpath = '/
a / b ', m-stage = 2, k-pass = 3).

【0074】次にユーザ1の変更命令(3)の指示に対
する各設定部の動作を及ぶ状態の変化を表8、表9、表
10を用いて説明する。表8は、(3)の指示に対する
サブパス設定部の処理が終了した状態を示す図である。
ユーザ1がサブパスを’/a’から’/’に変更した場
合、図6のステップ603でold_subpat=’/a’、new
_subpat=’/’ステップ604でtot_dirs_old=2、tot
_dirs_new=1に設定され、ステップ605でtot_dirs_o
ld=2とtot_dirs_new=1が比較される。ステップ608
でreduce=TRUE,subpat=’/a’、j=2に設定さ
れ、ステップ612においてtot_dirs=2に設定された
後、図7のステップ701を介して図8のステップ80
1に処理が移る。図8のステップ801からステップ8
07において、’/a’のSPRCの値が1減じられ、
j=3となり処理が終了する。この状態のパラメータ値
は(サブパス=’/a/b’,m−ステージ=2,k−
パス=3)である。
Next, the change in the state in which the operation of each setting unit is performed in response to the instruction of the change command (3) from the user 1 will be described with reference to Tables 8, 9, and 10. Table 8 is a diagram showing a state in which the process of the sub-path setting unit in response to the instruction (3) is completed.
When the user 1 changes the sub path from '/ a' to '/', in step 603 of FIG. 6, old_subpat = '/ a', new
_subpat = '/' in step 604, tot_dirs_old = 2, tot
_dirs_new = 1 is set, and in step 605 tot_dirs_o
ld = 2 and tot_dirs_new = 1 are compared. Step 608
After setting reduce = TRUE, subpat = '/ a', j = 2 in step 612 and tot_dirs = 2 in step 612, step 80 in FIG.
The process moves to 1. Steps 801 to 8 in FIG.
At 07, the SPRC value of '/ a' is reduced by 1,
j = 3 and the process ends. The parameter value in this state is (sub-path = '/ a / b', m-stage = 2, k-
Path = 3).

【0075】[0075]

【表8】 [Table 8]

【0076】表9は、引続き(3)に対しm−ステージ
処理部の処理が行われた後の状態を示すものである。ユ
ーザ1がmーステージ値を2から0に変更した場合、図
9のステップ903でold_m_stage=2、new_m_stage=0
に設定され、ステップ904で比較される。old_m_stag
e>new_m_stageであるからステップ909でhops_to_re
duce=2、tot_dirs=5に設定され図13に示すステップ
1301に処理が移る。
Table 9 shows the state after the processing of the m-stage processing unit is continued for (3). When the user 1 changes the m-stage value from 2 to 0, old_m_stage = 2 and new_m_stage = 0 in step 903 of FIG.
, And compared in step 904. old_m_stag
Since e> new_m_stage, hops_to_re in step 909.
duce = 2 and tot_dirs = 5 are set, and the process proceeds to step 1301 shown in FIG.

【0077】図13のステップ1302からステップ1
306のループにおいて、ユーザノードに存在しない最
初のディレクトリとしてj=4に対応した’/a/b/
c’が検索され、ステップ1308からステップ131
3のループにおいてユーザノードの’/a/b’、’/
a’のSPRCの値から1を減じる。hops_to_reduce=
0となった時点で処理を終了する。最終的にノード1上
の’/a/b’のSPRCが0に、’/a’のSPRC
は1になる。この状態のパラメータ値は(サブパス=’
/a/b’,m−ステージ=2,k−パス=3)であ
る。
Steps 1302 to 1 in FIG.
In the loop of 306, '/ a / b / corresponding to j = 4 as the first directory that does not exist in the user node
c ′ is searched, and steps 1308 to 131 are performed.
In the loop of 3, the user nodes' / a / b ',' /
Subtract 1 from the SPRC value of a '. hops_to_reduce =
The process ends when the value becomes 0. Finally, the SPRC of '/ a / b' on node 1 becomes 0, and the SPRC of '/ a'
Becomes 1. The parameter value in this state is (subpath = '
/ A / b ', m-stage = 2, k-pass = 3).

【0078】[0078]

【表9】 [Table 9]

【0079】表10は、引続き(3)に対しk−パス設
定部の処理が行われた後の状態を示すものである。ユー
ザ1がk−パスの値を2から0に変更した場合、図14
のステップ1403でold_k_path=2、new_k_path=
0、k_path=0に設定され、ステップ1405でold_k_p
athとnew_k_pathが比較される。old_k_path>new_k_pat
hであるから、ステップ1407でpath_to_reduce=2、
reduce=TRUE、ステップ1414でk_path=1、tot_
dirs=5、ステップ1415でi=1、node(i)=ノー
ド1,total(i)=1、j=2に設定され図15のステッ
プ1501からステップ1512で、ノード1に存在す
る2番目のディレクトリから全てのでディレクトリに対
しそのKPRCの値から1を減じ、ノード1に存在しな
い最初のディレクトリが検索される(1502)。結果
としてノード1上の’/a’、’/a/b’のKPRC
の値が1に減じられ、最初のディレクトリとして’/a
/b/c’が検索される。次に図16のステップ160
1で’/a/b’と’/a/b/c’間のtotal_path=
3を計算した後、ステップ1603を介して図17に示
すステップ1701に移る。node(i)=ユーザノードで
あるから処理はステップ1708に移り、ステップ17
08からステップ1712のループで、ノード3の’/
a/b/c’のKPRCの値が1つ減じられ、total_pa
th=2、total(j)=2が計算される。次にステップ17
08を介して図16のステップ1610に移る。ここ
で、i=4、total(i)=2、node(i)=ノード2、j=
5である。ステップ1631ではjで特定されるディレ
クトリ’/a/b/c/d’はノード5だけに存在する
ためtotal(j)=1となる。ステップ1601でtotal_pa
th=2が計算された後、ステップ1603を介して再び
処理が図17に示すステップ1701に移る。この時、
ステップ1701、ステップ1702、ステップ170
8はすべてNoとなり図16のステップ1610に移
る。ここで、i=5、total(i)=1、node(i)=ノード
4、j=6であり、ステップ1611を介して処理が終
了する。
Table 10 shows the state after the processing of the k-path setting section has been carried out for (3). If user 1 changes the value of k-pass from 2 to 0,
Step 1403, old_k_path = 2, new_k_path =
0, k_path = 0 is set, and old_k_p is set in step 1405.
ath and new_k_path are compared. old_k_path> new_k_pat
Since it is h, in step 1407 path_to_reduce = 2,
reduce = TRUE, in step 1414 k_path = 1, tot_
dirs = 5, i = 1, node (i) = node 1, total (i) = 1, j = 2 in step 1415 are set, and in steps 1501 to 1512 of FIG. From the directory, subtract 1 from the value of its KPRC for all directories and the first directory that does not exist in node 1 is searched (1502). As a result, KPRC of '/ a' and '/ a / b' on node 1
Is reduced to 1 and the first directory is' / a
/ B / c 'is searched. Next, step 160 in FIG.
1 = total_path = between '/ a / b' and '/ a / b / c'
After calculating 3, the process proceeds to step 1701 shown in FIG. 17 via step 1603. Since node (i) = user node, the process proceeds to step 1708, and step 17
In the loop from 08 to step 1712, node 3 '/
The value of KPRC for a / b / c 'is reduced by 1, and total_pa
th = 2 and total (j) = 2 are calculated. Next step 17
The process moves to step 1610 of FIG. 16 via 08. Here, i = 4, total (i) = 2, node (i) = node 2, j =
It is 5. In step 1631, since the directory '/ a / b / c / d' specified by j exists only in the node 5, total (j) = 1. In step 1601 total_pa
After th = 2 is calculated, the process again moves to step 1701 shown in FIG. 17 via step 1603. This time,
Step 1701, Step 1702, Step 170
All 8 are No, and the process moves to step 1610 in FIG. Here, i = 5, total (i) = 1, node (i) = node 4, j = 6, and the process ends via step 1611.

【0080】この状態、即ちユーザ1の(3)の指示を
実行した後のパラメータ値は(サブパス=’/a/
b’,m−ステージ=2,k−パス=3)である。
In this state, that is, the parameter value after executing the instruction (3) of the user 1 is (subpath = '/ a /
b ′, m-stage = 2, k-pass = 3).

【0081】[0081]

【表10】 [Table 10]

【0082】表11、表12、表13はユーザ2の変更
指示(4)に対するそれぞれの処理とその状態を示すも
のである。
Tables 11, 12, and 13 show the respective processes and the states thereof for the change instruction (4) of the user 2.

【0083】ユーザ2がサブパスを’/a/b’から’
/’に変更した場合、図6のステップ603でold_subp
at=’/a/b’、new_subpat=’/’ステップ604で
tot_dirs_old=3、tot_dirs_new=1に設定され、ステッ
プ605でtot_dirs_old=3とtot_dirs_new=1が比較さ
れる。ステップ608でreduce=TRUE,subpat=’/
a/b’、j=2に設定され、ステップ612において
tot_dirs=3に設定された後、図7のステップ701を
介して図8のステップ801に処理が移る。図8のステ
ップ801からステップ807において、’/a/b’
と’/a’のSPRCの値が1減じられ、j=4となり
処理が終了する。この状態のパラメータ値は(サブパス
=’/a/b’,m−ステージ=2,k−パス=3)で
ある。
User 2 changes the sub-path from '/ a / b' to '
When changed to / ', in step 603 of FIG. 6, old_subp
at = '/ a / b', new_subpat = '/' in step 604
Tot_dirs_old = 3 and tot_dirs_new = 1 are set, and in step 605, tot_dirs_old = 3 and tot_dirs_new = 1 are compared. In step 608, reduce = TRUE, subpat = '/
a / b ′, j = 2, and in step 612
After setting tot_dirs = 3, the process proceeds to step 801 in FIG. 8 via step 701 in FIG. 7. In steps 801 to 807 of FIG. 8, '/ a / b'
And the SPRC value of '/ a' is decremented by 1, j = 4, and the process ends. The parameter value in this state is (sub path = '/ a / b', m-stage = 2, k-path = 3).

【0084】[0084]

【表11】 [Table 11]

【0085】表12は、引続き(4)に対しm−ステー
ジ処理部の処理が行われた後の状態を示すものである。
ユーザ2がmーステージ値を3から0に変更した場合、
図9のステップ903でold_m_stage=3、new_m_stage=
0に設定され、ステップ904で比較される。old_m_st
age>new_m_stageであるからステップ909でhops_to_
reduce=3、tot_dirs=5に設定され図13に示すステッ
プ1301に処理が移る。
Table 12 shows the state after the processing of the m-stage processing unit is continued for (4).
If user 2 changes the m-stage value from 3 to 0,
In step 903 of FIG. 9, old_m_stage = 3, new_m_stage =
It is set to 0 and compared in step 904. old_m_st
age> new_m_stage, so in step 909 hops_to_
After setting reduce = 3 and tot_dirs = 5, the process moves to step 1301 shown in FIG.

【0086】図13のステップ1302からステップ1
306のループにおいて、j=3に対応するディレクト
リ’/a/b’のMSRCが0より大きくないことから
ステップ1304から処理がステップ1307に移り、
j=2となる。次の処理において’/a’のMSRCの
値が1減じられ、ステップ1313を介して処理が終了
する。
Steps 1302 to 1 in FIG. 13
In the loop of 306, since the MSRC of the directory '/ a / b' corresponding to j = 3 is not larger than 0, the process proceeds from step 1304 to step 1307,
j = 2. In the next process, the MSRC value of '/ a' is decremented by 1, and the process ends via step 1313.

【0087】この状態のパラメータ値は(サブパス=’
/a/b’,m−ステージ=2,k−パス=3)であ
る。
The parameter value in this state is (subpath = '
/ A / b ', m-stage = 2, k-pass = 3).

【0088】[0088]

【表12】 [Table 12]

【0089】表13は、引続き(4)に対しk−パス設
定部の処理が行われた後の状態を示すものである。ユー
ザ2がk−パスの値を3から0に変更した場合、図14
のステップ1403でold_k_path=3、new_k_path=
0、k_path=0に設定され、ステップ1405でold_k_p
athとnew_k_pathが比較される。old_k_path>new_k_pat
hであるから、ステップ1407でpath_to_reduce=3、
reduce=TRUE、ステップ1414でk_path=1、tot_
dirs=5、ステップ1415でi=1、node(i)=ノー
ド1,total(i)=1、j=2に設定され図15のステッ
プ1501からステップ1512で、ノード1に存在す
る2番目のディレクトリから全てのでディレクトリに対
しそのKPRCの値から1を減じ、ノード1に存在しな
い最初のディレクトリが検索される(1502)。結果
としてノード1上の’/a’、’/a/b’のKPRC
の値が0に減じられ、全てのRC=0となるのでこれら
のディレクトリはノード1から削除される(150
9)。また、最初のディレクトリとして’/a/b/
c’が検索される。
Table 13 shows the state after the process of the k-path setting unit is continued for (4). If user 2 changes the value of k-pass from 3 to 0, FIG.
Step 1403, old_k_path = 3, new_k_path =
0, k_path = 0 is set, and old_k_p is set in step 1405.
ath and new_k_path are compared. old_k_path> new_k_pat
Since it is h, in step 1407 path_to_reduce = 3,
reduce = TRUE, in step 1414 k_path = 1, tot_
dirs = 5, i = 1, node (i) = node 1, total (i) = 1, j = 2 in step 1415 are set, and in steps 1501 to 1512 of FIG. From the directory, subtract 1 from the value of its KPRC for all directories and the first directory that does not exist in node 1 is searched (1502). As a result, KPRC of '/ a' and '/ a / b' on node 1
These directories are deleted from node 1 since the value of is reduced to 0 and all RC = 0 (150).
9). Also, as the first directory, '/ a / b /
c'is searched.

【0090】次に図16のステップ1601で’/a/
b’と’/a/b/c’間のtotal_path=3を計算した
後、ステップ1603を介して図17に示すステップ1
701に移る。node(i)=ユーザノードであるから処理
はステップ1708に移り、ステップ1708からステ
ップ1712のループで、ノード3の’/a/b/c’
のKPRCの値が1つ減じられる。このとき全てのRC
=0となるのでステップ1711でディレクトリ’/a
/b/c’がノード3から削除される。次にtotal_path
=2、total(j)=2が計算され、1708を介して図1
6のステップ1610に移る。ここで、i=4、total
(i)=2、node(i)=ノード2、j=5である。ステップ
1631ではjで特定されるディレクトリ’/a/b/
c/d’はノード5だけに存在するためtotal(j)=1と
なる。ステップ1601でtotal_path=2が計算された
後、ステップ1603を介して再び処理が図17に示す
ステップ1701に移る。この時、ステップ1701は
No,ステップ1702はYesであるから、ステップ
1703でノード4のディレクトリ’/a/b/c’の
KPRCの値が1減じられる。その結果全てのRC=0
となるのでノード4からこのディレクトリが削除され
る。その後ステップ1706でtotal_path=1、total
(i)=1に設定される。次にステップ1702、ステッ
プ1708を介して図16のステップ610に移る。こ
こで、i=5、total(i)=1、node(i)=ノード4、j
=6であり、ステップ1611を介して処理が終了す
る。
Next, in step 1601 of FIG. 16, '/ a /
After calculating total_path = 3 between b'and '/ a / b / c', the step 1 shown in FIG.
Move to 701. Since node (i) = user node, the process proceeds to step 1708, and in the loop from step 1708 to step 1712, node 3 '/ a / b / c'
The value of KPRC of is reduced by one. At this time all RC
= 0, so in step 1711 the directory '/ a
/ B / c 'is deleted from node 3. Then total_path
= 2, total (j) = 2 is calculated, and FIG.
6 to step 1610. Where i = 4, total
(i) = 2, node (i) = node 2, j = 5. In step 1631, the directory specified by j '/ a / b /
Since c / d ′ exists only in the node 5, total (j) = 1. After total_path = 2 is calculated in step 1601, the process again moves to step 1701 shown in FIG. 17 via step 1603. At this time, since Step 1701 is No and Step 1702 is Yes, the KPRC value of the directory '/ a / b / c' of the node 4 is decremented by 1 in Step 1703. As a result, all RC = 0
Therefore, this directory is deleted from node 4. After that, in step 1706, total_path = 1, total
(i) = 1 is set. Next, the process proceeds to step 610 in FIG. 16 via steps 1702 and 1708. Here, i = 5, total (i) = 1, node (i) = node 4, j
= 6, the process ends via step 1611.

【0091】この状態のパラメータ値は(サブパス=’
/’,m−ステージ=4,k−パス=1)でり初期状態
と等しくなる。
The parameter value in this state is (subpath = '
/ ', M-stage = 4, k-pass = 1), which is equal to the initial state.

【0092】[0092]

【表13】 [Table 13]

【0093】(1)から(4)の指示に従う状態からあ
きらかなように、本装置では無駄なディレクトリを残す
ことなく、ユーザの要求を動的に満たす適切なディレク
トリの複写を実現することができる。
As is apparent from the state in which the instructions (1) to (4) are followed, this apparatus can realize the copying of an appropriate directory dynamically satisfying the user's request without leaving a wasteful directory. .

【0094】なお、本実施例では各設定部の連結をサブ
パス設定部、m−ステージ設定部、k−パス設定部の順
で構成したが、本発明はこれの順番に限定されるもので
はなく、また、任意の組合せにおいて実現することも可
能である。
In the present embodiment, the connection of the setting units is made up of the sub-path setting unit, the m-stage setting unit, and the k-path setting unit in this order, but the present invention is not limited to this order. It is also possible to realize in any combination.

【0095】[0095]

【発明の効果】以上のように、本発明によれば分散ネッ
トワーク環境における名前解決において、従来技術にお
けるスケーラビリティと信頼性に関する問題を解決し、
スケーラビリティに富み、且つ、ユーザのニーズに従い
信頼性を動的に設定可能とする名前解決装置を提供する
ことが可能となる。
As described above, according to the present invention, in the name resolution in the distributed network environment, the problems concerning the scalability and the reliability in the prior art are solved,
It is possible to provide a name resolution device which is highly scalable and whose reliability can be dynamically set according to the needs of the user.

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

【図1】本発明の一実施例における名前解決装置のブロ
ック図
FIG. 1 is a block diagram of a name resolution device according to an embodiment of the present invention.

【図2】サブパス’a/b’を満たすノード1のディレ
クトリ図
FIG. 2 is a directory diagram of node 1 that satisfies subpath'a / b '.

【図3】m−ステージ2を満たすディレクトリの配置図FIG. 3 is a layout diagram of directories satisfying m-stage 2.

【図4】(a)k−パス2のディレクトリの配置図 (b)k−パス3のディレクトリの配置図4A is a layout diagram of a directory of k-path 2; FIG. 4B is a layout diagram of a directory of k-path 3;

【図5】本発明の一実施例において用いるディレクトリ
の概略図
FIG. 5 is a schematic diagram of a directory used in an embodiment of the present invention.

【図6】本発明の一実施例におけるサブパス設定部の処
理を示すフローチャート
FIG. 6 is a flowchart showing the processing of the sub-path setting unit in the embodiment of the present invention.

【図7】本発明の一実施例におけるサブパス設定部の処
理を示すフローチャート
FIG. 7 is a flowchart showing the processing of the sub-path setting unit in the embodiment of the present invention.

【図8】本発明の一実施例におけるサブパス設定部の処
理を示すフローチャート
FIG. 8 is a flowchart showing a process of a sub-path setting unit in the embodiment of the present invention.

【図9】本発明の一実施例におけるm−ステージ設定部
の処理を示すフローチャート
FIG. 9 is a flowchart showing the processing of the m-stage setting unit in the embodiment of the present invention.

【図10】本発明の一実施例におけるm−ステージ設定
部の処理を示すフローチャート
FIG. 10 is a flowchart showing the processing of the m-stage setting unit in the embodiment of the present invention.

【図11】本発明の一実施例におけるm−ステージ設定
部の処理を示すフローチャート
FIG. 11 is a flowchart showing the processing of the m-stage setting unit in the embodiment of the present invention.

【図12】本発明の一実施例におけるm−ステージ設定
部の処理を示すフローチャート
FIG. 12 is a flowchart showing the processing of the m-stage setting unit in the embodiment of the present invention.

【図13】本発明の一実施例におけるm−ステージ設定
部の処理を示すフローチャート
FIG. 13 is a flowchart showing the processing of the m-stage setting unit in the embodiment of the present invention.

【図14】本発明の一実施例におけるk−パス設定部の
処理を示すフローチャート
FIG. 14 is a flowchart showing the processing of the k-path setting unit in the embodiment of the present invention.

【図15】本発明の一実施例におけるk−パス設定部の
処理を示すフローチャート
FIG. 15 is a flowchart showing the processing of the k-path setting unit in the embodiment of the present invention.

【図16】本発明の一実施例におけるk−パス設定部の
処理を示すフローチャート
FIG. 16 is a flowchart showing the processing of the k-path setting unit in the embodiment of the present invention.

【図17】本発明の一実施例におけるk−パス設定部の
処理を示すフローチャート
FIG. 17 is a flowchart showing the processing of the k-path setting unit in the embodiment of the present invention.

【図18】分散システムの概略図FIG. 18 is a schematic diagram of a distributed system.

【図19】従来技術における単一サーバーによる名前解
決手法を示す概念図
FIG. 19 is a conceptual diagram showing a name resolution method using a single server in the related art.

【図20】従来技術における分散一サーバーによる名前
解決手法を示す概念図
FIG. 20 is a conceptual diagram showing a name resolution method using a distributed single server in the related art.

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

1 ノード 11 パラメータ設定手段 12 レプリカ設定手段 13 サブパス設定部 14 m−ステージ設定部 15 k−パス設定部 201 ノード1 31 ノード1 32 ノード99 33 ノード8 50 信頼性フィールド 51 レファレンスカウントフィールド 181 ノード 182 ノード 183 ノード 184 ネットワーク 191 ネームサーバ 192 ノード 193 ディレクトリ 194 ノード 195 ノード 196 ノード 197 ネットワーク 201 ディレクトリのサブセット 207 ネームサーバ 208 ネームサーバ 209 ネームサーバ 2010 プロセス 2011 プロセス 2012 プロセス 1 node 11 parameter setting unit 12 replica setting unit 13 sub-path setting unit 14 m-stage setting unit 15 k-path setting unit 201 node 1 31 node 1 32 node 99 33 node 8 50 reliability field 51 reference count field 181 node 182 node 183 node 184 network 191 name server 192 node 193 directory 194 node 195 node 196 node 197 network 201 directory subset 207 name server 208 name server 209 name server 2010 process 2011 process 2012 process

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】他のノードに問い合わせることなく自ノー
ドで解決するパス名であるサブパスを指定するパラメー
タ設定手段と、各ディレクトリに設けられたディレクト
リが複製かどうかの情報を記憶する信頼性領域と前記パ
ラメータ設定手段により指定された条件を満たすために
ディレクトリを必要とした回数を格納する参照領域に基
づき前記パラメータ設定手段により指定されたサブパス
に従いディレクトリの管理を行うサブパス設定手段を備
えた名前解決装置。
Claim: What is claimed is: 1. Parameter setting means for designating a sub-path which is a path name to be resolved at its own node without inquiring other nodes, and a reliability area for storing information on whether or not a directory provided in each directory is a copy. A name resolution device having subpath setting means for managing a directory according to a subpath specified by the parameter setting means based on a reference area for storing the number of times the directory is required to satisfy the condition specified by the parameter setting means. .
【請求項2】パス名解決の経路の中で必要となる他のノ
ードへの最大移行回数を指定するパラメータ設定手段
と、各ディレクトリに設けられたディレクトリが複製か
どうかの情報を記憶する信頼性領域と前記パラメータ設
定手段により指定された条件を満たすためにディレクト
リを必要とした回数を格納する参照領域に基づき前記パ
ラメータ設定手段により指定された最大移行回数に従い
ディレクトリの管理を行うステージ設定手段を備えた名
前解決装置。
2. Parameter setting means for designating a maximum number of times of migration to another node required in a path for path name resolution, and reliability of storing information on whether or not a directory provided in each directory is a copy. Stage setting means for managing the directory according to the maximum number of transitions designated by the parameter setting means on the basis of a region and a reference area for storing the number of times the directory is required to satisfy the condition designated by the parameter setting means Name resolution device.
【請求項3】パス名解決の経路の中で末端ノードを除く
任意の2ノード間でとり得る経路の最低数を指定するパ
ラメータ設定手段と、各ディレクトリに設けられたディ
レクトリが複製かどうかの情報を記憶する信頼性領域と
前記パラメータ設定手段により指定された定義を満たす
ために必要とされた回数を格納する参照領域に基づきシ
ステム中の全ノード数と前記パラメータ設定手段により
指定された経路の最低数に従いディレクトリの管理を行
うパス設定手段を備えた名前解決装置。
3. Parameter setting means for designating the minimum number of paths that can be taken between any two nodes other than terminal nodes among paths for path name resolution, and information as to whether or not the directory provided in each directory is a copy. Based on a reliability area for storing the number of times required to satisfy the definition specified by the parameter setting means, and a minimum number of nodes in the system and a route specified by the parameter setting means based on the reference area. A name resolution device having path setting means for managing directories according to the number.
【請求項4】 他のノードに問い合わせることなく自分
のノードで解決できるパスからなるサブパスと、パス名
解決の経路の中で必要となる他のノードへの最大移行回
数と、パス名解決の経路の中で末端ノードを除く任意の
2ノード間でとり得る経路の最低数とを指定するパラメ
ータ設定手段と、各ディレクトリに設けられたディレク
トリが複製かどうかの情報を記憶する信頼性領域と前記
パラメータ設定手段により指定された定義を満たすため
に必要とされた回数を格納する参照領域に基づき前記パ
ラメータ設定手段により指定されたサブパスに従いディ
レクトリの管理を行うサブパス設定手段と、前記信頼性
領域と前記参照領域とに基づき前記パラメータ設定手段
により指定された最大移行回数に従いディレクトリの管
理を行うステージ設定手段と、前記信頼性領域と前記参
照領域に記憶された情報に基づきシステム中の全ノード
数と前記経路の最低数に従いディレクトリの管理を行う
パス設定手段とを備えたことを特徴とする特徴とする名
前管理装置。
4. A sub-path consisting of paths that can be resolved by one's own node without inquiring about other nodes, the maximum number of transitions to other nodes required in the path for path name resolution, and a path for path name resolution. Parameter setting means for designating the minimum number of routes that can be taken between any two nodes excluding the end node, a reliability area for storing information on whether or not a directory provided in each directory is a duplicate, and the parameter. A subpath setting means for managing a directory according to a subpath specified by the parameter setting means based on a reference area storing the number of times required to satisfy the definition specified by the setting means; the reliability area and the reference; A stage setting for managing the directory according to the maximum number of migrations designated by the parameter setting means based on the area Determining means, and path setting means for managing a directory according to the total number of nodes in the system and the minimum number of paths based on the information stored in the reliability area and the reference area. Name management device.
JP4147236A 1992-06-08 1992-06-08 Name resolution device Expired - Lifetime JPH07122861B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4147236A JPH07122861B2 (en) 1992-06-08 1992-06-08 Name resolution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4147236A JPH07122861B2 (en) 1992-06-08 1992-06-08 Name resolution device

Publications (2)

Publication Number Publication Date
JPH05342134A JPH05342134A (en) 1993-12-24
JPH07122861B2 true JPH07122861B2 (en) 1995-12-25

Family

ID=15425656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4147236A Expired - Lifetime JPH07122861B2 (en) 1992-06-08 1992-06-08 Name resolution device

Country Status (1)

Country Link
JP (1) JPH07122861B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3484779B2 (en) * 1994-10-12 2004-01-06 富士ゼロックス株式会社 Name service method and name service method
US5706501A (en) * 1995-02-23 1998-01-06 Fuji Xerox Co., Ltd. Apparatus and method for managing resources in a network combining operations with name resolution functions
JP3738787B2 (en) * 1995-10-19 2006-01-25 富士ゼロックス株式会社 Resource management apparatus and resource management method

Also Published As

Publication number Publication date
JPH05342134A (en) 1993-12-24

Similar Documents

Publication Publication Date Title
US5940830A (en) Distributed document management system
JP4255373B2 (en) Management and synchronization application for network file systems
US5983241A (en) File management system and file management method
JP3526474B2 (en) Distribution information management system in network
US20020049764A1 (en) Distributed synchronization of databases
US6970975B2 (en) Method for efficient caching and enumerating objects in distributed storage systems
EP1422901A1 (en) Client driven synchronization of file and folder content in web publishing
JP2008176813A (en) Method and device for data processing
JPH06103484B2 (en) Method and data processing system for creating and maintaining multiple version documents of a document
EP0617373A2 (en) A method and system for parallel, system managed storage for objects on multiple servers
US6457011B1 (en) Method of updating a shared database in a computer network
CN109871233A (en) A kind of cloud programming file management method and device, equipment, storage medium
JP4136267B2 (en) Document management method, storage medium storing program for implementing the method, and document management apparatus
CN113590543A (en) Method, apparatus and computer program product for information processing
Chazelle A faster deterministic algorithm for minimum spanning trees
US5299122A (en) Table manipulations for enterprise specific search terms
JPH07122861B2 (en) Name resolution device
CN114936254A (en) Food safety big data sharing management method and system under cloud chain fusion mechanism
JPH10149305A (en) Knowledge filing device
JPH07271569A (en) Program specification preparation system
JP2011203939A (en) File management device, file management method, and file management program
JPH0581102A (en) System for controlling table
JP4104325B2 (en) Document management apparatus, document management program, and recording medium
JPH0687225B2 (en) File service request processing method and apparatus
JP4106601B2 (en) Update information generation system and update information generation program for directory information

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091225

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091225

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101225

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111225

Year of fee payment: 16

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111225

Year of fee payment: 16

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121225

Year of fee payment: 17

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121225

Year of fee payment: 17