JPH086839A - Distributed file system - Google Patents

Distributed file system

Info

Publication number
JPH086839A
JPH086839A JP6160580A JP16058094A JPH086839A JP H086839 A JPH086839 A JP H086839A JP 6160580 A JP6160580 A JP 6160580A JP 16058094 A JP16058094 A JP 16058094A JP H086839 A JPH086839 A JP H086839A
Authority
JP
Japan
Prior art keywords
mount
request
share
server
file
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
JP6160580A
Other languages
Japanese (ja)
Inventor
Shunsuke Kisaki
俊介 木佐木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP6160580A priority Critical patent/JPH086839A/en
Publication of JPH086839A publication Critical patent/JPH086839A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To grant the authority of amounting request, given only to a privileged user in the NFS (distributed file system) because of the security, even to a general user while holding the security. CONSTITUTION:A mounting right confirming means 21 refers to a password file 23 and a share management file 24 and confirms whether or not a server 20 has the right to mount. A share execution means 22 allows sharing when the right to mount is given. A mounting right confirming means 12 confirms whether or not a client 10 has the right to mount and writes information showing that mounting by a mounting means 13 is successful to a mounting state description file 17 when the mounting is successful. A mounting resetting right confirming means 15 refers to the mounting state description file 17 and confirms whether or not there is the right to reset moldnting. A mounting resetting means 16 resets the mounting.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算機がネット
ワークによって接続された分散処理システムに関し、特
に各計算機が所有するディスク資源(ディスク資源上に
設けられるファイル)を共有するために採用される分散
ファイルシステムに関する。なお、本発明の分散ファイ
ルシステムは、UNIXオペレーティングシステムが採
用されている分散処理システムで実現されることを前提
としている(「UNIXオペレーティングシステム」
は、UNIX System Laboratorie
s,Inc.によって開発され、ライセンスされてい
る)。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed processing system in which a plurality of computers are connected by a network, and is particularly adopted for sharing disk resources (files provided on the disk resources) owned by each computer. Distributed file system. The distributed file system of the present invention is premised on being realized by a distributed processing system adopting the UNIX operating system (“UNIX operating system”).
Is UNIX System Laboratories
s, Inc. Developed and licensed by).

【0002】[0002]

【従来の技術】UNIXオペレーティングシステムにお
いては、ネットワーク上のディスク資源の共有および分
散を行う機能を実現する分散ファイルシステムとして、
RFS(Remote File System)およ
びNFS(Network File System)
等が提供されている。これらの分散ファイルシステム
は、ネットワーク上に分散して存在するディスク資源を
各計算機におけるローカルのディスク資源であるように
見せる技術である。本発明の分散ファイルシステムは、
このうち、NFSが使用できる環境に適用されることを
想定している。
2. Description of the Related Art A UNIX operating system is a distributed file system that realizes a function of sharing and distributing disk resources on a network.
RFS (Remote File System) and NFS (Network File System)
Etc. are provided. These distributed file systems are technologies for making disk resources distributed on the network appear to be local disk resources in each computer. The distributed file system of the present invention is
Of these, it is assumed that it will be applied to the environment where NFS can be used.

【0003】従来の分散ファイルシステム(NFS)で
は、セキュリティ上の理由により、リモートマウント
(NFSマウント)を実行するに際して以下のおよび
に示すような制限が設けられていた。なお、以下の説
明において、サーバとはリモートマウント先の計算機を
いい、クライアントとはリモートマウント元の計算機を
いう。また、以下の説明においては、リモートマウント
(本発明では、NFSマウントを意味する)を単に「マ
ウント」と表現する。
In the conventional distributed file system (NFS), for security reasons, the following restrictions (1) and (2) have been set when executing remote mount (NFS mount). In the following description, the server means a remote mount destination computer, and the client means a remote mount source computer. Further, in the following description, the remote mount (in the present invention, the NFS mount) is simply expressed as “mount”.

【0004】 マウントの前提として、サーバ側のマ
ウントポイント(マウントに係るディレクトリ)のシェ
ア(share。マウントの許可)が行われている必要
がある。ここで、マウントポイントに対するシェアの指
定が可能なユーザは、マウントポイントがどのディレク
トリであっても、当該サーバの特権ユーザに限定されて
いる。
As a precondition for mounting, it is necessary to share (share, mount permission) a mount point (directory related to mounting) on the server side. Here, the user who can specify the share for the mount point is limited to the privileged user of the server regardless of the directory of the mount point.

【0005】 クライアントにおいてマウント要求を
促すコマンドが発行され、当該コマンドに基づいてクラ
イアントからサーバにマウント要求が発行される。ここ
で、当該コマンドを発行できるのは、当該クライアント
の特権ユーザに限定されている。
The client issues a command requesting a mount request, and the client issues a mount request to the server based on the command. Here, the command can be issued only to the privileged user of the client.

【0006】一方、UNIXオペレーティングシステム
の発展および普及(UNIXオペレーティングシステム
が適用される電子計算機の発展および普及を含む)によ
り、一人の一般ユーザ(特権ユーザ以外のユーザ)が複
数の計算機にアカウント(パスワードファイルにおける
当該一般ユーザに関する登録)を持つようになり、一般
ユーザの個人的なディスク資源が複数の計算機に分散さ
れることが多くなった。したがって、一般ユーザであっ
ても、他の計算機における自己のディスク資源に関する
マウントを行いたいと考える場合が増している。
On the other hand, due to the development and popularization of the UNIX operating system (including the development and popularization of electronic computers to which the UNIX operating system is applied), one general user (user other than privileged user) has an account (password) for a plurality of computers. Registration of the general user in the file) has become common, and the personal disk resources of general users are often distributed to multiple computers. Therefore, even general users are more likely to want to mount their own disk resources in other computers.

【0007】しかし、上述のような制限の存在により、
一般ユーザは、サーバおよびクライアント両方の特権ユ
ーザにならない限り、自己の個人的なディスク資源であ
っても自由には他の計算機におけるディスク資源に関す
るマウントを行うことができなかった。
However, due to the existence of the above restrictions,
Unless a general user becomes a privileged user of both a server and a client, he / she cannot freely mount a disk resource on another computer even with his / her own disk resource.

【0008】[0008]

【発明が解決しようとする課題】上述した従来の分散フ
ァイルシステムでは、一般ユーザは自己の個人的なディ
スク資源であっても自由には他の計算機におけるディス
ク資源に関するマウントを行うことができないので、当
該一般ユーザの利便性および作業効率が悪くなるという
問題点があった。すなわち、具体的には、以下の〜
に示すような問題点が存在していた。
In the above-mentioned conventional distributed file system, a general user cannot freely mount a disk resource in another computer even if the user owns the disk resource. There has been a problem that the convenience and work efficiency of the general user are deteriorated. That is, specifically,
There was a problem as shown in.

【0009】 個人的なディスク資源をネットワーク
において転送することが困難である。
It is difficult to transfer personal disk resources in a network.

【0010】 一度マウントしてしまえば、ネットワ
ーク上の他の計算機にログインすることなく当該他の計
算機におけるディスク資源を使用することができる。し
かしながら、従来は、そのような便宜を享受することが
できない。
Once mounted, the disk resources of another computer on the network can be used without logging in to the other computer on the network. However, conventionally, such convenience cannot be enjoyed.

【0011】 個人的なディスク資源を分散して持つ
ことができないので、各一般ユーザが各計算機に同じフ
ァイルを持つ必要が生じ、分散処理システム全体におけ
るディスク資源の無駄が発生する。
Since personal disk resources cannot be distributed and held, each general user needs to have the same file in each computer, which results in waste of disk resources in the entire distributed processing system.

【0012】一方、無制限に一般ユーザに対してマウン
トを許可すると、セキュリティ上の観点から問題が生じ
るという欠点があった。
[0012] On the other hand, there is a drawback in that the mount is allowed to the general user without limitation, and a problem occurs from the viewpoint of security.

