JPH0675843A - File control system - Google Patents

File control system

Info

Publication number
JPH0675843A
JPH0675843A JP4225454A JP22545492A JPH0675843A JP H0675843 A JPH0675843 A JP H0675843A JP 4225454 A JP4225454 A JP 4225454A JP 22545492 A JP22545492 A JP 22545492A JP H0675843 A JPH0675843 A JP H0675843A
Authority
JP
Japan
Prior art keywords
resource
user
file
management table
resources
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
JP4225454A
Other languages
Japanese (ja)
Inventor
Shinsuke Nakamura
信介 中村
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP4225454A priority Critical patent/JPH0675843A/en
Publication of JPH0675843A publication Critical patent/JPH0675843A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To utilize a file in split without generating mismatching, in the case plural users refer to and update the same file. CONSTITUTION:An available right registering means 1 registers the available right of resources in a user definition table 6 of a common area. By referring thereto, an available right discriminating means 2 checks with regard to whether a user has the available right of the resources or not, and whether the request is within a range of the available right or not. An available state retaining means 3 retains the available state of request resources. A reference updating means 4 permits the update of a resources management table 7 and the availability of the resources. A deleting/finishing means 5 permits the update of the resources management table 7 and the user definition table 6, and the deletion and finish of the resources. In such a way, the same file can be shared in split by plural users.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の利用者が同一の
ファイルを分割利用する場合に発生する不整合を回避す
るファイル制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file control method for avoiding inconsistency that occurs when a plurality of users divide and use the same file.

【0002】[0002]

【従来の技術】従来のファイル制御方式は、ファイルを
複数の利用者が分割利用する場合に、同一の資源を更新
した場合などにデータの不整合が発生する為に、複数の
利用者が同一の資源を分割利用することができなかっ
た。
2. Description of the Related Art In the conventional file control method, when a plurality of users divide and use a file, data inconsistency occurs when the same resource is updated, etc. It was not possible to divide and use the resources of.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のファイ
ル制御方式は、複数の利用者がファイルを分割利用する
場合に、資源の更新を同時に行った場合などに、データ
の不整合が発生するという欠点を有している。
In the above-mentioned conventional file control method, inconsistency of data occurs when a plurality of users share a file and update resources simultaneously. It has drawbacks.

【0004】[0004]

【課題を解決するための手段】本発明のファイル制御方
式は、複数の利用者が、同一のファイルを分割利用する
ファイル管理システムのファイル制御方式において、資
源の利用権をシステム共通領域の利用者定義テーブルに
登録する利用権登録手段と、資源の利用時の、前記利用
者定義テーブルを参照して、利用者が資源を利用する権
利を有しているか、及び要求が利用者の利用権の範囲内
であるかのチェックを行う利用権判別手段と、システム
共通領域の資源管理テーブルを検索して、同一の資源を
利用中ならば、前記資源管理テーブルの内容を保存スタ
ックに保存する利用状態保存手段と、資源の参照や更新
の処理の要求時に、前記資源管理テーブルの更新及び資
源の利用許可を与える参照更新手段と、資源の削除や終
了の処理の要求時に、前記資源管理テーブル及び前記利
用者定義テーブルの更新並びに資源の削除や終了の許可
を与える削除終了手段とを有して構成されている。
According to the file control method of the present invention, in a file control method of a file management system in which a plurality of users divides and uses the same file, the right to use the resource is given to users in the system common area. A usage right registration means for registering in the definition table, and referring to the user definition table at the time of using the resource, whether the user has the right to use the resource, and the request is for the usage right of the user. A usage right discriminating means for checking whether it is within the range and a resource management table in the system common area are searched, and if the same resource is being used, the contents of the resource management table are stored in the storage stack. A storage unit, a reference updating unit that gives a permission to update the resource management table and use the resource at the time of requesting the process of referring to or updating the resource, It is configured and a deletion end means for providing a permission deletion or termination of updating and resources of the resource management table and the user definition table.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、本発明のファイル制御方式の一実
施例を示すブロック図である。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the file control system of the present invention.

