JPH02254677A - Magnetic tape controller - Google Patents

Magnetic tape controller

Info

Publication number
JPH02254677A
JPH02254677A JP1073749A JP7374989A JPH02254677A JP H02254677 A JPH02254677 A JP H02254677A JP 1073749 A JP1073749 A JP 1073749A JP 7374989 A JP7374989 A JP 7374989A JP H02254677 A JPH02254677 A JP H02254677A
Authority
JP
Japan
Prior art keywords
data
magnetic tape
block number
error
block
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
JP1073749A
Other languages
Japanese (ja)
Inventor
Kiyoshi Sakai
酒井 清志
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 JP1073749A priority Critical patent/JPH02254677A/en
Publication of JPH02254677A publication Critical patent/JPH02254677A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To speed up an information processing by providing a mode storage part to store a mode to indicate the beacon of the processing as to an error related to a block number detected with a data format. CONSTITUTION:A data format control circuit 14 arranges the format of write data by adding the block number designated with a microprocessor 15 and, simultaneously, adding an error correcting code, a period signal, etc., at the time of transferring the write data from a data buffer 13 to a magnetic tape device 3, further, detects the error of the block number and corrects it. Namely, a mode storage part 17 stores the mode to indicate whether to execute an abnormality report to a high order device in suspending the processing or to continue the processing in ignoring the error when the microprocessor 15 receives the error related to the block number detected by the data format control circuit 14. By consciously ignoring the error of the block number, the effective utilization of the other data and the speed-up of the information processing can be executed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、コンピュータ等の補助記憶装置として使用さ
れる磁気テープの制御装置に関し、特に、ブロック番号
の誤りの検出と、その誤りを意識的に無視することによ
って他のデータを有効活用することが可能な磁気テープ
制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a magnetic tape control device used as an auxiliary storage device of a computer, etc., and in particular, the present invention relates to a control device for a magnetic tape used as an auxiliary storage device of a computer, etc. The present invention relates to a magnetic tape control device that can effectively utilize other data by ignoring other data.

[従来の技術] 従来、磁気テープに記憶されているデータブロックを連
続的に読み取ったとき、存在すべきデータブロックが検
出されないで脱落する事故がありた。これを防止するた
めにソフトウェアは各ブロック単位に連番を付加し、デ
ータブロックの読み取り時にその番号が連続的であるこ
とをチエツクしていた。
[Prior Art] Conventionally, when data blocks stored on a magnetic tape are successively read, there have been accidents in which data blocks that should exist are not detected and are dropped. To prevent this, the software adds a serial number to each block and checks that the numbers are consecutive when reading data blocks.

近年においては、すべてのデータブロックにブロック番
号を付加するようになり、主に磁気テープサブシステム
が自動的に書き込みデータに番号を付加していた。そし
てデータの読み取り時には、この磁気テープサブシステ
ムがデータのブロック番号をチエツクし2誤りを検出し
たときは、異常状態にあるとして上位システムに報告し
ていた。
In recent years, block numbers have been added to all data blocks, and mainly magnetic tape subsystems have automatically added numbers to written data. When reading data, this magnetic tape subsystem checks the data block number, and if it detects a 2 error, it reports it to the host system as an abnormal state.

[解決すべき課題] 上述した磁気テープ−巻きには複数のデータファイルが
記憶されており、たとえ部分的にブロック番号の不連続
を検出しても他の正常なブロックのデータはそのまま利
用したいとの要求が強かった。
[Problems to be solved] Multiple data files are stored on the magnetic tape roll mentioned above, and even if discontinuity in block numbers is detected in some areas, it is difficult to use the data in other normal blocks as is. There were strong demands.

しかし、上述した従来の磁気テープのサブシステムを利
用して自動的にブロック番号の付加等を行う方法によれ
ば、ある情報処理中にサブシステム内でブロック番号の
不連続を検出すると、いきなり上位システムに対し、異
常状態発生のため終了といった報告かなされ、磁気テー
プ装置が作動しなくなり、処理が中断してしまった。こ
のため、ソフトウェアは磁気テープに対し正しいブロッ
ク番号を付加し直す再位置付は処理を行い、その後さら
にデータ読み取り処理を行わなければならず、急を要す
る処理作業に支障をきたすことがあった。
However, according to the above-mentioned method of automatically adding block numbers using the conventional magnetic tape subsystem, if discontinuity of block numbers is detected in the subsystem during information processing, the upper A report was sent to the system that the process had ended due to an abnormal condition, the magnetic tape device stopped working, and the process was interrupted. For this reason, the software must reposition the magnetic tape by adding the correct block number, and then perform further data reading processing, which may impede urgent processing operations.