【0013】本発明の目的は、上述の点に鑑み、セキュ
リティを保持しつつ、一般ユーザが他の計算機における
当該一般ユーザの個人的なディスク資源を自由にマウン
トすることを可能にする(当該ディスク資源上のファイ
ルへのアクセスを容易にする)分散ファイルシステムを
提供することにある。
In view of the above points, an object of the present invention is to allow a general user to freely mount a personal disk resource of the general user on another computer while maintaining security (the disk. It is to provide a distributed file system that facilitates access to files on resources.

【0014】すなわち、本発明の目的は、NFSにおい
てセキュリティ上の理由により特権ユーザにのみ与えら
れていたマウント要求の権限を、特権ユーザ以外の一般
ユーザにも与えることを可能にする分散ファイルシステ
ムを提供することにある。
That is, an object of the present invention is to provide a distributed file system which makes it possible to give a general user other than a privileged user the authority of a mount request, which was given only to the privileged user for security reasons in NFS. To provide.

【0015】なお、UNIXオペレーティングシステム
に関する分散ファイルシステムについての従来技術とし
ては、「特開昭63−201864号公報(分散型デー
タ処理システム)」および「特開平1−287756号
公報(分散ファイルの起動方法)」が公表されている。
しかし、これらの従来技術は、デッドロックの解消(特
開昭63−201864号公報)やファイルの起動の容
易化(特開平1−287756号公報)を図る技術であ
り、セキュリティを保持した上で一般ユーザによるマウ
ント(先にも述べたように、ここではNFSマウントを
意味する)を可能にすることを目的とする本発明とは構
成等を異にするものである。
The prior art of the distributed file system related to the UNIX operating system is disclosed in Japanese Patent Application Laid-Open No. 63-201864 (Distributed Data Processing System) and Japanese Patent Application Laid-Open No. 1-287756 (Activation of Distributed File). Method) ”has been published.
However, these conventional techniques are techniques for eliminating deadlock (Japanese Patent Application Laid-Open No. 63-201864) and facilitating file startup (Japanese Patent Application Laid-Open No. 1-287756), and while maintaining security. The configuration and the like are different from those of the present invention intended to enable mounting by a general user (here, it means the NFS mount as described above).

【0016】[0016]

【課題を解決するための手段】本発明の分散ファイルシ
ステムは、NFSが使用できる環境の分散処理システム
において、サーバ側にディスク資源を所有する一般ユー
ザのアカウントを管理するサーバ側のパスワードファイ
ルと、各一般ユーザ毎に設けられており、当該一般ユー
ザについてのシェアに関する情報を管理するサーバ側の
シェア管理ファイルと、各一般ユーザに関するマウント
状況を示す情報を保持するクライアント側のマウント状
況記述ファイルと、一般ユーザマウント要求コマンドに
基づいてサーバ側マウント要求を発行するクライアント
側のマウント要求発行手段と、前記パスワードファイル
および前記シェア管理ファイルを参照して前記マウント
要求発行手段により発行されたサーバ側マウント要求に
関するサーバ側でのマウント権の有無を確認し、マウン
ト権があると判定した場合にシェア要求を発行するサー
バ側のマウント権確認手段と、このサーバ側のマウント
権確認手段により発行されたシェア要求に基づいてシェ
アの実行を行うサーバ側のシェア実行手段と、このシェ
ア実行手段によるシェアの実行が成功した後に前記サー
バ側のマウント権確認手段から発行されるクライアント
側マウント要求を受け、当該クライアント側マウント要
求に関するクライアント側でのマウント権の有無を確認
し、マウント権があると判定した場合にマウント実行要
求を発行し、当該マウント実行要求に基づくマウントの
実行が成功した場合にその旨を示す情報を前記マウント
状況記述ファイルに書き出すクライアント側のマウント
権確認手段と、このクライアント側のマウント権確認手
段により発行されたマウント実行要求に基づいてマウン
トの実行を行うクライアント側のマウント実行手段と、
一般ユーザマウント解除要求コマンドに基づいてマウン
ト解除要求を発行するクライアント側のマウント解除要
求発行手段と、前記マウント状況記述ファイルを参照し
て前記マウント解除要求発行手段により発行されたマウ
ント解除要求に関するマウント解除権の有無を確認し、
マウント解除権があると判定した場合にマウント解除実
行要求を発行するクライアント側のマウント解除権確認
手段と、このマウント解除権確認手段により発行された
マウント解除実行要求に基づいてマウントの解除を行う
クライアント側のマウント解除手段とを有する。
DISCLOSURE OF THE INVENTION A distributed file system of the present invention is, in a distributed processing system in an environment where NFS can be used, a server-side password file for managing an account of a general user who owns disk resources on the server side, A server-side share management file that is provided for each general user and that manages information about shares for the general user, and a client-side mount status description file that holds information indicating the mount status for each general user, The present invention relates to a client side mount request issuing means for issuing a server side mount request based on a general user mount request command, and a server side mount request issued by the mount request issuing means with reference to the password file and the share management file. On the server side The server side mount right confirmation means that issues the share request when the presence or absence of the mount right is confirmed, and the share request is issued based on the share request issued by this server side mount right confirmation means. A server-side share execution unit that executes the execution, and a client-side mount request issued by the server-side mount right confirmation unit after successful execution of the share by the share execution unit, and a client side related to the client-side mount request If the mount right is confirmed, the mount execution request is issued when it is determined that the mount right is present, and when the mount execution based on the mount execution request is successful, the information indicating that is displayed is the mount status description. Mount right confirmation means on the client side that writes to a file and this client side And client-side mount execution means for performing the execution of the mount on the basis of the issued mounted execution request by mounting right confirmation means,
Unmount request issuing means on the client side that issues an unmount request based on a general user unmount request command, and unmount relating to the unmount request issued by the unmount request issuing means by referring to the mount status description file Check for the right,
Unmount right confirmation means on the client side that issues an unmount execution request when it is determined that there is unmount authority, and a client that releases the mount based on the unmount execution request issued by this unmount right confirmation means Side unmounting means.

【0017】[0017]

【作用】本発明の分散ファイルシステムでは、パスワー
ドファイルがサーバ側にディスク資源を所有する一般ユ
ーザのアカウントを管理し、各一般ユーザ毎に設けられ
ているシェア管理ファイルが当該一般ユーザについての
シェアに関する情報を管理し、マウント状況記述ファイ
ルが各一般ユーザに関するマウント状況を示す情報を保
持し、マウント要求発行手段が一般ユーザマウント要求
コマンドに基づいてサーバ側マウント要求を発行し、サ
ーバ側のマウント権確認手段がパスワードファイルおよ
びシェア管理ファイルを参照してマウント要求発行手段
により発行されたサーバ側マウント要求に関するサーバ
側でのマウント権の有無を確認しマウント権があると判
定した場合にシェア要求を発行し、シェア実行手段がサ
ーバ側のマウント権確認手段により発行されたシェア要
求に基づいてシェアの実行を行い、クライアント側のマ
ウント権確認手段がシェア実行手段によるシェアの実行
が成功した後にサーバ側のマウント権確認手段から発行
されるクライアント側マウント要求を受け当該クライア
ント側マウント要求に関するクライアント側でのマウン
ト権の有無を確認しマウント権があると判定した場合に
マウント実行要求を発行し当該マウント実行要求に基づ
くマウントの実行が成功した場合にその旨を示す情報を
マウント状況記述ファイルに書き出し、マウント実行手
段がクライアント側のマウント権確認手段により発行さ
れたマウント実行要求に基づいてマウントの実行を行
い、マウント解除要求発行手段が一般ユーザマウント解
除要求コマンドに基づいてマウント解除要求を発行し、
マウント解除権確認手段がマウント状況記述ファイルを
参照してマウント解除要求発行手段により発行されたマ
ウント解除要求に関するマウント解除権の有無を確認し
マウント解除権があると判定した場合にマウント解除実
行要求を発行し、マウント解除手段がマウント解除権確
認手段により発行されたマウント解除実行要求に基づい
てマウントの解除を行う。
In the distributed file system of the present invention, the password file manages the account of the general user who owns the disk resource on the server side, and the share management file provided for each general user relates to the share for the general user. It manages information, the mount status description file holds information indicating the mount status for each general user, and the mount request issuing means issues a mount request on the server side based on the general user mount request command, and confirms the mount right on the server side. The means refers to the password file and the share management file to check the presence or absence of the mount right on the server regarding the server side mount request issued by the mount request issuing means, and issues a share request when it is determined that there is mount right. , Share execution means is mounted on the server side The share is executed based on the share request issued by the confirming means, and the mount right confirming means on the client side issues the mount on the client side issued from the mount right confirming means on the server side after the share executing means succeeds in executing the share. When a request is received and the client side mount request is checked for the mount right on the client side and it is determined that there is mount right, a mount execution request is issued and if the mount execution based on the mount execution request is successful The information indicating that is written to the mount status description file, the mount execution means executes the mount based on the mount execution request issued by the mount right confirmation means on the client side, and the mount release request issuing means releases the general user mount. Mount solution based on request command Issued the request,
The unmounting right confirmation means refers to the mount status description file to check whether or not there is the unmounting right related to the unmounting request issued by the unmounting request issuing means. Issued and the mount release means releases the mount based on the mount release execution request issued by the mount release right confirmation means.

