JPH01140352A - Filing device - Google Patents

Filing device

Info

Publication number
JPH01140352A
JPH01140352A JP62297512A JP29751287A JPH01140352A JP H01140352 A JPH01140352 A JP H01140352A JP 62297512 A JP62297512 A JP 62297512A JP 29751287 A JP29751287 A JP 29751287A JP H01140352 A JPH01140352 A JP H01140352A
Authority
JP
Japan
Prior art keywords
exclusive control
file
access
information
identification code
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
JP62297512A
Other languages
Japanese (ja)
Inventor
Mitsugi Katayama
貢 片山
Tsuyoshi Takahashi
強 高橋
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62297512A priority Critical patent/JPH01140352A/en
Publication of JPH01140352A publication Critical patent/JPH01140352A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform exclusive control in spite of the execution state of an exclusive control program by performing the exclusive control by providing the managing information of the exclusive control on a file that is the object of the exclusive control. CONSTITUTION:An area to store the information of the exclusive control is provided at each of the files 9-11 other than the area to store data, and the identification code of a user requesting the exclusive control is written on the information of the exclusive control on the file. A computer 14 manages the access of the files 9-11, and permits the access to the file only when designation is issued from another computer via an I/O device 15 for the code which coincides with the identification code of the user written on the information of the exclusive control on the files 9-11. Thus, since the information of the exclusive control is provided on the object of the exclusive control, it is possible to perform the exclusive control without leaving the program performing the exclusive control at the execution state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、排他制御を行う電子計算機のファイル装置に
関するものであり、特に複数システムで1つのファイル
を共用するシステムに好適なファイル装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file device for a computer that performs exclusive control, and particularly to a file device suitable for a system in which one file is shared by multiple systems.

〔従来の技術〕[Conventional technology]

従来技術では、「オペレーティングシステムへの構造的
アプローチ(下巻)」のp736〜p757にあるよう
に、システムの資源を複数のプログラムが同時にアクセ
スすることによるデータの破壊を防ぐための排他制御を
、資源の名称によりオペレーティングシステムが主記憶
上で管理し、同一資源を一度に1つのプログラムしか使
用できないようにしていた。ここで、資源とはファイル
等の任意の大きさのデータのかた1つを指す。
In the conventional technology, as described in "Structural Approach to Operating Systems (Volume 2)" on pages 736 to 757, exclusive control is applied to resources to prevent data destruction caused by multiple programs accessing system resources simultaneously. Under the name , the operating system managed it in main memory, and only one program could use the same resource at a time. Here, a resource refers to a piece of data of any size, such as a file.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来技術では、排他制御プログラムが排他を要求してい
るユーザの識別コードと排他制御対象のファイル名称を
主記憶上に格納しておくことにより排他制御を行ってい
る。ファイルアクセスを行うプログラムは、この排他制
御プログラムにファイルアクセス要求を出し、許可され
たときにファイルアクセスを行う。これを第3図に示す
っこの方法では、排他制御を行っている間は、この排他
制御プログラムを実行状態にし7ておく必要がある。し
かし、計鼻機の運用、保持等のために、この排他制御プ
ログラムの実行を停止させる場合があるので、この間は
排他制御を行えないという問題があった。
In the prior art, exclusive control is performed by an exclusive control program storing in the main memory the identification code of the user requesting exclusion and the file name to be subjected to exclusive control. A program that accesses a file issues a file access request to this exclusive control program, and when permission is granted, accesses the file. In this method shown in FIG. 3, it is necessary to keep the exclusive control program in an execution state while exclusive control is being performed. However, there is a problem in that the exclusive control program cannot be executed during this period because the execution of the exclusive control program may be stopped in order to operate or maintain the nose meter.

本発明の目的は、排他制御プログラムの実行状態に関係
なく排他制御を行えるようにすることである。
An object of the present invention is to enable exclusive control to be performed regardless of the execution state of an exclusive control program.

〔問題点を解決するための手段〕[Means for solving problems]

従来技術の問題点を解決するために、排他制御の情報と
して、排他制御を要求しているユーザの誠別コードを排
他制御の対象であるファイル上に格納しておき、ファイ
ルアクセスプログラムに排他制御機能を持たせることに
より、排他制御を行う。これを第2図に示す。
In order to solve the problems of the conventional technology, the sincerity code of the user requesting exclusive control is stored as exclusive control information on the file that is the target of exclusive control, and the exclusive control is applied to the file access program. Exclusive control is achieved by providing functions. This is shown in FIG.

〔作用〕[Effect]

