JPS63195876A - Magnetic tape controller - Google Patents

Magnetic tape controller

Info

Publication number
JPS63195876A
JPS63195876A JP2643387A JP2643387A JPS63195876A JP S63195876 A JPS63195876 A JP S63195876A JP 2643387 A JP2643387 A JP 2643387A JP 2643387 A JP2643387 A JP 2643387A JP S63195876 A JPS63195876 A JP S63195876A
Authority
JP
Japan
Prior art keywords
data
block
magnetic tape
stored
register
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
JP2643387A
Other languages
Japanese (ja)
Inventor
Mikio Komatsu
小松 幹夫
Katsuji Tsunose
角瀬 勝治
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2643387A priority Critical patent/JPS63195876A/en
Publication of JPS63195876A publication Critical patent/JPS63195876A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent misrecognition of a data block by providing a data register for storing data including block numbers. CONSTITUTION:After writing a data block, if an error arises in an operation after reading its block, the backward read is executed, and the readout data at that time are stored in the data register 10. A block number part BNO is taken out of the data stored in the data register 10 to be sent to a microprocessor 9 to confirm whether a block skip has accurately been performed or not.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は磁気テープ制御装置に係り、特にデータブロッ
クを磁気ヘッドに正確に位置づけ、データ書込み時のエ
ラーリカバリ等を正確に行なうのに好適な磁気テープ制
御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a magnetic tape control device, and particularly to a magnetic tape control device suitable for accurately positioning a data block on a magnetic head and accurately performing error recovery during data writing. This invention relates to a magnetic tape control device.

〔従来の技術〕[Conventional technology]

従来、磁気テープにデータを記録し、書込みエラーが生
じた際のリカバリは、特開昭52−45314号公報に
記載されている様に、磁気テープを逆方向に1データブ
ロツクスキツプさせるバック・スペース・コマンドを発
行し、その後イレーズコマンドを発行し、再び同じ書込
みコマンドを発行する事により行なわれていた。
Conventionally, when data is recorded on a magnetic tape, recovery when a write error occurs is performed by backing up the magnetic tape by skipping one data block in the reverse direction, as described in Japanese Unexamined Patent Publication No. 52-45314. - This was done by issuing a space command, then issuing an erase command, and then issuing the same write command again.

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

上記の従来技術においては、バック・スペース・コマン
ドの実行時に、そのデータ内容の確認を行なわずにブロ
ッキングするため、ノイズが存在する場合のブロッキン
グの保証という点について配慮がされておらず、磁気ヘ
ッドの位置付は不良に起因するデータブロックの止切れ
、湧出、喪失が生じるという問題点があった。
In the above-mentioned conventional technology, when a backspace command is executed, it is blocked without checking the data content, so there is no consideration given to ensuring blocking in the presence of noise, and the magnetic head The problem with positioning is that data blocks may stop, leak, or be lost due to defects.

本発明は上記した従来技術の問題点に鑑みなされたもの
で、磁気ヘッドを正しく位置付けし、データブロックの
止切れ、湧出、喪失が生じない様な磁気テープ制御装置
を提供する事を目的としている。
The present invention was made in view of the problems of the prior art described above, and it is an object of the present invention to provide a magnetic tape control device in which a magnetic head is correctly positioned and data blocks are not discontinued, leaked, or lost. .

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

本発明の磁気テープ制御装置は、上位装置と磁気テープ
装置間のデータ送受を行なうものであり、特に磁気テー
プから読出したブロック位置確認のためのブロックナン
バを含むデータを格納するデータレジスタを設けた事を
特徴としている。
The magnetic tape control device of the present invention transmits and receives data between a host device and a magnetic tape device, and is particularly provided with a data register for storing data including block numbers for confirming block positions read from the magnetic tape. It is characterized by things.

〔作用〕[Effect]

本発明においては、磁気テープのブロック位置確認のた
め、ブロックナンバを含む磁気テープからの読出しデー
タを、格納するデータレジスタを設け、上記ブロックナ
ンバを確認して、正しいブロック位置を認識するもので
ある。
In the present invention, in order to confirm the block position of the magnetic tape, a data register is provided to store read data from the magnetic tape including a block number, and the block number is confirmed to recognize the correct block position. .

ブロックナンバはデータ中に記録されている為、従来の
ようにデータがあるか否か(データブロックの後、デー
タなしの部分(IBG)が来たか否か)の判断では、ブ
ロックナンバーは得られない。
Since the block number is recorded in the data, the block number cannot be obtained by determining whether or not there is data (whether or not there is a part without data (IBG) after the data block) as in the past. do not have.

従って、データを読み取り、データの内容を得ないとブ
ロックナンバーは知り得ない。ここで、データバッファ
は、上位装置からの書込みデータで満たされている為、
読み出して来たデータをデータバッファに取り込むこと
が出来ない。
Therefore, the block number cannot be known unless the data is read and the contents of the data are obtained. Here, the data buffer is filled with write data from the host device, so
The read data cannot be loaded into the data buffer.