【0018】[0018]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0019】図1は、本発明の分散ファイルシステムの
一実施例の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the distributed file system of the present invention.

【0020】本実施例の分散ファイルシステムは、複数
の計算機(クライアント10およびサーバ20を含む)
がネットワークによって接続されている分散処理システ
ム(UNIXオペレーティングシステムが採用される分
散処理システム)において実現され、クライアント10
と、サーバ20とを含んで構成されている。なお、当該
ネットワークに接続されている任意の計算機(ディスク
資源を有する計算機)は、クライアント10にもサーバ
20にもなりうる。
The distributed file system of this embodiment includes a plurality of computers (including a client 10 and a server 20).
Are implemented in a distributed processing system (distributed processing system adopting UNIX operating system) connected by a network, and the client 10
And a server 20. It should be noted that any computer (computer having disk resources) connected to the network can be the client 10 or the server 20.

【0021】クライアント10は、マウント要求発行手
段11と、マウント権確認手段12と、マウント実行手
段13と、マウント解除要求発行手段14と、マウント
解除権確認手段15と、マウント解除手段16と、マウ
ント状況記述ファイル17(/tmp/.usrmnt
tabファイル)とを含んで構成されている。なお、マ
ウント権確認手段12とマウント解除権確認手段15と
はクライアント10側のusrmntd(user m
ount daemonを意味する)によって実現さ
れ、マウント実行手段13とマウント解除手段16とは
クライアント10側のmountd(mount da
emonを意味する)によって実現される(usrmn
tdは本発明に特有のデーモンであり、mountdは
通常のNFSにおける既存のデーモンである)。
The client 10 has a mount request issuing means 11, a mount right confirming means 12, a mount executing means 13, a mount release request issuing means 14, a mount release right confirming means 15, a mount releasing means 16, and a mount. Situation description file 17 (/tmp/.usrmnt
and a tab file). It should be noted that the mount right confirmation means 12 and the mount release right confirmation means 15 are usrrmntd (user m) on the client 10 side.
mount mount means 13 and mount release means 16 are mounted on the client 10 side by mountd (mount damon).
(meaning emon) is realized (usrmn
(td is a daemon specific to the present invention, mountd is an existing daemon in normal NFS).

【0022】サーバ20は、マウント権確認手段21
と、シェア実行手段22と、パスワードファイル23
(/etc/passwdファイル)と、シェア管理フ
ァイル24($HOME/sharetabファイル)
とを含んで構成されている。なお、マウント権確認手段
21およびシェア実行手段22はサーバ20側のusr
mntdによって実現される(usrmntdは本発明
に特有のデーモンである)。
The server 20 has a mount right confirmation means 21.
Share execution means 22 and password file 23
(/ Etc / passwd file) and share management file 24 ($ HOME / sharetab file)
It is configured to include and. The mount right confirmation means 21 and the share execution means 22 are usr on the server 20 side.
It is implemented by mntd (usrmntd is a daemon unique to the present invention).

【0023】図2は、本実施例の分散ファイルシステム
におけるマウント実行時の処理を示す流れ図である。こ
の処理は、サーバ側マウント要求発行ステップ201
と、サーバ側マウントポイント検査ステップ202と、
パスワードファイル読出しステップ203と、ユーザ名
等検査ステップ204と、ホームディレクトリ認識ステ
ップ205と、シェア管理ファイル読出しステップ20
6と、シェア要求可否検査ステップ207と、シェア要
求発行ステップ208と、シェア実行ステップ209
と、クライアント側マウント要求発行ステップ210
と、クライアント側マウントポイント検査ステップ21
1と、マウント実行要求発行ステップ212と、マウン
ト実行ステップ213と、マウント成功/失敗検査ステ
ップ214と、マウント状況記述ファイル書出しステッ
プ215と、マウント成功通知ステップ216と、アン
シェア要求可否検査ステップ217と、、アンシェア要
求発行ステップ218と、アンシェア実行ステップ21
9と、マウント終了通知ステップ220と、マウント実
行処理終了ステップ221と、サーバ側失敗通知ステッ
プ222と、クライアント側失敗通知ステップ223
と、マウント実行処理終了ステップ224とからなる。
FIG. 2 is a flow chart showing the processing when the mount is executed in the distributed file system of this embodiment. This process is performed by the server side mount request issuing step 201.
And a server side mount point inspection step 202,
Password file reading step 203, user name checking step 204, home directory recognition step 205, share management file reading step 20
6, share request acceptance / rejection checking step 207, share request issuing step 208, and share executing step 209
And client side mount request issuing step 210
And client side mount point inspection step 21
1, a mount execution request issuing step 212, a mount executing step 213, a mount success / failure checking step 214, a mount status description file writing step 215, a mount success notifying step 216, and an unshare request availability checking step 217, , Unshare request issue step 218 and unshare execution step 21
9, a mount end notification step 220, a mount execution processing end step 221, a server side failure notification step 222, and a client side failure notification step 223.
And a mount execution process end step 224.

【0024】図3は、本実施例の分散ファイルシステム
におけるマウント解除時の処理を示す流れ図である。こ
の処理は、マウント解除要求発行ステップ301と、マ
ウント状況記述ファイル読出しステップ302と、該当
エントリ有無検査ステップ303と、該当エントリ不存
在通知ステップ304と、ユーザ一致検査ステップ30
5と、ユーザ不一致通知ステップ306と、マウント解
除実行要求発行ステップ307と、マウント解除ステッ
プ308と、マウント解除成功/失敗検査ステップ30
9と、マウント状況記述ファイルエントリ削除ステップ
310と、マウント解除成功/失敗情報保持ステップ3
11と、マウント解除成功/失敗情報通知ステップ31
2と、マウント解除処理終了ステップ313と、マウン
ト解除処理終了ステップ314とからなる。
FIG. 3 is a flow chart showing the processing at the time of unmounting in the distributed file system of this embodiment. This process is performed by issuing an unmounting request step 301, a mount status description file reading step 302, a corresponding entry presence / absence checking step 303, a corresponding entry absence notification step 304, and a user matching checking step 30.
5, a user mismatch notification step 306, a mount release execution request issuing step 307, a mount release step 308, and a mount release success / failure check step 30.
9, a mount status description file entry deletion step 310, and a mount release success / failure information holding step 3
11 and dismount success / failure information notification step 31
2, a dismounting process end step 313, and a dismounting process end step 314.

【0025】図4は、シェア管理ファイル24のフォー
マットを示す図である。シェア管理ファイル24は、シ
ェアを行うディレクトリ(シェア対象ディレクトリ)毎
にエントリを有している。各エントリは、シェア対象デ
ィレクトリと、当該シェアに基づいてマウントを行う際
のマウント元の計算機(クライアント)となりうる計算
機のホスト名を示すマウント計算機ホスト名と(この項
目には複数の計算機のホスト名を記述できる)、アクセ
ス権(当該ディレクトリに対するマウントの際のアクセ
ス権と整合する情報であり、「読込みのみ可」を“r
o”で示し、「読み書き可」を“rw”で示す情報)か
らなる。
FIG. 4 is a diagram showing the format of the share management file 24. The share management file 24 has an entry for each directory (share target directory) for sharing. Each entry is a share target directory, a mount computer host name that indicates the host name of a computer that can be a mount source computer (client) when mounting based on the share, and (the host name of multiple computers in this item. Access right (information that matches the access right when mounting the directory, and "read only" is "r"
information indicated by "o" and "readable and writable" by "rw").

【0026】図5は、パスワードファイル23のフォー
マットを示す図である。パスワードファイルは、UNI
Xオペレーティングシステムが採用されている分散処理
システムにおいて従来から存在するファイルであり、ユ
ーザ名と、パスワードと、ユーザid(identif
ication)と、グループidと、コメントと、ホ
ームディレクトリと、ログインシェルとからなるエント
リ(当該エントリに対応する一般ユーザのアカウント)
を有している。なお、本実施例ひいては本発明では、こ
のエントリ中のユーザ名,ユーザidおよびグループi
dが使用される(セキュリティ保持の向上を図るために
パスワードの情報を使用することも可能である)。
FIG. 5 is a diagram showing the format of the password file 23. Password file is UNI
It is a file that has existed conventionally in a distributed processing system that employs the X operating system, and includes a user name, password, and user id (identif
entry), group id, comment, home directory, and login shell (general user account corresponding to the entry)
have. In the present embodiment and the present invention, the user name, user id and group i in this entry are
d is used (password information can also be used to improve security retention).

【0027】図6は、マウント状況記述ファイル17の
フォーマットを示す図である。マウント状況記述ファイ
ル17は、usrmntコマンド(後述参照)を発行し
た一般ユーザを識別するための「ユーザ名」と、当該u
srmntコマンドに基づくマウント要求中のクライア
ント側マウントポイントを示す「マウントポイント」と
からなるエントリを有している。
FIG. 6 is a diagram showing the format of the mount status description file 17. The mount status description file 17 includes a “user name” for identifying a general user who has issued the usrmnt command (see below) and the u
It has an entry consisting of “mount point” indicating the client side mount point in the mount request based on the srmnt command.

【0028】次に、このように構成された本実施例の分
散ファイルシステムの動作について説明する。なお、本
実施例の分散ファイルシステムにおけるマウントに関す
る基本的なプロトコルは、通常のNFSにおけるプロト
コルに準ずるものとする。
Next, the operation of the distributed file system of this embodiment having the above configuration will be described. The basic protocol for mounting in the distributed file system according to this embodiment is based on the protocol in normal NFS.

【0029】第1に、準備処理時の動作について説明す
る。
First, the operation during the preparation process will be described.

【0030】まず、以下の〜に示すような環境設定
が行われる。
First, the following environment settings are set.

【0031】 「一般ユーザが非常駐プロセスである
マウント要求発行手段11を起動するためのコマンド」
であるusrmntコマンド(一般ユーザマウント要求
コマンド)と、「一般ユーザが非常駐プロセスであるマ
ウント解除要求発行手段14を起動するためのコマンド
であるunusrmntコマンド(一般ユーザマウント
解除要求コマンド)とが用意される。
“Command for general user to activate mount request issuing means 11 which is a non-resident process”
Usrmnt command (general user mount request command), and "a general user mounts the unusrmnt command (general user mount cancellation request command) for activating the mount cancellation request issuing means 14 which is a non-resident process. .

【0032】 クライアント10およびサーバ20の
両方に、常駐プロセスであるusrmntdが用意され
る。
A resident process usrmntd is prepared for both the client 10 and the server 20.

【0033】 クライアント10およびサーバ20の
両方で、通常のNFSのサービスを受けることができる
ようにするための設定が行われる。
Both the client 10 and the server 20 are set so as to be able to receive a normal NFS service.

【0034】次に、特権ユーザは、自己の権限で、クラ
イアント10側およびサーバ20側のusrmntdを
起動する。
Next, the privileged user activates usrmntd on the client 10 side and the server 20 side with his own authority.

【0035】さらに、クライアント10側およびサーバ
20側のusrmntdを利用したい一般ユーザは、サ
ーバ20側の当該一般ユーザのホームディレクトリ($
HOME)の直下に図4に示すようなフォーマットのシ
ェア管理ファイル24($HOME/sharetab
ファイル)を作成する。なお、シェア管理ファイル24
を一般ユーザのホームディレクトリの直下に作成するの
は、当該一般ユーザのシェア管理ファイル24の所在を
明確にするためである。したがって、その所在が明確に
なるのであれば、シェア管理ファイル24をホームディ
レクトリの直下以外に作成することも可能である。
Further, a general user who wants to use usrrmntd on the client 10 side and the server 20 side is a home directory ($) of the general user on the server 20 side.
The share management file 24 ($ HOME / sharetab) having a format as shown in FIG.
File). The share management file 24
Is created directly under the home directory of the general user in order to clarify the location of the share management file 24 of the general user. Therefore, if the location is clear, the share management file 24 can be created in a place other than directly under the home directory.

【0036】第2に、マウント実行時の動作について説
明する(図2参照)。
Secondly, the operation when the mount is executed will be described (see FIG. 2).

【0037】クライアント10側の一般ユーザは、サー
バ20側の自己のディスク資源に関するマウントを行い
たい場合に、usrmntコマンドを発行する。
The general user on the client 10 side issues the usrmnt command when he wants to mount his or her own disk resource on the server 20 side.

【0038】クライアント10側のマウント要求発行手
段11は、このusrmntコマンドに基づいて生成さ
れ、サーバ20側にサーバ側マウント要求を発行する
(ステップ201)。このサーバ側マウント要求の中に
は、サービスの種類(この場合には、サーバ側マウント
要求),ユーザ名,ユーザid,グループid,クライ
アントホスト名,サーバ側マウントポイント,クライア
ント側マウントポイントおよびオプション(オプション
の内容は、任意であって、なくてもかまわない)が入
る。
The mount request issuing means 11 on the client 10 side is generated based on this usrmnt command, and issues a server side mount request to the server 20 side (step 201). The server-side mount request includes the service type (in this case, the server-side mount request), user name, user id, group id, client host name, server-side mount point, client-side mount point, and option ( The content of the option is arbitrary and may be omitted).

【0039】このサーバ側マウント要求を受けたサーバ
20側のマウント権確認手段21は、当該サーバ側マウ
ント要求の中のサーバ側マウントポイントに基づいて、
そのサーバ側マウントポイントに該当するディレクトリ
がサーバ20側に存在するか否かを検査する(ステップ
202)。
The mount right confirmation means 21 on the server 20 side that has received this server side mount request, based on the server side mount point in the server side mount request,
It is checked whether or not a directory corresponding to the server side mount point exists on the server 20 side (step 202).

【0040】マウント権確認手段21は、ステップ20
2の検査で「当該ディレクトリが存在しない」と判定し
た場合(検査結果が「失敗」である場合)には、その旨
をクライアント10側のマウント要求発行手段11に通
知し(ステップ223)、要求待ち状態に戻る。
The mount right confirming means 21 executes step 20.
When it is determined in the check of No. 2 that "the directory does not exist" (when the check result is "failure"), the fact is notified to the mount request issuing means 11 on the client 10 side (step 223), and the request is issued. Return to the waiting state.

【0041】一方、マウント権確認手段21は、ステッ
プ202の検査で「当該ディレクトリが存在する」と判
定した場合(検査結果が「成功」である場合)には、図
5に示すようなフォーマットのパスワードファイル23
を読み出し(ステップ203)、usrmntコマンド
を発行した一般ユーザのユーザ名,ユーザidおよびグ
ループidと一致する情報を持つエントリがパスワード
ファイル23に存在するか否かを検査する(ステップ2
04)。
On the other hand, when the mount right confirmation means 21 determines in the inspection of step 202 that "the directory exists" (when the inspection result is "success"), it has the format as shown in FIG. Password file 23
Is read (step 203), and it is checked whether or not there is an entry in the password file 23 that has information matching the user name, user id, and group id of the general user who issued the usrmnt command (step 2).
04).

【0042】マウント権確認手段21は、ステップ20
4の検査で「当該ユーザ名等と一致する情報を持つエン
トリがパスワードファイル23に存在しない」と判定し
た場合(検査結果が「失敗」である場合)には、その旨
をクライアント10側のマウント要求発行手段11に通
知し(ステップ223)、要求待ち状態に戻る。
The mount right confirming means 21 executes step 20.
When it is determined in the inspection of No. 4 that "there is no entry in the password file 23 having the information matching the user name, etc." (the inspection result is "failure"), the fact is mounted on the client 10 side. The request issuing means 11 is notified (step 223), and the process returns to the request waiting state.

【0043】一方、マウント権確認手段21は、ステッ
プ204の検査で「当該ユーザ名等と一致する情報を持
つエントリがパスワードファイル23に存在する」と判
定した場合(検査結果が「成功」である場合)には、当
該エントリからホームディレクトリ(当該一般ユーザの
サーバ20におけるホームディレクトリ($HOM
E))を取り出して認識する(ステップ205)。
On the other hand, when the mount right confirmation means 21 determines in the inspection of step 204 that "there is an entry having information matching the user name etc. in the password file 23" (the inspection result is "success"). In this case, from the entry, the home directory (the home directory of the general user on the server 20 ($ HOM
E)) is taken out and recognized (step 205).

