JP2920978B2 - Library update method - Google Patents

Library update method

Info

Publication number
JP2920978B2
JP2920978B2 JP2004353A JP435390A JP2920978B2 JP 2920978 B2 JP2920978 B2 JP 2920978B2 JP 2004353 A JP2004353 A JP 2004353A JP 435390 A JP435390 A JP 435390A JP 2920978 B2 JP2920978 B2 JP 2920978B2
Authority
JP
Japan
Prior art keywords
file
library
updated
file name
updating
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.)
Expired - Fee Related
Application number
JP2004353A
Other languages
Japanese (ja)
Other versions
JPH03209537A (en
Inventor
山本  茂
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP2004353A priority Critical patent/JP2920978B2/en
Publication of JPH03209537A publication Critical patent/JPH03209537A/en
Application granted granted Critical
Publication of JP2920978B2 publication Critical patent/JP2920978B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はライブラリ更新方式に関し、特にコンピュー
タシステムで2つのライブラリファイルを用いるライブ
ラリ更新方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a library update method, and more particularly, to a library update method using two library files in a computer system.

〔従来の技術〕[Conventional technology]

ライブラリファイル内のメンバを更新するには種々の
方法があるが、ライブラリファイル内のメンバに対して
更新メンバを作成し、ライブラリファイル内の空き領域
に新メンバを書き込み、旧メンバ領域を再利用すること
が一般的である。
There are various methods for updating the members in the library file, but an updated member is created for the members in the library file, a new member is written in a free area in the library file, and the old member area is reused. That is common.

しかし、ライブラリ形式によっては更新したときに更
新前のメンバ領域を有効に利用できない場合がある。更
新の際、ライブラリファイル内に更新前のメンバによる
空き領域が散在しないようにするための1つの方法とし
て、ライブラリファイルを2つ用意し、更新するメンバ
は更新後のメンバを、更新しないメンバはそのままのメ
ンバを現在のライブラリファイル(以下、被更新ライブ
ラリファイルという)から他方のライブラリファイル
(以下、更新ライブラリファイルという)にメンバ間に
空きが生じないように移し、その後にライブラリ全体を
更新ライブラリファイルから被更新ライブラリファイル
に書き戻す方式がある。
However, depending on the library format, the updated member area may not be used effectively when updated. At the time of updating, as one method for preventing free areas from being scattered by members before updating in the library file, two library files are prepared, the member to be updated is the member after updating, and the member not to be updated is Move the members as they are from the current library file (hereinafter referred to as the updated library file) to the other library file (hereinafter referred to as the updated library file) so that there is no space between the members, and then transfer the entire library to the updated library file There is a method of writing back to the updated library file from.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来のライブラリ更新方式では、ライブラリ
ファイルを2つ用いて更新した後にライブラリ全体を更
新ライブラリファイルから被更新ライブラリファイルに
書き戻すようになっていたので、更新ライブラリファイ
ルの内容を被更新ライブラリファイルに書き戻す際に処
理が打ち切られるとライブラリ本体が壊れることがある
という欠点がある。
In the above-described conventional library updating method, after updating using two library files, the entire library is written back from the updated library file to the updated library file. There is a disadvantage that if the process is terminated when writing back to the library, the library body may be broken.

本発明の目的は、上述の点に鑑み、ライブラリファイ
ルを2つ用いるライブラリ更新方式において、処理を打
切りによってもライブラリ本体が壊れるおそれがなくな
るようにしたライブラリ更新方式を提供することにあ
る。
In view of the above, an object of the present invention is to provide a library updating method using two library files, in which there is no possibility that the library body will be damaged even if the processing is terminated.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のライブラリ更新方式は、ライブラリファイル
が被更新ライブラリファイルおよび更新ライブラリファ
イルとして2重化されたコンピュータシステムで、ライ
ブラリアンからのメンバ更新要求に基づいてライブラリ
ファイルのメンバ更新処理を行うライブラリ更新方式に
おいて、ライブラリアンからライブラリファイルのメン
バ更新要求があったときに前記被更新ライブラリファイ
ルから更新するメンバは更新後のメンバを、更新しない
メンバはそのままメンバを前記更新ライブラリファイル
にメンバ間に空きが生じないように移行しながら更新を
行う更新手段と、この更新手段による前記被更新ライブ
ラリファイルから前記更新ライブラリファイルへのメン
バ移行完了後に変更用ファイル名が固有値であるかどう
かに基づいて他のライブラリアンで変更用ファイル名が
使用中であるかどうかを判定し、使用中のときは他のラ
イブラリアンによる変更用ファイル名の使用が終了する
まで待つファイル名制御手段と、このファイル名制御手
段により変更用ファイル名が使用されていないと判断さ
れると前記被更新ライブラリファイルのファイル名と変
更用ファイル名とを交換し、変更用ファイル名と前記更
新ライブラリファイルのファイル名とを交換し、前記被
更新ライブラリファイルのファイル名と変更用ファイル
名とを交換することにより前記被更新ライブラリファイ
ルと前記更新ライブラリファイルとを置換するファイル
名変更手段とを有する。
A library updating method according to the present invention is a library updating method for performing a member updating process of a library file based on a member updating request from a librarian in a computer system in which a library file is duplicated as an updated library file and an updated library file. In the above, when a librarian requests a member update of a library file, a member to be updated from the updated library file is an updated member, a member not to be updated is a member as it is, and a space is generated between members in the updated library file. Updating means for updating while performing the migration so as not to perform the update, and based on whether or not the file name for change is a unique value after the member migration from the updated library file to the updated library file is completed by the updating means. Brian determines whether the file name for change is in use, and if so, waits until the use of the file name for change by another librarian is completed. When it is determined that the file name for change is not used, the file name of the library file to be updated and the file name for change are exchanged, the file name for change and the file name of the update library file are exchanged, File name changing means for replacing the updated library file with the updated library file by exchanging the file name of the updated library file and the file name for change.

〔作用〕[Action]

本発明のライブラリ更新方式では、更新手段がライブ
ラリアンからライブラリファイルのメンバ更新要求があ
ったときに被更新ライブラリファイルから更新するメン
バは更新後のメンバを、更新しないメンバはそのままの
メンバを更新ライブラリファイルにメンバ間に空きが生
じないように移行しながら更新を行い、ファイル名制御
手段が更新手段による被更新ライブラリファイルから更
新ライブラリファイルへのメンバ移行完了後に変更用フ
ァイル名が固有値であるかどうかに基づいて他のライブ
ラリアンで変更用ファイル名が使用中であるかどうかを
判定し、使用中のときには他のライブラリアンによる変
更用ファイル名の使用が終了するまで待ち、ファイル名
変更手段がファイル名制御手段により変更用ファイル名
が使用されていないと判断されると被更新ライブラリフ
ァイルのファイル名と変更用ファイル名とを交換し、変
更用ファイル名と更新ライブラリファイルのファイル名
とを交換し、被更新ライブラリファイルのファイル名と
変更用ファイル名とを交換することにより被更新ライブ
ラリファイルと更新ライブラリファイルとを置換する。
In the library updating method according to the present invention, when the updating means receives a library file member update request from the librarian, the member to be updated from the updated library file is the updated member, and the non-updated member is the unchanged member. The file is updated while transferring so that there is no space between the members, and the file name control unit determines whether or not the change file name is a unique value after the update unit completes the transfer of the member from the updated library file to the updated library file. It is determined whether or not another librarian uses the file name for change based on the file name.If the file name is being used, wait until the use of the file name for change by another librarian is completed. File name for change is not used by name control means When it is determined, the file name of the library file to be updated is exchanged with the file name for modification, the file name for modification is exchanged with the file name of the library file to be updated, and the file name of the library file to be updated and the file name for modification are exchanged. To replace the updated library file with the updated library file.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例に係るライブラリ更新方
式の構成を示すブロック図である。本実施例のライブラ
リ更新方式は、ライブラリアン1と、被更新ライブラリ
ファイル2と、更新ライブラリファイル3とから、その
主要部が構成されている。
FIG. 1 is a block diagram showing a configuration of a library updating method according to one embodiment of the present invention. The main part of the library updating method according to the present embodiment includes a librarian 1, an updated library file 2, and an updated library file 3.

ライブラリアン1は、更新手段11と、ファイル名変更
手段13およびファイル名制御手段14からなるファイル名
交換処理部12とから構成されている。
The librarian 1 includes an updating unit 11 and a file name exchange processing unit 12 including a file name changing unit 13 and a file name control unit 14.

第2図を参照すると、ファイル名交換処理部12におけ
るファイル名変更手段13の処理は、被更新ライブラリフ
ァイル名変更処理ステップ44と、更新ライブラリファイ
ル名変更処理ステップ45と、被更新ライブラリファイル
名変更処理ステップ46とからなる。また、ファイル名交
換処理部12におけるファイル名制御手段14の処理は、フ
ァイル名使用照合処理ステップ41と、ファイル名使用判
定ステップ42と、ファイル名占有使用処理ステップ43
と、ファイル名占有使用解除処理ステップ47とからな
る。
Referring to FIG. 2, the processing of the file name changing means 13 in the file name exchange processing unit 12 includes an updated library file name change processing step 44, an updated library file name change processing step 45, and an updated library file name change. It consists of processing step 46. The processing of the file name control means 14 in the file name exchange processing unit 12 includes a file name use collation processing step 41, a file name use determination step 42, and a file name occupancy use step 43
And a file name exclusive use release processing step 47.

次に、このように構成された本実施例のライブラリ更
新方式の動作について説明する。なお、ここでは、例え
ば、被更新ライブラリファイル2のファイル名を
「A」、更新ライブラリファイル3のファイル名を
「B」、変更用ファイル名を「W」とする。
Next, the operation of the library updating method of the present embodiment configured as described above will be described. Here, for example, the file name of the updated library file 2 is “A”, the file name of the updated library file 3 is “B”, and the file name for change is “W”.

このとき、ファイル名「A」はライブラリアン1から
ライブラリファイルのメンバ更新要求時に指定された名
前、ファイル名「B」は指定されたファイル名「A」の
被更新ライブラリファイル2に対応する更新ライブラリ
ファイル3の名前、変更用ファイル名「W」は一般に使
用されないファイル名としてコンピュータシステムに事
前に与えられている名前(固有値)である。
At this time, the file name "A" is the name specified at the time of the library file member update request from the librarian 1, and the file name "B" is the update library corresponding to the updated library file 2 having the specified file name "A". The name of the file 3 and the file name for change “W” are names (unique values) given to the computer system in advance as generally unused file names.

ライブラリアン1が起動されると、更新手段11は、被
更新ライブラリファイル2の内容を更新し、更新結果を
更新ライブラリファイル3に出力する。すなわち、更新
するメンバは更新後のメンバを、更新しないメンバはそ
のままのメンバを被更新ライブラリファイル2から更新
ライブラリファイル3にメンバ間に空きが生じないよう
に移す。
When the librarian 1 is activated, the updating means 11 updates the contents of the updated library file 2 and outputs the update result to the updated library file 3. That is, the member to be updated moves the updated member, and the member who does not update moves the same member from the updated library file 2 to the updated library file 3 so that there is no space between the members.

更新手段11による更新が終了すると、ファイル名交換
処理部12が起動され、まず、ファイル名制御手段14は、
変更用ファイル名が固有値「W」であるかどうかに基づ
いて変更用ファイル名「W」が他のライブラリアン(図
示せず)によってすでに使用されているかどうかを参照
し(ステップ41)、判定する(ステップ42)。変更用フ
ァイル名「W」がすでに使用されているときは、ファイ
ル名制御手段14は、使用されなくなるまで待ち、使用さ
れていないときには、他のライブラリアン(図示せず)
による変更用ファイル名「W」の使用を抑制する(ステ
ップ43)。
When the update by the updating unit 11 is completed, the file name exchange processing unit 12 is started, and first, the file name control unit 14
Based on whether the change file name is the unique value “W”, it is determined whether or not the change file name “W” has already been used by another librarian (not shown) (step 41). (Step 42). If the change file name "W" has already been used, the file name control means 14 waits until it is no longer used, and if not, another librarian (not shown).
The use of the change file name "W" is suppressed (step 43).

次に、ファイル名変更手段13は、被更新ライブラリフ
ァイル2のファイル名「A」と変更用ファイル名に格納
された「W」と交換する(ステップ44)。続いて、ファ
イル名変更手段13は、更新ライブラリファイル3のファ
イル名「B」と変更用ファイル名に格納された「A」と
を交換する(ステップ45)。次に、ファイル名変更手段
13は、被更新ライブラリファイル2のファイル名となっ
ている「W」と変更用ファイル名に格納された「B」と
を交換する(ステップ46)。以上により、被更新ライブ
ラリファイル2と更新ライブラリファイル3とが置換さ
れる。
Next, the file name changing means 13 exchanges the file name "A" of the library file 2 to be updated with "W" stored in the file name for change (step 44). Subsequently, the file name changing means 13 exchanges the file name "B" of the updated library file 3 with "A" stored in the file name for change (step 45). Next, file name changing means
13 exchanges "W" as the file name of the library file 2 to be updated with "B" stored in the file name for change (step 46). As described above, the updated library file 2 and the updated library file 3 are replaced.

最後に、ファイル名制御手段14は、変更用ファイル名
「W」の他のライブラリアンでの使用を許す(ステップ
47)。
Finally, the file name control means 14 permits the use of the changing file name “W” by another librarian (step
47).

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、コンピュータシステム
で2つのライブラリファイルを用いるライブラリ更新方
式において、ライブラリファイルの更新後にライブラリ
ファイル名を交換することにより、元のライブラリファ
イルへの書戻しがなくなるため、処理が途中で打ち切ら
れてもライブラリ本体が壊れることがないという効果が
ある。
As described above, according to the present invention, in a library updating method using two library files in a computer system, by exchanging library file names after updating a library file, there is no need to write back to the original library file. There is an effect that the library body is not broken even if is interrupted on the way.

また、ライブラリファイルへの書戻しを行わないた
め、ライブラリファイルに対する入出力時間が半減する
ことから、ライブラリの更新時間の短縮が可能になると
いう効果もある。
Further, since writing back to the library file is not performed, the input / output time for the library file is halved, so that there is an effect that the update time of the library can be reduced.

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

第1図は本発明の一実施例に係るライブラリ更新方式の
構成を示すブロック図、 第2図は第1図中のファイル名交換処理部における処理
を示す流れ図である。 図において、 1……ライブラリアン、 2……被更新ライブラリファイル、 3……更新ライブラリファイル、 11……更新手段、 12……ファイル名交換処理部、 13……ファイル名変更手段、 14……ファイル名制御手段である。
FIG. 1 is a block diagram showing a configuration of a library update method according to an embodiment of the present invention, and FIG. 2 is a flowchart showing a process in a file name exchange processing unit in FIG. In the figure, 1 ... librarian, 2 ... updated library file, 3 ... updated library file, 11 ... update means, 12 ... file name exchange processing unit, 13 ... file name change means, 14 ... File name control means.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ライブラリファイルが被更新ライブラリフ
ァイルおよび更新ライブラリファイルとして2重化され
たコンピュータシステムで、ライブラリアンからのメン
バ更新要求に基づいてライブラリファイルのメンバ更新
処理を行うライブラリ更新方式において、 ライブラリアンからライブラリファイルのメンバ更新要
求があったときに前記被更新ライブラリファイルから更
新するメンバは更新後のメンバを、更新しないメンバは
そのままのメンバを前記更新ライブラリファイルにメン
バ間に空きが生じないように移行しながら更新を行う更
新手段と、 この更新手段による前記被更新ライブラリファイルから
前記更新ライブラリファイルへのメンバ移行完了後に変
更用ファイル名が固有値であるかどうかに基づいて他の
ライブラリアンで変更用ファイル名が使用中であるかど
うかを判定し、使用中のときには他のライブラリアンに
よる変更用ファイル名の使用が終了するまで待つファイ
ル名制御手段と、 このファイル名制御手段により変更用ファイル名が使用
されていないと判断されると前記被更新ライブラリファ
イルのファイル名と変更用ファイル名とを交換し、変更
用ファイル名と前記更新ライブラリファイルのファイル
名とを交換し、前記被更新ライブラリファイルのファイ
ル名と変更用ファイル名とを交換することにより前記被
更新ライブラリファイルと前記更新ライブラリファイル
とを置換するファイル名変更手段と を有することを特徴とするライブラリ更新方式。
In a computer system in which a library file is duplicated as an updated library file and an updated library file, a library updating method for performing a member updating process of a library file based on a member updating request from a librarian. The member updating from the updated library file when the library file member update request is received from the client is the updated member, the member not updating is the same member, and there is no space between the members in the updated library file. Updating means for performing an update while moving to the other library, after completion of the member transfer from the updated library file to the updated library file by the updating means, based on whether or not the file name for change is a unique value, File name control means for judging whether or not the new file name is in use, and when in use, waiting until the use of the new file name by another librarian is completed; When it is determined that the updated library file name is not used, the file name of the updated library file and the file name of the update library file are exchanged, and the file name of the update file and the file name of the updated library file are exchanged. A library updating method, comprising: a file name changing unit that replaces the updated library file with the updated library file by exchanging a file name of the file and a file name for change.
JP2004353A 1990-01-11 1990-01-11 Library update method Expired - Fee Related JP2920978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004353A JP2920978B2 (en) 1990-01-11 1990-01-11 Library update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004353A JP2920978B2 (en) 1990-01-11 1990-01-11 Library update method

Publications (2)

Publication Number Publication Date
JPH03209537A JPH03209537A (en) 1991-09-12
JP2920978B2 true JP2920978B2 (en) 1999-07-19

Family

ID=11582046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004353A Expired - Fee Related JP2920978B2 (en) 1990-01-11 1990-01-11 Library update method

Country Status (1)

Country Link
JP (1) JP2920978B2 (en)

Also Published As

Publication number Publication date
JPH03209537A (en) 1991-09-12

Similar Documents

Publication Publication Date Title
US6732244B2 (en) Instant virtual copy technique with expedited creation of backup dataset inventory from source dataset inventory
JP2793399B2 (en) Buffer device
JP2003162378A (en) Method for duplicating data
JPH08328933A (en) File access control system for parallel processing system
JPH04284548A (en) Data base exclusive controlling system
JPH1063557A (en) Distributed file synchronization system
JP2920978B2 (en) Library update method
JP3138575B2 (en) File copy transfer method
JPH0330033A (en) File copying processor
JPH05298173A (en) Distributed file synchronizing and updating system
JP2666426B2 (en) Duplex auxiliary storage device
JPH0498546A (en) Duplicate data updating system
JPH02257228A (en) File control system for data base system
JP2641399B2 (en) File management device
JPH0470937A (en) File updating system
JPH11238010A (en) Management device/method for data base and recording medium recording the method
JP2781691B2 (en) Failure information reference method
JPH0319014A (en) Area control system for optical disk medium
JPH09171480A (en) Network system provided with information storage system, input system and automatic operation system of the network system, and automatic operating method for the network system
JPH0296277A (en) Picture data control system
JPH025152A (en) Data file write control system
JP2004199116A (en) Division back-up/restoration application system
JP2000047913A (en) File system
JPH04351147A (en) Additional service execution program management system
JP2000047917A (en) File managing method and filing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees