JPH02181814A - File restoration system - Google Patents

File restoration system

Info

Publication number
JPH02181814A
JPH02181814A JP1002297A JP229789A JPH02181814A JP H02181814 A JPH02181814 A JP H02181814A JP 1002297 A JP1002297 A JP 1002297A JP 229789 A JP229789 A JP 229789A JP H02181814 A JPH02181814 A JP H02181814A
Authority
JP
Japan
Prior art keywords
file
power
monitoring means
program
power supply
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
JP1002297A
Other languages
Japanese (ja)
Inventor
Iwao Yamashita
山下 岩男
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 JP1002297A priority Critical patent/JPH02181814A/en
Publication of JPH02181814A publication Critical patent/JPH02181814A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To close a file to protect it when the main power switch of a power device is erroneously disconnected by disconnecting power based on a file I/O termination signal when the interruption signal of power disconnection is inputted. CONSTITUTION:When power disconnection occurs, the power device 2 supplies the interruption signal of power disconnection to a power supervisory means 3, and the power supervisory means 3 informs a program supervisory means 4 of the effect of power disconnection. The program supervisory means 4 accepts a file I/O request from a present program Pi. When it is under processing, the means 4 requests the restoration processing of file I/O to a peripheral device supervisory means 5. When file I/O is in the middle of execution with a peripheral device 7 based on said information, the peripheral device supervisory means 5 waits for the termination, and issues information on the effect that the restoration processing of file I/O has terminated. The program supervisory means 4 recognizes the termination of the file I/O of all the programs and issues the indication of power disconnection to the power supervisory means 3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置のファイル復旧方式に関し、特に
電源切断時におけるファイルの保護を行なうファイル復
旧方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file recovery method for an information processing device, and more particularly to a file recovery method for protecting files when power is turned off.

〔従来の技術〕[Conventional technology]

従来の情報処理装置のファイル復旧方式は、プログラム
の実行中に誤って主電源スイッチが切断されたとき、フ
ァイルをクローズしてファイルの保護を行なう処理が表
されていなかった。
Conventional file recovery methods for information processing devices do not include a process for protecting files by closing them when the main power switch is accidentally turned off while a program is being executed.

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

このような従来の情報処理装置のファイル復旧方式は、
プログラムの実行中に誤って電源が切断されたとき、フ
ァイルが破壊される危険性があシ、そのためバックアッ
プ手段を設けるか、もしくはこの手段を設けてない場合
にはそのファイルを再び作成しなけれはならないので多
大な労力を必要としていた。
The file recovery method for such conventional information processing equipment is
If the power is accidentally turned off while the program is running, there is a risk that the file will be destroyed, so you will need to provide a backup method or, if you do not have such a method, create the file again. This required a great deal of effort.

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

この上うな課題を解決するために本発明のファイル復旧
方式は、情報処理装置へ電源の供給を行なうとともに電
源切断の割り込み信号を入力する電源装置と、この割り
込み信号を監視するとともに受信したファイルI/O終
了傷号によって上記の電源装置へ電源切断の指示をする
電源監視手段と、プログラムからのファイルi/O i
!求を受けてその解析を行ない、かつ上記の電源監視手
段から受信した割り込み信号によってファイルI/O復
旧指示を行なって、このファイルI/O復旧指示の結果
生ずるファイルI/e)終了信号を監視し上記の電源監
視手段に出力するプログラム監視手段と、ファイル管理
情報に従って上記のプログラム監視手段からのファイル
I/O’ff求とファイルI/O復旧指示を受けてその
解析と周辺装置へファイルI/O復旧指示を出力し、そ
の結果周辺装置からファイルI/O終了係号を受信して
上記のプログラム監視手段に出力する周辺装置監視手段
と、ファイルI/O要求に基づいてファイル管理情報を
記憶しファイルI/O終了信号によってファイル管理情
報を削除するファイル管理情報記憶手段とから構成され
たものである。
In order to solve these problems, the file recovery method of the present invention includes a power supply device that supplies power to an information processing device and inputs an interrupt signal for power-off, and a power supply device that monitors this interrupt signal and receives a file I. A power supply monitoring means that instructs the above power supply device to turn off the power by using the /O termination signal, and a file i/O i from the program.
! receives and analyzes the request, issues a file I/O recovery instruction based on the interrupt signal received from the power supply monitoring means, and monitors the file I/E) end signal generated as a result of this file I/O recovery instruction. A program monitoring means outputs the output to the above power supply monitoring means, and receives a file I/O'ff request and a file I/O recovery instruction from the above program monitoring means according to the file management information, analyzes the request, and sends the file I/O to the peripheral device. a peripheral device monitoring means that outputs a /O recovery instruction, receives a file I/O end code from the peripheral device, and outputs it to the program monitoring means; and file management information storage means for storing and deleting file management information in response to a file I/O end signal.