【0044】マウント権確認手段21は、ステップ20
5で取り出したホームディレクトリの直下に存在するシ
ェア管理ファイル24を読み出し(ステップ206)、
シェア管理ファイル24の内容と上述のサーバ側マウン
ト要求とに基づいてシェア実行手段22に対してシェア
要求を出すべきか否かを検査する(ステップ207)。
すなわち、サーバ側マウント要求の中のサーバ側マウン
トポイントをシェア対象ディレクトリに持つエントリが
シェア管理ファイル24内に存在し、そのエントリ中の
マウント計算機ホスト名の中にクライアント10のホス
ト名があるか否かを確認する。
The mount right confirming means 21 executes step 20.
The share management file 24 existing immediately below the home directory extracted in step 5 is read (step 206),
Based on the contents of the share management file 24 and the above-mentioned server side mount request, it is checked whether or not a share request should be issued to the share executing means 22 (step 207).
That is, whether or not there is an entry having the server-side mount point in the share-target directory in the server-side mount request in the share management file 24, and the host name of the client 10 is included in the mount computer host names in the entry. Check if

【0045】マウント権確認手段21は、ステップ20
7で「シェア要求を出すべきでない」と判定した場合
(検査結果が「失敗」である場合)には、その旨をクラ
イアント10側のマウント要求発行手段11に通知し
(ステップ223)、要求待ち状態に戻る。
The mount right confirming means 21 executes step 20.
If it is determined in step 7 that "a share request should not be issued" (the inspection result is "failure"), the fact is notified to the mount request issuing means 11 on the client 10 side (step 223), and the request is awaited. Return to the state.

【0046】一方、マウント権確認手段21は、ステッ
プ207の検査で「シェア要求を出すべきである」と判
定した場合(検査結果が「成功」である場合)には、シ
ェア実行手段22に対してシェア要求を発行する(ステ
ップ208)。なお、ステップ202,204および2
07の検査結果が全て「成功」である場合が、当該サー
バ側マウント要求に関するマウント権(サーバ20側で
のマウント権)がある場合に該当する。
On the other hand, when the mount right confirming means 21 determines in the inspection of step 207 that "a share request should be issued" (when the inspection result is "success"), the mount executing means 22 instructs the share executing means 22. And issues a share request (step 208). Note that steps 202, 204 and 2
The case where all the inspection results of 07 are “success” corresponds to the case where there is a mount right (mount right on the server 20 side) related to the server side mount request.

【0047】シェア実行手段22は、そのシェア要求に
基づいて、当該マウントポイント(サーバ側マウント要
求の中のサーバ側マウントポイント)のシェアを行う
(ステップ209)。
The share executing means 22 shares the mount point (server side mount point in the server side mount request) based on the share request (step 209).

【0048】なお、すでに当該マウントポイントのシェ
アが行われている場合には、マウント権確認手段21は
その旨を示す情報を自己の内部に保持しておく(例え
ば、その旨を示すためのフラグにビットを立ててお
く)。
If the mount point has already been shared, the mount right confirmation means 21 retains information indicating that fact (for example, a flag indicating that). Set a bit on).

【0049】マウント権確認手段21は、当該マウント
ポイントのシェアが行われたことを確認した後に、クラ
イアント10側のマウント権確認手段12に対してクラ
イアント側マウント要求を発行する(ステップ21
0)。このクライアント側マウント要求の中には、サー
ビスの種類(この場合には、クライアント側マウント要
求),ユーザ名,ユーザid,グループid,サーバホ
スト名,サーバ側マウントポイント,クライアント側マ
ウントポイントおよびオプションが入る。
After confirming that the mount point has been shared, the mount right confirmation means 21 issues a client side mount request to the mount right confirmation means 12 on the client 10 side (step 21).
0). In this client-side mount request, the service type (in this case, client-side mount request), user name, user id, group id, server host name, server-side mount point, client-side mount point, and options are included. enter.

【0050】クライアント10側のマウント権確認手段
12は、当該クライアント側マウント要求を受け取る
と、当該クライアント側マウント要求の中のユーザ名,
ユーザid,グループidおよびクライアント側マウン
トポイントに基づいて、そのクライアント側マウントポ
イントに該当するディレクトリが当該一般ユーザ(当該
ユーザ名,ユーザidおよびグループidで識別される
一般ユーザ)の所有であるか否かを検査する(ステップ
211)。
When the mount right confirmation means 12 on the client 10 side receives the client side mount request, the user name in the client side mount request,
Whether the directory corresponding to the client mount point is owned by the general user (general user identified by the user name, user id, and group id) based on the user id, group id, and client mount point. Is checked (step 211).

【0051】マウント権確認手段12は、ステップ21
1の検査で「当該ディレクトリ(クライアント側マウン
トポイント)が当該一般ユーザの所有ではない」と判定
した場合(検査結果が「失敗」である場合)には、その
旨をサーバ20側のマウント権確認手段21に通知し
(ステップ222)、要求待ち状態に戻る。この通知を
受けたマウント権確認手段21は、その旨をクライアン
ト10側のマウント要求発行手段11に通知し(ステッ
プ223)、要求待ち状態に戻る。
The mount right confirming means 12 executes step 21.
When it is determined in the inspection of 1 that "the directory (the mount point on the client side) is not owned by the general user" (when the inspection result is "failure"), that fact is confirmed by the mount right on the server 20 side. The means 21 is notified (step 222) to return to the request waiting state. Upon receiving this notification, the mount right confirmation means 21 notifies the mount request issuing means 11 on the client 10 side (step 223) and returns to the request waiting state.

【0052】一方、マウント権確認手段12は、ステッ
プ211の検査で「当該ディレクトリが当該一般ユーザ
の所有である」と判定した場合(検査結果が「成功」で
ある場合)には、マウント実行手段13に対してマウン
ト実行要求(当該マウントポイントのマウントの実行を
促す要求)を発行する(ステップ212)。なお、ステ
ップ211の検査結果が「成功」である場合が、当該ク
ライアント側マウント要求に関するマウント権(クライ
アント10側でのマウント権)がある場合に該当する。
On the other hand, the mount right confirming means 12 determines that "the directory is owned by the general user" in the inspection of step 211 (when the inspection result is "success"), the mount executing means 12 A mount execution request (a request for urging the mount of the mount point) to be issued to 13 (step 212). The case where the inspection result in step 211 is “success” corresponds to the case where there is a mount right (mount right on the client 10 side) related to the client side mount request.

【0053】マウント実行手段13は、このマウント実
行要求に基づいて、当該マウントポイントのマウントを
実行する(ステップ213)。
The mount executing means 13 mounts the mount point based on the mount execution request (step 213).

【0054】マウント権確認手段12は、ステップ21
3のマウントの実行が成功したか失敗したかを検査する
(ステップ214)。
The mount right confirmation means 12 executes step 21.
It is checked whether the execution of the mount 3 is successful or unsuccessful (step 214).

【0055】マウント権確認手段12は、ステップ21
4の検査で「マウントの実行が失敗した」と判定した場
合には、サーバ20側のマウント権確認手段21に対し
てその旨を示す通知(マウント失敗通知)を行い(ステ
ップ222)、要求待ち状態に戻る。マウント失敗通知
を受けたマウント権確認手段21は、その旨をクライア
ント10側のマウント要求発行手段11に通知し(ステ
ップ223)、要求待ち状態に戻る。
The mount right confirmation means 12 executes step 21.
If it is determined in the check of No. 4 that "execution of mount has failed", a notice indicating that (mount failure notification) is sent to the mount right confirmation means 21 on the server 20 side (step 222), and a request is awaited. Return to the state. The mount right confirmation means 21 which has received the mount failure notification notifies the mount request issuing means 11 on the client 10 side (step 223) and returns to the request waiting state.