ファイルアクセスプログラムは、アクセス開始時にアク
セス9否のチエツクを行う。ファイル上にユーザの識別
コードが書き込まれていないときはアクセスaJとする
。ファイル上にユーザの識別コードが書き込まれている
ときは、アクセス要求シティるユーザの識別コードと、
ファイル上のそれとを比較し、一致するときのみアクセ
ス町とする。一致しないときはアクセスを禁止する。
The file access program checks whether the access is 9 or not when starting the access. If the user identification code is not written on the file, access is aJ. If the user identification code is written on the file, the identification code of the user making the access request and
Compare it with that on the file and access it only if it matches. If they do not match, access is prohibited.

排他制御の開始時の識別コードの書き込みおよび終了時
の識別コードの消去は、従来の排他制御技術を使用する
A conventional exclusive control technique is used to write the identification code at the start of exclusive control and erase the identification code at the end.

以上により、排他制御を行うプログラムを実行状態にし
ておく必要なく排他制御を行える。
As described above, exclusive control can be performed without the need to keep the program that performs exclusive control in an execution state.

〔実施例〕〔Example〕

第1図に本発明の一実施例を示す。9〜11はデータを
格納しておくファイル群であり、各ファイル共、データ
を格納しておく領域のほかに、排他制御情報を格納する
領域も持つ(以下ファイル9〜11と称す)。このファ
イル上の排他制御情報には、排他制御を要求しているユ
ーザの識別コードが書き込まれる。14は、ファイル9
〜11のアクセスを管理し、ファイル9〜11の排他制
御情報に書き込まれたユーザの識別コードと一致したコ
ードがI10装置15を介して他のコンピュータから指
定されたときにのみファイルアクセスを許可する(以下
コンビエータ14と称す)。
FIG. 1 shows an embodiment of the present invention. Reference numerals 9 to 11 are a group of files for storing data, and each file has an area for storing exclusive control information in addition to an area for storing data (hereinafter referred to as files 9 to 11). The identification code of the user requesting exclusive control is written in the exclusive control information on this file. 14 is file 9
-11, and allows file access only when a code that matches the user identification code written in the exclusive control information of files 9-11 is specified from another computer via the I10 device 15. (hereinafter referred to as combiator 14).

I10装置15は、コンピュータ14と他のコンピュー
タとの識別コード、ファイル名およヒテータの授受を行
う。16〜18は、コンピュータ14がアクセスの管理
をするファイル9〜11から読み出したデータを編集す
る(以下コンピュータ16〜18.!−称f)。このコ
ンピータ16〜18は、ファイル9〜11から読み出し
たデータを、それぞれのコンピュータで独自に編集でき
る機能を持つ。
The I10 device 15 exchanges identification codes, file names, and data between the computer 14 and other computers. 16 to 18 edit data read from files 9 to 11 whose access is managed by the computer 14 (hereinafter referred to as computers 16 to 18.!-f). The computers 16-18 have a function of independently editing the data read from the files 9-11.

つぎに、本実施例の動作を第3図により説明する。コン
ピュータ16.17または18によるファイル9.10
または11のアクセスは以下の方法で行う。
Next, the operation of this embodiment will be explained with reference to FIG. File 9.10 by computer 16.17 or 18
Or 11 access is performed by the following method.

(11コンピュータ4に対してI10装置15を介して
、使用者の識別コードとアクセスを要求するファイル名
を渡す。
(11 Passes the user's identification code and the file name to which access is requested to the computer 4 via the I10 device 15.

(2)コンピュータ14は、渡されたファイル名により
、目的のファイルを選び、そのファイル上の排他制御情
報を見る。このときファイル上のデータにより次のよう
に動作する。
(2) The computer 14 selects the target file based on the passed file name and looks at the exclusive control information on the file. At this time, it operates as follows depending on the data on the file.

(a)  排他制御情報に何も書き込まれていなげれば
渡された識別コードをそこに書き込み、アクセスを許可
する。(排他制御の開始) (b)  排他制御情報に、渡された識別コードと一致
した識別コードが書き込まれていたときは、アクセスを
許可する。(排他制御中) fc)  排他制御情報に、渡された識別コードと異な
る識別コードが書き込まれていたときは、アクセスを禁
止する。(排他制御中) また、コンピュータ16.17または18にょるファイ
/I/9 、10または11のアクセス終了時(排他制
御終了時)は、コンビエータ16,17または18がコ
ンビエータ14に対して、その終了を伝えることにより
、当該のファイル上の識別コードの消去で排他制御を終
了する。
(a) If nothing is written in the exclusive control information, write the passed identification code there and permit access. (Start of exclusive control) (b) If an identification code that matches the passed identification code is written in the exclusive control information, access is permitted. (During exclusive control) fc) If an identification code different from the passed identification code is written in the exclusive control information, access is prohibited. (During exclusive control) Also, when the access of the file/I/9, 10 or 11 to the computer 16, 17 or 18 ends (at the end of exclusive control), the combiator 16, 17 or 18 will By notifying the end, exclusive control is ended by erasing the identification code on the file.

