JPS63289657A - Common file access system - Google Patents

Common file access system

Info

Publication number
JPS63289657A
JPS63289657A JP62124842A JP12484287A JPS63289657A JP S63289657 A JPS63289657 A JP S63289657A JP 62124842 A JP62124842 A JP 62124842A JP 12484287 A JP12484287 A JP 12484287A JP S63289657 A JPS63289657 A JP S63289657A
Authority
JP
Japan
Prior art keywords
block
copy
access
shared file
management table
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
JP62124842A
Other languages
Japanese (ja)
Inventor
Satoru Suzuki
悟 鈴木
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 JP62124842A priority Critical patent/JPS63289657A/en
Publication of JPS63289657A publication Critical patent/JPS63289657A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To speed up accessing operation and to improve the using efficiency of a line by forming an access management table for managing accesses to files of respective terminals in a host computer and forming a table for managing the copy of a common file and its copying state in each terminal. CONSTITUTION:Each terminal equipment 2 is provided with a common file 4, a common file copy storing device 23 for storing the copy of a partial block of the common file 4 and a table 24 for managing the updating state of the block copy in each block. In response to an access request to the files 4, 5 a block copy in the device 23 generating the access request is retrieved by the table 24 in the self-device. When an objective block copy exists, the copy is read out or rewritten and updated to update the corresponding block of the files 4, 5. Then, the updating of the block is informed to the equipment 2 using the block copy corresponding to the updated block based on the management table 13 in the host computer 1.

Description

【発明の詳細な説明】 技術分野 本発明は共用ファイルアクセス方式に関し、特にホスト
計算機が有する共用ファイルを複数の端末装置が通信回
線を介してアクセスする共用ファイルアクセス方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a shared file access method, and more particularly to a shared file access method in which a plurality of terminal devices access a shared file owned by a host computer via a communication line.

従来技術 従来のこの種の共用ファイルアクセス方式が採用される
システムにおいては、共用ファイルはホスト計算機内に
のみ保有されており、よって各端末装置は共用ファイル
のアクセス要求が生ずる毎に通信回線を介してホスト計
算機内の共用ファイルをアクセスするようになっている
Prior Art In a conventional system that employs this type of shared file access method, the shared file is held only in the host computer, and each terminal device accesses the shared file via a communication line every time a shared file access request occurs. accesses shared files on the host computer.

上述した従来の共用ファイルアクセス方式では、ファイ
ルに対するアクセスは常に通信回線を介して行われるた
め、通信回線の速度でファイルへのアクセス速度が制限
されるという欠点がある。また、アクセス要求毎に通信
回線を介してファイルの転送が行われるために、同一の
ファイルに対して繰返しアクセスを行う場合に、通信回
線上を同一のデータが繰返し送られることになって非常
に無駄であるという欠点がある。
In the conventional shared file access method described above, since access to files is always performed via a communication line, there is a drawback that the speed of access to a file is limited by the speed of the communication line. In addition, since files are transferred via communication lines for each access request, when accessing the same file repeatedly, the same data is repeatedly sent over the communication line, which can be very difficult. The drawback is that it is wasteful.

発明の目的 そこで、本発明はこの様な従来技術の欠点を解決すべく
なされたちのであって、その目的とするところは、共用
ファイルへのアクセスの高速化及び通信回線上の転送デ
ータ最の削減を可能とした共用ファイルアクセス方式を
提供することにある。
Purpose of the Invention The present invention has been made to solve these drawbacks of the prior art, and its purpose is to speed up access to shared files and minimize data transferred over communication lines. The objective is to provide a shared file access method that enables