【0056】一方、マウント権確認手段12は、ステッ
プ214の検査で「マウントの実行が成功した」と判定
した場合には、図6に示すようなフォーマットのマウン
ト状況記述ファイル17に当該ユーザ名(usrmnt
コマンドを発行した一般ユーザのユーザ名)と当該マウ
ントポイント(クライアント側マウントポイント)とを
示す情報を書き出し(ステップ215)、マウントが成
功した旨を示す通知(マウント成功通知)をサーバ20
側のマウント権確認手段21に対して行い(ステップ2
16)、要求待ち状態に戻る。
On the other hand, when the mount right confirmation means 12 determines in the step 214 that "mounting has succeeded", the user name (in the mount status description file 17 of the format shown in FIG. usrmnt
Information indicating the user name of the general user who issued the command and the mount point (mount point on the client side) is written (step 215), and a notification (mount success notification) indicating that mounting is successful is sent to the server 20.
To the mount right confirmation means 21 on the side (step 2
16) Return to the request waiting state.

【0057】サーバ20側のマウント権確認手段21
は、クライアント10側のマウント権確認手段12から
のマウント成功通知(この通知の中にはサーバ側マウン
トポイントを示す情報が含まれている)を受け取った後
に、そのマウント成功通知に係るサーバ側マウントポイ
ントがステップ209で実際にシェアされたものである
か否かを検査する(ステップ217)。この検査は、ア
ンシェア要求を出すべきか否かを判定するための検査で
あり、例えば、「すでに当該マウントポイントのシェア
が行われている旨を示すためのフラグ」にビットが立っ
ていないかどうかを判定することによって行われる。
Mount right confirmation means 21 on the server 20 side
After receiving the mount success notification (the information indicating the server side mount point is included in this notification) from the mount right confirmation means 12 on the client 10 side, the server side mount related to the mount success notification is received. It is checked whether the points are actually shared in step 209 (step 217). This check is a check for determining whether or not an unshare request should be issued. For example, whether or not a bit is set in the "flag for indicating that the mount point is already shared" It is performed by determining.

【0058】マウント権確認手段21は、ステップ21
7の検査で「当該サーバ側マウントポイントがステップ
209で実際にシェアされたものである(アンシェア要
求を出すべきである)」と判定した場合には、当該箇所
(サーバ側マウントポイント)に対するアンシェア要求
をシェア実行手段22に発行する(ステップ218)。
The mount right confirmation means 21 executes step 21.
When it is determined in the inspection of 7 that "the mount point on the server side is actually shared in step 209 (should issue an unshare request)", an unshare request for that location (mount point on the server side) Is issued to the share executing means 22 (step 218).

【0059】シェア実行手段22は、このアンシェア要
求に基づいて当該箇所のアンシェア(マウントの許可の
解除)を実行する(ステップ219)。なお、このアン
シェアの実行が失敗した場合にも、特別の対処はなされ
ず無視される。
The share executing means 22 executes the unshare (release of the mount permission) of the location based on the unshare request (step 219). Even if the execution of this unshare fails, no special measures are taken and it is ignored.

【0060】マウント権確認手段21は、ステップ21
7の検査で「当該サーバ側マウントポイントがステップ
209で実際にシェアされたものでない(アンシェア要
求を出すべきでない)」と判定した場合またはステップ
219のアンシェアの実行が終了した場合には、クライ
アント10側のマウント要求発行手段11に対して上述
の一連の処理が正常に終了した旨を示す通知(マウント
終了通知)を行い(ステップ220)、要求待ち状態に
戻る。
The mount right confirming means 21 executes step 21.
If it is determined in the inspection of 7 that “the mount point on the server side is not actually shared in step 209 (the unshare request should not be issued)” or if the execution of unshare in step 219 is completed, the client 10 The mount request issuing means 11 on the side is notified (mount end notification) indicating that the above-described series of processing has been normally completed (step 220), and returns to the request waiting state.

【0061】クライアント10側のマウント要求発行手
段11は、このマウント終了通知を受けると、本実施例
におけるマウント実行処理を終了させる(ステップ22
1)。すなわち、マウント実行処理が正常に終了した旨
等を画面上に表示して処理を終了させる。
Upon receiving the mount end notification, the mount request issuing means 11 on the client 10 side ends the mount execution processing in this embodiment (step 22).
1). That is, the fact that the mount execution processing has been normally completed is displayed on the screen and the processing is ended.

【0062】なお、マウント要求発行手段11は、サー
バ20側のマウント権確認手段21から失敗の通知を受
けると(ステップ223参照)、その旨を画面上に表示
してマウント実行処理を終了させる(ステップ22
4)。
When the mount request issuing means 11 receives a notification of failure from the mount right confirming means 21 on the server 20 side (see step 223), it displays that fact on the screen and terminates the mount execution processing ( Step 22
4).

【0063】ステップ221やステップ224における
画面上の表示により、当該一般ユーザはマウントの成功
/失敗の旨を認識することができる。
The display on the screen in step 221 and step 224 allows the general user to recognize the success / failure of mount.

【0064】第3に、マウント解除時の動作について説
明する(図3参照)。
Third, the operation at the time of releasing the mount will be described (see FIG. 3).

【0065】クライアント10側の一般ユーザは、マウ
ントを解除したい場合に、unusrmntコマンドを
発行する。
The general user on the client 10 side issues the unusrmnt command when he wants to release the mount.

【0066】クライアント10側のマウント解除要求発
行手段14は、このunusrmntコマンドに基づい
て生成され、マウント解除権確認手段15にマウント解
除要求を発行する(ステップ301)。このマウント解
除要求の中には、サービスの種類(この場合には、マウ
ント解除要求),ユーザ名およびマウント解除ポイント
が入る。
The mount release request issuing means 14 on the client 10 side is generated based on this unusrmnt command and issues a mount release request to the mount release right confirming means 15 (step 301). The type of service (in this case, the unmount request), the user name, and the unmount point are included in this unmount request.

【0067】マウント解除権確認手段15は、そのマウ
ント解除要求を受けると、マウント状況記述ファイル1
7を読み出し(ステップ302)、当該マウント解除要
求の中のマウント解除ポイントに該当するマウントポイ
ントを有するエントリがマウント状況記述ファイル17
(図6参照)に存在するか否かを検査する(ステップ3
03)。
When the mount release right confirmation means 15 receives the mount release request, the mount status description file 1
7 is read (step 302), and the entry having the mount point corresponding to the mount point in the mount request is the mount status description file 17
(See FIG. 6).
03).

【0068】マウント解除権確認手段15は、ステップ
303の検査で「該当するエントリがマウント状況記述
ファイル17に存在しない」と判定した場合(検査結果
が「失敗」である場合)には、その旨をマウント解除要
求発行手段14に通知し(ステップ304)、要求待ち
状態に戻る。
When the mount release right confirmation means 15 determines in the inspection of step 303 that "the corresponding entry does not exist in the mount status description file 17" (when the inspection result is "failure"), it indicates that fact. Is notified to the mount release request issuing means 14 (step 304), and the process returns to the request waiting state.

【0069】一方、マウント解除権確認手段15は、ス
テップ303の検査で「該当するエントリがマウント状
況記述ファイル17に存在する」と判定した場合(検査
結果が「成功」である場合)には、当該エントリに対応
するユーザ(当該エントリ中の「ユーザ名」で識別され
る一般ユーザ)が当該マウント解除要求に係るunus
rmntコマンドを発行した一般ユーザであるか否か
(ユーザが一致するか否か)を検査する(ステップ30
5)。
On the other hand, when the mount release right confirmation means 15 determines in the inspection of step 303 that "the relevant entry exists in the mount status description file 17" (when the inspection result is "success"), The user corresponding to the entry (general user identified by the "user name" in the entry) is the unus related to the mount release request.
It is checked whether or not the user is an ordinary user who has issued the rmnt command (whether the users match) (step 30).
5).

【0070】マウント解除権確認手段15は、ステップ
305の検査で「ユーザが一致しない」と判定した場合
(検査結果が「失敗」である場合)には、その旨をマウ
ント解除要求発行手段14に通知し(ステップ30
6)、要求待ち状態に戻る。
When the dismounting right confirming means 15 determines in the inspection of step 305 that "the users do not match" (when the inspection result is "failure"), the dismounting request issuing means 14 is notified to that effect. Notify (Step 30)
6) Return to the request waiting state.

【0071】一方、マウント解除権確認手段15は、ス
テップ305の検査で「ユーザが一致する」と判定した
場合(検査結果が「成功」である場合)には、マウント
解除手段16に対してマウント解除実行要求(当該マウ
ントポイントのマウントの解除の実行を促す要求)を発
行する(ステップ307)。なお、ステップ303およ
び305の検査結果が全て「成功」である場合が、当該
マウント解除要求に関するマウント解除権がある場合に
該当する。
On the other hand, when the dismounting right confirming means 15 determines in the inspection of step 305 that "the users match" (when the inspection result is "success"), the dismounting right confirming means 15 mounts the dismounting means 16. A cancellation execution request (a request for urging the cancellation of the mount of the mount point) is issued (step 307). It should be noted that the case where all the inspection results in steps 303 and 305 are “success” corresponds to the case where there is the unmount right regarding the unmount request.