本実施例によれば、ファイルアクセスの排他制御を行っ
ている間はそれを要求したコンピュータを停止させても
排他制御状態を保持できる効果がある。
According to this embodiment, while exclusive control of file access is being performed, the exclusive control state can be maintained even if the computer that requested it is stopped.

〔発明の効果〕 本実施例によればつぎの効果がある。〔Effect of the invention〕 This embodiment has the following effects.

(1)排他制御情報を排他制御の対象上に持つので、排
他制御を行っているプログラムを実行状態のままにして
おかなくても排他制御を行える。
(1) Since exclusive control information is held on the target of exclusive control, exclusive control can be performed without leaving the program performing exclusive control in an execution state.

(2)排他制御の管理情報として、従来技術の主記憶上
でのファイル名称により識別する方法と比べ、本発明の
ファイル上での排他を行っているユーザの識別コードに
より識別する方法では、その情報量が減少(約100バ
イト→約20バイト)できる。
(2) As management information for exclusive control, compared to the conventional method of identifying it by the file name on the main memory, the method of the present invention which identifies it by the identification code of the user who is performing exclusive control on the file. The amount of information can be reduced (from about 100 bytes to about 20 bytes).

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の一実施例を示すシステム構成図、 第2図は、本発明における排他制御を表わす図、第3図
は、従来技術における排他制御を表わす図。 1〜3・・・データのみ格納するファイル、4・・・排
他制御プログラム、5,6・・・データアクセスのみ行
うファイルアクセスプログラム、7,8・・・ファイル
を使用するプログラム、9〜11・・・排他制御情報と
データを格納するファイル、12.13・・・排他制御
とデータアクセスを行うファイルアクセスプログラム、
14・・・ファイルアクセスを管理スるコンピュータ、
15・・・I10装置、16〜18・・・ファイル上の
データを編集するコンピュータ。
FIG. 1 is a system configuration diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing exclusive control in the present invention, and FIG. 3 is a diagram showing exclusive control in the prior art. 1-3... File that stores only data, 4... Exclusive control program, 5, 6... File access program that only accesses data, 7, 8... Program that uses files, 9-11. ...File that stores exclusive control information and data, 12.13...File access program that performs exclusive control and data access,
14...A computer that manages file access,
15... I10 device, 16-18... Computer for editing data on a file.

Claims (1)

【特許請求の範囲】[Claims] 1、電子計算機のファイル装置において、排他制御の管
理情報を排他制御の対象であるファイル上に持つことに
より排他制御を行うことを特徴とするファイル装置。
1. A file device for a computer, characterized in that exclusive control is performed by having exclusive control management information on a file that is subject to exclusive control.
JP62297512A 1987-11-27 1987-11-27 Filing device Pending JPH01140352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62297512A JPH01140352A (en) 1987-11-27 1987-11-27 Filing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62297512A JPH01140352A (en) 1987-11-27 1987-11-27 Filing device

Publications (1)

Publication Number Publication Date
JPH01140352A true JPH01140352A (en) 1989-06-01

Family

ID=17847476

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62297512A Pending JPH01140352A (en) 1987-11-27 1987-11-27 Filing device

Country Status (1)

Country Link
JP (1) JPH01140352A (en)

Similar Documents

Publication Publication Date Title
US5390297A (en) System for controlling the number of concurrent copies of a program in a network based on the number of available licenses
US6363385B1 (en) Method and apparatus for making independent data copies in a data processing system
PL183365B1 (en) Computer system for archiving open files
JP2005276158A (en) Storage system, computer system and method of establishing attribute of storage area
CN103593607A (en) Method and device for file system isolation of host machine and virtual machine
CN111858020B (en) User resource limiting method and device and computer storage medium
JPH01140352A (en) Filing device
US20030236801A1 (en) Method and apparatus for making differential independent data copies in a data processing system
KR101699046B1 (en) File Security system based on filter driver and method thereof
JPH06124239A (en) Resident data controller for cache memory
JP4972410B2 (en) Method for controlling access in flash memory and system for implementation of such method
JP4648196B2 (en) Information recording medium, access device for information recording medium, and area setting method
KR102624825B1 (en) Business hours and group access authority management system based on user identification account
US20090132228A1 (en) Tape management method and tape management system
US7428557B2 (en) Efficient data transfer to/from storage medium of computing device
JP2501050Y2 (en) IC card
JPS61276040A (en) File access system
JPH09185540A (en) Multi-process system
JP2017162382A (en) Storage control device, storage device, storage control method, and program
JP2581145B2 (en) Security processing method
JP2915612B2 (en) Shared area management method
JPH02143318A (en) Ras processor
JPS581243A (en) Protection system of confidentiality of file
JPS63168743A (en) Control system for shared use of file for virtual computer system
JPH01253049A (en) Electronic computer