〔作用〕[Effect]

電源装置から電源切断の割り込み通知を受けると、周辺
装置とファイルI/O実行中であればそれが終了したの
ち、上記電源装置に対して電源切断の指示を行なう。
When receiving an interrupt notification of power-off from the power supply device, if file I/O with a peripheral device is in progress, after that is completed, the power supply device is instructed to power-off.

〔実施例〕〔Example〕

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

図は本発明のファイル復旧方式の一実施例を示すブロッ
ク図である。図において、1は情報処理装置、2は情報
処理装置に対して電源の供給を行なうとともに電源切断
の割り込み信号を与える電源装置、3は電源切断の割り
込み信号に対して電源切断の指示を行なう電源監視手段
、4はプログラムpi(l=x、2.・・・・・・+n
)からのファイルエバ要求の解析と電源切断の割り込み
信号を受信してファイルI/O復旧の指示を行なうプロ
グラム監視手段、5ばファイル管理情報5i(1=1.
2.・・・・・・、n)に従い周辺装置Tに対してファ
イルI/Oの制御を行なう周辺装置監視手段、6はプロ
グラムPiごとのファイルI/Oに関するファイル管理
情報51を記憶しているファイル管理情報記憶手段であ
る。
The figure is a block diagram showing an embodiment of the file recovery method of the present invention. In the figure, 1 is an information processing device, 2 is a power supply device that supplies power to the information processing device and also gives an interrupt signal for power-off, and 3 is a power supply that issues a power-off instruction in response to a power-off interrupt signal. monitoring means, 4 is the program pi (l=x, 2.....+n
), program monitoring means receives an interrupt signal for analyzing a file eva request and powering off, and instructs file I/O recovery;
2. . . ., peripheral device monitoring means for controlling file I/O to the peripheral device T according to n); 6 is a file storing file management information 51 regarding file I/O for each program Pi; It is a management information storage means.

以上のように構成されたファイル復旧方式について、そ
の動作を説明する。まず、プログラム監視手段4は、プ
ログラムptからのファイルI/O要求を受は付けて、
周辺装置監視手段5に対して周辺装置7とのファイルI
/Oの制御を行うように指示を与える。この指示を受け
た周辺装置監視手段5は、周辺装置Tへのファイル!沖
に関するファイル管理情報51をファイル管理情報記憶
手段6に出力して記憶させるとともに、周辺装置7とフ
ァイルI/Oを実行しファイルI/Oの終了を監視する
。周辺装置7からのファイルI/Oの終了を検知した周
辺装置監視手段5は、ファイル管理情報記憶手段6に記
憶された上記のファイル管理情報51に基づき、プログ
ラム監視手段4にファイルI/O 要求の終了を通知す
るとともに、ファイル管理情報記憶手段6に対してファ
イル管理情報51の削除の指示を与える。
The operation of the file recovery method configured as described above will be explained. First, the program monitoring means 4 accepts and accepts file I/O requests from the program pt.
File I with the peripheral device 7 for the peripheral device monitoring means 5
Gives instructions to control /O. Upon receiving this instruction, the peripheral device monitoring means 5 transfers the file to the peripheral device T! The file management information 51 related to Oki is output to and stored in the file management information storage means 6, and the file I/O is executed with the peripheral device 7 and the completion of the file I/O is monitored. The peripheral device monitoring means 5 detecting the end of the file I/O from the peripheral device 7 issues a file I/O request to the program monitoring means 4 based on the above file management information 51 stored in the file management information storage means 6. At the same time, an instruction to delete the file management information 51 is given to the file management information storage means 6.

以上が通常の場合のファイルI/Oの開始から終了まで
の動作であるが、次に上記したような動作中に1電源切
断が発生した場合の動作について説明する。
The above is the operation from the start to the end of file I/O in the normal case. Next, the operation when one power cut occurs during the above operation will be explained.

電源切断が発生すると、電源装置2は電源監視手段3に
対して電源切断の割p込み信号を与える。
When the power supply is cut off, the power supply device 2 gives a power supply cutoff interrupt signal to the power supply monitoring means 3.

電源監視手段3は、この割り込み信号を検知してプログ
ラム監視手段4に対して、電源切断の割り込みの旨を通
知する。この割υ込み通知を受けたプログラム監視手段
4は、現在プログラムPiからファイルI/O要求を受
けつけて処理中であるか否かをチエツクし、処理中の場
合は周辺装置監視手段5に対して、ファイルI/Oの復
旧処理を要求する。周辺装置監視手段5は、ファイル管
理情報記憶手段6からファイル管理情報51 を読み込
んで、この情報に基づいて周辺装置Tとファイルエ/O
実行中であれば、その終了を待ち、次のファイルI/O
の実行を中止してプログラム監視手段4に対して、ファ
イルI/Oの復旧処理が終了した旨の通知を行なう。そ
してプログラム監視手段4は、この通知を受けて現在実
行中のプログラムPiの処理を中止するとともに、全て
のプログラムのファイルL/Oの復旧処理の終了を確認
して、電源監視手段3に対して電源切断の指示を行なう
。この電源切断の指示によって電源監視手段3は、情報
処理装置1の電源切断を電源装置2に対して指示し、そ
の結果電源装置2によって電源が切断されるO このように、情報処理装置1は電源切断発生時の割り込
み信号を受けつけて、この割り込み信号到来時にプログ
ラム群からのファイルI/Oが実行されていれば、その
全ての終了を確認して電源切断の指示を行なうものとな
っている。
The power supply monitoring means 3 detects this interrupt signal and notifies the program monitoring means 4 of the power-off interruption. The program monitoring means 4 that has received this interrupt notification checks whether or not it is currently receiving and processing a file I/O request from the program Pi, and if it is processing it, it notifies the peripheral device monitoring means 5 , requests file I/O recovery processing. The peripheral device monitoring means 5 reads the file management information 51 from the file management information storage means 6, and controls the peripheral device T and the file controller based on this information.
If it is running, wait for it to finish and perform the next file I/O.
, and notifies the program monitoring means 4 that the file I/O recovery process has been completed. Upon receiving this notification, the program monitoring means 4 cancels the processing of the currently running program Pi, confirms the completion of the file L/O recovery processing of all programs, and then sends the power supply monitoring means 3 to the power supply monitoring means 3. Instructs to turn off the power. In response to this power-off instruction, the power monitoring means 3 instructs the power supply device 2 to power off the information processing device 1, and as a result, the power supply device 2 turns off the power.In this way, the information processing device 1 It accepts an interrupt signal when the power is turned off, and if file I/O from a program group is being executed when this interrupt signal arrives, it confirms that all of the I/O has been completed and issues an instruction to turn off the power. .

〔発明の効果〕〔Effect of the invention〕

以上説明し九ように、本発明に係るファイル復旧方式に
よれば、電源切断発生時圧電源装置から割υ込み信号を
受けた情報処理装置は、この割り込み信号到来時に周辺
装置とファイルレ勺が実行されていれば、その終了後に
上記電源装置に対して電源切断の指示を行なって電源切
断する構成となっているので、誤って電源装置の主電源
スイッチが切断されても、ファイルをクローズしてファ
イルの保護を行なうことができる効果がある0
As explained above, according to the file recovery method according to the present invention, the information processing device that receives the interrupt signal from the high voltage power supply when the power is cut off is able to recover the file with the peripheral device when the interrupt signal arrives. If it has been executed, the configuration will instruct the power supply unit to turn off the power after it is finished, so even if the main power switch of the power supply unit is accidentally turned off, the file will not be closed. It has the effect of being able to protect files by

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

図は本発明に係るファイル復旧方式の一実施例を示すブ
ロック図である。 1・拳・・情報処理装置、2・・・・電源装置、3・・
・・電源監視手段、4・・・・プログラム監視手段、5
#拳−一周辺装置監視手段、6命拳・・ファイル管理情
報記憶手段、7・・ψ・周辺it、st、s□、・・・
・・・、5n・拳・・ファイル管理情報、Pl+P!y
・・・・・・、Pn 拳・・・プログラム。
The figure is a block diagram showing an embodiment of the file recovery method according to the present invention. 1.Fist: Information processing device, 2..Power supply device, 3..
...Power supply monitoring means, 4...Program monitoring means, 5
#Fist-1 Peripheral device monitoring means, 6 Life Fist...File management information storage means, 7...ψ・Peripheral it, st, s□,...
..., 5n・Fist...File management information, Pl+P! y
......, Pn fist...program.