【0072】マウント解除手段16は、このマウント解
除実行要求に応じて、当該マウントポイント(ステップ
303の検査で検出されたエントリ中のマウントポイン
ト)におけるマウントの解除を行う(ステップ30
8)。
In response to the mount release execution request, the mount release means 16 releases the mount at the mount point (mount point in the entry detected by the inspection in step 303) (step 30).
8).

【0073】マウント解除権確認手段15は、ステップ
308におけるマウントの解除が成功したか失敗したか
を検査する(ステップ309)。
The mount release right confirmation means 15 checks whether the mount release in step 308 has succeeded or failed (step 309).

【0074】マウント解除権確認手段15は、ステップ
309の検査で「マウントの解除に成功した」と判定し
た場合には、マウント状況記述ファイル17から当該マ
ウントポイントを有するエントリを削除する(ステップ
310)。
When the mount release right confirmation means 15 determines in the step 309 that the mount has been released successfully, it deletes the entry having the mount point from the mount status description file 17 (step 310). .

【0075】一方、マウント解除権確認手段15は、ス
テップ309で「マウントの解除に失敗した」と判定し
た場合(例えば、当該マウントポイントに該当するディ
レクトリが使用中であった場合)には、特別の対処をせ
ずに無視する(ステップ311の処理に制御を移す)。
On the other hand, if the mount release right confirmation means 15 determines in step 309 that the mount release has failed (for example, if the directory corresponding to the mount point is in use), a special Ignore without taking action (control is transferred to the process of step 311).

【0076】また、マウント解除権確認手段15は、マ
ウントの解除に成功したか失敗したかを示す情報と失敗
した場合におけるその原因を示す情報とを自己の内部に
保持する(ステップ311)。
Further, the mount release right confirming means 15 holds therein information indicating whether the mount release is successful or unsuccessful and information indicating the cause in the case of failure (step 311).

【0077】さらに、マウント権解除確認手段15は、
ステップ311で保持した情報をマウント解除要求発行
手段14に通知し(ステップ312)、通知後に要求待
ち状態に戻る。
Further, the mount right release confirmation means 15 is
The information held in step 311 is notified to the mount release request issuing means 14 (step 312), and after notification, the process returns to the request waiting state.

【0078】マウント解除要求発行手段14は、ステッ
プ312の通知に基づいてマウントの解除の成功/失敗
の結果等を画面に表示して本実施例におけるマウント解
除処理を終了させる(ステップ313)。
The mount release request issuing means 14 displays the mount release success / failure result or the like on the screen based on the notification of step 312, and ends the mount release processing in this embodiment (step 313).

【0079】なお、マウント解除要求発行手段14は、
ステップ304または306におけるマウント権解除確
認手段15からの通知を受けた場合には、その旨を画面
に表示してマウント解除処理を終了させる(ステップ3
14)。
The mount release request issuing means 14
When the notification from the mount right release confirmation means 15 in step 304 or 306 is received, a message to that effect is displayed on the screen and the mount release process is terminated (step 3).
14).

【0080】ステップ313やステップ314における
画面上の表示により、当該一般ユーザはマウントの解除
の成功/失敗の旨を認識することができる。
The display on the screen in step 313 or step 314 allows the general user to recognize the success / failure of the mount release.

【0081】以上のような処理によって、クライアント
10からサーバ20への一般ユーザの要求によるマウン
トの実行およびマウントの解除が可能になる。ここで、
上述の説明のように、マウントを要求する一般ユーザ
(マウント要求発行者)が以下の〜に示すような条
件を満たす場合にのみマウント権の存在が認められるの
で、当該分散処理システムにおけるセキュリティの保持
は守られる。
With the above-described processing, it is possible to execute the mount and release of the mount from the client 10 to the server 20 according to the general user's request. here,
As described above, the presence of the mount right is recognized only when the general user who requests the mount (mount request issuer) satisfies the following conditions (1) to (3), so that security is maintained in the distributed processing system. Is protected.

【0082】 サーバ20側に、マウント要求発行者
のアカウントがあること(パスワードファイル23内
に、当該マウント要求発行者のユーザ名,ユーザidお
よびグループidが存在していること)
The server 20 has an account of the mount request issuer (the password file 23 contains the user name, user id, and group id of the mount request issuer).

【0083】 サーバ側マウントポイントに該当する
ディレクトリの所有者がマウント要求発行者と一致して
いること
The owner of the directory corresponding to the mount point on the server side matches the mount request issuer

【0084】 サーバ側マウントポイントに該当する
ディレクトリがマウント要求発行者のホームディレクト
リの下にあること
The directory corresponding to the mount point on the server side is under the home directory of the mount request issuer.

【0085】 クライアント側マウントポイントに該
当するディレクトリがマウント要求発行者の所有になっ
ていること
The directory corresponding to the mount point on the client side is owned by the mount request issuer.

【0086】[0086]