【0006】図1に示すように、本実施例は、初期処理
として、木構造からなる利用者定義テーブル6に、利用
者が利用可能なファイル名、分割ファイル、利用者名お
よび利用権を登録する処理を行う利用権登録手段1と、
利用者が分割ファイルを利用する際に、アクセスする権
利を持っているか、また要求の処理が利用権の範囲を越
えていないかを調べる判別処理を行う利用権判別手段2
と、利用の請求のあった分割ファイルが、現在利用中か
どうかについて資源管理テーブル7を検索し、該当する
ものがあれば、それらの全てを保存スタックに保存する
処理を行う利用状態保存手段3と、利用者からの要求が
分割ファイルの参照または更新の処理の場合に、要求に
応えうるかどうかについて保存スタックの内容をチェッ
クし、応えうるならば資源管理テーブル7を更新し、資
源の利用許可を与える参照更新手段4と、利用者からの
要求が分割ファイルの削除または終了の処理の場合に、
保存エリアの内容をチェックし、利用者定義テーブル6
または資源管理テーブル7のレコードの削除及び領域の
開放を行う削除終了手段5とから構成されている。
As shown in FIG. 1, in this embodiment, as an initial process, a file name, a divided file, a user name and a user right that can be used by a user are registered in a user definition table 6 having a tree structure. Usage right registration means 1 for performing processing
When the user uses the divided file, the usage right determination means 2 performs a determination processing to check whether or not the user has the right to access and whether the processing of the request exceeds the range of the usage right.
Then, the usage status storage means 3 that searches the resource management table 7 for whether or not the divided file requested for use is currently in use, and if there is a corresponding file, saves all of them in the save stack. When the request from the user is the process of referencing or updating the divided file, the contents of the save stack are checked to see if the request can be met, and if the request can be met, the resource management table 7 is updated and the resource usage permission is granted. When the request from the user is the processing of deleting or terminating the divided files,
Check the contents of the save area, user definition table 6
Alternatively, it comprises a deletion end means 5 for deleting the record of the resource management table 7 and releasing the area.

【0007】図2は、利用者定義テーブル6の一例を示
す図である。また、図3は、資源管理テーブル7の一例
を示す図である。さらに、図4は、分割ファイルを利用
する際の初期処理である利用権登録手段1の処理の一例
を示す流れ図である。
FIG. 2 is a diagram showing an example of the user definition table 6. FIG. 3 is a diagram showing an example of the resource management table 7. Further, FIG. 4 is a flow chart showing an example of processing of the usage right registration means 1 which is an initial processing when the divided file is used.

【0008】図4に示すように、図2の利用者定義テー
ブル6をファイル名と分割ファイル名と利用者名とで検
索する(ステップ41)。一致するレコードが存在する
かどうかを判別する(ステップ42)。一致するレコー
ドがあるならば、利用権のみを更新して終了する(ステ
ップ43)。一致するレコードがないならば、新規登録
なので、共通領域に対して利用者定義テーブル6の1レ
コード分の領域を確保する(ステップ44)。利用者定
義テーブル6の最終レコードの後アドレスに新しく確保
したエリアのアドレスをセットする(ステップ45)。
新レコードにファイル名、分割ファイル名、利用者名、
利用権、及び前アドレスをセットして終了する(ステッ
プ46)。
As shown in FIG. 4, the user definition table 6 of FIG. 2 is searched by the file name, the divided file name, and the user name (step 41). It is determined whether there is a matching record (step 42). If there is a matching record, only the usage right is updated and the process ends (step 43). If there is no matching record, since it is a new registration, one record area of the user definition table 6 is secured in the common area (step 44). The address of the newly secured area is set in the address after the last record of the user definition table 6 (step 45).
File name, split file name, user name,
The usage right and the previous address are set and the process ends (step 46).