本発明は上述した問題点にかんがみてなされたもので、
ブロック番号の誤りの検出を意識的に無視することによ
って、他のデータの有効活用を図りかつ情報処理の迅速
化を図ることができる磁気テープ制御装置の提供を目的
とする。
The present invention has been made in view of the above-mentioned problems.
An object of the present invention is to provide a magnetic tape control device that can make effective use of other data and speed up information processing by intentionally ignoring detection of errors in block numbers.

[課題の解決手段] 上記目的を達成するために本発明の磁気テープ制御装置
は、チャンネルとの接続を図るチャンネル接続部と、磁
気テープ装置との接続を図る磁気テープ接続部と、デー
タバッファから磁気テープ装置へのデータ転送時にバッ
ファ番号を付加し、その誤りを検出訂正するデータフォ
ーマット制御回路と、データフォーマット制御回路が検
出したへロック番号の処理を行うマイクロプロセッサと
、マイクロプロセッサが処理中のブロック番号を記憶す
るブロック番号記憶部と、前記データフォーマットが検
出したブロック番号に関する誤りについて処理の指針を
示すモードを記憶したモード記憶部とを有する構成とし
である。
[Means for Solving the Problems] In order to achieve the above object, the magnetic tape control device of the present invention includes a channel connection section for connection to a channel, a magnetic tape connection section for connection to a magnetic tape device, and a data buffer. A data format control circuit that adds a buffer number when transferring data to a magnetic tape device, detects and corrects errors, and a microprocessor that processes the lock number detected by the data format control circuit. The present invention has a block number storage unit that stores block numbers, and a mode storage unit that stores a mode that indicates processing guidelines for errors related to block numbers detected by the data format.

[実施例] 以下、本発明の一実施例について図面を参照して説明す
る。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例に係る磁気テープ制御装置の
ブロック図、第2図は本実施例に係る磁気テープ制御装
置の動作の一例を示すフローチャートである。
FIG. 1 is a block diagram of a magnetic tape control device according to an embodiment of the present invention, and FIG. 2 is a flowchart showing an example of the operation of the magnetic tape control device according to this embodiment.

図面において、工は磁気テープ制御装置(以下、制御装
置と称す、)であり、チャンネル2と磁気テープ制御装
置3の間に介在し両者を接続している。
In the drawings, reference numeral 1 denotes a magnetic tape control device (hereinafter referred to as the control device), which is interposed between the channel 2 and the magnetic tape control device 3 and connects the two.

制御装置1の内部には、チャンネル2との接続を図るチ
ャンネル接続部11と、磁気テープ装置3との接続を図
る磁気テープ接続部12とがそれぞれ設けである。
Inside the control device 1, a channel connection section 11 for connection to the channel 2 and a magnetic tape connection section 12 for connection to the magnetic tape device 3 are provided.

13はデータバッファであり、チャンネル2と磁気テー
プ装置3との間を転送されるデータを一時的に格納する
A data buffer 13 temporarily stores data transferred between the channel 2 and the magnetic tape device 3.

14はデータフォーマット制御回路であり、データバッ
ファ13から磁気テープ装置3へ書き込みデータを転送
する際、後述するマイクロプロセッサ15が指定するブ
ロック番号を付加するとともに、誤り訂正符号や周期信
号等を付加することによって書き込みデータのフォーマ
ットを整え、さらにブロック番号の誤りを検出し、その
訂正を行う、また1m気テープ装鐙3からのデータ読み
出し時には、前述した方法によってデータに付加された
ブロック番号等を除去し、上位装置にとって必要なデー
タのみをデータバッファ13に転送する。
14 is a data format control circuit which, when transferring write data from the data buffer 13 to the magnetic tape device 3, adds a block number specified by a microprocessor 15, which will be described later, as well as an error correction code, a periodic signal, etc. By doing this, the format of the written data is adjusted, and errors in block numbers are detected and corrected. Also, when reading data from the 1m tape stirrup 3, block numbers etc. added to the data are removed by the method described above. Then, only the data necessary for the host device is transferred to the data buffer 13.

マイクロプロセッサ15は、データフォーマット制御回
路14が書き込みデータの転送時に検出したブロック番
号、そして訂正されたデータ番号の結果を受け、さらに
データ読み出し時に除去された番号を受けとることによ
って後述するブロック番号記憶部16とモード記憶部1
7の監視のもと、ブロック番号の処理を行う。
The microprocessor 15 receives the block number detected by the data format control circuit 14 at the time of transfer of write data, the result of the corrected data number, and further receives the number removed at the time of data read, thereby storing the block number storage section described later. 16 and mode storage section 1
The block number is processed under the supervision of step 7.

