【0001】0001
【産業上の利用分野】本発明は計算機におけるファイル
の共有処理、特に所要のファイルを共用して参照し、必
要な場合には元の内容を保存して、内容を更新した別フ
ァイルを設けることを考慮した、ファイルの共有のため
のデータ共有処理装置に関する。[Industrial Application Field] The present invention relates to file sharing processing in a computer, and in particular to sharing and referencing a required file, saving the original content if necessary, and creating a separate file with updated content. The present invention relates to a data sharing processing device for file sharing that takes into account.
【0002】0002
【従来の技術】計算機システムにおいて、例えば階層的
に構成されたディレクトリによってファイルを指示し、
ディレクトリ名とファイル名によってファイルを特定す
ることはよく知られている。2. Description of the Related Art In computer systems, for example, files are designated by hierarchically structured directories,
It is well known to identify files by directory name and file name.
【0003】図5は、そのようなディレクトリの例を説
明する図であり、階層的なディレクトリの各ノードを長
方形で表し、ファイルを円で表すものとして、図のファ
イル名「C」のファイルは、例えば「/a/b/C」の
ように表すことにより特定できる。FIG. 5 is a diagram illustrating an example of such a directory. Assuming that each node of a hierarchical directory is represented by a rectangle and each file is represented by a circle, the file with the file name "C" in the diagram is , for example, by expressing it as "/a/b/C".
【0004】ここで、例えばディレクトリ「/b」につ
ながる複数のファイルが、ある1つのプログラムとして
結合されるべき複数のモジュールのファイルとそれらの
結合仕様のファイルその他である場合等に、それらのモ
ジュールを利用し、一部のモジュールには必要な修正を
施して、別のプログラムを構成する等のために、それら
のファイルを共有する要求が発生する場合がある。[0004] Here, for example, when the plurality of files connected to the directory "/b" are the files of a plurality of modules to be combined as a certain program, the files of their combination specifications, etc., those modules There may be a request to share these files in order to use the ``program'', make necessary modifications to some modules, and configure another program.
【0005】そのような要求を満足するために、同じフ
ァイルに2以上のディレクトリからリンクを設けること
ができるようにしたシステムがある。そのようなシステ
ムでは、利用者は必要なディレクトリ例えば「b’」を
作って、例えばファイル「/a/b/C」に対してファ
イル「/a/b’/C」としてアクセスできるように所
定のコマンドを実行して、ディレクトリb’からファイ
ル「/a/b/C」に、図5に破線で説明的に示すリン
クを設定する。[0005] In order to satisfy such requirements, there is a system that allows links to be provided to the same file from two or more directories. In such a system, the user creates a necessary directory such as "b'" and creates a predetermined directory such that, for example, file "/a/b/C" can be accessed as file "/a/b'/C". Execute the command , and set a link from the directory b' to the file "/a/b/C", which is illustrated by the broken line in FIG.
【0006】実際には、前記のコマンドの実行により、
「/a/b’/C」でアクセスするように制御情報を接
続し、その制御情報に「/a/b/C」にアクセスすべ
きことを記録しておく。Actually, by executing the above command,
Control information is connected so that "/a/b'/C" is accessed, and it is recorded in the control information that "/a/b/C" should be accessed.
【0007】このような操作を必要な各ファイルについ
て行なっておけば、例えばディレクトリbの下の全ファ
イルに、ディレクトリb’からもアクセスできるように
なって、ファイルを共有することができる。[0007] If such operations are performed for each necessary file, for example, all files under directory b can be accessed from directory b', and files can be shared.
【0008】しかし、このようにしてディレクトリb’
の利用者が、前記のように必要なモジュールのファイル
を修正すると、当然ディレクトリbの下のファイルが更
新され、そのような更新を予定していないディレクトリ
bの利用者の利用に、不都合な影響を与えることになる
。However, in this way the directory b'
If a user of directory B modifies the necessary module file as described above, the files under directory b will naturally be updated, which may have an inconvenient effect on the use of directory b users who do not plan on making such updates. will be given.
【0009】そこでディレクトリb’の利用者は、修正
対象のファイルについては、前記のような共有の対象と
せず、予め必要なファイルと同じ内容のファイルを新設
してディレクトリb’につないでおくようにしなければ
ならない。[0009] Therefore, the user of directory b' should not share the file to be modified as described above, but should create a new file with the same content as the necessary file and connect it to directory b'. must be done.
【0010】0010
【発明が解決しようとする課題】前記のようにして、フ
ァイルの共有ができるが、各ファイルごとにリンクを設
定しておく操作が必要であると共に、更新の予定される
ファイルは共有機能を利用できないので、共有機能の柔
軟性が無く、又更新を予定して予め二重にファイルを準
備しておかなければならないので、ファイル格納資源の
無駄な占有を生じ易い。[Problem to be solved by the invention] Files can be shared as described above, but it is necessary to set a link for each file, and files that are scheduled to be updated must use the sharing function. Therefore, there is no flexibility in the sharing function, and files must be prepared twice in advance in anticipation of updates, which tends to result in unnecessary occupation of file storage resources.
【0011】本発明は、ファイルの共有状態を容易に設
定することができ、更新のあるファイルについても、事
前にファイルを二重に準備する必要がないデータ共有処
理装置を目的とする。SUMMARY OF THE INVENTION An object of the present invention is to provide a data sharing processing device that can easily set the sharing status of files and that eliminates the need to prepare files twice in advance even for updated files.
【0012】0012
【課題を解決するための手段】図1は、本発明の構成を
示すブロック図である。図はデータ共有処理装置の構成
であって、ディレクトリ1と、ディレクトリ1から指示
されるファイル2と、アクセス制御部3とを有し、アク
セス制御部3は、該ファイルへのアクセス要求を処理す
る。Means for Solving the Problems FIG. 1 is a block diagram showing the configuration of the present invention. The figure shows the configuration of a data sharing processing device, which has a directory 1, a file 2 instructed by the directory 1, and an access control unit 3, and the access control unit 3 processes access requests to the file. .
【0013】該アクセス要求では、アクセス先の該ファ
イルを、所要の該ファイルのファイル名と、当該ファイ
ルを指示する該ディレクトリのディレクトリ名とによっ
て指定するシステムである。[0013] In the access request, the system specifies the file to be accessed by the file name of the desired file and the directory name of the directory that indicates the file.
【0014】アクセス制御部3に共有制御情報4を設け
、共有制御情報4には、第1のディレクトリが、第2の
ディレクトリの指示する該ファイルを共有する関係にあ
ることを示す所定の情報を登録する。[0014] The access control unit 3 is provided with sharing control information 4, and the sharing control information 4 includes predetermined information indicating that the first directory is in a relationship to share the file specified by the second directory. register.
【0015】アクセス制御部3は、第1のディレクトリ
の指示するファイルを指定するアクセス要求を受けた場
合に、該要求で指定するファイル名のファイルが第1の
ディレクトリから指示されていない場合には、共有制御
情報4により第2のディレクトリを決定して、該決定し
た第2のディレクトリが指示する該ファイル名のファイ
ルへのアクセス要求に変更して処理する。[0015] When the access control unit 3 receives an access request specifying a file specified by the first directory, if the file with the file name specified in the request is not specified from the first directory, , a second directory is determined based on the shared control information 4, and the request is changed to an access request to a file with the file name indicated by the determined second directory.
【0016】そのように、第2のディレクトリが指示す
る該ファイル名のファイルへのアクセス要求に変更して
処理する場合に、当該ファイルの更新処理を要する場合
には、当該ファイルと同一内容のファイルを新たに生成
して、該新ファイルを第1のディレクトリから該ファイ
ル名で指示するように設定し、当該新ファイルに対して
該更新処理を実行する。[0016] In this way, when processing a request for access to a file with the file name indicated by the second directory, if updating processing of the file is required, a file with the same content as the file is updated. is newly generated, the new file is set to be specified by the file name from the first directory, and the update process is executed on the new file.
【0017】[0017]
【作用】本発明のファイル共有処理装置により、ディレ
クトリ間の関係を登録することにより、ファイルの共有
が可能になる。[Operation] The file sharing processing device of the present invention enables file sharing by registering relationships between directories.
【0018】更に、ファイルの実体の無いディレクトリ
側からのアクセスでファイルの更新が行なわれる場合に
は、自動的に同内容のファイルを新設して、新ファイル
に更新を行なうので、共有関係の設定において、ファイ
ル更新を考慮してそのファイルを二重に準備する等の必
要がない。Furthermore, when a file is updated by accessing from a directory where the file does not exist, a new file with the same content is automatically created and the update is made to the new file, so the sharing relationship settings are In this case, there is no need to prepare the file twice in consideration of file update.
【0019】[0019]
【実施例】本発明のファイル共有を行なう場合に、利用
者は所定のコマンドにより、利用者が設定するディレク
トリ名を実リンク、共有したい既存のファイルを指示す
るディレクトリ名を仮想リンクとして共有制御情報4に
登録する。[Example] When performing file sharing according to the present invention, the user uses a predetermined command to set the directory name set by the user as a real link, and the directory name that indicates the existing file that the user wants to share as a virtual link. Register on 4.
【0020】図2はそのような共有制御情報の登録例を
説明する図であって、仮想リンク欄の「/sumiv」
というディレクトリから指示される実体のファイルがあ
る場合に、実リンク欄の「/sumip」というディレ
クトリ名でそれらのファイルを共有する関係が登録され
ている。FIG. 2 is a diagram illustrating an example of registering such shared control information, in which "/sumiv" in the virtual link column
If there are actual files pointed to by a directory called ``/sumip,'' a relationship is registered in which these files are shared under the directory name ``/sumip'' in the actual link field.
【0021】図3は、図1のアクセス制御部3の処理部
5による処理の流れの一例を示す図であり、処理部5は
アクセス要求を受け取ると、処理ステップ10で、指定
のディレクトリを取り出す。FIG. 3 is a diagram showing an example of the flow of processing by the processing unit 5 of the access control unit 3 in FIG. .
【0022】処理ステップ11でディレクトリの内容を
識別して、指定のファイル名があれば、処理ステップ1
2によりそのディレクトリの指示するファイルに、通常
のようにアクセスする。In processing step 11, the contents of the directory are identified, and if the specified file name is found, processing step 1 is executed.
2, access the file pointed to by that directory as usual.
【0023】処理ステップ11で、ディレクトリに該当
するファイル名が無い場合には、処理ステップ13で、
共有制御情報4に指定のディレクトリ名を実リンクとす
る登録があるか検索し、処理ステップ14で識別して、
登録が無ければこのアクセス要求は指定エラーとして処
理する。[0023] In processing step 11, if there is no corresponding file name in the directory, in processing step 13,
Search for the registration of the specified directory name as a real link in the shared control information 4, identify it in processing step 14,
If there is no registration, this access request will be treated as a specification error.
【0024】登録があれば、先ず処理ステップ15で要
求のアクセスがファイル読出しか更新か識別し、読出し
であれば処理ステップ16で、共用制御情報に仮想リン
クとして登録されているディレクトリが指示し、指定の
ファイル名を持つ実体ファイルにアクセスする。If there is registration, first, in processing step 15, it is determined whether the requested access is file reading or updating, and if it is reading, then in processing step 16, the directory registered as a virtual link in the shared control information is specified, Access the actual file with the specified file name.
【0025】又更新要求の場合には、処理ステップ17
で共用制御情報に仮想リンクとして登録されているディ
レクトリが指示する前記の実体ファイルの内容をコピー
して、新しい同名の実体ファイルを作成し、実リンクの
ディレクトリにつないだ後、処理ステップ18で実リン
クによりアクセスを実行する。In the case of an update request, processing step 17
Copy the contents of the above-mentioned entity file pointed to by the directory registered as a virtual link in the shared control information, create a new entity file with the same name, connect it to the directory of the real link, and then execute it in step 18. Perform access by link.
【0026】図4は実リンクと仮想リンクの例を説明す
る図であり、前記例のように共有制御情報に登録された
ディレクトリに、図示のにうように実体のファイルがそ
れぞれつながっているとする。FIG. 4 is a diagram illustrating an example of a real link and a virtual link. As shown in the figure, if actual files are connected to directories registered in the shared control information as in the example above, respectively. do.
【0027】その場合に、実リンクの「/sumip」
によるアクセス要求で、ファイルの指定が「/A」や「
/C」の場合には、前記の処理ステップ12により通常
のようにアクセスが実行される。[0027] In that case, the real link "/sumip"
If the file specification is "/A" or "
/C'', the access is executed in the normal manner by the above-mentioned processing step 12.
【0028】しかし、ファイル「/B」が要求された場
合には、実リンクに無いので、仮想リンク「/sumi
v」のファイル「/B」がアクセスの対象になり、読出
し要求であれば、処理ステップ16でこのファイルから
データが読み出される。However, when the file "/B" is requested, since it is not in the real link, the virtual link "/sumi
The file "/B" of "v" is the target of the access, and if it is a read request, data is read from this file in processing step 16.
【0029】又、更新要求であれば、処理ステップ17
でファイル「/sumiv/B」の内容をコピーして、
図に破線で示すようにファイル「/sumip/B」を
新設した後、処理ステップ18で実リンクによりファイ
ル「/sumip/B」の更新を実行する。If it is an update request, processing step 17
Copy the contents of the file "/sumiv/B" with
After the file "/sumip/B" is newly created as shown by the broken line in the figure, the file "/sumip/B" is updated by a real link in processing step 18.
【0030】[0030]
【発明の効果】以上の説明から明らかなように本発明に
よれば、計算機のファイルの共有処理において、ファイ
ル共有状態を容易に設定でき、更新のあるファイルにつ
いても、事前にファイルを二重に準備する必要がないの
で、ファイルの共有機能を効率よく利用することができ
るという著しい工業的効果がある。[Effects of the Invention] As is clear from the above description, according to the present invention, the file sharing status can be easily set in the computer file sharing process, and even files that are updated can be duplicated in advance. Since there is no need to prepare, there is a significant industrial effect in that the file sharing function can be used efficiently.
【図1】 本発明の構成を示すブロック図[Figure 1] Block diagram showing the configuration of the present invention
【図2】
共有制御情報の説明図[Figure 2]
Explanatory diagram of shared control information
【図3】 本発明の処理の流れ図[Figure 3] Process flow diagram of the present invention
【図4】 実リンクと仮想リンクの例を説明する図[Figure 4] Diagram explaining examples of real links and virtual links
【
図5】 従来のディレクトリの説明図[
Figure 5: Illustration of a conventional directory
1 ディレクトリ2 ファイル3 アクセス制御部4 共有制御情報5 処理部10〜18 処理ステップ1 Directory2 File3 Access control section4 Shared control information5 Processing section10-18 Processing steps
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3021307AJPH04260141A (en) | 1991-02-15 | 1991-02-15 | Data shared processor |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3021307AJPH04260141A (en) | 1991-02-15 | 1991-02-15 | Data shared processor |
| Publication Number | Publication Date |
|---|---|
| JPH04260141Atrue JPH04260141A (en) | 1992-09-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3021307AWithdrawnJPH04260141A (en) | 1991-02-15 | 1991-02-15 | Data shared processor |
| Country | Link |
|---|---|
| JP (1) | JPH04260141A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07200375A (en)* | 1993-12-29 | 1995-08-04 | Nec Corp | File common use system in computer |
| JP2007257319A (en)* | 2006-03-23 | 2007-10-04 | Fujitsu Ltd | File management program, file management apparatus, and file management method |
| JP2012042997A (en)* | 2010-08-12 | 2012-03-01 | I-O Data Device Inc | Information processor, program and link creation method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07200375A (en)* | 1993-12-29 | 1995-08-04 | Nec Corp | File common use system in computer |
| JP2007257319A (en)* | 2006-03-23 | 2007-10-04 | Fujitsu Ltd | File management program, file management apparatus, and file management method |
| JP2012042997A (en)* | 2010-08-12 | 2012-03-01 | I-O Data Device Inc | Information processor, program and link creation method |
| Publication | Publication Date | Title |
|---|---|---|
| US6526441B2 (en) | Input/output device information management system for multi-computer system | |
| US5239647A (en) | Data storage hierarchy with shared storage level | |
| JPH04229355A (en) | Data access method and data processing system | |
| JPH04260141A (en) | Data shared processor | |
| JPH09160822A (en) | Hyper text with access right function | |
| JPH04107741A (en) | Draw-out system for service procedure in rpc | |
| JPS62168497A (en) | Data base processing system for exchange-processing program | |
| JPH08314787A (en) | File location management system | |
| JPS6359639A (en) | File access compatible control method | |
| JP3546962B2 (en) | Installation device, installation method, and medium recording installation program | |
| JP3087274B2 (en) | File exclusion control system | |
| JPH09204326A (en) | Image data storage controller | |
| JPH01255028A (en) | How to access external storage devices | |
| JPH0621995B2 (en) | File simultaneous access control system | |
| JPH04119443A (en) | Computer network system | |
| JPH02227755A (en) | File control system | |
| JPH03214335A (en) | Computer system | |
| JPH0844686A (en) | Data management system | |
| JPH04360248A (en) | Remote file updating system | |
| JPS63167942A (en) | File control system | |
| JPH05342070A (en) | File information managing method | |
| JPH0619763B2 (en) | Access method between nodes in computer system | |
| JPH0658640B2 (en) | Control method of electronic computer | |
| JPH04317160A (en) | Data processing system | |
| JPS62236051A (en) | Data processing system |
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed | Free format text:JAPANESE INTERMEDIATE CODE: A300 Effective date:19980514 |