従って、本発明では、このようなエラーリカバリ動作の
ため、予じめデータレジスタを用意しておく。これによ
り、書き込みエラーが発生し、逆読み取りの際の読み取
りデータを上記データレジスタり取り込む事が可能にな
る。その取り込、みデータの中からブロックナンバーを
読み取り、正しくブロックがスキップされたことを確認
出来るので、データブロック誤認識を防止することが出
来る。
Therefore, in the present invention, a data register is prepared in advance for such an error recovery operation. As a result, a write error occurs, and the read data during reverse reading can be taken into the data register. Since the block number can be read from the captured data and it can be confirmed that the block has been correctly skipped, erroneous recognition of data blocks can be prevented.

〔実施例〕〔Example〕

以下、添付の図面に示す実施例により、更に詳細に本発
明について説明する。
Hereinafter, the present invention will be explained in more detail with reference to embodiments shown in the accompanying drawings.

第1図は本発明の一実施例を示すブロック図である。書
込みデータは上位位置1から出力され、磁気テープ制御
装置2内の上位装置接続部4を介して、データバッファ
5に貯えられる。このデータバッファ5を複数の磁気テ
ープ装置3で分割使用する場合には、その台数分のデー
タが満たされるまで貯えられる。バッファ5が満たされ
ると、マイクロプロセッサ9の指示により、データは書
込み部6とデバイス接続部8を介して、磁気テープ装置
3に送られ、書込まれる。
FIG. 1 is a block diagram showing one embodiment of the present invention. Write data is output from the upper position 1 and stored in the data buffer 5 via the upper unit connection section 4 in the magnetic tape control device 2. When this data buffer 5 is divided and used by a plurality of magnetic tape devices 3, data for the number of magnetic tape devices 3 is stored until the data is filled. When the buffer 5 is filled, the data is sent to the magnetic tape device 3 via the writing section 6 and the device connection section 8 and written in accordance with instructions from the microprocessor 9.

磁気テープ装置3からデータを読み出す場合には、マイ
クロプロセッサ9の指示により、デバイス接続部8と読
み取り部7を介して、データバッファ5に貯えられる。
When reading data from the magnetic tape device 3, the data is stored in the data buffer 5 via the device connection section 8 and the reading section 7 according to instructions from the microprocessor 9.

読み出しデータがある程度貯えられると、マイクロプロ
セッサ9の指示により、そのデータは上位装置接続部4
を介して上位装置1に送られる。
Once a certain amount of read data has been stored, the data is transferred to the host device connection section 4 according to instructions from the microprocessor 9.
is sent to the host device 1 via.

次に、書込み時にエラーが生じた場合のエラーリカバリ
動作について説明する。今、あるデータブロックを書い
た後、そのブロックのリード・アフタ・ライト動作でエ
ラーが発生した場合、磁気テープの逆読取りが実行され
る=その時の読取りデータはデータレジスタ10に貯え
られる。第2図に示す様に、磁気テープ1に記録される
データブロックDBは、データ部りとブロックナンバ部
BNoから構成され、ブロックナンバ部BN’Oもデー
タレジスタ10に当然に貯えられる。従って、データレ
ジスタIOに貯えられたデータの中からブロックナンバ
部BNOを取出してマイクロプロセッサ9に送り、正確
にブロックスキップが行なわれ=4− たか否かを確認する事ができる。しかも、データバッフ
ァ5には読取りデータを書込まないため、再書込み用の
データをそのまま保存することが可能である。
Next, an error recovery operation when an error occurs during writing will be explained. Now, after writing a certain data block, if an error occurs in the read-after-write operation of that block, reverse reading of the magnetic tape is executed, and the read data at that time is stored in the data register 10. As shown in FIG. 2, the data block DB recorded on the magnetic tape 1 is composed of a data section and a block number section BNo, and the block number section BN'O is also stored in the data register 10 as a matter of course. Therefore, it is possible to extract the block number part BNO from the data stored in the data register IO and send it to the microprocessor 9 to check whether block skipping has been performed accurately. Moreover, since read data is not written to the data buffer 5, data for rewriting can be stored as is.

データレジスタ10の大きさくバイト数)は、データブ
ロックDBの予想される最大値でも良いし、ブロックナ
ンバ部BNO等の必要なデータ量の分でも良い。
The size (number of bytes) of the data register 10 may be the expected maximum value of the data block DB, or may be the required amount of data such as the block number part BNO.

以上の説明から明らかな様に、本実施例によれば、書込
みエラー発生時の逆読取り実行時に、データブロック中
のブロックナンバを得ることができ、ブロッキングの正
確さを確認することができる。
As is clear from the above description, according to this embodiment, the block number in the data block can be obtained when performing reverse reading when a write error occurs, and the accuracy of blocking can be confirmed.

尚、上記の実施例においては、リード・アフタ・ライト
時の逆読取りの場合について説明したが、本発明はこれ
に限定されるものではなく、磁気テープを一担十分に戻
した後、順方向読取りで行なう際にも適用でき、又ブロ
ックの位置が不明になった場合の位置確認においても適
用できるものである。
In the above embodiment, the case of reverse reading during read-after-write was explained, but the present invention is not limited to this, and after returning the magnetic tape sufficiently, forward reading is performed. It can be applied to reading, and can also be applied to confirming the position of a block when it becomes unknown.