ブロック番号記憶部16は、マイクロプロセッサ15が
処理中のブロック番号もしくは次に処理すべきブロック
番号を記憶する。また、モード記憶部17は、データフ
ォーマット制御回路14が検出したブロック番号に関す
る誤り(以下、ブロックシーケンスエラーとする。)を
マイクロプロセッサ15が受けとったとき、その処理を
中断して上位装置に異常報告なすべきか、あるいは誤り
を無視して処理を継続するかを示すモードを記憶する。
The block number storage unit 16 stores the block number that the microprocessor 15 is processing or the block number that should be processed next. Furthermore, when the microprocessor 15 receives an error related to a block number detected by the data format control circuit 14 (hereinafter referred to as a block sequence error), the mode storage unit 17 interrupts the processing and reports an abnormality to the host device. Stores a mode indicating whether to do so or ignore the error and continue processing.

次に、本実施例の動作の一例を示す。Next, an example of the operation of this embodiment will be described.

まず最初にソフトウェアは、書き込み時にデータにブロ
ック番号を付加し、これを最初の読み出し命令で磁気テ
ープ装置3から読みとろうとするとき、あらかじめモー
ドセット命令により、ブロックシーケンス非チエツクモ
ードをチャンネル2を経由して制御装置1へ指示する。
First, the software adds a block number to the data during writing, and when attempting to read this from the magnetic tape device 3 with the first read command, it sets the block sequence non-check mode via channel 2 by a mode set command in advance. and instructs the control device 1.

これに対し、制御装置lではマイクロプロセッサ15が
、モード記憶部17の該当磁気テープ装置3に対応する
ビットを“l”にセットする。
On the other hand, in the control device 1, the microprocessor 15 sets the bit corresponding to the corresponding magnetic tape device 3 in the mode storage section 17 to "1".

ここで、磁気テープ装置3に対し巻き戻し命令に続き複
数の読み出し命令を送出すると、マイクロプロセッサ1
5は、まず、テープの始端を検出した時点でブロック番
号記憶部16の該当磁気テープ装置に対応するエリアに
“0000”をセットする。そして、次の読み出し命令
で最初の1ブロツクを読み取ると、データフォーマット
制御回路14でブロック番号を付加し、データエラーの
有無をチエツクする。ここでデータエラーを検出すると
(第2図:101)、上位装置にデータエラーを報告す
るか、あるいはり・トライの処理がなされる(第2図:
102)。
Here, when multiple read commands are sent to the magnetic tape device 3 following a rewind command, the microprocessor 1
5 first sets "0000" in the area of the block number storage section 16 corresponding to the magnetic tape device at the time when the starting end of the tape is detected. When the first block is read by the next read command, the data format control circuit 14 adds a block number and checks whether there is a data error. If a data error is detected here (Figure 2: 101), the data error is reported to the host device or a retry process is performed (Figure 2:
102).

データエラーか検出されないときは、付加されたブロッ
ク番号は分離されマイクロプロセッサ15に送られる。
If no data error is detected, the added block number is separated and sent to the microprocessor 15.

マイクロプロセッサ15では、送られてきた番号をブロ
ック番号記憶部16のデータと比較しく第2図:103
)、比較の結果か一致していれば、ブロック番号記憶部
16の内容を“+1”する(第2図:104)、その後
、1ブロツク処理される毎に“+1″され、これと各ブ
ロックのブロック番号とが比較チエツクされる(第2図
:105)。
The microprocessor 15 compares the sent number with the data in the block number storage section 16 (Fig. 2: 103).
), if the comparison results match, the contents of the block number storage unit 16 are incremented by 1 (Fig. 2: 104). After that, each block is incremented by 1, and this and each block are incremented by 1. The block number is compared with the block number (FIG. 2: 105).

ここで比較の結果が不一致の場合、例えばブロック番号
記憶部16の内容が“n″のとき。
Here, if the comparison result is a mismatch, for example, if the content of the block number storage section 16 is "n".

