JPH053611B2 - - Google Patents

Info

Publication number
JPH053611B2
JPH053611B2 JP59133768A JP13376884A JPH053611B2 JP H053611 B2 JPH053611 B2 JP H053611B2 JP 59133768 A JP59133768 A JP 59133768A JP 13376884 A JP13376884 A JP 13376884A JP H053611 B2 JPH053611 B2 JP H053611B2
Authority
JP
Japan
Prior art keywords
data
file
data file
control channel
access
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
JP59133768A
Other languages
Japanese (ja)
Other versions
JPS6113328A (en
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 JP59133768A priority Critical patent/JPS6113328A/en
Publication of JPS6113328A publication Critical patent/JPS6113328A/en
Publication of JPH053611B2 publication Critical patent/JPH053611B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、メインメモリが一時的に記憶してい
るデータを貯蔵するデータフアイルのアクセス方
式に係り、特にデータフアイルアクセス中、電源
断等により起こるシステムダウン発生後の再開処
理方法に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for accessing a data file that stores data temporarily stored in a main memory, and particularly relates to an access method for a data file that stores data temporarily stored in a main memory. The present invention relates to a restart processing method after a system failure occurs.

情報処理システムを構成する端末装置は、情報
処理システムの普及に伴い取り扱うデータ量が急
激に増加して来ている。一方、ミニコンピユー
タ、マイクロコンピユータの普及により情報処理
システムの機能の分散が図られ、端末装置も単な
るデータの入出力装置でなくデータ作成装置とし
て用いられるようになつて来た。
2. Description of the Related Art The amount of data handled by terminal devices constituting information processing systems is rapidly increasing as information processing systems become more widespread. On the other hand, 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 mere data input/output devices but also as data creation devices.

このような端末装置で取り扱うデータを端末装
置内のデータフアイルに貯蔵し管理する場合、1
つの方式として、複数セクタより構成されるレコ
ードブロツク単位にアクセスし、管理する方式が
実施されている。
When storing and managing data handled by such a terminal device in a data file within the terminal device, 1.
As one method, a method has been implemented in which a record block unit consisting of a plurality of sectors is accessed and managed.

上述のような端末装置において、最近、その利
用方法が高度化、複雑化するに伴い、安定した運
用を維持することが要求されるようになり、又万
一データフアイルアクセス中に異常が発生した場
合でも、その再開処理が迅速でしかも正確な端末
装置の実用化が要望されるようになつた。
As the usage of terminal devices such as those mentioned above has recently become more sophisticated and complex, it has become necessary to maintain stable operation, and in the unlikely event that an abnormality occurs while accessing a data file. There is now a demand for a practical terminal device that can quickly and accurately perform restart processing even in the event of a failure.

〔従来の技術〕[Conventional technology]

第2図は端末装置内サブシステムを示す。 FIG. 2 shows the subsystem within the terminal device.

第2図に示す端末装置においては、データフア
イル2に書込んだり、書込んだデータを読出した
りする場合、複数のセクタをまとめて1つのレコ
ードブロツクとし、このレコードブロツク単位に
処理を行つている。
In the terminal device shown in Fig. 2, when writing to data file 2 or reading written data, multiple sectors are grouped together into one record block, and processing is performed in units of record blocks. .

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

このようにして扱われるデータは上述した通
り、複数のセクタをまとめたレコードブロツク単
位に貯蔵されるが、これは、 (1) データフアイル2の性能向上により、データ
転送時間が短縮されており、そのため処理部
(制御部3、フアイル制御チヤネル1等)とデ
ータフアイル2とのデータ転送は複数セクタを
まとめて扱つた方が有利である。
As mentioned above, data handled in this way is stored in record blocks that are made up of multiple sectors; (1) data transfer time has been shortened due to improved performance of data file 2; Therefore, it is advantageous for data transfer between the processing section (control section 3, file control channel 1, etc.) and the data file 2 to handle a plurality of sectors at once.

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

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

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

このような端末装置において、データをデータ
フアイル2に書込んでいる時に電源断が発生した
場合、レコードブロツクの途中でデータ書込みが
中断され、電源再投入後の再開処理時にそのレコ
ードブロツクを読取り確認してデータ書込みを再
開するが、この時、新旧データが混在しているた
め大変都合が悪い状態となる。
In such a terminal device, if a power failure occurs while data is being written to data file 2, the data writing will be interrupted in the middle of a record block, and the record block will be read and confirmed when restarting after the power is turned on again. Then, data writing is resumed, but at this time, old and new data are mixed, resulting in a very inconvenient situation.

従つて、従来は、 (1) 電源に大容量コンデンサを設け、該当のレコ
ードブロツク処理相当時間保持させる。
Conventionally, therefore, (1) a large capacity capacitor is provided in the power supply to hold the record block for a period of time equivalent to processing the record block;

(2) データ読取り時エラーを発生させる、 等の方法が取られていた。(2) Generates an error when reading data; 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, and
This will increase costs.

又電源再投入後の再開処理時の読取りでエラー
を発生させると、エラーが電源断のものか、デー
タフアイル不良によるものかの切分けがつけ難い
と言う問題点がある。
Furthermore, if an error occurs during reading during restart processing after the power is turned on again, there is a problem in that it is difficult to distinguish whether the error is due to a power cut or a data file failure.

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

本発明は、上記問題点を解消した新規なデータ
フアイルのアクセス制御装置を実現することを目
的とするものであり、該問題点は、処理装置によ
り制御され、転送データを一時的に記憶するメイ
ンメモリと、前記メインメモリが一時的に記憶し
ているデータを貯蔵するデータフアイルと、該デ
ータフアイルを制御するフアイル制御チヤネルと
を備えてなるシステムにおいて、前記フアイル制
御チヤネル内に不揮発性メモリを設け、前記フア
イル制御チヤネルが該データフアイルに対しレコ
ードブロツク単位でアクセス開始時に、前記不揮
発性メモリに該データフアイルのアドレス情報含
むフアイルアクセス情報をセツトし、アクセス終
了時にクリアすることを特徴とするデータフアイ
ルのアクセス制御装置により解決される。
An object of the present invention is to realize a novel data file access control device that solves the above-mentioned problems. In a system comprising a memory, a data file for storing data temporarily stored in the main memory, and a file control channel for controlling the data file, a nonvolatile memory is provided in the file control channel. , wherein the file control channel sets file access information including address information of the data file in the nonvolatile memory when starting access to the data file in record block units, and clears it when the access ends. access control device.

〔作用〕[Effect]

即ち、フアイル制御チヤネルはデータフアイル
アクセス開始時、不揮発性メモリ(例えば、
CMOSスタテツクRAM等)に対して該当データ
フアイルのアドレス情報等のデータフアイルアク
セス情報をセツトし、該当データフアイルのアク
セス終了時に例えば、オール“F”のようなイニ
シヤルパターンを書込み、前記情報をクリアす
る。
That is, the file control channel is connected to non-volatile memory (e.g.
Data file access information such as address information of the relevant data file is set in the CMOS static RAM, etc., and when the access to the relevant data file is completed, an initial pattern such as all "F" is written, and the above information is cleared. do.

もし、該当データフアイルアクセス途中に電源
断が発生し、アクセスが中断された場合は不揮発
性メモリのクリア処理を行わないようにし、電源
再投入後の再開処理時にまず不揮発性メモリを読
取り、データフアイルアクセス情報を確認するこ
とによりアクセスが中断されたことを知り、この
ことにより再開処理を誤りなくしかも容易に行う
ことが出来る。
If the power is turned off during access to the relevant data file and the access is interrupted, the non-volatile memory should not be cleared, and when restarting after the power is turned on again, the non-volatile memory will be read first and the data file will be cleared. By checking the access information, it is known that the access has been interrupted, and as a result, the restart process can be performed easily and without error.

〔実施例〕〔Example〕

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

第1図は本発明に係るフアイル制御チヤネルの
ブロツクダイヤグラムを示す。尚全図を通じて同
一記号は同一対象物を示す。
FIG. 1 shows a block diagram of a file control channel according to the present invention. The same symbols indicate the same objects throughout the figures.

本実施例のフアイル制御チヤネル1はデータフ
アイル2と対応しており、バスaから転送されて
来るデータフアイルアドレス情報(メインメモリ
4からバスaに出力された情報)が自データフア
イル2と一致していることをバスインタフエース
制御部5が検出すると、データフアイルアクセス
情報やユーザデータ(レコードブロツク単位のデ
ータ)をフアイル制御チヤネル1内に引込む。
File control channel 1 in this embodiment corresponds to data file 2, and data file address information transferred from bus a (information output from main memory 4 to bus a) matches data file 2 itself. When the bus interface control unit 5 detects that the data file access information and user data (data in units of record blocks) are detected, the data file access information and user data (data in units of record blocks) are pulled into the file control channel 1.

フアイル制御チヤネル1内マイクロプロセツサ
(以下MPUと称する)6は、バスインタフエース
制御部5経由で入力されたデータフアイルアクセ
ス情報を不揮発性メモリ7にセツトし、ユーザデ
ータをレジスタ(RAM)9に一時格納する。又
フアイルインタフエース制御部10を起動して指
定のデータフアイル2を捕捉制御する。
A microprocessor (hereinafter referred to as MPU) 6 in the file control channel 1 sets data file access information input via the bus interface control unit 5 in a nonvolatile memory 7, and stores user data in a register (RAM) 9. Store temporarily. Also, the file interface control unit 10 is activated to control the acquisition of the designated data file 2.

次にメモリ(ROM)8に格納されているフア
イル制御用プログラムによりデータフアイル2の
指定位置に位置付けし、レコードブロツク単位の
ユーザデータを書込む。ユーザデータの書込みが
終了すると、MPU6は不揮発性メモリ7に例え
ば、オール“F”のようなイニシヤルパターンを
書込み、データフアイルアクセス情報をクリアす
る。
Next, the file control program stored in the memory (ROM) 8 positions the data file 2 at a specified position, and writes user data in units of record blocks. When writing of the user data is completed, the MPU 6 writes an initial pattern such as all "F" to the nonvolatile memory 7, and clears the data file access information.

もし、ユーザデータ(レコードブロツク単位の
データ)書込み中に電源断が発生した場合、制御
部3はMPU6に電源断信号を送出し、書込み
動作を中断させる。
If a power failure occurs during writing of user data (data in units of record blocks), the control unit 3 sends a power failure signal to the MPU 6 to interrupt the write operation.

電源が投入され再開されると、MPU6は不揮
発性メモリ7の内容をチエツクし、イニシヤルパ
ターンが書込まれてない時は、ユーザデータ書込
み中に中断されたものと判断し、制御部3に対し
て再書込み要求をする。
When the power is turned on and restarted, the MPU 6 checks the contents of the non-volatile memory 7, and if the initial pattern is not written, it determines that the writing of user data was interrupted and sends a message to the control unit 3. A rewrite request is made to the

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

以上のような本発明によれば、レコードブロツ
ク単位のデータ書込み時に電源断があつても、電
源投入後の復旧が廉価な方法で迅速に、しかも誤
りなく出来ると言う効果がある。
According to the present invention as described above, even if the power is cut off during data writing in units of record blocks, recovery after the power is turned on can be performed quickly and without errors at low cost.

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

第1図は本発明に係るフアイル制御チヤネルの
ブロツクダイヤグラム、第2図は端末装置内サブ
システム、をそれぞれ示す。 図において、1はフアイル制御チヤネル、2は
データフアイル、3は制御部、4はメインメモ
リ、5はバスインタフエース制御部、6はMPU、
7は不揮発性メモリ、8はメモリ(ROM)、9
はメモリ(RAM)、10はフアイルインタフエ
ース制御部、をそれぞれ示す。
FIG. 1 shows a block diagram of a file control channel according to the present invention, and FIG. 2 shows a subsystem within a terminal device. In the figure, 1 is a file control channel, 2 is a data file, 3 is a control unit, 4 is a main memory, 5 is a bus interface control unit, 6 is an MPU,
7 is non-volatile memory, 8 is memory (ROM), 9
1 indicates a memory (RAM), and 10 indicates a file interface control unit.

Claims (1)

【特許請求の範囲】[Claims] 1 処理装置により制御され、転送データを一時
的に記憶するメインメモリと、前記メインメモリ
が一時的に記憶しているデータを貯蔵するデータ
フアイルと、該データフアイルを制御するフアイ
ル制御チヤネルとを備えてなるシステムにおい
て、前記フアイル制御チヤネル内に不揮発性メモ
リを設け、前記フアイル制御チヤネルが該データ
フアイルに対しレコードブロツク単位でアクセス
開始時に、前記不揮発性メモリに該データフアイ
ルのアドレス情報含むフアイルアクセス情報をセ
ツトし、アクセス終了時にクリアすることを特徴
とするデータフアイルのアクセス制御装置。
1 Controlled by a processing device and comprising a main memory that temporarily stores transfer data, a data file that stores the data temporarily stored in the main memory, and a file control channel that controls the data file. In the system, a non-volatile memory is provided in the file control channel, and when the file control channel starts accessing the data file in record block units, file access information including address information of the data file is stored in the non-volatile memory. A data file access control device characterized in that a data file is set and cleared at the end of access.
JP59133768A 1984-06-28 1984-06-28 Accessing system of data file Granted JPS6113328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59133768A JPS6113328A (en) 1984-06-28 1984-06-28 Accessing system of data file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59133768A JPS6113328A (en) 1984-06-28 1984-06-28 Accessing system of data file

Publications (2)

Publication Number Publication Date
JPS6113328A JPS6113328A (en) 1986-01-21
JPH053611B2 true JPH053611B2 (en) 1993-01-18

Family

ID=15112509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59133768A Granted JPS6113328A (en) 1984-06-28 1984-06-28 Accessing system of data file

Country Status (1)

Country Link
JP (1) JPS6113328A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02236747A (en) * 1989-03-10 1990-09-19 Fujitsu Ltd Duplexed dasd equivalent information saving system
JP2972223B2 (en) * 1989-04-27 1999-11-08 日本電気株式会社 Rollback method for sequential files without journal
JPH03230237A (en) * 1990-02-05 1991-10-14 Nec Corp Fault countermeasure system for standard sequential file processing
JP2002230893A (en) * 2001-01-30 2002-08-16 Pioneer Electronic Corp Information recording and reproducing device, information recording and reproducing method, and program recording medium recorded with recording and reproducing procedure program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5723162A (en) * 1980-07-17 1982-02-06 Toshiba Corp Magnetic disk controller
JPS5856165A (en) * 1981-09-30 1983-04-02 Toshiba Corp Record update system
JPS58201162A (en) * 1982-05-19 1983-11-22 Nec Corp Data input device
JPS59220856A (en) * 1983-05-30 1984-12-12 Toshiba Corp Disc cache memory back-up system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5723162A (en) * 1980-07-17 1982-02-06 Toshiba Corp Magnetic disk controller
JPS5856165A (en) * 1981-09-30 1983-04-02 Toshiba Corp Record update system
JPS58201162A (en) * 1982-05-19 1983-11-22 Nec Corp Data input device
JPS59220856A (en) * 1983-05-30 1984-12-12 Toshiba Corp Disc cache memory back-up system

Also Published As

Publication number Publication date
JPS6113328A (en) 1986-01-21

Similar Documents

Publication Publication Date Title
US5412612A (en) Semiconductor storage apparatus
US6795890B1 (en) Data storage method, and data processing device using an erasure block buffer and write buffer for writing and erasing data in memory
JPH0291749A (en) Nonvolatile type semiconductor memory device
JPH117505A (en) Card type storage medium
JP4843222B2 (en) Semiconductor memory device control method, memory card, and host device
CN104021089A (en) Flash memory control chip, storage device and flash memory control method
JP2005267602A (en) Further fine and efficient write protection for disk volume
WO2005086007A1 (en) Data copy device
JPH053611B2 (en)
JPH11272569A (en) Data restoration system for outer storage device using flash memory
JPH01235075A (en) Disk memory controller
JP2010122898A (en) Recordable memory device
JPH08115257A (en) Magnetic disk controller
JPH0241776B2 (en)
JPH064228A (en) Semiconductor disk device
JP2003122644A (en) Computer and its storage device
JP4098400B2 (en) Semiconductor disk device
JPH0520196A (en) Disk cache controller
JPH07319637A (en) Controller and control method for disk device
JP3775697B2 (en) Portable information storage media
JPH10240633A (en) Memory system and memory card
JP2960455B2 (en) External storage control method
JPS6121539A (en) Generation management system of data file
JPH0731640B2 (en) Disk access control method
JPH04239939A (en) Storage control system

Legal Events

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