JPS6121539A - Generation management system of data file - Google Patents

Generation management system of data file

Info

Publication number
JPS6121539A
JPS6121539A JP59133769A JP13376984A JPS6121539A JP S6121539 A JPS6121539 A JP S6121539A JP 59133769 A JP59133769 A JP 59133769A JP 13376984 A JP13376984 A JP 13376984A JP S6121539 A JPS6121539 A JP S6121539A
Authority
JP
Japan
Prior art keywords
data
file
recognition code
generation
generation recognition
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
JP59133769A
Other languages
Japanese (ja)
Inventor
Morihiro Kamidate
神館 盛弘
Noboru Yamamoto
昇 山本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59133769A priority Critical patent/JPS6121539A/en
Publication of JPS6121539A publication Critical patent/JPS6121539A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain processing of restoration at re-application of power without any error by providing a generation recognition code area to plural parts of a record block and renewing a code of the generation recognition code area every time data are written. CONSTITUTION:When data from a main memory is outputted to a bus (e), a bus interface control section 5 of a file control channel designated to the control section fetches the data and stored once in a memory RAM9 by the control of a microprocesor MUP6. Then a prescribed data file is started by a file interface control section 10 according to the control program stored in a memory ROM7, the data in the RAM9 is transferred to a data file by the command of the MPU6 and it is written and renewed. If power supply interruption takes place during on the way of writing, the write renewal of the transfer data is intemitted. When the power is turned on again, the code data of the generation recognition code in the read data is compared by the MPU6 and if any difference is detected, the data transfer is requested newly and the write of the transfer data is tried again.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数のセクタより構成されるレコードブロッ
クの世代管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a generation management system for record blocks composed of a plurality of sectors.

情報処理システムを構成する端末装置は、データ処理の
普及に伴って入出力す4データ量も急激に増加し、これ
により小型簡易、低価格でしかも取扱いやすい端末装置
の需要が増えて来た。
With the spread of data processing, the amount of data input and output by terminal devices constituting information processing systems has rapidly increased, and as a result, demand for small, simple, low-cost, and easy-to-handle terminal devices has increased.