【発明の効果】以上説明したように本発明は、usrm
ntコマンド(一般ユーザマウント要求コマンド)およ
びunusrmntコマンド(一般ユーザマウント解除
要求コマンド)を用意し、クライアント側およびサーバ
側にusrmntd(マウント権確認手段,マウント解
除権確認手段およびシェア実行手段)を設け、マウント
状況記述ファイルおよびシェア管理ファイルを備えるこ
と等により、セキュリティを保持しつつ、一般ユーザが
他の計算機における当該一般ユーザの個人的なディスク
資源を自由にマウントすることができるようになるとい
う効果を有する(当該ディスク資源上のファイルへのア
クセスが容易になる)。すなわち、通常のNFSにおい
てセキュリティ上の理由により特権ユーザにのみ与えら
れていたマウント要求の権限を特権ユーザ以外の一般ユ
ーザにも与えることを可能にし、一般ユーザが自己のデ
ィスク資源を自由にマウント(NFSマウント)できる
手法を確立することができるという効果がある。
As described above, the present invention provides usrm
nt command (general user mount request command) and unusrmnt command (general user mount release request command) are provided, and usrmntd (mount right confirmation means, mount release right confirmation means and share execution means) are provided on the client side and the server side, By providing the mount status description file and the share management file, etc., it becomes possible for general users to freely mount their own private disk resources on other computers while maintaining security. Have (easy access to the file on the disk resource). That is, in normal NFS, it is possible to give the authority of the mount request, which was given only to the privileged user for security reasons to the general user other than the privileged user, and the general user freely mounts his or her own disk resource ( There is an effect that a method capable of (NFS mount) can be established.

【0087】このような効果により、一般ユーザであっ
て、かつ複数の計算機にアカウントを持つユーザが、ど
の計算機からでもネットワークを意識せずに自己の所有
するディスク資源にアクセスできるようになり、以下の
〜に示すような効果が生じる。
As a result of such an effect, a general user who has an account on a plurality of computers can access the disk resources owned by himself or herself from any computer without being aware of the network. The following effects are produced.

【0088】 個人的なディスク資源のネットワーク
間の転送が容易になる。
It facilitates the transfer of personal disk resources between networks.

【0089】 一度マウントしてしまえば、ネットワ
ーク上の他の計算機にログインすることなく、当該他の
計算機におけるディスク資源を使用することができる。
Once mounted, the disk resources of the other computer on the network can be used without logging in to the other computer on the network.

【0090】 個人的なディスク資源を分散して持つ
ことができるので、各一般ユーザが各計算機に同じファ
イルを持つ必要がなくなり、分散処理システム全体にお
けるディスク資源の節約が可能になる。
Since personal disk resources can be distributed and held, it is not necessary for each general user to have the same file in each computer, and it is possible to save disk resources in the entire distributed processing system.

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

【図1】本発明の分散ファイルシステムに係る一実施例
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment according to a distributed file system of the present invention.

【図2】図1に示す分散ファイルシステムにおけるマウ
ント実行処理を示す流れ図である。
FIG. 2 is a flowchart showing mount execution processing in the distributed file system shown in FIG.

【図3】図1に示す分散ファイルシステムにおけるマウ
ント解除処理を示す流れ図である。
FIG. 3 is a flowchart showing a mount release process in the distributed file system shown in FIG.

【図4】図1中のシェア管理ファイルのフォーマットを
示す図である。
FIG. 4 is a diagram showing a format of a share management file in FIG.

【図5】図1中のパスワードファイルのフォーマットを
示す図である。
5 is a diagram showing a format of a password file in FIG.

【図6】図1中のマウント状況記述ファイルのフォーマ
ットを示す図である。
FIG. 6 is a diagram showing a format of a mount status description file in FIG.

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

10 クライアント 11 マウント要求発行手段 12 マウント権確認手段 13 マウント実行手段 14 マウント解除要求発行手段 15 マウント解除権確認手段 16 マウント解除手段 17 マウント状況記述ファイル 20 サーバ 21 マウント権確認手段 22 シェア実行手段 23 パスワードファイル 24 シェア管理ファイル 10 client 11 mount request issuing means 12 mount right confirming means 13 mount executing means 14 mount release request issuing means 15 mount release right confirming means 16 mount releasing means 17 mount status description file 20 server 21 mount right confirming means 22 share executing means 23 password File 24 Share management file

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 NFSが使用できる環境の分散処理シス
テムにおいて、 サーバ側にディスク資源を所有する一般ユーザのアカウ
ントを管理するサーバ側のパスワードファイルと、 各一般ユーザ毎に設けられており、当該一般ユーザにつ
いてのシェアに関する情報を管理するサーバ側のシェア
管理ファイルと、 各一般ユーザに関するマウント状況を示す情報を保持す
るクライアント側のマウント状況記述ファイルと、 一般ユーザマウント要求コマンドに基づいてサーバ側マ
ウント要求を発行するクライアント側のマウント要求発
行手段と、 前記パスワードファイルおよび前記シェア管理ファイル
を参照して前記マウント要求発行手段により発行された
サーバ側マウント要求に関するサーバ側でのマウント権
の有無を確認し、マウント権があると判定した場合にシ
ェア要求を発行するサーバ側のマウント権確認手段と、 このサーバ側のマウント権確認手段により発行されたシ
ェア要求に基づいてシェアの実行を行うサーバ側のシェ
ア実行手段と、 このシェア実行手段によるシェアの実行が成功した後に
前記サーバ側のマウント権確認手段から発行されるクラ
イアント側マウント要求を受け、当該クライアント側マ
ウント要求に関するクライアント側でのマウント権の有
無を確認し、マウント権があると判定した場合にマウン
ト実行要求を発行し、当該マウント実行要求に基づくマ
ウントの実行が成功した場合にその旨を示す情報を前記
マウント状況記述ファイルに書き出すクライアント側の
マウント権確認手段と、 このクライアント側のマウント権確認手段により発行さ
れたマウント実行要求に基づいてマウントの実行を行う
クライアント側のマウント実行手段と、 一般ユーザマウント解除要求コマンドに基づいてマウン
ト解除要求を発行するクライアント側のマウント解除要
求発行手段と、 前記マウント状況記述ファイルを参照して前記マウント
解除要求発行手段により発行されたマウント解除要求に
関するマウント解除権の有無を確認し、マウント解除権
があると判定した場合にマウント解除実行要求を発行す
るクライアント側のマウント解除権確認手段と、 このマウント解除権確認手段により発行されたマウント
解除実行要求に基づいてマウントの解除を行うクライア
ント側のマウント解除手段とを有することを特徴とする
分散ファイルシステム。
1. In a distributed processing system in an environment in which NFS can be used, a password file on the server side that manages the account of a general user who owns disk resources on the server side, and a password file provided for each general user are provided. A share management file on the server side that manages information about shares about users, a mount status description file on the client side that holds information indicating the mount status for each general user, and a server-side mount request based on the general user mount request command. Confirms the presence or absence of the mount right on the server side regarding the server side mount request issued by the mount request issuing means by referring to the mount request issuing means on the client side and the password file and the share management file, Mount right A server-side mount right confirmation means that issues a share request when it is determined, and a server-side share execution means that executes share based on the share request issued by this server-side mount right confirmation means, and this share After the share is successfully executed by the executing means, the client side mount request issued from the mount right confirming means on the server side is received, and the presence or absence of the mount right on the client side regarding the client side mount request is confirmed. If it is determined that there is a mount execution request, if the mount execution based on the mount execution request is successful, the mount right confirmation means on the client side that writes information indicating that to the mount status description file, The mount issued by the mount right confirmation means on the client side Refer to the mount execution means on the client side that executes the mount based on the execution request, the mount side dismount request issuing means that issues the dismount request based on the general user dismount request command, and the mount status description file Then, the client side unmount right confirmation means for checking the presence or absence of the unmount right regarding the unmount request issued by the unmount request issuing means, and issuing the unmount execution request when it is determined that the unmount right is present. And a client-side unmounting unit for unmounting based on an unmounting execution request issued by the unmounting right confirmation unit.
【請求項2】 シェア管理ファイル内のエントリが、シ
ェア対象ディレクトリ,マウント計算機ホスト名および
アクセス権からなることを特徴とする請求項1記載の分
散ファイルシステム。
2. The distributed file system according to claim 1, wherein the entry in the share management file comprises a share target directory, a mount computer host name, and an access right.
【請求項3】 マウント状況記述ファイル内のエントリ
が、ユーザ名およびマウントポイントからなることを特
徴とする請求項1記載の分散ファイルシステム。
3. The distributed file system according to claim 1, wherein the entry in the mount status description file comprises a user name and a mount point.
【請求項4】 ある一般ユーザのシェア管理ファイルが
当該一般ユーザのホームディレクトリの直下にあること
を特徴とする請求項1記載の分散ファイルシステム。
4. The distributed file system according to claim 1, wherein a share management file of a general user is directly under the home directory of the general user.
JP6160580A 1994-06-20 1994-06-20 Distributed file system Pending JPH086839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6160580A JPH086839A (en) 1994-06-20 1994-06-20 Distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6160580A JPH086839A (en) 1994-06-20 1994-06-20 Distributed file system

Publications (1)

Publication Number Publication Date
JPH086839A true JPH086839A (en) 1996-01-12

Family

ID=15718041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6160580A Pending JPH086839A (en) 1994-06-20 1994-06-20 Distributed file system

Country Status (1)

Country Link
JP (1) JPH086839A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11328187A (en) * 1998-05-08 1999-11-30 Yamatake Corp Information browsing system
US7062660B2 (en) 2001-08-06 2006-06-13 International Business Machines Corporation Method and apparatus for controlling the performance of a file system mount operation by a user lacking superuser authority
US7130868B2 (en) 2000-08-01 2006-10-31 Hitachi, Ltd. File system for creating switched logical I/O paths for fault recovery
JP2015191613A (en) * 2014-03-28 2015-11-02 株式会社バッファロー Information sharing system, information apparatus, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11328187A (en) * 1998-05-08 1999-11-30 Yamatake Corp Information browsing system
US7130868B2 (en) 2000-08-01 2006-10-31 Hitachi, Ltd. File system for creating switched logical I/O paths for fault recovery
US7062660B2 (en) 2001-08-06 2006-06-13 International Business Machines Corporation Method and apparatus for controlling the performance of a file system mount operation by a user lacking superuser authority
JP2015191613A (en) * 2014-03-28 2015-11-02 株式会社バッファロー Information sharing system, information apparatus, and program

Similar Documents

Publication Publication Date Title
US7246372B2 (en) Portable device and a method for accessing a computer resource of a temporary registered user
JP3759410B2 (en) Method and apparatus for processing distributed network application management requests for execution in a clustered computing environment
US6058426A (en) System and method for automatically managing computing resources in a distributed computing environment
JP3921865B2 (en) Data processing system and program recording medium thereof
JP5249493B2 (en) Managing terminal service accounts and sessions to use hosted applications online
US20070033395A1 (en) Method and system for hierarchical license servers
JPH07101409B2 (en) Confirmation method in distributed data processing system
JPH086840A (en) Mechanism for judgment of completion of directory operation for server recovery
WO2007147825A1 (en) System and method for tracking the security enforcement in a grid system
US20050081186A1 (en) System and method for deploying a software build from a plurality of software builds to a target computer
US6253236B1 (en) System and method for serving host computer files to one or more client computer systems
JPH06223040A (en) Software license management system
JP2007058502A (en) Terminal management system
US20030158939A1 (en) Control device for file resources in a network
CN101978665A (en) Selective filtering of network traffic requests
JPH0727511B2 (en) Information processing system
JP5633306B2 (en) License management system, function providing apparatus, license management method, and license management program
JP2003108252A (en) License managing method, license managing server, license managing program, and recording media
US9690913B2 (en) License management in a networked software application solution
JPH086839A (en) Distributed file system
JP4191239B2 (en) Access authority control system
US20060053299A1 (en) Storage network system
US6952755B2 (en) Control device for file resources in a network
JP2003256064A (en) License management method, license management server, license acquired client, license management program and recording medium
JP2002006975A (en) Management and introduction supporting method of software program, its executing equipment, and recording medium recorded its transaction program