【0009】図5は、利用者が分割ファイルを利用する
際に、利用する権利を有しているかどうかのチェックを
行う利用権判別手段2の処理の一例を示す流れ図であ
る。
FIG. 5 is a flow chart showing an example of the processing of the usage right discriminating means 2 for checking whether or not the user has the right to use the divided file when using the divided file.

【0010】図5に示すように、図2の利用者定義テー
ブル6をファイル名、分割ファイル名及び利用者名で検
索する(ステップ51)。該当するレコードがあるかど
うかを判別して、なければ異常終了する(ステップ5
2)。該当するレコードがあれば、処理の要求が利用者
定義テーブル6に設定されている利用権の範囲内かどう
かをチェックして、範囲外ならば異常終了し、範囲内な
らば終了する(ステップ53)。
As shown in FIG. 5, the user definition table 6 shown in FIG. 2 is searched by the file name, the divided file name and the user name (step 51). It is determined whether there is a corresponding record, and if there is no record, the process ends abnormally (step 5).
2). If there is a corresponding record, it is checked whether or not the processing request is within the range of the usage right set in the user definition table 6, and if it is out of the range, the process ends abnormally, and if it is within the range, the process ends (step 53). ).

【0011】図6は、要求の資源を現在利用している者
の情報を保存スタックに保存する処理を行う利用状態保
存手段3の処理の一例を示す図である。
FIG. 6 is a diagram showing an example of the processing of the usage status storage means 3 for storing the information of the person who is currently using the requested resource in the storage stack.

【0012】図6に示すように、図3の資源管理テーブ
ル7から1レコードを取得する(ステップ61)。取得
したレコードの後アドレスに、何も入ってないならば終
了する(ステップ62)。後アドレスにアドレスが設定
されていれば、ファイル名と分割ファイル名とが一致す
るかどうかを判別して、一致しなければステップ61に
処理を移す(ステップ63)。一致すれば一致したレコ
ードの内容を保存スタックに保存してステップ61に処
理を移す(ステップ64)。
As shown in FIG. 6, one record is acquired from the resource management table 7 of FIG. 3 (step 61). If nothing is entered in the rear address of the acquired record, the process ends (step 62). If the address is set in the rear address, it is determined whether the file name and the divided file name match, and if they do not match, the process proceeds to step 61 (step 63). If they match, the contents of the matched record are saved in the save stack and the process proceeds to step 61 (step 64).

【0013】図7は、利用者からの要求が参照モードま
たは更新モードの際に、保存スタックを調べて問題がな
ければ資源管理テーブル7の更新と利用許可とを与える
参照更新手段4の処理の一例を示す流れ図である。
FIG. 7 shows the processing of the reference updating means 4 which, when the request from the user is in the reference mode or the update mode, checks the save stack and, if there is no problem, updates the resource management table 7 and gives a use permission. It is a flowchart which shows an example.

【0014】図7に示すように、利用請求のあった分割
ファイルを現在利用しているかどうかについて保存ステ
ックを調べて、利用していなければステップ74に処理
を移す(ステップ71)。現在、参照モード以外での利
用者がいるならば異常終了する(ステップ72)。要求
が参照モード以外であるならば異常終了する(ステップ
73)。要求が参照モードであるならば共通領域から資
源管理テーブル7の1レコード分の領域を確保する(ス
テップ74)。確保した領域に利用者ID、ファイル
名、分割ファイル名及び利用モードをセットして資源管
理テーブル7の木構造に追加する(ステップ75)。利
用者IDを利用者に返却する(ステップ76)。
As shown in FIG. 7, the save stick is checked to see if it is currently using the divided file for which usage has been requested, and if not, the process moves to step 74 (step 71). If there is a user other than the reference mode at present, the process ends abnormally (step 72). If the request is other than the reference mode, the process ends abnormally (step 73). If the request is the reference mode, an area for one record of the resource management table 7 is secured from the common area (step 74). The user ID, the file name, the divided file name, and the usage mode are set in the secured area and added to the tree structure of the resource management table 7 (step 75). The user ID is returned to the user (step 76).