又ミニコンピユータ、マイクロコンピュータの普及によ
り情報処理システムの機能の分散が図られ、端末装置も
単なるデータの入出力装置でな(データ作成装置として
用いられるようになって来た。
Furthermore, with the spread of minicomputers and microcomputers, the functions of information processing systems have been distributed, and terminal devices have come to be used not only as data input/output devices but also as data creation devices.

このような端末装置で取り扱うデータを端末装置内のデ
ータファイルに記録し管理する場合の1つの方式として
、複数セクタより構成されるレコードブロック単位に管
理する方式がある。
One method of recording and managing data handled by such a terminal device in a data file within the terminal device is a method of managing the data in units of record blocks each consisting of a plurality of sectors.

一方、情報処理システムの利用範囲が拡大され。On the other hand, the scope of use of information processing systems has expanded.

複雑化するに伴い、より性能の向上した端末装置。Terminal devices have improved in performance as they have become more complex.

即ち、データ転送時に発生する異常処理のリカバリが迅
速で、データ転送処理がより効率的な端末装置の実用化
が要望されるようになった。
That is, there has been a demand for a practical terminal device that can quickly recover from abnormal processing that occurs during data transfer and that can perform data transfer processing more efficiently.

(従来の技術〕 従来技術として、端末装置内でのデータ貯蔵方法を例に
取り説明する。
(Prior Art) As a prior art, a data storage method within a terminal device will be described as an example.

第2図は端末装置内サブシステムを示す。第2図に示す
端末装置において、データファイル4にデータを書込ん
だり、書込んだデータを読出したりする場合、゛複数の
セクタをまとめて1つのレコードブロックとして、デー
タファイル4への書込み/読取りをしている。
FIG. 2 shows the subsystem within the terminal device. In the terminal device shown in FIG. 2, when writing data to the data file 4 or reading written data, ``Writing/reading to the data file 4 by combining multiple sectors as one record block'' doing.

即ち、外部又は自端末装置で投入したデータは一時的に
メインメモリ2に格納され、制御部1の制御のもとに指
定のファイル制御チャネル3の制御下にあるデータファ
イル4に転送され、貯蔵される。
That is, data input externally or by the own terminal device is temporarily stored in the main memory 2, transferred to the data file 4 under the control of the specified file control channel 3 under the control of the control unit 1, and stored. be done.

このようにし−ζ扱われるデータは上述した通り。The data treated in this way is as described above.

複数のセクタをまとめて1つのレコードブロックとして
、データファイル4に貯蔵されるが、これは。
Multiple sectors are collectively stored as one record block in the data file 4.

(1)データファイル4の性能向上により、データ転送
時間が短縮されており、そのため処理部(制御部1.フ
ァイル制御チャネル3等)とデータファイル4とのデー
タ転送は複数セクタをまとめて扱った方が有利である。
(1) Improved performance of data file 4 has shortened data transfer time, so data transfer between the processing unit (control unit 1, file control channel 3, etc.) and data file 4 handles multiple sectors at once. It is more advantageous.

(2)同一属性を持ったデータが1つのセクタの容量を
越えた場合でも、まとめて取り扱った方が管理上有利で
ある。
(2) Even if data with the same attribute exceeds the capacity of one sector, it is more advantageous for management to handle them all together.

等の理由による。Due to reasons such as.

一方、一般に端末装置の電源装置は外形上の制約により
電源断に対するリカバリ措置が充分に施されておらず、
従って、雷等により電源断の発生する可能性は他の装置
より多い。
On the other hand, power supplies for terminal devices generally do not have sufficient recovery measures against power outages due to physical limitations.
Therefore, there is a greater possibility that the power supply will be cut off due to lightning or the like than other devices.

このような端末装置において、データをデータファイル
4に書込んでいる時に電源断が発生した場合、レコード
ブロックの途中でデータ更新が中断され、電源再投入時
にそのレコードブロックを読取り確認する際、新旧デー
タが混在しているため大変都合が悪い状態となる。
In such a terminal device, if the power is cut off while data is being written to the data file 4, the data update will be interrupted in the middle of a record block, and when the record block is read and confirmed when the power is turned on again, the old and new This is a very inconvenient situation because the data is mixed.

従って、従来は。Therefore, conventionally.

(1)電源に大容量コンデンサを設け、該当のレコード
ブロック処理相当時間保持させる。
(1) A large-capacity capacitor is installed in the power supply to hold the record block for a time equivalent to processing the record block.

(2)読取り時エラーを発生させる。(2) Generates an error when reading.

等の方法が取られていた。Such methods were used.

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

しかし、電源に大容量コンデンサを設けると電源の占め
る部分を大きくする必要があると共に。
However, if a large capacity capacitor is installed in the power supply, it is necessary to increase the portion occupied by the power supply.

コスト増となる。This will increase costs.

又電源再投入時の読取りでエラーを発生させると、エラ
ーが電源断のものか、データファイル4不良によるもの
かの切分けがつけ難いと言う問題点がある。
Another problem is that if an error occurs during reading when the power is turned on again, it is difficult to determine whether the error is due to the power being turned off or a defect in the data file 4.

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

本発明は、上記問題点を解消した新規なデータファイル
の世代管理方式を実現することを目的とするものであり
、該問題点は、レコードブロックの複数個所に世代認識
コード領域を設けると共に。
An object of the present invention is to realize a new data file generation management method that solves the above-mentioned problems.

各レコードブロックにデータの書込みを行う毎に前記世
代認識コード領域のコードを更新する制御手段とを備え
、各世代認識コード領域に格納された複数個の該世代認
識コード間に世代の相違があった場合、該レコードブロ
ックに対するデータ書き直しをする本発明によるデータ
ファイルの世代管理方式により解決される。
and a control means for updating the code in the generation recognition code area each time data is written to each record block, and the control means updates the code in the generation recognition code area each time data is written in each record block, and the control means updates the code in the generation recognition code area when there is a generation difference between the plurality of generation recognition codes stored in each generation recognition code area. In this case, the problem can be solved by the data file generation management method according to the present invention, which rewrites data to the record block.

〔作用〕[Effect]

即ち9例えばレコードブロックの先頭と後尾とに世代認
識コード領域を設けると共に、ファイル制御チャネル内
・に前記世代認識コードを格納するレジスタを設け、レ
コードブロックへのデータ更新中に電源断が発生した後
の再開で前記レコードブロックを読取り、その時の世代
認識コードをレジスタへ格納し、その世代認識コードを
検討した時9例えば先頭の世代認識コードは更新されて
いるが後尾の世代−認識コードが旧データのままであれ
ば、データ更新の途中であることが直ちに確認されるの
で、新たなデー゛夕転送要求が迅速に行える。
That is, 9. For example, generation recognition code areas are provided at the beginning and end of a record block, and a register for storing the generation recognition code is provided in the file control channel. When restarting, the record block is read, the generation recognition code at that time is stored in the register, and when the generation recognition code is examined, 9 For example, the first generation recognition code has been updated, but the last generation recognition code is old data. If it remains the same, it is immediately confirmed that the data is being updated, so a new data transfer request can be made quickly.

〔実施例〕〔Example〕

以下本発明の要旨を第1図に示す実施例により具体的に
説明する。
The gist of the present invention will be specifically explained below with reference to an embodiment shown in FIG.

第1図(A)は本発明に係るレコードブロック構成の一
実施例、第1図(B)は本発明に係る端末装置内ファイ
ル制御チャネルの一実施例をそれぞれ示す。尚全図を通
じて同一記号は同一対象物を示す。
FIG. 1(A) shows an embodiment of a record block configuration according to the present invention, and FIG. 1(B) shows an embodiment of a file control channel within a terminal device according to the present invention. The same symbols indicate the same objects throughout the figures.

本実施例のレコードブロックaは、レコードブロックa
の先頭にある世代認識コード領域す、データ記録領域C
,レコードブロックaの後尾にある世代認識コード領域
dから構成されている。
Record block a in this embodiment is record block a
Generation recognition code area C at the beginning of the data recording area C
, a generation recognition code area d at the tail end of record block a.

尚本実施例のデータは、複数セクタで構成するレコード
ブロックati4位で処理するものであり。
Note that the data in this embodiment is processed in the fourth record block ati, which is composed of a plurality of sectors.

第1図(A)に示すレコードブロックa形式を持つデー
タをデータファイル4に書込むものとする。
Assume that data having the record block a format shown in FIG. 1(A) is written to the data file 4.

次ムこ本実施例の動作を、第1図(B)に示すファイル
制御チャネル3の動作を中心にして説明する。
Next, the operation of this embodiment will be explained focusing on the operation of the file control channel 3 shown in FIG. 1(B).

メインメモリ2からのデータがパスeに出力されると、
制御部1に指定されたファイル制御チャネル3のバスイ
ンタフェース制御部5はデータを取り込みマイクロプロ
セッサ6 (以下MPU6と称する)の制御によりメモ
リ (RAM ) 9に一旦格納する。
When data from main memory 2 is output to path e,
The bus interface control unit 5 of the file control channel 3 designated by the control unit 1 takes in data and temporarily stores it in a memory (RAM) 9 under the control of a microprocessor 6 (hereinafter referred to as MPU 6).

次に、メモリ (ROM ) 7に格納された制御プロ
グラムに従いファイルインタフェース制御部10により
チオのデータファイル4を起動して、 MPIJ6の指
示によりメモリ (RAM )9のデータをデータファ
イル4゛に転送し、該当のセクタ(図示してない)に第
1図(A)に示すレコードブロックa様式を含む転送デ
ータを書込み、更新する。
Next, according to the control program stored in the memory (ROM) 7, the file interface control unit 10 starts the data file 4 of the thio, and transfers the data in the memory (RAM) 9 to the data file 4 according to instructions from the MPIJ 6. , writes and updates transfer data including the record block a format shown in FIG. 1(A) in the corresponding sector (not shown).

この書込みの途中に、電源断が発生すると制御部1は直
ちにファイル制御チャネル部3に通知し。
If a power failure occurs during this writing, the control unit 1 immediately notifies the file control channel unit 3.

転送データの書込み更新を中断させる。Interrupts writing and updating of transfer data.

゛ 次に、電源再投入されると、制御部1はファイル制
御チャネル部3にデータファイル4の該当レコードブロ
ックaの読込みを制御させ、読込まれたデータの内世代
認識コード領域す、dのコードデータはレジスタ8に格
納され、 MPU6はレジスタ8に格納されたコードデ
ータを比較検討し1世代認識コード領域す、dのコード
データが相違していることを検出する。
゛ Next, when the power is turned on again, the control unit 1 causes the file control channel unit 3 to control the reading of the corresponding record block a of the data file 4, and reads the codes of generation recognition code areas s and d in the read data. The data is stored in the register 8, and the MPU 6 compares and examines the code data stored in the register 8 and detects that the code data in the first generation recognition code areas d and d are different.

2つのコードデータ間の相違を検出したMPU6は。The MPU 6 detects the difference between the two code data.

該当レコードブロックaがデータ更新途中であると判定
し、新たにメインメモリ2からのデータ転送を制御部1
に要求し、転送データの書込みをやり直す。
It is determined that the data of the corresponding record block a is in the process of being updated, and the control unit 1 initiates a new data transfer from the main memory 2.
request and rewrite the transfer data.

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

以上のような本発明によれば、データファイルへのデー
タ書込み時に電源断があっても、電源再投入時の復旧“
が単時間にしかも誤りなく処理出来ると言う効果がある
According to the present invention as described above, even if there is a power outage when writing data to a data file, recovery is possible when the power is turned on again.
This has the effect that it can be processed in a short amount of time and without errors.

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

第1図(A)は本発明に係るレコードブロック構成の一
実施例。 第1図(B)は本発明に係る端末装置内ファイル制御チ
ャネルの一実施例。 第2図は端末装置内サブシステム。 をそれぞれ示す。 図において。 1は制御部、       2はメインメモリ。 3はファイル制御チャネル。 4はデータファイル。 5ばバスインタフェース制御部。 6はMPIJ 、         7はメモリ (R
OM ) 。 8はレジスタ、      9はメモリ (RAM )
 。 lOはファイルインタフェース制御部。 をそれぞれ示す。 亨 1 図 (A) (β) (デへタクイル八) 茅 2 囚
FIG. 1(A) shows an example of a record block configuration according to the present invention. FIG. 1(B) shows an embodiment of a file control channel within a terminal device according to the present invention. Figure 2 shows the subsystem within the terminal device. are shown respectively. In fig. 1 is the control unit, 2 is the main memory. 3 is a file control channel. 4 is a data file. 5Ba bus interface control section. 6 is MPIJ, 7 is memory (R
OM). 8 is a register, 9 is memory (RAM)
. lO is a file interface control unit. are shown respectively. Toru 1 Diagram (A) (β) (Dehetaquil 8) Kaya 2 Prisoner

Claims (1)

【特許請求の範囲】[Claims] データファイルに貯蔵するデータを複数のセクタより構
成されるレコードブロック単位で管理する方式であって
、前記レコードブロックの複数個所に世代認識コード領
域を設けると共に、各レコードブロックにデータの書込
みを行う毎に前記世代認識コード領域のコードを更新す
る制御手段とを備え、各世代認識コード領域に格納され
た複数個の該世代認識コード間に世代の相違があった場
合、該レコードブロックに対するデータ書き直しをする
ことを特徴とするデータファイルの世代管理方式。
This is a method for managing data stored in a data file in units of record blocks consisting of multiple sectors, in which generation recognition code areas are provided at multiple locations in the record block, and each time data is written to each record block. and a control means for updating the code in the generation recognition code area, and when there is a generation difference between the plurality of generation recognition codes stored in each generation recognition code area, data rewriting for the record block is performed. A data file generation management method characterized by:
JP59133769A 1984-06-28 1984-06-28 Generation management system of data file Pending JPS6121539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59133769A JPS6121539A (en) 1984-06-28 1984-06-28 Generation management system of data file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59133769A JPS6121539A (en) 1984-06-28 1984-06-28 Generation management system of data file

Publications (1)

Publication Number Publication Date
JPS6121539A true JPS6121539A (en) 1986-01-30

Family

ID=15112534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59133769A Pending JPS6121539A (en) 1984-06-28 1984-06-28 Generation management system of data file

Country Status (1)

Country Link
JP (1) JPS6121539A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03176750A (en) * 1989-11-22 1991-07-31 American Teleph & Telegr Co <Att> Method of protecting information of faulttolerant redundant information storage device and fault-tolerant system
JPH06149470A (en) * 1991-03-19 1994-05-27 Logitech Inc Unitary-body type ball gage for pointing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5730061A (en) * 1980-07-30 1982-02-18 Fuji Facom Corp File control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5730061A (en) * 1980-07-30 1982-02-18 Fuji Facom Corp File control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03176750A (en) * 1989-11-22 1991-07-31 American Teleph & Telegr Co <Att> Method of protecting information of faulttolerant redundant information storage device and fault-tolerant system
JPH06149470A (en) * 1991-03-19 1994-05-27 Logitech Inc Unitary-body type ball gage for pointing device

Similar Documents

Publication Publication Date Title
US6883112B2 (en) Storage device, backup and fault tolerant redundant method and computer program code of plurality storage devices
US6883060B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
JPH0291749A (en) Nonvolatile type semiconductor memory device
JPH10254636A (en) Disk array system
JP2000138692A (en) Mac address management system, mac address management method and storage medium
JP3136258B2 (en) Disk update log recording method
JPH0877074A (en) Storage device system using flash memory
JPS6121539A (en) Generation management system of data file
JPS6113328A (en) Accessing system of data file
JP4131583B2 (en) Redundant computer system
JPH07319637A (en) Controller and control method for disk device
JPS63217441A (en) Journal collecting system
JPS62125452A (en) Data back-up system for storage device
JPS63140357A (en) Disk input and output control system
JPH11154058A (en) Disk array device and data maintaining method
JP3463696B2 (en) Online garbage collection processing method
JP3540087B2 (en) Media environment updating apparatus and method
JPH0552538B2 (en)
JP2656499B2 (en) Computer system
JPS6254348A (en) Processing system for fault of file
JPH07141120A (en) Processing method for fault in information storage medium
JPS6167153A (en) Partial trouble recovery processing system of direct access storage device
JPH04273516A (en) Magnetic disk device
JPH1091505A (en) File management device for system and file management method for network
JPH08212094A (en) Wide area network system for power system information