JPS62217337A - File device for log information - Google Patents

File device for log information

Info

Publication number
JPS62217337A
JPS62217337A JP61061180A JP6118086A JPS62217337A JP S62217337 A JPS62217337 A JP S62217337A JP 61061180 A JP61061180 A JP 61061180A JP 6118086 A JP6118086 A JP 6118086A JP S62217337 A JPS62217337 A JP S62217337A
Authority
JP
Japan
Prior art keywords
information
file
area
log information
writing
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
JP61061180A
Other languages
Japanese (ja)
Inventor
Masaharu Ashikawa
芦川 正治
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 JP61061180A priority Critical patent/JPS62217337A/en
Publication of JPS62217337A publication Critical patent/JPS62217337A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the effective use of a file space by connecting plural divided storage areas to store information and separating a faulty area from a group of connected areas. CONSTITUTION:The information is successively written on a log information file 20 when a writing request on the file 20 is performed. If a writing error occurs due to a partial fault of the file 20, an address where the error occurs is recorded on a control information area 100. At the same time, the error occurrence log information is written on an area following the area where the information is presently written. When a reading request for the information written on the file 20 is received, the continuity of the effective log information is secured for plural divided areas and the log information is read out with reference to the writing error occurring address on the area 100. Thus it is possible to secure the effective use of the space of the file 20 even in case a writing error is generated owing to a partial fault of the file 20 since the file 20 is divided into plural area for control and at the same time the error occurring address is recorded for control.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータシステムで用いられるログ情報
ファイル装置の入出力制御手段に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to input/output control means for a log information file device used in a computer system.

〔概 要〕〔overview〕

本発明は、運転状態をロッキングするファイル装置にお
いて、 情報の格納を複数個に分割した記憶領域を連結して行い
、障害のある領域をこの連結から切り離すことにより、 ファイルスペースの有効活用を図ることができるように
したものである。
The present invention aims at effective utilization of file space by storing information in a file device that locks the operating state by connecting storage areas divided into a plurality of parts, and separating a faulty area from this connection. It was made so that it could be done.

〔従来の技術〕[Conventional technology]

従来、ログ情報ファイルへの書込み時にエラーが発生す
ると、書込み処理を中断し、新たなログ情報ファイルを
割当てて書込みを行っていた。また、これに伴ってログ
情報の続出時に、書込みエラー発生箇所以降の情報は新
たに割当てられたログ情報ファイルから読出していた。
Conventionally, when an error occurs when writing to a log information file, the writing process is interrupted, a new log information file is allocated, and writing is performed. Additionally, when log information is continuously output, information after the location where a write error has occurred is read from a newly allocated log information file.

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

このような従来例ログ情報ファイル入出力装置では、ロ
グ情報の書込み時にログ情報ファイルの部分的な障害で
書込みエラーが発生すると、それ以降のファイルスペー
スを使用できず、したがってファイルスペースの有効利
用が図れない欠点があった。
In such a conventional log information file input/output device, if a write error occurs due to a partial failure of the log information file when writing log information, the file space cannot be used after that, and therefore the file space cannot be used effectively. There were some unforeseen flaws.

本発明は、このような欠点を除去するもので、ファイル
スペースが有効に利用できるログ情報ファイル装置を提
供することを目的とする。
The present invention aims to eliminate such drawbacks and to provide a log information file device that can effectively utilize file space.

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

本発明は、運転に伴って発生する事象にかかわる情報を
記憶するファイルと、このファイルに情報を書込み、こ
の書込まれた情報をその発生順序に従って読出す書込み
・読出し手段とを備えたログ情報ファイル装置において
、上記ファイルには、書込みおよび読出しの順番を示す
アドレスが付された複数個の領域が設定され、この領域
のうち、書込み時に障害が発生した領域を指定する指定
手段と、この指定手段で指定された領域のアドレスの次
の順番のアドレスが付された領域に、この指定された領
域にすでに書込まれた情報およびこの情報につづき発生
する情報の書込みの実行を上記書込み・読出し手段に指
示する第一制御手段と、上記指定された領域からの情報
読出しの禁止を指示する第二制御手段とを備えたことを
特徴とする。
The present invention provides log information that includes a file that stores information related to events that occur during driving, and a writing/reading means that writes information to this file and reads out the written information in the order in which the information occurs. In the file device, a plurality of areas are set in the above-mentioned file with addresses indicating the order of writing and reading. The above writing/reading method executes the writing of information already written in the specified area and information that occurs subsequent to this information to the area assigned the address in the order following the address of the area specified by the means. The present invention is characterized by comprising a first control means for instructing the means, and a second control means for instructing prohibition of reading information from the specified area.

〔作 用〕[For production]

ログ情報ファイルへの書込み要求がなされると、そのロ
グ情報をログ情報ファイルへ順序書込む。
When a request to write to the log information file is made, the log information is sequentially written to the log information file.