Claims (1)

【特許請求の範囲】 情報処理装置のファイル復旧方式において、前記情報処
理装置へ電源の供給を行なうとともに電源切断の割り込
み通知を行なう電源装置と、この割り込み通知の監視を
行なうとともにファイルI/O終了信号に基づき前記電
源装置へ電源切断の指示を行なう電源監視手段と、 プログラムからのファイルI/O要求を受けつけてその
解析を行なうとともに前記電源監視手段から前記割り込
み通知を受けつけてファイルI/O復旧指示を行ない、
このファイルI/O復旧指示に基づいて前記ファイルI
/O終了信号を監視し、電源監視手段に出力するプログ
ラム監視手段と、ファイル管理情報に基づいて前記プロ
グラム監視手段からの前記ファイルI/O要求およびフ
ァイルI/O復旧指示を受けつけ、その解析および周辺
装置に対してのファイルI/O復旧指示を行なうととも
に、周辺装置からの前記ファイルI/O終了信号を受信
してプログラム監視手段に出力する周辺装置監視手段と
、 前記ファイルI/O要求に基づいて前記ファイル管理情
報を記憶し、前記ファイルI/O終了信号によりファイ
ル管理情報の削除を行なうファイル管理情報記憶手段と
を備え、 電源切断の割り込み信号が入力されたとき、ファイルI
/O終了信号に基づいて電源切断を行なうようにしたこ
とを特徴とする情報処理装置のファイル復旧方式。
[Scope of Claim] A file recovery method for an information processing device includes a power supply device that supplies power to the information processing device and notifies an interrupt of power-off, and a power supply device that monitors this interrupt notification and terminates file I/O. power supply monitoring means for instructing the power supply device to turn off the power based on a signal; receiving and analyzing a file I/O request from a program; and receiving the interrupt notification from the power supply monitoring means for file I/O recovery; give instructions,
Based on this file I/O recovery instruction, the file I/O
a program monitoring means that monitors an /O end signal and outputs it to the power supply monitoring means; and a program monitoring means that receives the file I/O request and file I/O recovery instruction from the program monitoring means based on file management information, and analyzes and analyzes the same. Peripheral device monitoring means for issuing a file I/O recovery instruction to a peripheral device, receiving the file I/O end signal from the peripheral device, and outputting it to the program monitoring means; and file management information storage means for storing the file management information based on the file I/O end signal and deleting the file management information in response to the file I/O end signal, and when a power-off interrupt signal is input, the file management information is stored in the file I/O end signal.
1. A file recovery method for an information processing device, characterized in that power is cut off based on an /O end signal.
JP1002297A 1989-01-09 1989-01-09 File restoration system Pending JPH02181814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1002297A JPH02181814A (en) 1989-01-09 1989-01-09 File restoration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1002297A JPH02181814A (en) 1989-01-09 1989-01-09 File restoration system

Publications (1)

Publication Number Publication Date
JPH02181814A true JPH02181814A (en) 1990-07-16

Family

ID=11525432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1002297A Pending JPH02181814A (en) 1989-01-09 1989-01-09 File restoration system

Country Status (1)

Country Link
JP (1) JPH02181814A (en)

Similar Documents

Publication Publication Date Title
JPH07160370A (en) Service interruption controller
JPH02181814A (en) File restoration system
JPS5941027A (en) Computer system
JPH05224784A (en) Computer device
JPH01283031A (en) Power interruption monitor
JPS62209604A (en) Power supply cut-off system for information processing system
JPS62296216A (en) Electric power source control system
KR0155719B1 (en) Data process method of robot controller
JPH02196341A (en) Fault restoring system for information processor
JPH064185A (en) Computer system with automatic power source disconnecting function
JPH05100884A (en) Switching system at the time of fault occurrence in duplex operation
JPH0887421A (en) Method and system for process switching
JPH03233618A (en) System for preventing illegal processing at the time of disconnecting power supply
JPH04127214A (en) Power unit control system
JPS63200242A (en) System switching system for hot stand-by system
JPH1063378A (en) Power controller, power control system, power control method and storage medium storing power control program
JPH05289781A (en) No-break power unit for computer
JPH0568173B2 (en)
JPH01263811A (en) Power supply controller
JPS6160157A (en) Start control system for device
JPH03192413A (en) System for restoring information processor
JPH05189099A (en) Power controller for computer
JPH04205014A (en) Power unit controller
JPH05204501A (en) Data terminal equipment
JPH05257557A (en) System automatic start method