発明の構成 本発明によれば、ホスト計算機が有する共用ファイルを
複数の端末装置が通信回線を介してアクセスする共用フ
ァイルアクヒス方式であって、菊記ホスト訓算機におい
て、前記共用ファイルに対する各端末装置からのアクセ
ス状況をこの共用ファイルの一定ブロック毎に管理する
管理テーブルを設け、前記端末装置の各々において、前
記共用ファイルの一部ブロックの写しを格納する格納手
段と、このブロックの写しの更新状!l!をブロック毎
に管理する管理テーブルとを設け、前記共用ファイルへ
のアクセス要求に応答してこのアクセス要求を発生した
端末装置内の格納手段におけるブロック写しを自装置内
の管理テーブルにより検索し、目的とするブロック写し
が存在すれば、これを読出し若しくは書換え更新し、こ
のブロック写しの更新に応答して前記共用ファイルの対
応ブロックの更新を行うと共に、前記ホスト計算機内の
管理テーブルに従って当該更新されたブロックに対応す
るブロック写しを使用する端末装置に対してそのブロッ
クの更新通知をなすようにしたことを特徴とする共用フ
ァイルアクセス方式が得られる。
Structure of the Invention According to the present invention, there is provided a shared file access method in which a plurality of terminal devices access a shared file owned by a host computer via a communication line. A management table is provided to manage the access status from the terminal device for each fixed block of the shared file, and each of the terminal devices includes a storage means for storing a copy of a partial block of the shared file, and a storage means for storing a copy of a partial block of the shared file. Update letter! l! In response to an access request to the shared file, a block copy in the storage means in the terminal device that generated the access request is searched by the management table in the own device, and If a block copy exists, it is read or rewritten and updated, and in response to the update of this block copy, the corresponding block of the shared file is updated, and the updated block is updated according to the management table in the host computer. A shared file access system is obtained, characterized in that a block update notification is sent to a terminal device that uses a block copy corresponding to the block.

1塵1 以下に図面を参照して本発明の実施例について詳細に説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例のシステム的ブロック図であり
、ホスト計算機1と端末装置2とは通信回線3にて相互
接続されており、図においては端末装置として1個のみ
が示されているが、複数の端末装置が通信回線3を介し
てホスト計算機1に接続されているものとする。これ等
各端末装置2はホスト計算機1に接続されている共用フ
ァイル4及び5に対して通信回線3を介してアクセス自
在となっている。
FIG. 1 is a system block diagram of an embodiment of the present invention, in which a host computer 1 and a terminal device 2 are interconnected through a communication line 3, and only one terminal device is shown in the figure. However, it is assumed that a plurality of terminal devices are connected to the host computer 1 via the communication line 3. Each of these terminal devices 2 can freely access shared files 4 and 5 connected to the host computer 1 via a communication line 3.

ホスト計算機1はCPU11と、送受信部12と、管理
テーブル13とを含んでいる。管理テーブル13はホス
ト計算機内のメモリ上に設けられており、各端末からの
共用ファイルに対するアクセス状況を記録するためのテ
ーブルである。この管理テーブル13は、第2図(A)
に示す如く、共用ファイル4及び5の各ブロックに夫々
対応して、各ブロック毎のID(識別番号)、そのブロ
ックの状態表示(ST)、アクセス中の端末のID及び
そのアクセス権(書込み/読出しアクセス。
The host computer 1 includes a CPU 11, a transmitter/receiver 12, and a management table 13. The management table 13 is provided on the memory within the host computer, and is a table for recording access status from each terminal to the shared file. This management table 13 is shown in FIG.
As shown in , for each block of shared files 4 and 5, the ID (identification number) of each block, the status display (ST) of that block, the ID of the terminal accessing it, and its access rights (write/write/ Read access.

R/W>の各記録部から構成されている。R/W> recording sections.

尚、共用ファイル4及び5は一定の大きさのブロック単
位にて管理されており、各ブロックにはブロックIDが
夫々付与されている。
Note that the shared files 4 and 5 are managed in blocks of a fixed size, and each block is assigned a block ID.

端末装置2はCPU21と、送受信部22と、共用ファ
イル写し部23と、管理テーブル24とを含んでいる。
The terminal device 2 includes a CPU 21, a transmitting/receiving section 22, a shared file copying section 23, and a management table 24.

共用ファイル写し部23は共用ファイル4及び5の一部
の写しをブロック単位に格納するメモリであり、管理テ
ーブル24は共用ファイルの写しの更新状況をブロック
単位に管理するものである。
The shared file copy unit 23 is a memory that stores copies of part of the shared files 4 and 5 in blocks, and the management table 24 manages the update status of copies of the shared files in blocks.

この管理テーブル24は、第2図(B)に示す如く、共
用ファイルの写しのブロックIDとその状態表示(ST
)とを記録する各記録部を有している。
As shown in FIG. 2(B), this management table 24 includes the block ID of the copy of the shared file and its status (ST
).

第2図は第1図に示した実施例のファイルアクセス手順
を示したフローチャートである。端末装置からの共用フ
ァイルへのアクセス要求が発生されると(ステップ31
)、端末装置は自己の管理テーブル24により自装置内
のメモリ23内に該当するブロックの写しが存在するか
どうか判定する。この判定は管理テーブル24を参照す
ることにより検索しつつ行われることになる(ステップ
32)。メモリ23にファイルの写しが存在する場合に
は、自装置内でアクセスが開始されることになる。
FIG. 2 is a flowchart showing the file access procedure of the embodiment shown in FIG. When a request to access a shared file is generated from a terminal device (step 31
), the terminal device uses its own management table 24 to determine whether a copy of the corresponding block exists in the memory 23 within the terminal device. This determination is made while searching by referring to the management table 24 (step 32). If a copy of the file exists in the memory 23, access will be initiated within the own device.

メモリ23にファイルの写しが存在しない場合、ホスト
に対して該当ブロックの転送要求を行うが、このときメ
モリ23に空き領域が存在するかどうかが判定され(ス
テップ33)、空き領域があればファイル転送要求を行
う(ステップ34)、ホストはこれに応答してアクセス
要求のあるファイルを転送する。このとき、ホストは端
末装置のアクセス権と、書込みアクセスの競合状態とを
管理テーブル13によりチェックし、該当するブロック
がアクセス中でなければ、このブロックのIDとアクセ
ス要求を出した端末のID及びそのアクセス権とを管理
テーブル13に追加する(ステップ35)。
If a copy of the file does not exist in the memory 23, a request is made to the host to transfer the corresponding block, but at this time it is determined whether there is free space in the memory 23 (step 33), and if there is free space, the file is transferred. A transfer request is made (step 34), and in response, the host transfers the file for which access is requested. At this time, the host checks the access rights of the terminal device and the contention state of write access using the management table 13, and if the corresponding block is not being accessed, the ID of this block, the ID of the terminal that issued the access request, and The access right is added to the management table 13 (step 35).

該当ブロックがアクセス中であれば、既にテーブル13
中に存在するアクセス情報に新たに、要求を出した端末
のTDとアクセス権とを追加した後、端末装置に対して
ファイルの転送を行うのである。端末装置側では、この
ファイルを受信するとメモリ23へこれを格納すると共
に、管理テーブル24にブロックIDの登録を行う(ス
テップ36)。
If the corresponding block is being accessed, table 13 has already been accessed.
After newly adding the TD and access rights of the terminal that issued the request to the access information existing in the file, the file is transferred to the terminal device. When the terminal device side receives this file, it stores it in the memory 23 and registers the block ID in the management table 24 (step 36).

メモリ23にファイルの写しを作成する空き領域がない
場合、端末装置は書込み系のアクセスが完了してポスト
側へ引取られていないファイルのブロックの引取りを要
求する(ステップ37)。
If there is no free space in the memory 23 to create a copy of the file, the terminal device requests the post side to receive the block of the file that has not been received after the write access has been completed (step 37).

ホスト側では、この要求を受けると端末よりファイルの
転送を受け、共用ファイルの更新と管理テーブル13の
更新を行う(ステップ38)。端末側では、引取られた
ブロックの管理テーブルを更新しくステップ39)、こ
こで始めてホストに対してアクセス対象のファイルの転
送要求を行うことになる(ステップ34)。
Upon receiving this request, the host side receives the file transfer from the terminal and updates the shared file and the management table 13 (step 38). The terminal side updates the management table of the taken block (step 39), and only then requests the host to transfer the file to be accessed (step 34).

当該アクセス要求が書込みアクセスであれば(ステップ
40)、メモリ23の該当ブロックに対して書込みアク
セスを行い、ホストへ送信通知を発行する(ステップ4
1)。この通知を受けたホストは該当ブロックの無効を
管理テーブル13上に記録し、該当ブロックを使用中の
端末にファイル更新の通知を行うくステップ42)。変
更済のファイルの転送はホストから要求があるまで行わ
れない(ステップ45.46参照)。書込みアクセスは
単一の端末にのみ許される。共用ファイルの写しを保有
する端末がファイル更新通知を受けると、管理テーブル
24上で該当するファイルを無効と設定する。ステップ
40において、当該アクセス要求が読出しアクセスであ
れば、メモリ23の該当ブロックに対してアクセスが行
われ(ステップ43)、アクセス終了となる(ステップ
44)。
If the access request is a write access (step 40), write access is made to the corresponding block in the memory 23, and a transmission notification is issued to the host (step 4).
1). Upon receiving this notification, the host records the invalidity of the block in the management table 13, and notifies the terminal that is using the block of the file update (step 42). Transfer of modified files will not occur until requested by the host (see steps 45 and 46). Write access is allowed only to a single terminal. When a terminal holding a copy of a shared file receives a file update notification, it sets the corresponding file as invalid on the management table 24. In step 40, if the access request is a read access, the corresponding block of the memory 23 is accessed (step 43), and the access ends (step 44).

端末側が回線の切断を行う場合、書込み系アクセスによ
り更新されたファイルの引取りをホストに対して要求す
る(ステップ45)。ホストはファイルの転送を要求し
て共用ファイルの更新を行う(ステップ46)。端末は
更新されたファイルをすべて転送後回線を切断する。
When the terminal side disconnects the line, it requests the host to take over the file updated by write access (step 45). The host requests a file transfer and updates the shared file (step 46). The terminal disconnects the line after transferring all updated files.

以上の操作を行うことにより、共用ファイルと各端末内
のファイルの写しとの間の一致が常に維持されると共に
、端末から通信回線を通してのホストのファイルへのア
クセス回数が減少するため、アクセス速度の向上と回線
使用効率の向上が図れる。また、上記の操作をホストと
端末にそれぞれ内蔵されるO8(オペレーティングシス
テム)により行うことにより、端末ユーザは中間にファ
イルの写しが存在することを意識する必要は全くない。
By performing the above operations, a match between the shared file and the copy of the file on each terminal is maintained at all times, and the number of accesses from the terminal to the host's file through the communication line is reduced, thereby speeding up access. It is possible to improve the performance and line usage efficiency. Furthermore, by performing the above operations using O8 (operating system) built into the host and the terminal, the terminal user does not need to be aware of the existence of a copy of the file in between.

発明の詳細 な説明したように、本発明によれば、ホスト計算様内に
各端末のファイルに対するアクセスの管理テーブルを設
け、端末内に共用ファイルの写しと写しの状態を管理す
るテーブルとを設けることにより、端末ユーザは端末中
の写しをアクレしていることを意識することなしに、ア
クセスの高速化と通信回線上を転送するデータ吊の削減
とを実現できるという効果がある。
As described in detail, according to the present invention, a table for managing access to files of each terminal is provided in the host computer, and a table for managing copies of shared files and the status of the copies is provided in the terminals. This has the effect of increasing access speed and reducing the amount of data transferred over communication lines, without the terminal user being aware that he or she is accessing a copy on the terminal.

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

第1図は本発明の実施例のブロック図、第2図(A)、
(B)はホスト及び端末内の各管理テーブルを示す図、
第3図は本発明の実施例の動作を示すフローチャートで
ある。 主要部分の符号の説明 1・・・・・・ホスト計算礪 2・・・・・・端末装置 3・・・・・・通信回線 4.5・・・・・・共用ファイル 13.24・・・・・・管理テーブル 23・・・・・・メモリ
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2(A),
(B) is a diagram showing each management table in the host and terminal,
FIG. 3 is a flowchart showing the operation of the embodiment of the present invention. Explanation of symbols of main parts 1...Host calculation unit 2...Terminal device 3...Communication line 4.5...Shared file 13.24... ...Management table 23...Memory

Claims (1)

【特許請求の範囲】[Claims] ホスト計算機が有する共用ファイルを複数の端末装置が
通信回線を介してアクセスする共用ファイルアクセス方
式であつて、前記ホスト計算機において、前記共用ファ
イルに対する各端末装置からのアクセス状況をこの共用
ファイルの一定ブロック毎に管理する管理テーブルを設
け、前記端末装置の各々において、前記共用ファイルの
一部ブロックの写しを格納する格納手段と、このブロッ
クの写しの更新状態をブロック毎に管理する管理テーブ
ルとを設け、前記共用ファイルへのアクセス要求に応答
してこのアクセス要求を発生した端末装置内の格納手段
におけるブロック写しを自装置内の管理テーブルにより
検索し、目的とするブロック写しが存在すれば、これを
読出し若しくは書換え更新し、このブロック写しの更新
に応答して前記共用ファイルの対応ブロックの更新を行
うと共に、前記ホスト計算機内の管理テーブルに従って
当該更新されたブロックに対応するブロック写しを使用
する端末装置に対してそのブロックの更新通知をなすよ
うにしたことを特徴とする共用ファイルアクセス方式。
A shared file access method in which a plurality of terminal devices access a shared file owned by a host computer via a communication line, and in the host computer, the access status from each terminal device to the shared file is recorded as a certain block of the shared file. A management table is provided for managing each block, and each of the terminal devices is provided with a storage means for storing a copy of a partial block of the shared file, and a management table for managing an update state of the copy of this block for each block. , in response to the access request to the shared file, searches the management table in the own device for a block copy in the storage means in the terminal device that generated this access request, and if the target block copy exists, searches for it. A terminal device that reads or rewrites and updates, updates a corresponding block of the shared file in response to the update of this block copy, and uses a block copy corresponding to the updated block according to a management table in the host computer. A shared file access method characterized in that update notification of the block is sent to the user.
JP62124842A 1987-05-21 1987-05-21 Common file access system Pending JPS63289657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62124842A JPS63289657A (en) 1987-05-21 1987-05-21 Common file access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62124842A JPS63289657A (en) 1987-05-21 1987-05-21 Common file access system

