JPS63279346A - File replacement processing system - Google Patents
File replacement processing systemInfo
- Publication number
- JPS63279346A JPS63279346A JP62115315A JP11531587A JPS63279346A JP S63279346 A JPS63279346 A JP S63279346A JP 62115315 A JP62115315 A JP 62115315A JP 11531587 A JP11531587 A JP 11531587A JP S63279346 A JPS63279346 A JP S63279346A
- Authority
- JP
- Japan
- Prior art keywords
- file
- update
- temporary
- management information
- original
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概 要〕
計算機システムのファイル更新における、内容保全のた
めの操作性を改善する更新処理方式である。[Detailed Description of the Invention] [Summary] This is an update processing method that improves operability for content preservation when updating files in a computer system.
利用者の更新要求に基づいて、指定の原本ファイル及び
更新履歴管理情報のコピーを作成すると共に、原本ファ
イルとコピーとの対応を対応表に設定する。原本ファイ
ルに対する更新処理は、対応表を参照してすべてそのコ
ピーに対して実行し、更新処理の完了後に、原本ファイ
ル及び更新履歴管理情報を消去して、コピーによって原
本を置き換える。Based on the user's update request, a copy of the specified original file and update history management information is created, and the correspondence between the original file and the copy is set in a correspondence table. All update processing for the original file is performed on the copy with reference to the correspondence table, and after the update processing is completed, the original file and update history management information are deleted and the original is replaced by the copy.
この方式により、利用者はファイル保全のための処置を
意識することなく、ファイル更新を行うことができ、又
操作誤りによる更新履歴管理情報とファイルとの矛盾等
の発生が防止できる。With this method, the user can update the file without being aware of the measures taken to preserve the file, and it is also possible to prevent conflicts between the update history management information and the file due to operational errors.
本発明は計算機システムにおける、ファイルの更新処理
方式に関する。The present invention relates to a file update processing method in a computer system.
ファイルの更新において、障害等によりファイル内容が
破壊されて、新旧のファイル内容を共に失うことがない
ようにするためには、原本ファイルのコピーの仮ファイ
ルを作成して、仮ファイル上で更新を完成した後、その
内容を原本ファイルにする等の処置が必要になる。When updating a file, in order to prevent the file contents from being destroyed due to a failure or the like and losing both the old and new file contents, create a temporary file that is a copy of the original file and update it on the temporary file. After completion, it is necessary to take measures such as converting the contents into an original file.
多数の利用者により、プログラムを開発している計算機
等では、開発中の多数の原始プログラム等ごとのファイ
ルが計算機のディスク記憶装置等の大容量の記憶装置に
保存され、それらのファイルは開発の進行と共に頻繁に
更新される。In computers, etc. where programs are being developed by many users, files for each of the many source programs being developed are stored in a large-capacity storage device such as the computer's disk storage device, and these files are used for development purposes. Updated frequently as progress is made.
そのような環境において、ファイル内容を保全するため
に、例えばファイルを2重化しておいて、一方を現用フ
ァイルとして使用するが、ファイル更新時には両ファイ
ルを更新して内容を常に一致させるように、オペレーテ
ィングシステム等によってサービスし、現用ファイルに
障害が発生したときは、他方のファイルを現用に切り換
える方式がある。In such an environment, in order to preserve the file contents, for example, the files are duplicated and one is used as the current file, but when the file is updated, both files are updated so that the contents always match. There is a method in which services are provided by an operating system or the like, and when a failure occurs in the current file, the other file is switched to the current file.
しかし、この方式では最新の内容は2重化によって保証
されるが、人為的な誤更新等を修正するために、任意の
更新時点の状態に復元することはできないという欠点が
ある。However, although this method guarantees the latest content through duplication, it has the drawback that it is not possible to restore the state to the state at any update time in order to correct artificially erroneous updates.
別の方式として、ファイルに対して変更履歴管理情報を
設け、例えば更新を処理するエディタによって、変更部
分の旧内容その他を変更履歴管理情報に記録する方式が
ある。As another method, there is a method in which change history management information is provided for a file and, for example, an editor that processes updates records the old content of the changed part and other information in the change history management information.
この方式では誤更新等が判明したときに、変更履歴管理
情報をたどることによって、任意の更新前の時点にファ
イル内容を戻すことができるが、更新処理中に発生する
ファイル本体の破壊障害に対して、ファイルの復元を保
証できない。With this method, when an erroneous update is discovered, it is possible to return the file contents to the point before any update by tracing the change history management information. Therefore, we cannot guarantee that your files will be restored.
以上のような方式の問題を解決する方式として、ファイ
ルの更新は更新対象のファイル(以下において原本ファ
イルという)に直接実行せず、仮ファイルを創成して、
仮ファイルに原本ファイルのコピーを作り、この仮ファ
イル上で更新処理をした後、仮ファイルの内容を原本フ
ァイルに移すようにする。As a method to solve the problems of the above methods, file updates are not performed directly on the file to be updated (hereinafter referred to as the original file), but instead create a temporary file.
After making a copy of the original file in a temporary file and performing update processing on this temporary file, the contents of the temporary file are transferred to the original file.
又各ファイルに対応して設ける更新履歴管理情報(以下
において、管理情報という)の主要部分として、ファイ
ル更新ごとの、更新日時、更新位置(例えば原始プログ
ラムの行番号)、更新部分の新旧内容データ等からなる
更新履歴情報を保存し、更新誤り等の回復を可能とする
。In addition, the main parts of the update history management information (hereinafter referred to as management information) provided for each file include the update date and time, update position (for example, line number of the source program), and new and old content data of the updated part for each file update. It saves update history information consisting of etc., making it possible to recover from update errors, etc.
それらの更新履歴情報はファイル更新処理の一環として
実行されるようにするが、管理情報についても保全のた
めに、仮ファイルに対応して設ける管理情報(以下にお
いて仮管理情報という)に更新履歴情報を作成しておき
、ファイル本体を移すときに原本ファイルの管理情報(
以下において原本管理情報という)に移して追加する。The update history information will be executed as part of the file update process, but in order to preserve the management information, the update history information will be stored in the management information (hereinafter referred to as temporary management information) provided corresponding to the temporary file. , and when transferring the file itself, the management information of the original file (
(hereinafter referred to as original document management information) and add it.
そのために、プログラム開発等の利用者は、ファイル更
新を行うときは、先ず最初のコマンドで仮ファイルとし
て新ファイルを創成して、原本ファイルのコピーを作る
。For this reason, when a user, such as a program developer, updates a file, he or she first creates a new file as a temporary file using the first command, and then makes a copy of the original file.
次に仮ファイルを指定して、更新指示のコマンドを入力
することにより、仮ファイル上で所要の更新を行い、こ
のとき同時に仮管理情報に、その更新についての更新履
歴情報がとられる。Next, by specifying a temporary file and inputting an update instruction command, the required update is performed on the temporary file, and at the same time, update history information regarding the update is recorded in the temporary management information.
更新が終了すると、利用者は仮ファイルと原本ファイル
を指定するセーブのコマンドを入力して、仮ファイルの
内容を原本ファイルに移す。When the update is completed, the user inputs a save command specifying the temporary file and the original file to transfer the contents of the temporary file to the original file.
次に管理情報のマージのコマンドを入力して、仮管理情
報と原本管理情報の更新履歴情報を、原本管理情報上で
結合することにより、原本管理情報に現更新の更新履歴
情報を追加し、その後消去のコマンドを入力して仮ファ
イルを消去する。Next, enter the command to merge management information to combine the update history information of the temporary management information and the original management information on the original management information, and add the update history information of the current update to the original management information. Then enter the delete command to delete the temporary file.
このようにして、前記のファイル2重化と更新履歴管理
情報との両者を統一して、それぞれの欠点を排除するこ
とのできる経済的な方式を得ることができる。In this way, it is possible to unify both the file duplication and the update history management information described above, and to obtain an economical method that can eliminate the drawbacks of each.
前記のようにして、データ保全を考慮した更新の手順を
実行するこができるが、利用者が仮ファイルを意識して
処理をすることは操作が煩わしく、且つ操作を誤ると、
ファイルの更新のみ行われて、管理情報の更新が行われ
ず、そのためにファイルと管理情報の矛盾が発生し得る
という問題がある。As described above, it is possible to execute an update procedure that takes data preservation into consideration, but it is cumbersome for the user to process the temporary file while being aware of it, and if the user makes a mistake,
There is a problem in that only the file is updated and the management information is not updated, which may cause a conflict between the file and the management information.
第1図は、本発明の計算機の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing the configuration of a computer according to the present invention.
図において、1は利用者からのコマンドを受は付けて、
所要の処理機構に渡すためのコマンド受付部、2はファ
イル更新要求のコマンドを処理して、指定の原本ファイ
ル6及びその管理情報7のコピーの、仮ファイル8及び
仮管理情報9を作成し、両ファイルの対応を、対応表5
に設定するオープン処理部、3は更新指示のコマンドを
処理して、対応表5で決定する仮ファイル8と仮管理情
報9に対して更新処理を実行する更新処理部、4は更新
終了のコマンドを処理して、原本ファイル6を消去して
仮ファイル8で置き換えるクローズ処理部である。In the figure, 1 receives commands from the user,
A command reception unit 2 for passing to a required processing mechanism processes the file update request command to create a temporary file 8 and temporary management information 9 of a copy of the specified original file 6 and its management information 7, Correspondence table 5 shows the correspondence between both files.
3 is an update processing unit that processes the update instruction command and executes update processing on the temporary file 8 and temporary management information 9 determined by the correspondence table 5; 4 is the update end command This is a close processing unit that processes the original file 6 and replaces it with the temporary file 8.
オープン処理部2がコマンド受付部lから更新要求のコ
マンドを受は取ると、コマンドに指定された原本ファイ
ル6及びその管理情報7のコピーを、仮ファイル8及び
仮管理情報9として作成する。When the open processing section 2 receives an update request command from the command receiving section 1, it creates a copy of the original file 6 and its management information 7 specified in the command as a temporary file 8 and temporary management information 9.
又原本ファイル6と仮ファイル8の対応を、対応表5に
設定する。Also, the correspondence between the original file 6 and the temporary file 8 is set in the correspondence table 5.
更新指示のコマンドは、更新処理部3が受は取る。コマ
ンドには更新対象に原本ファイルを指定するので、指定
のファイル名で対応表5から対応する仮ファイル8を検
索する。The update processing unit 3 receives the update instruction command. Since the command specifies the original file to be updated, the corresponding temporary file 8 is searched from the correspondence table 5 using the specified file name.
この仮ファイル8と仮管理情報9に対して更新処理を実
行する。Update processing is performed on this temporary file 8 and temporary management information 9.
更新指示による処理が終わると、利用者は原本ファイル
6を指定して更新終了のコマンドを入力する。When the process according to the update instruction is completed, the user specifies the original file 6 and inputs a command to end the update.
クローズ処理部4が、この更新終了コマンドを受は取り
、指定のファイル名で対応表5を検索して、対応する仮
ファイル8を決定し、仮ファイル8と仮管理情報9によ
って、原本ファイル6と管理情報7を置き換えるように
処理する。The close processing unit 4 receives this update end command, searches the correspondence table 5 with the specified file name, determines the corresponding temporary file 8, and uses the temporary file 8 and temporary management information 9 to create the original file 6. and the management information 7 is replaced.
以上により、利用者は原本ファイルのみを意識して更新
すればよく、且つ操作誤りによるファイル内容と管理情
報の矛盾発生も防止される。As a result of the above, the user only needs to update the original file, and it is also possible to prevent conflicts between file contents and management information due to operational errors.
第2図にオープン処理部2の処理の流れを示す。 FIG. 2 shows the processing flow of the open processing section 2.
コマンド受付部1から更新要求のコマンドを受は取ると
、オープン処理部2は処理ステップ1oでコマンドに指
定されている原本ファイル6に対するアクセスのための
制御表を整える等の、いわゆるファイルのオープン処理
を行う。Upon receiving the update request command from the command reception unit 1, the open processing unit 2 performs so-called file open processing such as preparing a control table for accessing the original file 6 specified in the command in processing step 1o. I do.
次に処理ステップ11で仮ファイル8を新しく作成して
オープンし、処理ステップ12で原本ファイル6の内容
を仮ファイル8にコピーする。又、処理ステップ13で
仮ファイル8に対して仮管理情報9を作って、それに原
本管理情報7の内容をコピーする。Next, in a processing step 11, a new temporary file 8 is created and opened, and in a processing step 12, the contents of the original file 6 are copied to the temporary file 8. Further, in processing step 13, temporary management information 9 is created for the temporary file 8, and the contents of the original management information 7 are copied thereto.
処理ステップ14で対応表5に原本ファイルのファイル
名と仮ファイルのファイル名を設定し対応を表示して処
理を終わる。In processing step 14, the file name of the original file and the file name of the temporary file are set in the correspondence table 5, the correspondence is displayed, and the process ends.
第3図は更新処理部3の処理の流れの一例を示し、更新
処理部3が更新指示のコマンドを受は取ると、処理ステ
ップ20でコマンドに指定された更新対象の原本ファイ
ル名によって対応表5を検索し、ファイル名があれば対
応して記載された仮ファイル名を得て、処理ステップ2
1に進む。FIG. 3 shows an example of the processing flow of the update processing unit 3. When the update processing unit 3 receives an update instruction command, in processing step 20, a correspondence table is created based on the original file name to be updated specified in the command. 5, and if there is a file name, obtain the corresponding temporary file name, and proceed to processing step 2.
Go to 1.
処理ステップ21で仮ファイル名で定まる仮ファイル8
にアクセスし、指定の更新を実行する。又仮管理情報9
に、その更新内容に従う更新履歴情報を追加して処理を
終わる。Temporary file 8 determined by the temporary file name in processing step 21
access and perform the specified update. Temporary management information 9
Update history information according to the update content is added to the update information, and the process ends.
もし、処理ステップ20で対応表5に原本ファイル名が
無い場合は、処理ステップ22で例えば更新を実行しな
い旨のメツセージを出力して処理を終わる。If, in processing step 20, there is no original file name in the correspondence table 5, in processing step 22, for example, a message indicating that the update will not be executed is output, and the processing ends.
第4図はクローズ処理部4の処理の流れの一例を示し、
更新終了のコマンドを受は取るとクローズ処理部4は、
処理ステップ30で、コマンドに指定されたファイル名
で対応表5を検索して、対応する仮ファイル8を決定す
ると、処理ステップ31に進む。FIG. 4 shows an example of the processing flow of the close processing section 4,
Upon receiving the update end command, the close processing unit 4
At processing step 30, the correspondence table 5 is searched using the file name specified in the command to determine the corresponding temporary file 8, and the process proceeds to processing step 31.
処理ステップ31で、先ず原本ファイル6を消去し、処
理ステップ32で仮ファイル8のファイル名を、原本フ
ァイル6のファイル名に変更することにより、原本ファ
イルに置き換える。In a processing step 31, the original file 6 is first deleted, and in a processing step 32, the file name of the temporary file 8 is changed to the file name of the original file 6, thereby replacing it with the original file.
処理ステップ33で、対応表5から原本ファイル名の記
述された項を消去し、その他の関連のファイル制御表を
削除するクローズ処理をして、処理を終わる。In processing step 33, a closing process is performed to delete the item in which the original file name is written from the correspondence table 5 and delete other related file control tables, and the process ends.
処理ステップ30で対応表5に原本ファイル名が無い場
合は、処理ステップ34で例えばエラーメツセージを出
力して処理を終わる。If there is no original file name in the correspondence table 5 at processing step 30, then, for example, an error message is output at processing step 34, and the processing ends.
以上の説明から明らかなように、本発明によれば、ファ
イル更新処理を、ファイル保全のための仮更新処理を経
て行う計算機において、利用者の操作性を向上すると共
に、操作誤りによるファイル内容と管理情報の矛盾の発
生が無くなるので、計算機の利用効率及び信頼性を改善
するという著しい工業的効果がある。As is clear from the above description, according to the present invention, in a computer that performs file update processing through temporary update processing for file preservation, it is possible to improve user operability and to prevent file contents caused by operational errors. Since the occurrence of contradictions in management information is eliminated, there is a significant industrial effect of improving the utilization efficiency and reliability of computers.
第1図は本発明の構成を示すブロック図、第2図はオー
ブン処理部の処理の流れ図、第3図は更新処理部の処理
の流れ図、
第4図はクローズ処理部の処理の流れ図である。
図において、
1はコマンド受付部、 2はオーブン処理部、3は更新
処理部、 4はクローズ処理部、5は対応表、
6は原本ファイル、7は原本管理情報、
8は仮ファイル、9は仮管理情報、
10〜14.20〜22.30〜34は処理ステップ本
発明の構成を示すブロック図
第1図
オーブン処理部の処理の流れ図
第2図
更新処理部の処理の流れ図
第3図
クローズ処理部の処理の流れ図
第4図Fig. 1 is a block diagram showing the configuration of the present invention, Fig. 2 is a flowchart of the processing of the oven processing section, Fig. 3 is a flowchart of the processing of the update processing section, and Fig. 4 is a flowchart of the processing of the close processing section. . In the figure, 1 is a command reception section, 2 is an oven processing section, 3 is an update processing section, 4 is a close processing section, 5 is a correspondence table,
6 is the original file, 7 is the original management information,
8 is a temporary file; 9 is temporary management information; 10 to 14; 20 to 22; 30 to 34 are processing steps; Processing flowchart Figure 3 Processing flowchart of the close processing section Figure 4
Claims (1)
いて、 該計算機の利用者の所定の更新要求に基づいて、該要求
に指定された原本ファイル(6)のコピーからなる仮フ
ァイル(8)と、該原本ファイルの管理情報(7)のコ
ピーからなる仮管理情報(9)を作成し、該原本ファイ
ルと該仮ファイルとの対応情報(5)を設定する手段(
2)と、 該原本ファイルに対する更新指示に従って、該対応情報
(5)を検索して該仮ファイルを決定し、該仮ファイル
(8)及び該仮管理情報(9)に対し該更新指示による
更新処理を実行する手段(3)と、所定の更新終了指示
に従って、該原本ファイル及び該管理情報を消去し、該
仮ファイル及び該仮管理情報によって該原本ファイル及
び該管理情報を置き換える手段(4)を設けたことを特
徴とするファイル更新処理方式。[Claims] In a computer that holds files and management information for the files, based on a predetermined update request from a user of the computer, a temporary file consisting of a copy of the original file (6) specified in the request. (8) and a means for creating temporary management information (9) consisting of a copy of the management information (7) of the original file, and setting correspondence information (5) between the original file and the temporary file (
2), and according to the update instruction for the original file, search the corresponding information (5) to determine the temporary file, and update the temporary file (8) and the temporary management information (9) according to the update instruction. means (3) for executing processing; and means (4) for deleting the original file and the management information and replacing the original file and the management information with the temporary file and the temporary management information according to a predetermined update termination instruction; A file update processing method characterized by providing the following.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62115315A JPS63279346A (en) | 1987-05-12 | 1987-05-12 | File replacement processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62115315A JPS63279346A (en) | 1987-05-12 | 1987-05-12 | File replacement processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63279346A true JPS63279346A (en) | 1988-11-16 |
Family
ID=14659572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62115315A Pending JPS63279346A (en) | 1987-05-12 | 1987-05-12 | File replacement processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63279346A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002014859A (en) * | 2000-05-31 | 2002-01-18 | Internatl Business Mach Corp <Ibm> | Method for atomically and permanently swapping resource group and system for the same and program |
JP2009116513A (en) * | 2007-11-05 | 2009-05-28 | Sharp Corp | Printed matter management device, printed matter management method, printed matter management program and storage medium for storing the same program |
JP2017027216A (en) * | 2015-07-17 | 2017-02-02 | キヤノン株式会社 | System and method of the system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61208552A (en) * | 1985-03-14 | 1986-09-16 | Nec Corp | Data controller |
-
1987
- 1987-05-12 JP JP62115315A patent/JPS63279346A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61208552A (en) * | 1985-03-14 | 1986-09-16 | Nec Corp | Data controller |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002014859A (en) * | 2000-05-31 | 2002-01-18 | Internatl Business Mach Corp <Ibm> | Method for atomically and permanently swapping resource group and system for the same and program |
JP2009116513A (en) * | 2007-11-05 | 2009-05-28 | Sharp Corp | Printed matter management device, printed matter management method, printed matter management program and storage medium for storing the same program |
JP2017027216A (en) * | 2015-07-17 | 2017-02-02 | キヤノン株式会社 | System and method of the system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6526441B2 (en) | Input/output device information management system for multi-computer system | |
US5623661A (en) | System for and method of providing delta-versioning of the contents of PCTE file objects | |
US6732244B2 (en) | Instant virtual copy technique with expedited creation of backup dataset inventory from source dataset inventory | |
JP3270216B2 (en) | File name detection method | |
KR100398753B1 (en) | Transaction processing system using efficient file update processing and recovery processing | |
US20060004877A1 (en) | Method and system for data processing with data replication for the same | |
JPS63279346A (en) | File replacement processing system | |
JP3957464B2 (en) | Data update device | |
JPH07104983A (en) | Generation management device and generation management method | |
JP3769775B2 (en) | Distributed link information maintenance method | |
JPH0287242A (en) | Database backup and recovery method | |
JP2000293519A (en) | Document processor | |
JPH10240597A (en) | Hard disk drive management system | |
JP3064944B2 (en) | Data recovery method and data recovery method for computer system | |
JPH0256666A (en) | System for dynamically updating job network unitary control system generating information | |
JPS6336375A (en) | File management method in data file device | |
JPH0962554A (en) | Quiescent point save generation system | |
JPH1091505A (en) | File management device for system and file management method for network | |
JPH0438537A (en) | Backup/restoring system for data on dasd | |
JPH04351147A (en) | Additional service execution program management system | |
JPH1165634A (en) | Nc program management system and record medium used for the same | |
JPS61122758A (en) | Edit processing method | |
JPH06222915A (en) | Install system | |
JPH11224216A (en) | System file history management system and record medium recording the system | |
JPH05127965A (en) | Design information restoring method |