JPS5944694B2 - Magnetic tape control method - Google Patents
Magnetic tape control methodInfo
- Publication number
- JPS5944694B2 JPS5944694B2 JP52121736A JP12173677A JPS5944694B2 JP S5944694 B2 JPS5944694 B2 JP S5944694B2 JP 52121736 A JP52121736 A JP 52121736A JP 12173677 A JP12173677 A JP 12173677A JP S5944694 B2 JPS5944694 B2 JP S5944694B2
- Authority
- JP
- Japan
- Prior art keywords
- power
- magnetic tape
- write
- serial number
- processing
- 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
Links
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
- Digital Magnetic Recording (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】
本発明は、磁気テープ制御方式、特に電源切断状態の発
生時において処理が終了しまたは実行途中であつたブロ
ック位置の通番を記憶するブロック通番メモリをもうけ
ておき、電源オン時において次に実行するライト処理ま
たはリード処理を上記ブロック通番メモリの内容で与え
られる通番のブロック位置から再開するようにした磁気
テープ制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a magnetic tape control system, in particular, a block serial number memory for storing serial numbers of blocks whose processing has been completed or is in the middle of execution when a power-off state occurs. This invention relates to a magnetic tape control system in which, when turned on, the next write or read process is restarted from the block position of the serial number given by the contents of the block serial number memory.
従来から、停電など異常電源断、電源の瞬断あるいは誤
操作による電源切断などが生じた後における磁気テープ
装置に対するライト処理またはリード処理に問題が生じ
ていた。Conventionally, problems have arisen in write or read processing for magnetic tape devices after an abnormal power outage such as a power outage, a momentary power outage, or a power outage due to an erroneous operation.
即ち、電源再投入時において複数ブロック前からライト
処理またはリード処理を実行する場合、上記停電発生時
に途中まで書かれていたライト・データが媒体上に残る
ことはないが、既にライト処理が終了した複数ブロック
分のデータを保持しておくことが必要となる。本発明は
、上記の点を解決することを目的としており、電源切断
時に処理が終了しまたは実行途中であつたプロツク位置
を見付け出して、当該プロツク位置からライへ処理また
はリード処理を実行できるようにすることを目的として
いる。In other words, if write processing or read processing is executed from several blocks before the power is turned on again, the write data that was partially written at the time of the power outage will not remain on the medium, but if the write processing has already been completed. It is necessary to hold data for multiple blocks. The present invention aims to solve the above-mentioned problems, and is capable of finding the position of a block where processing has finished or was in the middle of execution when the power is turned off, and executing processing or read processing from that block position to a lie. It is intended to be.
さらに、上記電源切断時に処理が終了しまたは実行途中
であつたプロツク位置を見付け出すに当たつて、磁気テ
ープの逆方向移動に際してのホスト側の処理負担を軽減
することを目的としている。そしてそのため、本発明の
磁気テープ制御方式はライト指示またはリード指示にも
とずいてプロツク単位でライト処理またはリード処理が
実行される磁気テープ装置を有する磁気テープ・システ
ムにおいて、電源切断状態が発生したことを記憶する停
電メモリと、該電源切断時に処理が終了しまたは実行途
中であつたプロツク位置の通番を記憶するプロツク通番
メモリとをそなえると共に、上記磁気テープ装置に対す
るライト処理時に1プロツク単位に対応してプロツク通
番情報を対応するよう構成され、上記停電メモリに電源
切断状態の発生が指示されている状態で再び電源がオン
されたとき、上記磁気テープ装置を一旦上記ライト処理
方向またはリード処理方向の逆方向にタイマによつて所
定時間の間移動せしめた上で上記順方向にチエツク・リ
ード処理を実行し、該チエツク・リード処理時に対応し
た上記プロツク通番情報と上記プロツク通番メモリの内
容とが一致したプロツク位置からライト処理またはリー
ド処理を実行するよう制御されることを特徴としている
。以下図面を参照しつつ説明する。第1図は本発明の磁
気テープ制御方式が適用される一実施例システム全体図
、第2図は本発明にいう停電メモリと通番メモリとを概
念的に説明する説明図、第3図は本発明の磁気テープ制
御方式の一実施例フローチヤート、第4図は本発明の磁
気テープ制御方式に用いる一実施例要部構成図を示す。Furthermore, it is an object of the present invention to reduce the processing burden on the host side when moving the magnetic tape in the reverse direction in finding the position of the block where the processing was completed or in the middle of execution when the power was turned off. Therefore, the magnetic tape control method of the present invention is designed to prevent a power-off state from occurring in a magnetic tape system having a magnetic tape device that executes write processing or read processing in units of blocks based on write or read instructions. It is equipped with a power outage memory that stores the serial number of the block position where the processing was completed or was in the middle of execution when the power was cut off, and corresponds to each program when writing to the magnetic tape device. When the power is turned on again with the power failure memory indicating that a power-off state has occurred, the magnetic tape device is once set in the write processing direction or the read processing direction. The program is moved in the opposite direction for a predetermined time by a timer, and then the check/read processing is executed in the forward direction, and the program serial number information corresponding to the check/read processing and the contents of the program serial number memory are It is characterized in that it is controlled to execute write processing or read processing from the matched block position. This will be explained below with reference to the drawings. FIG. 1 is an overall diagram of an embodiment of a system to which the magnetic tape control method of the present invention is applied, FIG. 2 is an explanatory diagram conceptually explaining the power failure memory and serial number memory according to the present invention, and FIG. Flowchart of an Embodiment of the Magnetic Tape Control Method of the Invention. FIG. 4 shows the configuration of essential parts of an embodiment used in the magnetic tape control method of the invention.
第1図において、1は中央処理装置、2は磁気テープ・
力セツト制御装置、3は磁気テープ・力セツト装置、4
はメモリ装置、5はメモリ部であつて停電メモリや通番
メモリを構成するもの、6はバツテリであつて図示しな
い商用電源停電時に少なくとも上記メモリ部5の内容の
消滅を防止するものを表わしている。In Figure 1, 1 is the central processing unit, 2 is the magnetic tape
Force setting control device, 3, magnetic tape/force setting device, 4
Reference numeral 5 indicates a memory device, 5 indicates a memory section that constitutes a power outage memory or a serial number memory, and 6 indicates a battery (not shown) that prevents at least the contents of the memory section 5 from disappearing in the event of a power outage. .
また第2図において、5,6は夫々第1図に対応し、7
は停電メモリであつて電源切断状態が発生したことを記
憶するもの、8はプロツク通番メモリであつて上記電源
切断状態発生時に処理が終了しまたは実行途中であつた
プロツク通番を記憶するものを表わしている。磁気テー
プ・力セツト装置3に対するライト処理またはリード処
理は、中央処理装置1からの指示によつてプロツク単位
で行なわれる。そして該プロツク単位に対してプロツク
通番が附与され、1つのプロツクに対してライト処理ま
たはリード処理が実行され終つたとき、プロツク通番カ
ウンタの内容が更新される。またライト処理時に、各1
プロツクに対応して上記プロツク通番カウンタの内容が
磁気テープ・力セツト装置上に記録される。上記の如く
ライト処理またはリード処理が行なわれまたは行なわれ
つつある間に、図示しない商用電源が切断状態になつた
とき、中央処理装置1は、これを検出して、上記切断状
態発生を上記停電メモリ7にセツトし、また上記プロツ
ク通番カウンタの内容を上記通番メモリ8に格納するよ
うにされる。In addition, in FIG. 2, 5 and 6 correspond to those in FIG. 1, and 7
8 represents a power failure memory that stores the occurrence of a power-off state, and 8 represents a program serial number memory that stores the serial number of a program that has completed processing or was in the middle of execution when the power-off state occurred. ing. Write processing or read processing for the magnetic tape/force setting device 3 is performed in units of programs according to instructions from the central processing unit 1. Then, a block serial number is assigned to the block unit, and when a write process or a read process is completed for one block, the contents of the block serial number counter are updated. Also, during write processing, each
The contents of the program serial number counter are recorded on the magnetic tape/force setting device in correspondence with the program. When the commercial power supply (not shown) is cut off while the write processing or read processing is being performed or is being performed as described above, the central processing unit 1 detects this and reports the occurrence of the cutoff state to the power outage. The contents of the program serial number counter are stored in the serial number memory 8.
上記商用電源の切断状態が発生すると例えば自家発電装
置などにより電源が再び投入されるが、該電源が切断状
態にある間に上記停電メモリ7や通番メモリ8の内容が
消滅しないように例えばバツテリ6がもうけられる。When the commercial power supply is cut off, the power is turned on again by, for example, an in-house power generator, but the contents of the power failure memory 7 and the serial number memory 8 are not erased while the power supply is cut off. can be made.
電源が再び投入されたとき、第3図図示のフローチヤー
トに示す如く、次のように制御される。When the power is turned on again, the following control is performed as shown in the flow chart shown in FIG.
即ち、(1)電源が投入されたとき、電源切断状態が先
に発生していたか否かを処理Aによつて調べる。That is, (1) When the power is turned on, it is checked by process A whether a power-off state has occurred first.
(2)電源切断状態が発生していた場合、磁気テープ・
力セツトが、第1図図示の磁気テープ・力セツト装置3
にセツトされているか否かを処理Bによつて調べる。(
3)もしも、正常に力セツトがセツトされているものと
すると、処理Cによつて、上記電源切断前に処理が終了
されまたは実行途中であつたライト処理方向またはリー
ド処理方向の逆方向に数プロツク分リバースされる。(2) If the power is cut off, the magnetic tape
The force setting is performed using the magnetic tape/force setting device 3 shown in FIG.
It is checked by process B whether or not it is set to . (
3) If it is assumed that the power setting has been set normally, the process C will cause the process to be completed before the power is turned off, or to perform a number of operations in the opposite direction to the write process direction or read process direction that was in progress before the power was turned off. The block will be reversed.
(4)該リバースが終了すると、処理Dによつて、上記
リバースの逆方向即ち順方向にリード処理が行なわれる
。(4) When the reverse is completed, read processing is performed in the reverse direction of the reverse, ie, in the forward direction, in process D.
(5)そして、処理Eによつて、上記通番メモリ8の内
容で与えられる通番のプロツク位置に達したことが検出
されると、処理Fによつて、上記電源切断の直前に終了
されたか電源切断時に実行途中であつた処理がリード処
理であつたかライト処理であつたかが調べられる。(5) Then, when it is detected by process E that the block position of the serial number given by the contents of the serial number memory 8 has been reached, process F determines whether the program was terminated immediately before the power was turned off or not. It is checked whether the process being executed at the time of disconnection was a read process or a write process.
(6)もしもライト処理であつた場合、処理Gによつて
、電源切断時に現にライト処理が実行途中であつたか否
かが調べられる。(6) If it is a write process, it is checked in process G whether the write process was actually in progress when the power was turned off.
(7)そして実行途中であつた場合、処理Hによつて、
当該途中のプロツクの先頭からライト処理が行なわれる
。(7) If it is in the middle of execution, by process H,
Write processing is performed from the beginning of the middle block.
(8)上記処理Fによりリード処理であつたことが判つ
た場合、処理1によつて、電源切断時に現にリード処理
が実行途中であつたか否かが調べられる。(8) If it is determined by the above process F that a read process was performed, it is checked in process 1 whether or not a read process was actually in progress when the power was turned off.
(9)そして実行途中であつた場合、処理Jによつて、
当該途中のプロツクの先頭からリード処理が行なわれる
。(9) If it is in the middle of execution, by process J,
Read processing is performed from the beginning of the middle block.
(自)上記処理GまたはIにより処理が終了していた場
合、言うまでもなく次のプロツクからライト処理または
リード処理が行なわれる。(Self) If the process has been completed by the above process G or I, it goes without saying that the write process or read process will be performed from the next block.
第4図は上記処理CないしEを実行する部分の一実施例
構成を示している。FIG. 4 shows an embodiment of the configuration of a portion that executes the above-mentioned processes C to E.
図中の符号7,8は第2図に対応し、9,10は夫々フ
リツプ・フロツプ、11はタイマであつてリバース実行
時間を計時するもの、12は比較回路、13はアンド回
路を表わしている。第1図を参照して概説した如く、電
源切断状態発生時に、中央処理装置1は該電源切断状態
発生をセツトしかつ図示しないプロツク通番カウンタの
内容をプロツク通番メモリ8内に格納する。Reference numerals 7 and 8 in the figure correspond to those in FIG. 2, 9 and 10 are flip-flops, 11 is a timer that measures the reverse execution time, 12 is a comparison circuit, and 13 is an AND circuit. There is. As outlined with reference to FIG. 1, when a power-off state occurs, the central processing unit 1 sets the occurrence of the power-off state and stores the contents of a block serial number counter (not shown) in the block serial number memory 8.
この状態で電源が再び投入されたとき、アンド回路13
がオンされ、フリツプ・フロツプ9がセツトされる。即
ち第3図図示の処理Cに対応したリバースが行なわれる
。そして、該リバース実行時間がタイマ11によつて計
時される。該タイマ11がタイム・アツプしたとき、フ
リツプ・フロツプ9がりセツトされて上記リバースが停
止され、一方フリツプ・フロツプ10がセツトされて上
記処理Dに対応したホワード指示が行なわれる。処理D
に対応したリード処理の間、上記図示しないプロツク通
番カウンタの内容(又は磁気テープ媒体上から読取つた
プロツク通番情報)が、上記プロツク通番メモリ8の内
容と比較処理される。そして比較回路12が一致信号を
発したとき、フリツプ・フロツプ10がりセツトされ、
上記ホワード指示がストツプされる。図示を省略してい
るが、上記電源切断状態発生時に、(1)その直前に終
了されまたは現に実行途中であつた処理がライト処理で
あつたかリード処理であつたかが保持され、(4)更に
現に実行途中であつた場合この旨が保持される。When the power is turned on again in this state, the AND circuit 13
is turned on and flip-flop 9 is set. That is, a reverse operation corresponding to process C shown in FIG. 3 is performed. Then, the timer 11 measures the reverse execution time. When the timer 11 times up, the flip-flop 9 is reset to stop the reverse operation, while the flip-flop 10 is set to issue a forward instruction corresponding to the process D. Processing D
During the read process corresponding to , the contents of the unillustrated program serial number counter (or the program serial number information read from the magnetic tape medium) are compared with the contents of the program serial number memory 8. When the comparator circuit 12 issues a match signal, the flip-flop 10 is reset;
The above forward instruction is stopped. Although not shown in the figure, when the above power-off state occurs, (1) whether the process that was completed immediately before or was currently being executed was a write process or a read process is held; If it is in the middle of execution, this information is retained.
そして該(i)および(4)による情報にもとずいて、
第3図図示の処理F,G,H,I,Jに対応した処理が
実行される。以上説明した如く、本発明によれば、電源
切断状態が発生して後に電源が再び投入されたとき、上
記切断状態発生時にあつたプロツク位置から、ライト処
理またはリード処理を行なうことができる。Based on the information from (i) and (4),
Processes corresponding to processes F, G, H, I, and J shown in FIG. 3 are executed. As described above, according to the present invention, when the power is turned on again after a power-off state occurs, write processing or read processing can be performed from the block position where it was when the power-off state occurred.
このため例えば通常のライト処理実行時にライトデータ
を複数プロツクにわたつて保存しておく必要がない。ま
た上記切断状態発生時に例えライト処理やリード処理を
実行途中であつたとしても、当該プロツクの先頭から再
開されるので、再開後のライト処理によつて非所望な情
報がテープ媒体上に残つたり、あるいは再開後のリード
処理にエラーが生じたりすることがない。Therefore, it is not necessary to store write data across multiple programs when executing normal write processing, for example. Furthermore, even if write processing or read processing is in progress when the above disconnection occurs, the program will be restarted from the beginning of the program, so undesired information will not remain on the tape medium due to the write processing after restarting. or errors will not occur in read processing after restarting.
第1図は本発明の磁気テープ制御方式が適用される一実
施例システム全体図、第2図は本発明にいう停電メモリ
と通番メモリとを概念的に説明する説明図、第3図は本
発明の磁気テープ制御方式の一実施例フローチヤート、
第4図は本発明の磁気テープ制御方式に用いる一実施例
要部構成図を示す。
図中、1は中央処理装置、2は磁気テープ・力セツト制
御装置、3は磁気テープ・力セツト装置、4はメモリ装
置、5はメモリ部、6はバツテリ、7は停電メモリ、8
はプロツク通番メモリ、9,10は夫々フリツプ・フロ
ツプ、11はタイマ、12は比較回路を表わす。FIG. 1 is an overall diagram of an embodiment of a system to which the magnetic tape control method of the present invention is applied, FIG. 2 is an explanatory diagram conceptually explaining the power failure memory and serial number memory according to the present invention, and FIG. A flowchart of an embodiment of the magnetic tape control method of the invention,
FIG. 4 shows a block diagram of essential parts of an embodiment used in the magnetic tape control system of the present invention. In the figure, 1 is a central processing unit, 2 is a magnetic tape/force setting control device, 3 is a magnetic tape/force setting device, 4 is a memory device, 5 is a memory section, 6 is a battery, 7 is a power failure memory, 8
1 is a block serial number memory, 9 and 10 are flip-flops, 11 is a timer, and 12 is a comparison circuit.
Claims (1)
単位でライト処理またはリード処理が実行される磁気テ
ープ装置を有する磁気テープ・システムにおいて、電源
切断状態が発生したことを記憶する停電メモリと、該電
源切断時に処理が終了しまたは実行途中であつたブロッ
ク位置の通番を記憶するブロック通番メモリとをそなえ
ると共に、上記磁気テープ装置に対するライト処理時に
1ブロック単位に対応してブロック通番情報を対応する
よう構成され、上記停電メモリに電源切断状態の発生が
指示されている状態で再び電源がオンされたとき、上記
磁気テープ装置を一旦上記ライト処理方向またはリード
処理方向の逆方向にタイマによつて所定時間の間移動せ
しめた上で上記順方向にチェック・リード処理を実行し
、該チェック・リード処理時に対応した上記ブロック通
番情報と上記ブロック通番メモリの内容とが一致したブ
ロック位置からライト処理またはリード処理を実行する
よう制御されることを特徴とする磁気テープ制御方式。 2 上記停電メモリと上記ブロック通番メモリとの夫々
の内容が上記電源切断時において消滅しないよう構成さ
れていることを特徴とする特許請求の範囲第1項記載の
磁気テープ制御方式。 3 上記磁気テープ・システムは、上記電源切断状態の
発生時に現にライト処理またはリード処理が実行途中で
あつたか否かを記憶しておくよう構成され、上記電源オ
ン時におけるライト処理またはリード処理の再開時に上
記一致を生じたブロック位置の先頭からライト処理また
はリード処理を実行することを特徴とする特許請求の範
囲第1項または第2項記載の磁気テープ制御方式。[Claims] 1. In a magnetic tape system having a magnetic tape device that executes write processing or read processing in units of blocks based on a write instruction or read instruction, it is stored that a power-off state has occurred. It is equipped with a power failure memory and a block serial number memory that stores the serial number of the block position where the processing was completed or in the middle of execution when the power was cut off, and also stores the block serial number corresponding to each block during write processing to the magnetic tape device. When the power is turned on again with the power failure memory indicating that a power-off state has occurred, the magnetic tape device is temporarily moved in the opposite direction to the write processing direction or the read processing direction. The block position is moved by a timer for a predetermined period of time, and then the check read process is executed in the forward direction, and the block serial number information corresponding to the check read process matches the contents of the block serial number memory. A magnetic tape control method characterized in that the magnetic tape is controlled to perform write processing or read processing. 2. The magnetic tape control system according to claim 1, wherein the contents of the power failure memory and the block serial number memory are configured so that they do not disappear when the power is turned off. 3. The magnetic tape system is configured to remember whether or not a write process or a read process was currently in progress at the time of the occurrence of the power-off state, and is configured to remember whether or not a write process or a read process was currently in progress when the power-off state occurred, and to resume the write process or read process when the power is turned on. 3. The magnetic tape control system according to claim 1, wherein the write process or read process is executed from the beginning of the block position where the coincidence occurs.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52121736A JPS5944694B2 (en) | 1977-10-11 | 1977-10-11 | Magnetic tape control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52121736A JPS5944694B2 (en) | 1977-10-11 | 1977-10-11 | Magnetic tape control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5454610A JPS5454610A (en) | 1979-05-01 |
| JPS5944694B2 true JPS5944694B2 (en) | 1984-10-31 |
Family
ID=14818598
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP52121736A Expired JPS5944694B2 (en) | 1977-10-11 | 1977-10-11 | Magnetic tape control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5944694B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS589201A (en) * | 1981-07-07 | 1983-01-19 | Toshiba Corp | Record protecting method of magnetic disk storage device |
| US4527265A (en) * | 1983-06-30 | 1985-07-02 | Staar S. A. | Position memory for laser reproduction unit |
| JPS6013353A (en) * | 1983-07-01 | 1985-01-23 | Matsushita Electric Ind Co Ltd | Disc data playback device |
| JPS6166280A (en) * | 1984-09-06 | 1986-04-05 | Matsushita Electric Ind Co Ltd | Information recording disc playback device |
| JPS6313176A (en) * | 1987-03-03 | 1988-01-20 | Yamaha Corp | Disk reproducing device |
-
1977
- 1977-10-11 JP JP52121736A patent/JPS5944694B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5454610A (en) | 1979-05-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6114542B2 (en) | ||
| JPS6053339B2 (en) | Logical unit error recovery method | |
| CN110704236A (en) | On-line checking method for chip flash data and computer storage medium | |
| CN101515259B (en) | Inserted device configuring data protecting method | |
| JPS5944694B2 (en) | Magnetic tape control method | |
| CN114741220A (en) | Disk isolation method, system, device and storage medium | |
| JPS586181B2 (en) | Processing method with power failure countermeasures | |
| JP4358943B2 (en) | Automatic backup system and recording medium recording automatic backup program | |
| JPH03105434A (en) | Error logging system | |
| CN121029505A (en) | Methods, devices, electronic equipment and storage media for isolating power-loss data | |
| JPS585856A (en) | Error recovery system for logical device | |
| JPS59133620A (en) | Automatic operating system for power restoration | |
| JPH0651918A (en) | Semiconductor disk device | |
| JPH04310671A (en) | Disk controller | |
| JPH07129208A (en) | Numerical control unit | |
| JPH10222312A (en) | Storage system | |
| JPH0327939B2 (en) | ||
| JPS58114152A (en) | Back up device for magnetic disc | |
| JPS6254347A (en) | Processing system for fault of file | |
| JPS6254348A (en) | Processing system for fault of file | |
| JPH0675041U (en) | Data duplication device | |
| JPH04251317A (en) | System for protecting and reproducing status of task | |
| JPS6113259B2 (en) | ||
| JPS6156537B2 (en) | ||
| JPH0313669B2 (en) |