この書込みに際してログ情報ファイルの部分的な障害に
よる書込みエラーが発生した場合に、エラー発生アドレ
スを管理情報領域に記録するとともにこのエラー発生ロ
グ情報現在書込んでいた領域の次の領域に再度書込む。
If a write error occurs due to a partial failure of the log information file during this write, the address where the error occurred is recorded in the management information area, and this error log information is written again to the area next to the area where it is currently being written. .

ログ情報に書込まれた情報の読出し要求がなされたとき
に、管理情報領域上の書込みエラー発生アドレスを参照
し、複数に分割された領域の有効ログ情報の連続性を保
証してログ情報を読み出す。
When a request is made to read information written in log information, the write error occurrence address in the management information area is referred to, and the log information is read while ensuring the continuity of valid log information in the area divided into multiple areas. read out.

〔実施例〕〔Example〕

以下、本発明実施例装置を図面に基づいて説明する。 DESCRIPTION OF THE PREFERRED EMBODIMENTS A device according to an embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明実施例装置の構成を示すプロ・ツク構成
図である。第1図に示すように、本発明実施例のログ情
報ファイル20は、管理情報領域100と、三つに分割
された領域からなるログデータ部200とを備える。ま
た、管理情報領域100は、ログデータ部200の三の
領域の各々の開始アドレスが格納されている領域開始ア
ドレス情報部110.120および130と、各々の領
域で書込みエラーが発生した場合にそのアドレスを格納
するエラーアドレス情報部111.121および131
 とを備える。
FIG. 1 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention. As shown in FIG. 1, the log information file 20 according to the embodiment of the present invention includes a management information area 100 and a log data section 200 consisting of three areas. The management information area 100 also includes area start address information areas 110, 120 and 130 in which the start addresses of each of the three areas of the log data area 200 are stored, and areas where a write error occurs in each area. Error address information section 111, 121 and 131 that stores addresses
Equipped with.

第2図はログ情報をログ情報ファイル20へ書込む場合
に使用されるログ情報書込み手段の動作を示す流れ図で
あり、第3図はログ情報ファイル20に書込まれたログ
情報を読出ず場合に使用されるログ情報読出し手段の動
作を示す流れ図である。
FIG. 2 is a flowchart showing the operation of the log information writing means used when writing log information to the log information file 20, and FIG. 3 is a flowchart showing the operation of the log information writing means used when writing log information to the log information file 20. 3 is a flowchart showing the operation of a log information reading means used in the process.

まず、書込み手段の動作について第2図を参照して説明
する。はじめにログデータ部200への書込み要求に基
づいてログ情報の書込みを行い(ステップ1)、書込み
エラーが発生しているか否かを判定しくステップ2)、
エラーが発生していないときはそのまま正常に終了する
。もしエラーが発生した場合は、そのエラーが発生した
データ領域部のアドレスを管理情報領域100上の該当
するエラーアドレス情報部に記録しくステップ3)、現
在書込み中であった領域の次の領域の開始アドレスを管
理情報部100より取得しくステップ4)、書込みエラ
ーの発生したログ情報をステップ4で取得したアドレス
へ再書込みを行い(ステ・ノブ5)、書込みエラーが発
生しているか否かを判定しくステップ6)、エラーが発
生しているときは再度ステップ3へ制御を戻し、エラー
が発生していない場合には正常に終了する。
First, the operation of the writing means will be explained with reference to FIG. First, log information is written based on a write request to the log data section 200 (step 1), and it is determined whether or not a writing error has occurred (step 2).
If no error occurs, the process will end normally. If an error occurs, record the address of the data area where the error occurred in the corresponding error address information area in the management information area 100. Acquire the start address from the management information unit 100 (step 4), rewrite the log information where the write error occurred to the address acquired in step 4 (step knob 5), and check whether a write error has occurred. In step 6), if an error has occurred, control is returned to step 3, and if no error has occurred, the process ends normally.

次に、ログ情報読出し手段の動作について第3図を参照
して説明する。はじめに、ログ情報の読出し要求に基づ
いて読出すべきログ情報の格納アドレスを取得しくステ
ップ7)、そのアドレスが管理情報領域100の中のエ
ラーアドレス情報部に記録されているか否かを判定しく
ステップ8)、記録されていなければそのままログ情報
を読出しくステップ10)、正常に終了する。もしエラ
ーアドレス情報部に記録されている場合は、管理情報領
域100から現在読出し中の領域の次の領域の開始アド
レスを取得しくステップ9)、そのアドレスを指定して
ログ情報を読出しくステップ10)、終了する。
Next, the operation of the log information reading means will be explained with reference to FIG. First, step 7) acquires the storage address of the log information to be read based on the log information read request, and determines whether or not the address is recorded in the error address information section in the management information area 100. 8) If the log information is not recorded, read out the log information as is. Step 10) ends normally. If it is recorded in the error address information section, obtain the start address of the area next to the area currently being read from the management information area 100 (step 9), and specify that address to read the log information (step 10). ),finish.

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