Publications (1)

Publication Number Publication Date
JPS63289657A true JPS63289657A (en) 1988-11-28

Family

ID=14895443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62124842A Pending JPS63289657A (en) 1987-05-21 1987-05-21 Common file access system

Country Status (1)

Country Link
JP (1) JPS63289657A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02264349A (en) * 1989-04-05 1990-10-29 Nec Corp On-line data copying device
JPH03230234A (en) * 1990-02-06 1991-10-14 Oki Software Kk Retrieving method for data base
JPH05289924A (en) * 1992-04-09 1993-11-05 Oki Electric Ind Co Ltd Data base management system
JPH0683692A (en) * 1992-04-15 1994-03-25 Internatl Business Mach Corp <Ibm> Method and system for database access
JPH08272667A (en) * 1995-03-31 1996-10-18 Nec Corp File access control system
JPH1173356A (en) * 1997-08-29 1999-03-16 Tec Corp Merchandise sales data processor, method therefor and computer-readable storage medium stored with merchandise sales data processing program
JPH11232104A (en) * 1998-02-13 1999-08-27 Nec Corp Object update and management method and client/server system
JP2013025321A (en) * 2011-07-14 2013-02-04 Mitsubishi Electric Corp Data processing system, data processing method, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02264349A (en) * 1989-04-05 1990-10-29 Nec Corp On-line data copying device
JPH03230234A (en) * 1990-02-06 1991-10-14 Oki Software Kk Retrieving method for data base
JPH05289924A (en) * 1992-04-09 1993-11-05 Oki Electric Ind Co Ltd Data base management system
JPH0683692A (en) * 1992-04-15 1994-03-25 Internatl Business Mach Corp <Ibm> Method and system for database access
JPH08272667A (en) * 1995-03-31 1996-10-18 Nec Corp File access control system
JPH1173356A (en) * 1997-08-29 1999-03-16 Tec Corp Merchandise sales data processor, method therefor and computer-readable storage medium stored with merchandise sales data processing program
JPH11232104A (en) * 1998-02-13 1999-08-27 Nec Corp Object update and management method and client/server system
JP2013025321A (en) * 2011-07-14 2013-02-04 Mitsubishi Electric Corp Data processing system, data processing method, and program

Similar Documents

Publication Publication Date Title
JP2809961B2 (en) Multiprocessor
US7366835B2 (en) Data access responding system, storage system, client apparatus, cache apparatus, and method for accessing data access responding system
JP5166411B2 (en) Image management system and method via network
CN108363641B (en) Main and standby machine data transmission method, control node and database system
KR100776047B1 (en) Operating method of domain name system for updating adress information of server and domain name system of enabling the method
JPH0962558A (en) Method and system for database management
KR920704227A (en) Parallel Input / Output Network File Server Architecture
JPH11232226A (en) Cooperative work aiding system and storage medium
US8447825B2 (en) File sharing system and file sharing method
CN110119304A (en) A kind of interruption processing method, device and server
JP2022550401A (en) Data upload method, system, device and electronic device
JPS63289657A (en) Common file access system
JPH07239808A (en) Distributed data managing system
US20140025630A1 (en) Data-store management apparatus, data providing system, and data providing method
WO2016090985A1 (en) Cache reading method and apparatus, and cache reading processing method and apparatus
JPH06290090A (en) Remote file accessing system
CN114328364B (en) Data transmission method, device and equipment in full text search engine and storage medium
JP3819517B2 (en) Data transfer control method and computer system for distributed shared memory
JPH10320261A (en) File storage management system
JPH11232285A (en) Device and method for retrieving data
JP2002373098A (en) Backup system
JP2912334B1 (en) Document management method
KR20010028113A (en) method for data backup of DBMS in switching system
JPH1198448A (en) Video server system and access processing method therefor
JPH04153875A (en) Document storage system