また、第2図に示す様に、データブロックDB中にブロ
ックナンバBNOが設けられている磁気テープとしては
、カートリッジ型磁気テープが知られているが、本発明
はこれに限定されるものではなく、ブロックナンバBO
Nが書かれている磁気テープには適用可能である。
Further, as shown in FIG. 2, a cartridge-type magnetic tape is known as a magnetic tape in which a block number BNO is provided in the data block DB, but the present invention is not limited to this. , block number BO
It is applicable to magnetic tapes with N written on them.

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

本発明によれば、磁気ディスク制御装置内のデータバッ
ファが書込み用のデータで満たされている場合でも、読
取りデータのバッファリングが出来、ブロックナンバの
確認が出来、ブロック位置の認識が出来、正しい位置か
らの再書込みが可能になる。その結果、不用なブロック
を残したり、必要なブロックを消してしまう等のデータ
ブロック障害を避けられる効果がある。
According to the present invention, even when the data buffer in the magnetic disk control device is filled with data for writing, it is possible to buffer read data, confirm block numbers, and recognize block positions. It becomes possible to rewrite from the position. As a result, data block failures such as leaving unnecessary blocks or erasing necessary blocks can be avoided.

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

第1図は本発明の一実施例を示すブロック図、第2図は
磁気テープに記録されたデータブロックの構成を示す説
明図である。 1・・・上位装置、2・・・磁気テープ制御装置、3・
・・磁気テープ装置、4・・・上位装置接続部、5・・
・データバッファ、6・・・書込み部、7・・・読取り
部、8・・・デバイス接続部、9・・・マイクロプロセ
ッサ、10・・・データレジスタ、11・・・磁気テー
プ、DB・・・データブロック、D・・・データ、BN
O・・・ブロックナンバ。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is an explanatory diagram showing the structure of data blocks recorded on a magnetic tape. 1... Host device, 2... Magnetic tape control device, 3.
...Magnetic tape device, 4...Upper device connection section, 5...
・Data buffer, 6...Writing section, 7...Reading section, 8...Device connection section, 9...Microprocessor, 10...Data register, 11...Magnetic tape, DB...・Data block, D...Data, BN
O...Block number.

Claims (1)

【特許請求の範囲】[Claims] 1、上位装置と磁気テープ装置間のデータ送受を制御す
る磁気テープ制御装置において、磁気テープから読出し
たブロック位置確認のためのブロックナンバを含むデー
タを格納するデータレジスタを設けた事を特徴とする磁
気テープ制御装置。
1. A magnetic tape control device that controls data transmission and reception between a host device and a magnetic tape device is characterized by being provided with a data register that stores data read from the magnetic tape and including a block number for confirming the block position. Magnetic tape controller.
JP2643387A 1987-02-09 1987-02-09 Magnetic tape controller Pending JPS63195876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2643387A JPS63195876A (en) 1987-02-09 1987-02-09 Magnetic tape controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2643387A JPS63195876A (en) 1987-02-09 1987-02-09 Magnetic tape controller

Publications (1)

Publication Number Publication Date
JPS63195876A true JPS63195876A (en) 1988-08-12

Family

ID=12193378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2643387A Pending JPS63195876A (en) 1987-02-09 1987-02-09 Magnetic tape controller

Country Status (1)

Country Link
JP (1) JPS63195876A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01171167A (en) * 1987-12-25 1989-07-06 Fujitsu Ltd Error retrying processing method for magnetic tape device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01171167A (en) * 1987-12-25 1989-07-06 Fujitsu Ltd Error retrying processing method for magnetic tape device

Similar Documents

Publication Publication Date Title
US4500965A (en) Capstanless magnetic tape drive with electronic equivalent to length of tape
US5982572A (en) Method and apparatus for enabling fast access to a logical block on a tape medium
KR101475993B1 (en) Method for controlling overwriting of data by tape recording apparatus, program for controlling overwriting, and tape recording apparatus
JPS63195876A (en) Magnetic tape controller
US7167332B2 (en) Method and apparatus for recording data onto a recording medium including warning of the approach to an end of medium position
JPS63195869A (en) Magnetic tape controller
US20060209446A1 (en) Method for erasing data from magnetic tape storage media
JPH0341324Y2 (en)
JPS5951044B2 (en) Magnetic tape control method
JP2533484B2 (en) Magnetic tape control system
JPS6123564B2 (en)
JPH01211347A (en) Method for controlling data writing of magnetic tape subsystem
JPH0158580B2 (en)
JP2623145B2 (en) Rotating head type magnetic recording / reproducing device
JPH0339358B2 (en)
JPS6117059B2 (en)
JPS645364B2 (en)
JPS5939305Y2 (en) information recording device
JPS6141042B2 (en)
JPS5853405B2 (en) Jiyouhoukirokuuchi
JPH04102274A (en) Control system for magnetic memory
JPH01319103A (en) Magnetic tape control device
JPS59112412A (en) Val level sense circuit
JPH07110907A (en) Magnetic tape controller
JPH04310673A (en) Method for registering defective information and media parameter