データフォーマット制御回路14により分離されたブロ
ック番号が“n+1″であったとすると、す・トライ回
数のオーバーになる。この状態にあるとき、マイクロプ
ロセッサ15は、比較エラーを検出し、磁気テープ制御
装置12を介して磁気テープ装置3に対し数ブロックの
逆スペース動作を命令する。そして順方向へのデータ読
み出しを行い、データフォーマット制御回路14がブロ
ック番号“n−1”のブロックを検出するまて行い“n
−1′のブロック番号を検出したら(第2図:106)
、ブロック番号“n″を再読み出しく第2図:106)
L/、検出されれば次の命令を実行する。このとき、前
記した逆方向スペースと再読み出しにょろり・トライを
数回実施してもブロック番号“n″を検出できなければ
モード記憶部17の当該磁気テープ装置3に対応するビ
ットをチエツクしく第2図:108)、チエツクしたビ
ットが“O”であれば磁気テープ制御装置2は上位装置
に対し「ブロックシーケンスエラー」の異常報告を行っ
て終了する(第2図+109)。
If the block number separated by the data format control circuit 14 is "n+1", the number of tries will be exceeded. In this state, the microprocessor 15 detects a comparison error and instructs the magnetic tape device 3 via the magnetic tape controller 12 to reverse space operations for several blocks. Then, data is read in the forward direction, and when the data format control circuit 14 detects the block with block number "n-1", the data is read out in the forward direction.
When block number -1' is detected (Figure 2: 106)
, reread block number “n” (Figure 2: 106)
L/, if detected, executes the next instruction. At this time, if the block number "n" cannot be detected even after performing the above-mentioned backward space and rereading several times, check the bit corresponding to the magnetic tape device 3 in the mode storage section 17. (Figure 2: 108), if the checked bit is "O", the magnetic tape controller 2 reports an abnormality of "block sequence error" to the host device and ends the process (+109 in Figure 2).

一方、チエツクしたビットが“1″′であれば、マイク
ロプロセッサ15はブロック“n+1″のデータをブロ
ック″n″に続けてチャンネル2へ転送し、ブロック番
号記憶部16の当該エリアにブロック番号“n+2”を
セットした後1次の処理を継続する。その後、ソフトウ
ェアは送られてきたデータを各ブロックごとに再配置す
るか、ブロック″n″にについては空白かできるため、
この部分を無効化することによりて処理を中断すること
なく他のデータの有効活用が図れる。
On the other hand, if the checked bit is "1", the microprocessor 15 transfers the data of block "n+1" to channel 2 following block "n", and stores the block number "" in the corresponding area of the block number storage section 16. After setting "n+2", the primary processing is continued. After that, the software rearranges the sent data block by block or leaves block "n" blank.
By invalidating this part, other data can be used effectively without interrupting processing.

また、本実施例ではデータブロックにブロック番号を付
加したテープの読み取りについて説明したが、ブロック
番号を付加していないテープを読み取る場合については
、あらかじめモードセット命令によりブロックシーケン
スチエツクモートを送出し、モード記憶部17の当該ビ
ットを0″にしておけばデータ順序の誤りによる処理中
断を防止することができる。
Furthermore, in this embodiment, reading of a tape with block numbers added to the data blocks has been explained, but when reading a tape without block numbers added to the data blocks, a block sequence check mode is sent in advance by a mode set command, and the mode By setting this bit in the storage unit 17 to 0'', it is possible to prevent processing interruption due to an error in the data order.

なお、本実施例ては、磁気テープの順方向読み取りの例
を示したが、逆方向読み取りについても同様の手段によ
り行うことができる。
Although this embodiment shows an example of reading the magnetic tape in the forward direction, reading in the reverse direction can also be performed by the same means.

[発明の効果] 以上説明したように本発明は、ブロック番号の誤りを意
識的に無視することによって、他のデータの有効活用を
図り、かつ情報処理の迅速化を図ることができるといっ
た効果がある。
[Effects of the Invention] As explained above, the present invention has the effect that by consciously ignoring errors in block numbers, it is possible to effectively utilize other data and speed up information processing. be.

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

第1図は本発明の一実施例に係る磁気テープ制御装置の
ブロック図、第2図は本実施例に係る磁気テープ制御装
置の動作の一例を示すフローチャートである。 1:磁気テープ制御装置 2:チャンネル 3:磁気テープ装置 ll:チャンネル接続部 12:磁気テープ装置接続部 13:データバッファ 14:データフォーマット制御回路 15:マイクロプロセッサ 16:ブロック番号記憶部 17:モード記憶部 代理人 弁理士 渡 辺 喜 平
FIG. 1 is a block diagram of a magnetic tape control device according to an embodiment of the present invention, and FIG. 2 is a flowchart showing an example of the operation of the magnetic tape control device according to this embodiment. 1: Magnetic tape control device 2: Channel 3: Magnetic tape device ll: Channel connection section 12: Magnetic tape device connection section 13: Data buffer 14: Data format control circuit 15: Microprocessor 16: Block number storage section 17: Mode storage Department Agent Patent Attorney Kihei Watanabe