【0015】図8は、利用者からの要求が削除または終
了(分割ファイルのクローズ)の際に、保存スタックを
調べて問題がなければ資源管理テーブル7または利用者
定義テーブル6の更新を行う削除終了手段5の処理の一
例を示す流れ図である。
In FIG. 8, when a request from a user is deleted or terminated (division of a divided file), the save stack is checked and if there is no problem, the resource management table 7 or the user definition table 6 is updated. 8 is a flowchart showing an example of processing of the ending unit 5.

【0016】図8に示すように、要求が終了処理かどう
かを判別する(ステップ81)。終了処理の要求なら
ば、資源管理テーブル7を利用者IDで検索して、該当
するレコードを木構造から外し、その領域を開放して終
了する(ステップ82)。終了処理の要求でないなら
ば、削除処理の要求なので保存スタックを調べて、現在
資源を利用している者がいるならば異常終了する(ステ
ップ83)。現在利用者がいないならば、利用者定義テ
ーブル6をファイル名と分割ファイル名とで検索して、
該当するレコードを全て木構造から外し、その領域を開
放して終了する(ステップ84)。
As shown in FIG. 8, it is determined whether or not the request is a termination process (step 81). If it is a request for end processing, the resource management table 7 is searched by the user ID, the corresponding record is removed from the tree structure, the area is released, and the processing is ended (step 82). If it is not a request for termination processing, it is a request for deletion processing, so the save stack is checked, and if there is a person who is currently using the resource, it is abnormally terminated (step 83). If there is no user at present, the user definition table 6 is searched by the file name and the split file name,
All the corresponding records are removed from the tree structure, the area is released, and the process ends (step 84).

【0017】[0017]

【発明の効果】以上説明したように、本発明のファイル
制御方式は、複数の利用者が同一のファイルを参照した
り更新したりする場合に、不整合を生じることなくその
ファイルを分割して共同利用することができるという効
果を有している。
As described above, according to the file control method of the present invention, when a plurality of users refer to or update the same file, the file is divided without causing inconsistency. It has the effect that it can be shared.

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

【図1】本発明のファイル制御方式の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of a file control system of the present invention.

【図2】利用者定義テーブル6の一例を示す図である。FIG. 2 is a diagram showing an example of a user definition table 6.

【図3】資源管理テーブル7の一例を示す図である。FIG. 3 is a diagram showing an example of a resource management table 7.

【図4】利用権登録手段1の処理の一例を示す流れ図で
ある。
FIG. 4 is a flowchart showing an example of processing of the usage right registration means 1.

【図5】利用権判別手段2の処理の一例を示す流れ図で
ある。
FIG. 5 is a flowchart showing an example of processing of the usage right discriminating means 2;

【図6】利用状態保存手段3の処理の一例を示す流れ図
である。
FIG. 6 is a flow chart showing an example of processing of a usage status storage unit 3.

【図7】参照更新手段4の処理の一例を示す流れ図であ
る。
FIG. 7 is a flow chart showing an example of processing of a reference updating unit 4.

【図8】削除終了手段5の処理の一例を示す流れ図であ
る。
FIG. 8 is a flow chart showing an example of processing of a deletion end means 5.

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