本発明は、以上説明したように、ログ情報ファイルの部
分的な障害による書込みエラー発生時でも、ログ情報フ
ァイルを複数領域に分割管理するとともにエラー発生ア
ドレスを記録管理するので、ログ情報ファイルのスペー
スの有効利用が図れるとともに、書込みエラーが発生し
たログ情報ファイルの読み出しに際してログ情報の連続
性を保証する効果がある。
As explained above, even when a write error occurs due to a partial failure in the log information file, the present invention manages the log information file by dividing it into multiple areas and records and manages the address where the error occurred. This has the effect of ensuring the continuity of log information when reading a log information file in which a write error has occurred.

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

第1図は本発明実施例装置の構成を示すブロック構成図
。 第2図はログ情報書込み動作を示す流れ図。 第3図はログ情報読出し動作を示す流れ図。 20・・・ログ情報ファイル、100・・・管理情報領
域、200・・・ログデータ部、110.120.13
0・・・領域開始アドレス情報部、111.121.1
31・・・書込みエラーアドレス情報部。 特開BH62−217337(4) 大患例の動作 凡 3 図 32 図
FIG. 1 is a block configuration diagram showing the configuration of an apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart showing the log information writing operation. FIG. 3 is a flow chart showing the log information read operation. 20... Log information file, 100... Management information area, 200... Log data section, 110.120.13
0...Area start address information section, 111.121.1
31...Write error address information section. Japanese Patent Application Laid-open No. BH62-217337 (4) Operation guide for major cases 3 Figure 32

Claims (1)

【特許請求の範囲】[Claims] (1)運転に伴って発生する事象にかかわる情報を記憶
するファイルと、 このファイルに情報を書込み、この書込まれた情報をそ
の発生順序に従って読出す書込み・読出し手段と を備えたログ情報ファイル装置において、 上記ファイルには、書込みおよび読出しの順番を示すア
ドレスが付された複数個の領域が設定され、 この領域のうち、書込み時に障害が発生した領域を指定
する指定手段と、 この指定手段で指定された領域のアドレスの次の順番の
アドレスが付された領域に、この指定された領域にすで
に書込まれた情報およびこの情報につづき発生する情報
の書込みの実行を上記書込み・読出し手段に指示する第
一制御手段と、上記指定された領域からの情報読出しの
禁止を指示する第二制御手段と を備えたことを特徴とするログ情報ファイル装置。
(1) A log information file that includes a file that stores information related to events that occur during driving, and a writing/reading means that writes information to this file and reads the written information in the order in which it occurs. In the device, a plurality of areas are set in the above file with addresses indicating the order of writing and reading, and a specifying means for specifying the area in which a failure occurred during writing among these areas; The writing/reading means executes writing of the information already written in the specified area and the information generated subsequent to this information to the area assigned the address in the order following the address of the area specified by . A log information file device comprising: a first control means for instructing the user to read information from the specified area; and a second control means for instructing to prohibit reading of information from the specified area.
JP61061180A 1986-03-18 1986-03-18 File device for log information Pending JPS62217337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61061180A JPS62217337A (en) 1986-03-18 1986-03-18 File device for log information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61061180A JPS62217337A (en) 1986-03-18 1986-03-18 File device for log information

Publications (1)

Publication Number Publication Date
JPS62217337A true JPS62217337A (en) 1987-09-24

Family

ID=13163703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61061180A Pending JPS62217337A (en) 1986-03-18 1986-03-18 File device for log information

Country Status (1)

Country Link
JP (1) JPS62217337A (en)

Similar Documents

Publication Publication Date Title
US5535381A (en) Apparatus and method for copying and restoring disk files
JP4252139B2 (en) Storage system
JPH06250906A (en) Backup/recovery system for data developed in main storage device
EP0351109A2 (en) Reducing resources in a high reliability data storage subsystem
US20080022060A1 (en) Data recording apparatus, program product, and data recording method
JPS62217337A (en) File device for log information
JPH03192436A (en) Information recording and reproducing system
JPH07319636A (en) Controller for storing data of magnetic disk
JPH0767146A (en) Memory diagnostic circuit for video recording and reproducing device by semiconductor memory
JPS58175065A (en) Processing system of multiplex volume
JPS60171677A (en) Method for processing fault of storing medium
JPH02197938A (en) Restoring system for draw type optical disk directory
JPH07200378A (en) Library file management equipment
JPS601672A (en) Processing method for defective block of magnetic disk device
JP2549155Y2 (en) Optical filing system
JPH04354029A (en) System software multiplex computer system
JPS5987572A (en) Controlling system of disk storage device
JPS6069759A (en) Control system for disk cache memory
JPS63251965A (en) Disk managing system
JPH11220693A (en) Moving image recording device
JPH1139230A (en) Diagnostic method for floppy disk device and recording medium
JPH01206468A (en) Picture data processor
JPH07121317A (en) Optical disk management method for computer controller
JPH09258909A (en) Recorder
JPH0594320A (en) Computer device