Claims (1)

【特許請求の範囲】[Claims] チャンネルとの接続を図るチャンネル接続部と、磁気テ
ープ装置との接続を図る磁気テープ接続部と、データバ
ッファから磁気テープ装置へのデータ転送時にバッファ
番号を付加し、その誤りを検出訂正するデータフォーマ
ット制御回路と、データフォーマット制御回路が検出し
たバロック番号の処理を行うマイクロプロセッサと、マ
イクロプロセッサが処理中のブロック番号を記憶するブ
ロック番号記憶部と、前記データフォーマットが検出し
たブロック番号に関する誤りについて処理の指針を示す
モードを記憶したモード記憶部とを有することを特徴と
する磁気テープ制御装置。
A channel connection section that connects to a channel, a magnetic tape connection section that connects a magnetic tape device, and a data format that adds a buffer number when transferring data from the data buffer to the magnetic tape device and detects and corrects errors. A control circuit, a microprocessor that processes the baroque number detected by the data format control circuit, a block number storage unit that stores the block number being processed by the microprocessor, and a block number storage unit that processes an error related to the block number detected by the data format. 1. A magnetic tape control device comprising: a mode storage unit storing a mode indicating a guideline for the magnetic tape control device.
JP1073749A 1989-03-28 1989-03-28 Magnetic tape controller Pending JPH02254677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1073749A JPH02254677A (en) 1989-03-28 1989-03-28 Magnetic tape controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1073749A JPH02254677A (en) 1989-03-28 1989-03-28 Magnetic tape controller

Publications (1)

Publication Number Publication Date
JPH02254677A true JPH02254677A (en) 1990-10-15

Family

ID=13527209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1073749A Pending JPH02254677A (en) 1989-03-28 1989-03-28 Magnetic tape controller

Country Status (1)

Country Link
JP (1) JPH02254677A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004114301A2 (en) 2003-06-26 2004-12-29 Koninklijke Philips Electronics N.V. Method and recorder for reducing rejection of record carriers due to write errors
JP2006031332A (en) * 2004-07-15 2006-02-02 Fujitsu Ltd Disk array control program, method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004114301A2 (en) 2003-06-26 2004-12-29 Koninklijke Philips Electronics N.V. Method and recorder for reducing rejection of record carriers due to write errors
WO2004114301A3 (en) * 2003-06-26 2005-02-10 Koninkl Philips Electronics Nv Method and recorder for reducing rejection of record carriers due to write errors
JP2007519125A (en) * 2003-06-26 2007-07-12 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Method for reducing discard of record carrier due to write error and recording device therefor
JP4777240B2 (en) * 2003-06-26 2011-09-21 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Method for reducing discard of record carrier due to write error and recording device therefor
US8040773B2 (en) * 2003-06-26 2011-10-18 Koninklijke Philips Electronics N.V. Method and recorder for reducing rejection of record carriers due to write errors
JP2006031332A (en) * 2004-07-15 2006-02-02 Fujitsu Ltd Disk array control program, method and device

Similar Documents

Publication Publication Date Title
JPH0612895B2 (en) Information processing system
JPH02254677A (en) Magnetic tape controller
US4704641A (en) Recovery of stored data from mutilated tape data blocks
JP2543519B2 (en) Data error detection / correction method for rotating external storage device
JP2562473B2 (en) Data writing control method for magnetic tape subsystem
JPS63133305A (en) Error recovery controlling system for magnetic tape file
JP2546075B2 (en) Disk controller retry method
JPS6050672A (en) Read control system of rotary memory
JP3262130B2 (en) Information processing device
JPH0325807B2 (en)
JPS63178355A (en) Damage relieving system for control program file
JPS6217877Y2 (en)
JP2614130B2 (en) Magnetic tape unit
JPS61259334A (en) Data transferring system
JPS58223860A (en) Magnetic disk controller
JP2779540B2 (en) Magnetic tape unit
JPH0667815A (en) Automatic rewriting device for record
JPH03131947A (en) Duplexing file storage device
JPH0235546A (en) Control system for writing to auxiliary storage device
JPH0814794B2 (en) Interrupt handling method
JPH0731639B2 (en) Magnetic disk controller
JPS5896326A (en) Input and output control method
JPH05341921A (en) Disk array device
JPS62197818A (en) Data transfer control system
JPH04128917A (en) Read retrying circuit