1 利用権登録手段 2 利用権判別手段 3 利用状態保存手段 4 参照更新手段 5 削除終了手段 6 利用者定義テーブル 7 資源管理テーブル 1 usage right registration means 2 usage right determination means 3 usage status storage means 4 reference update means 5 deletion end means 6 user definition table 7 resource management table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の利用者が、同一のファイルを分割
利用するファイル管理システムのファイル制御方式にお
いて、 資源の利用権をシステム共通領域の利用者定義テーブル
に登録する利用権登録手段と、 資源の利用時の、前記利用者定義テーブルを参照して、
利用者が資源を利用する権利を有しているか、及び要求
が利用者の利用権の範囲内であるかのチェックを行う利
用権判別手段と、 システム共通領域の資源管理テーブルを検索して、同一
の資源を利用中ならば、前記資源管理テーブルの内容を
保存スタックに保存する利用状態保存手段と、 資源の参照や更新の処理の要求時に、前記資源管理テー
ブルの更新及び資源の利用許可を与える参照更新手段
と、 資源の削除や終了の処理の要求時に、前記資源管理テー
ブル及び前記利用者定義テーブルの更新並びに資源の削
除や終了の許可を与える削除終了手段とを有することを
特徴とするファイル制御方式。
1. In a file control method of a file management system in which a plurality of users divides and uses the same file, a user right registration means for registering a resource use right in a user definition table in a system common area, and a resource. Refer to the user definition table when using
A usage right determination means for checking whether the user has the right to use the resource and whether the request is within the usage right of the user, and the resource management table in the system common area are searched, If the same resource is being used, a usage state saving means for saving the contents of the resource management table in a save stack, and updating the resource management table and permitting the use of the resource at the time of requesting a process for referring or updating the resource. A reference updating means for giving, and a deletion ending means for giving permission for updating the resource management table and the user definition table and for deleting or ending the resource when a request for processing for deleting or ending the resource is made. File control method.
JP4225454A 1992-08-25 1992-08-25 File control system Pending JPH0675843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4225454A JPH0675843A (en) 1992-08-25 1992-08-25 File control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4225454A JPH0675843A (en) 1992-08-25 1992-08-25 File control system

Publications (1)

Publication Number Publication Date
JPH0675843A true JPH0675843A (en) 1994-03-18

Family

ID=16829606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4225454A Pending JPH0675843A (en) 1992-08-25 1992-08-25 File control system

Country Status (1)

Country Link
JP (1) JPH0675843A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0676699A2 (en) * 1994-04-04 1995-10-11 Symbios Logic Inc. Method of managing resources shared by multiple processing units

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0676699A2 (en) * 1994-04-04 1995-10-11 Symbios Logic Inc. Method of managing resources shared by multiple processing units
EP0676699A3 (en) * 1994-04-04 1995-10-18 Symbios Logic Inc. Method of managing resources shared by multiple processing units
US6009275A (en) * 1994-04-04 1999-12-28 Hyundai Electronics America, Inc. Centralized management of resources shared by multiple processing units

Similar Documents

Publication Publication Date Title
US6205466B1 (en) Infrastructure for an open digital services marketplace
US8818939B2 (en) Method and apparatus for data processing
JP2002099454A (en) File control system and method
WO1999033001A1 (en) A fine-grained consistency mechanism for optimistic concurrency control using lock groups
JPH06290096A (en) Pass name solving device
JP2008524694A (en) Techniques for providing locks for file operations in database management systems
WO2019206211A1 (en) Permission management method and device
CN116303661B (en) Processing method, device and system for sequences in distributed database
JPH0675843A (en) File control system
JP2001075854A (en) Method and system for data management, and storage medium with data management program stored therein
JP2924786B2 (en) Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system
US7904419B1 (en) Managing allocation of temporary and permanent files in a database system
JP3524270B2 (en) Parallel processing system
CN112867999B (en) Version-based table locking
JP2787107B2 (en) Buffer control system and device
JPH1055300A (en) File access method
JPS63305438A (en) Exclusive control system for files to be used in common between plural host computers
JPS6150356B2 (en)
JPH0619769A (en) Record lock control method
JP2002175286A (en) Storage device, information processing system and exclusive control method
JPH03222047A (en) Area control system
JPH09305449A (en) Data base managing system
JPH0414161A (en) Transaction processing system
CN112867999A (en) Version-based table locking
JPH1131098A (en) System resource management system for transaction

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990928