JPH0244579A - Data control system for magnetic tape control device - Google Patents

Data control system for magnetic tape control device

Info

Publication number
JPH0244579A
JPH0244579A JP19494388A JP19494388A JPH0244579A JP H0244579 A JPH0244579 A JP H0244579A JP 19494388 A JP19494388 A JP 19494388A JP 19494388 A JP19494388 A JP 19494388A JP H0244579 A JPH0244579 A JP H0244579A
Authority
JP
Japan
Prior art keywords
data block
magnetic tape
block group
data
written
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
JP19494388A
Other languages
Japanese (ja)
Inventor
Kazuyuki Natsume
夏目 和幸
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 JP19494388A priority Critical patent/JPH0244579A/en
Publication of JPH0244579A publication Critical patent/JPH0244579A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To attain exact reading only for a data block group to be needed by recording the discriminating number and writing ending position of the written data block group to the specified area of a magnetic tape and controlling the reading on the basis of this recording. CONSTITUTION:A processor 5 of a magnetic tape control device 3 reads the final position of the preceding data block group, which is recorded to the specified area of a magnetic tape 1, in correspondence to the program of an indicating means 11 and moves the tape 1 to the position. The data block group, which is supplied from a high order device 2, temporarily stored in a RAM 7 and error-corrected by a data transfer control circuit 9, is written to the tape 1. Next, the tape 1 is rewound in the specified area and retrieving information, which are housed to the RAM 7 together with the data clock group, from the device 2, the recording order number and data ending position of the data block group are written to the specified area. Then, the reading is controlled on the basis of these information and the data block group to be needed is exactly sent to the device 2. Then, the processing efficiency of the high order device side is prevented from being lowered by unnecessary data.

Description

【発明の詳細な説明】 〔1既要〕 磁気テープに書込まれた有効データの終了位置を確実に
検出して、無効データの読出しを防止する磁気テープ制
御装置のデータ管理方式に関し、確実に有効なデータブ
ロックまでを読出し、無効データブロックを読出さない
ことを目的とし、磁気テープ装置を制御して磁気テープ
に対するデータブロックの書込みと読出しを行わせる磁
気テープ制御装置において、磁気テープに新たにデータ
ブロック群を書込む場合、データブロック群の最後に書
込まれたデータブロックの書込み終了位置を記録する指
示を行うと共に、上位装置が送出するデータブロック群
毎の索引情報を、磁気テープに記録した順に変換して区
別するように指示する指示手段を設け、磁気テープに最
初に書込まれるデータブロックに隣接して磁気テープの
始端側に設けた特定領域に、指示手段の指示に基づき、
最初に書込んだデータブロック群から順次書込み順に、
データブロック群を区別する番号と、各データブロック
群毎の最後に書込まれたデータフロックの書込み終了位
置を′記録しておき、上位装置が指定するデータブロッ
ク群を読出す場合、特定領域に記録された該当データブ
ロック群の番号と書込み終了位置を読取らせ、該データ
プロ・ツク群の書込み終了位置までのデータブロックを
読出した時、読出し動作を終了させる構成とする。
[Detailed Description of the Invention] [1 Already Required] This invention relates to a data management method for a magnetic tape control device that reliably detects the end position of valid data written on a magnetic tape and prevents reading of invalid data. In a magnetic tape control device that controls a magnetic tape device to read and write data blocks to and from the magnetic tape, the purpose is to read up to valid data blocks and not read invalid data blocks. When writing a data block group, an instruction is given to record the write end position of the last data block written in the data block group, and index information for each data block group sent by the host device is recorded on the magnetic tape. An instruction means is provided for instructing to convert and distinguish in the order in which data is written, and based on instructions from the instruction means, a specific area provided at the starting end of the magnetic tape adjacent to the first data block to be written on the magnetic tape is provided.
In the order of writing, starting from the first written data block group,
The number that distinguishes data block groups and the writing end position of the last data block written for each data block group are recorded, and when reading the data block group specified by the host device, it is necessary to write to a specific area. The number of the recorded data block group and the write end position are read, and when the data blocks up to the write end position of the data block group are read, the read operation is ended.

〔産業上の利用分野〕[Industrial application field]

本発明は磁気テープ制御装置に係り、特に磁気テープに
書込まれた有効データの終了位置を確実に検出して、無
効データまで読出すことを防止する磁気テープ制御装置
のデータ管理方式に関する。
The present invention relates to a magnetic tape control device, and more particularly to a data management system for a magnetic tape control device that reliably detects the end position of valid data written on a magnetic tape and prevents invalid data from being read.

磁気テープに記録されたデータの処理が完了すると、こ
の磁気テープの先頭から、このデータを消去しつつ新し
いデータを書込むことが行われる。
When the processing of data recorded on the magnetic tape is completed, new data is written while erasing this data from the beginning of the magnetic tape.

このため、新たなデータの書込みが終了した場合、磁気
テープにはその終了位置以後に古い無効データが残され
ることがある。
Therefore, when writing of new data is completed, old invalid data may remain on the magnetic tape after the writing end position.

従って、磁気テープには、新たなデータの終了位置を示
すマークのE OD (End of Data)が記
録されるが、このEODマークの検出を誤った場合、無
効データを読出すこととなるため、新しいデータの終了
位置は明確に検出出来ることが必要である。
Therefore, an EOD (End of Data) mark indicating the end position of new data is recorded on the magnetic tape, but if this EOD mark is detected incorrectly, invalid data will be read. It is necessary that the end position of new data can be clearly detected.

〔従来の技術〕[Conventional technology]

第5図は従来の技術を説明する図である。 FIG. 5 is a diagram explaining the conventional technique.

磁気テープ1には新たに書込まれるデータブロックが順
次記録され、最終のデータブロック■が記録されると、
このデータブロック■の後にEODマーク■が記録され
る。そして、磁気テープ1に古いデータが記録されてお
り、この古いデータが消去されずに残された場合、EO
Dマークの後には、無効のデータブロック■が記録され
たままとなる。
Newly written data blocks are sequentially recorded on the magnetic tape 1, and when the final data block ■ is recorded,
An EOD mark (■) is recorded after this data block (■). If old data is recorded on magnetic tape 1 and this old data is left without being erased, the EO
After the D mark, the invalid data block ■ remains recorded.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

磁気テープ制御装置はチャネルの如き上位装置から、E
ODまでのデータブロックの読出しを指示された場合、
磁気テープ装置に対してデータブロックの読出しを指示
し、磁気テープ装置が第5図に示すEODマーク■を読
出すと、磁気テープ装置のデータ読出しを停止させるが
、磁気テープ1のEODマークを記録した領域に欠陥が
あった等の原因で、磁気テープ制御装置がこのF、OD
マーク■の読出されたことを認識することが出来なかっ
た場合、EODマーク■に続いて記録されている無効デ
ータブロック■が読出される。
The magnetic tape controller receives data from an upper level device such as a channel.
When instructed to read data blocks up to OD,
When the magnetic tape device is instructed to read a data block and the magnetic tape device reads the EOD mark shown in FIG. The magnetic tape control device may have detected a defect in the F, OD area, etc.
If it is not possible to recognize that the mark ■ has been read, the invalid data block ■ recorded following the EOD mark ■ is read out.

従って、無効データブロック■が正常で無ければ、磁気
テープ制御装置でエラーが検出され、上位装置に報告さ
れるが、無効データブロック■が正常であれば、不必要
なデータプロ・ツクが上位装置に送出されるため、何れ
にしても上位装置側の処理効率を低下させるという問題
がある。
Therefore, if the invalid data block ■ is not normal, an error will be detected in the magnetic tape control device and reported to the host device, but if the invalid data block ■ is normal, unnecessary data processing will be carried out by the host device. In either case, there is a problem in that the processing efficiency on the host device side is reduced.

本発明はこのような問題点に鑑み、磁気テープの先端に
有効なデータブロックの書込み終了位置を記録する領域
を設け、データブロックを読出す際に、この領域に書込
まれているデータブロックの終了位置を読取って、その
終了位置を認識してからデータブロックを読出すように
して、確実に有効なデータブロックまでを読出し、無効
データブロックを読出さないようにすることを目的とし
ている。
In view of these problems, the present invention provides an area at the leading end of the magnetic tape to record the effective writing end position of the data block, and when reading the data block, the data block written in this area is recorded. The purpose of this invention is to read the end position, recognize the end position, and then read the data block to ensure that valid data blocks are read and invalid data blocks are not read.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理ブロック図で、第2図は本発明の
磁気テープのフォーマットの一例を説明する図である。
FIG. 1 is a block diagram of the principle of the present invention, and FIG. 2 is a diagram illustrating an example of the format of the magnetic tape of the present invention.

磁気テープ制御装置3はインタフェース回路10に磁気
テープ装置4を接続し、インクフェース回路8に上位装
置2を接続する。そして、磁気テープ制御装置3のプロ
セッサ5は、制御記憶6に格納されているプログラムを
読出して動作し、上位装置2と磁気テープ装置4との間
のデータ転送を行わせるため、インタフェース回路8と
10及びデータ転送制御回路9を制御する。
The magnetic tape control device 3 connects the magnetic tape device 4 to an interface circuit 10 and connects the host device 2 to an ink face circuit 8. The processor 5 of the magnetic tape control device 3 reads and operates the program stored in the control memory 6, and communicates with the interface circuit 8 in order to perform data transfer between the host device 2 and the magnetic tape device 4. 10 and data transfer control circuit 9.

磁気テープ装置4のプロセッサ12はROMl3に格納
されているプログラムを読出して動作し、インタフェー
ス回路14を経て磁気テープ制御装置3のプロセッサ5
が送出する命令を解析し、図示省略したモータ駆動回路
を制御して磁気テープ1の走行を制御する。
The processor 12 of the magnetic tape device 4 reads and operates the program stored in the ROM 13, and processes the program via the interface circuit 14 to the processor 5 of the magnetic tape control device 3.
It analyzes the command sent by the controller 1 and controls a motor drive circuit (not shown) to control the running of the magnetic tape 1.

第2図に示す如り、磁気テープ1には予め特定領域19
が、例えば、ARA領域領域量初に書込まれるデータブ
ロック■の間に設定されている。
As shown in FIG. 2, a specific area 19 is preset on the magnetic tape 1.
is set, for example, between the data blocks (2) written first in the ARA area area amount.

そして、この特定領域19には、例えば、特定領域であ
ることを示すコードと、有効なデータブロック群の記録
順を示す番号と、データブロック群毎に書込み終了位置
を示すデータブロック数が記録される。
In this specific area 19, for example, a code indicating that it is a specific area, a number indicating the recording order of valid data block groups, and the number of data blocks indicating the writing end position for each data block group are recorded. Ru.

プロセッサ5は上位装置2からデータブロックの書込み
を指示されると、指示手段11を読出してその指示に従
い、プロセッサ12に指示して、第2図に示す磁気テー
プ1を走行させ、磁気テープ1の始端を示すBOT■の
位置にある磁気ヘッド17が、ARA領域領域量置付け
されると、ARA領域領域量−ドを読出させて、データ
転送制御回路9の自動利得調整増幅回路の利得を調整さ
せる。
When the processor 5 is instructed to write a data block from the host device 2, it reads out the instruction means 11 and instructs the processor 12 to run the magnetic tape 1 shown in FIG. When the magnetic head 17 at the position of BOT ■ indicating the start end is placed in the ARA area, the ARA area area is read out and the gain of the automatic gain adjustment amplifier circuit of the data transfer control circuit 9 is adjusted. let

そして、次に特定領域19に磁気へソド17が位置付け
されると、特定領域であることを示すコードが読出され
る。プロセッサ5は特定領域19であることを認識する
と、この特定領域19の記録の有無を調べ、記録が無い
と磁気ヘッド17が、この特定領域19を通過するのを
待つ。
Then, when the magnetic heel 17 is next positioned in the specific area 19, a code indicating that it is the specific area is read out. When the processor 5 recognizes the specific area 19, it checks whether there is any recording in this specific area 19, and if there is no recording, it waits for the magnetic head 17 to pass through this specific area 19.

そして、インタフェース回路8とデータ転送制御回路9
を経て上位装置が転送するデータブロックをRAM7に
一旦格納し、データ転送制御回路9にエラー修正のため
の処理や変調等を行わせてから、インタフェース回路1
0と14を経て書込み回路15に送出し、磁気ヘッド1
7を介して第2図に示すデータブロック■の位置から順
次磁気テープ1に書込ませる。
Then, the interface circuit 8 and the data transfer control circuit 9
The data block to be transferred by the host device through
0 and 14 to the write circuit 15, and the magnetic head 1
7, data blocks are sequentially written onto the magnetic tape 1 from the position of the data block (2) shown in FIG.

プロセッサ5は上位装置2が転送する有効なデータブロ
ック群の索引情報と、このデータブロック群を記録した
記録順を示す番号と、このデータブロック群の書込み終
了位置を示すデータブロック数をRAM7に記録してお
り、上位装置から転送されたデータブロック群の書込み
が完了すると、プロセッサ12に指示して磁気テープ1
を巻き戻させ、磁気ヘッド17がBOT■を検出すると
、再び磁気テープ1を正方向に走行させ、磁気ヘッド1
7を特定領域19に位置付けさせる。
The processor 5 records in the RAM 7 the index information of the valid data block group transferred by the host device 2, the number indicating the recording order in which this data block group was recorded, and the data block number indicating the writing end position of this data block group. When the writing of the data block group transferred from the host device is completed, it instructs the processor 12 to write the data blocks on the magnetic tape 1.
When the magnetic head 17 detects BOT■, the magnetic tape 1 is run in the forward direction again, and the magnetic head 1
7 is positioned in the specific area 19.

そして、プロセッサ5はRAM7に記録しておいた有効
データブロック群の記録順を示す番号と、書込み終了位
置を示すデータブロック数をデータ転送制御回路9とイ
ンタフェース回路10と14を経て書込み回路15に送
出し、磁気ヘッド17を介して、この特定領域19に書
込む。
Then, the processor 5 sends the number indicating the recording order of the valid data block group recorded in the RAM 7 and the number of data blocks indicating the write end position to the write circuit 15 via the data transfer control circuit 9 and interface circuits 10 and 14. The data is sent out and written in this specific area 19 via the magnetic head 17.

プロセッサ5は次のデータブロック群の書込みを指示さ
れると、特定領域19を読出させ、データブロック群の
記録順を示す番号と、データブロック数とを読取ると、
既に書込まれているデータブロック群の番号と、その書
込み終了位置を示すデータブロック数に基づき、既に記
録された最後のデータブロック群の最終データブロック
の書込み終了位置まで、磁気テープ1を走行させた後、
続いて磁気テープ1に、次のデータブロック群の書込み
を行わせる。
When the processor 5 is instructed to write the next data block group, it reads the specific area 19 and reads the number indicating the recording order of the data block group and the number of data blocks.
The magnetic tape 1 is run to the write end position of the last data block of the last data block group that has already been recorded, based on the number of the data block group that has already been written and the data block number that indicates the write end position. After
Subsequently, the next data block group is written on the magnetic tape 1.

プロセッサ5は上位装置2からデータブロック群の索引
情報を指定されて、データブロック群の読出しを指示さ
れると、指示手段11の指示に基づき、前記同様にして
磁気テープ1の特定領域19に磁気ヘッド17を位置付
けさせ、RAM7に記録されている索引情報と当該デー
タブロック群の番号から、指定されたデータブロック群
の記録終了位置を示すデータブロック数を読取り、指定
されたデータブロック群の先頭に磁気ヘッド17を位置
付けさせてから、読出し回路16とインクフェース回路
14と10を経てデータ転送制御回路9に順次データブ
ロックを読出させ、復調やエラー検出修正等を行わせた
後、インタフェース回路8を経て上位装置2に対して送
出させ、特定領域19から読取ったデータブロック数の
データブロックを上位装置2に転送すると、読出し動作
を終了させる。
When the processor 5 is instructed to read the data block group by specifying the index information of the data block group from the host device 2, the processor 5 performs magnetic recording on the specific area 19 of the magnetic tape 1 in the same manner as described above based on the instruction from the instruction means 11. Position the head 17, read the data block number indicating the recording end position of the specified data block group from the index information recorded in the RAM 7 and the number of the data block group, and read the data block number indicating the recording end position of the specified data block group. After positioning the magnetic head 17, the data transfer control circuit 9 sequentially reads out the data blocks via the readout circuit 16 and ink face circuits 14 and 10, and performs demodulation, error detection and correction, etc., and then the interface circuit 8. When the data blocks corresponding to the number of data blocks read from the specific area 19 are transferred to the host device 2, the read operation is ended.

〔作用〕[Effect]

上記の如く構成することにより、プロセッサ5は指示手
段11の指示に基づき、磁気テープ1に設定された特定
領域19に、新たに書込むデータブロック群を区別する
番号と、該データブロック群の書込み終了位置を記録す
るため、このデータブロック群を読出す際に、該特定領
域19に記録されたデータブロック群の番号と、最後に
書込まれたデータブロックの書込み終了位置を予め読取
ることで、正確に必要とするデータブロック群のみS売
出すことが可能となる。
With the above configuration, the processor 5, based on the instruction from the instruction means 11, assigns a number to distinguish a new data block group to be written to the specific area 19 set on the magnetic tape 1, and a number to write the data block group. In order to record the end position, when reading this data block group, by reading in advance the number of the data block group recorded in the specific area 19 and the writing end position of the last written data block, It becomes possible to sell only the precisely required data block group.

従って、磁気テープ1に残された無効データブロックを
読出して、エラーを発生させたり、無効データブロック
を上位装置2に送出することで、上位装置2の処理効率
を低下させることを防止することが出来る。
Therefore, it is possible to prevent the processing efficiency of the host device 2 from being reduced by reading invalid data blocks left on the magnetic tape 1 and causing an error, or by sending invalid data blocks to the host device 2. I can do it.

〔実施例〕〔Example〕

第3図は本発明の一実施例を示す回路のブロック図で、
第4図は第3図の動作を説明するフローチャートである
FIG. 3 is a block diagram of a circuit showing one embodiment of the present invention.
FIG. 4 is a flowchart illustrating the operation of FIG. 3.

第1図と同一符号は同一機能のものを示す。磁気テープ
制御装置3のプロセッサ5は、第4図に示す如く制御記
憶6に格納されている指示プログラム18の指示に従い
、上位装置2からインタフェース回路8とデータ転送制
御回路9を経て書込み命令が入力するか監視しており、
入力した命令が書込み命令であれば、データ転送制御回
路9とインタフェース回路10を経て、磁気テープ装置
4のインタフェース回路14を介し、プロセッサ12に
対し第2図に示す特定領域19に磁気ヘッド17を位置
付けさせる指示を行う。
The same reference numerals as in FIG. 1 indicate the same functions. The processor 5 of the magnetic tape control device 3 receives a write command from the host device 2 via the interface circuit 8 and data transfer control circuit 9 in accordance with instructions from the instruction program 18 stored in the control memory 6 as shown in FIG. We are monitoring whether
If the input command is a write command, the command is sent to the processor 12 via the data transfer control circuit 9, interface circuit 10, and interface circuit 14 of the magnetic tape device 4 to direct the magnetic head 17 to the specific area 19 shown in FIG. Give instructions for positioning.

プロセッサ12はROM13からプログラムを読出して
動作し、図示省略したモータ駆動回路を制御して磁気テ
ープ1を走行させ、磁気ヘッド17を特定領域19に位
置付けさせる。従って、磁気ヘッド17が読出したデー
タは読出し回路16を経てインタフェース回路14とI
Oを介し、データ転送制御回路9を経てプロセッサ5に
送出される。
The processor 12 operates by reading a program from the ROM 13 and controls a motor drive circuit (not shown) to run the magnetic tape 1 and position the magnetic head 17 in a specific area 19. Therefore, the data read by the magnetic head 17 is transmitted to the interface circuit 14 and I via the read circuit 16.
The data is sent to the processor 5 via the data transfer control circuit 9 via the data transfer control circuit 9.

プロセッサ5は第4図に示す如く特定領域19に記録が
有るか調べ、記録が無ければインタフェース回路8とデ
ータ転送制御回路9を経て人力するデータブロック群の
索引情報をRAM7に記憶させ、続いて入力するデータ
ブロックを、第1図で説明した如(、磁気テープ1の特
定領域19に続くデータブロックの記憶領域から順次書
込ませると共に、転送されるデータブロック数を計数し
てRAM7に記録する。
The processor 5 checks whether there is a record in the specific area 19 as shown in FIG. The input data blocks are sequentially written from the storage area of the data block following the specific area 19 of the magnetic tape 1 as explained in FIG. 1, and the number of transferred data blocks is counted and recorded in the RAM 7 .

データブロック群の書込みが完了すると、プロセッサ5
は第4図に示す如く、磁気テープ1を巻き戻させ、特定
領域19に磁気へノド17を位置付けさせると、上位装
置2が転送したデータプロ7り群を索引するための索引
情報を、磁気テープlに記録した順番で定まる番号に変
換し、この索引情報と番号とをテーブルとしてRA M
 7に記録した後、この番号と、このデータブロック群
の最後のデータブロックを書込んだ書込み終了位置を示
すデータブロック数、即ち、転送されたデータブロック
数をRAM7から読出して、第4図に示す如く特定領域
19に書込ませる。
When writing of the data block group is completed, the processor 5
As shown in FIG. 4, when the magnetic tape 1 is rewound and the magnetic nozzle 17 is positioned in the specific area 19, the index information for indexing the group of data processors 7 transferred by the host device 2 is transferred to the magnetic tape 1. It is converted into a number determined by the order in which it was recorded on tape l, and this index information and number are stored in RAM as a table.
7, this number and the number of data blocks indicating the writing end position where the last data block of this data block group was written, that is, the number of transferred data blocks, are read out from the RAM 7 and shown in FIG. The data is written in a specific area 19 as shown.

そして、再び第4図に示す如く、書込み命令の人力を監
視するルーチンに戻る。そして、次のデータブロック群
の書込みが指示されると、プロセッサ5は第4図に示す
如く特定領域19に記録が有るか調べる。
Then, as shown in FIG. 4 again, the process returns to the routine for monitoring the human power of the write command. When instructed to write the next data block group, the processor 5 checks whether there is any recording in the specific area 19 as shown in FIG.

この場合は既にデータブロック群の書込みがなされてい
るため、特定領域19に記録がある。従って、プロセッ
サ5は、データブロック群の番号と、書込み終了位置を
示すデータブロック数から、第4図に示す如く、既に書
込まれたデータブロック群の最後のデータブロックの書
込み終了位置まで磁気テープ1を走行させ、この最後の
データブロックに続いて、データブロックの書込みを行
わせる。そして、第4図に示す如く、磁気テープ1を巻
き戻させ、前記同様、特定領域19に番号とデータブロ
ック数を書込ませた後、書込み命令の入力を監視するル
ーチンに戻る。
In this case, since the data block group has already been written, there is a record in the specific area 19. Therefore, from the data block group number and the data block number indicating the write end position, the processor 5 moves the magnetic tape to the write end position of the last data block of the data block group that has already been written, as shown in FIG. 1 is run and data blocks are written following this last data block. Then, as shown in FIG. 4, the magnetic tape 1 is rewound, and the number and the number of data blocks are written in the specific area 19 as before, and then the routine returns to monitoring the input of a write command.

プロセッサ5は第4図に示す如く、入力した命令が書込
み命令では無い時、読出し命令であるか調べる。読出し
命令で無ければ、入力された命令に基づく他の処理に移
行し、読出し命令であれば、前記同様にして磁気ヘッド
17を磁気テープ1の特定領域19に位置付けさせる。
As shown in FIG. 4, when the input instruction is not a write instruction, the processor 5 checks whether it is a read instruction. If it is not a read command, the process moves to another process based on the input command, and if it is a read command, the magnetic head 17 is positioned in the specific area 19 of the magnetic tape 1 in the same manner as described above.

そして、上位装置2が送出したデータブロック群の索引
情報を、RAM7に格納しであるテーブルを参照して該
当する番号に変換する。
Then, the index information of the data block group sent by the host device 2 is converted into a corresponding number by referring to a table stored in the RAM 7.

プロセッサ5は第4図に示す如く、変換した番号から、
特定領域19の該変換した番号より一つ前の番号のデー
タブロック群の書込み終了位置を認識し、磁気テープ1
を走行させて磁気ヘッド17を上位装置2から指定され
たデータブロック群の先頭のデータブロックに位置付げ
させる。
As shown in FIG. 4, the processor 5 calculates, from the converted number,
Recognizes the writing end position of the data block group with the number one before the converted number in the specific area 19, and writes the data block on the magnetic tape 1.
is moved to position the magnetic head 17 at the first data block of the data block group designated by the host device 2.

そして、第4図に示す如く、データブロックを読出し、
変換した番号により、特定領域19から読出した該当デ
ータブロック群の指定されたデータブロック数のデータ
ブロックを読出したか調べる。
Then, as shown in FIG. 4, the data block is read out,
Based on the converted number, it is checked whether the specified number of data blocks of the corresponding data block group read from the specific area 19 have been read.

即ち、指定されたデータブロック数を読出したか調べ、
未だ指定されたデータブロック数に達しなければ、デー
タブロックの読出しを行い、指定されたデータブロック
数に達すると、読取り動作を終了させ、第4図に示す如
く、書込み命令の入力を監視するルーチンに戻る。
That is, check whether the specified number of data blocks have been read,
If the specified number of data blocks has not yet been reached, the data block is read, and when the specified number of data blocks has been reached, the read operation is terminated, and as shown in FIG. 4, the routine monitors the input of a write command. Return to

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

以上説明した如く、本発明は正確に必要とするデータブ
ロック群のみ読出すことが可能となるため、磁気テープ
上に残された無効データブロックを読出して、エラーを
発生させたり、無効データブロックを上位装置に送出す
ることで、上位装置の処理効率を低下させることを防止
することが出来る。
As explained above, the present invention makes it possible to accurately read only the required data block group, so it is possible to read out invalid data blocks left on the magnetic tape, thereby preventing errors from occurring or invalid data blocks being read out. By sending the information to the higher-level device, it is possible to prevent the processing efficiency of the higher-level device from decreasing.

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

第1図は本発明の原理ブロック図、 第2図は本発明の磁気テープのフォーマントの一例を説
明する図、 第3図は本発明の一実施例を示す回路のブロック図、 第4図は第3図の動作を説明するフローチャート、第5
図は従来の技術を説明する図である。 図において、 1は磁気テープ、  2は上位装置、 3は磁気テープ制’+B装置、 4は磁気テープ装置、5,12はプロセッサ、6は制御
記憶、    7はRAM、 8、10.14はインタフェース回路、9はデータ転送
制御回路、 11は指示手段、   13はROM、15は書込み回
路、  16は読出し回路、17は磁気ヘッド、  1
8は指示プログラム、本年8月の石盆乱テーアめフォー
マ・・・トの一乃゛)ヲ銑明¥る口 第λ 図 第 3因め動イ乍g官え朗第3フロー4v−トY 4 
FIG. 1 is a block diagram of the principle of the present invention. FIG. 2 is a diagram illustrating an example of the formant of the magnetic tape of the present invention. FIG. 3 is a block diagram of a circuit showing an embodiment of the present invention. is a flowchart explaining the operation of FIG.
The figure is a diagram explaining a conventional technique. In the figure, 1 is a magnetic tape, 2 is a host device, 3 is a magnetic tape system +B device, 4 is a magnetic tape device, 5 and 12 are processors, 6 is control memory, 7 is RAM, 8 and 10.14 are interfaces. circuit, 9 is a data transfer control circuit, 11 is an instruction means, 13 is a ROM, 15 is a write circuit, 16 is a read circuit, 17 is a magnetic head, 1
8 is the instruction program, the format for the Sekibonran theme in August of this year... Y 4
figure

Claims (1)

【特許請求の範囲】 磁気テープ装置(4)を制御して磁気テープ(1)に対
するデータブロックの書込みと読出しを行わせる磁気テ
ープ制御装置(3)において、 該磁気テープ(1)に新たにデータブロック群を書込む
場合、該データブロック群の最後に書込まれたデータブ
ロックの書込み終了位置を記録する指示を行うと共に、
上位装置(2)が送出するデータブロック群毎の索引情
報を、該磁気テープ(1)に記録した順に変換して区別
するように指示する指示手段(11)を設け、 該磁気テープ(1)に最初に書込まれるデータブロック
に隣接して、該磁気テープ(1)の始端側に設けた特定
領域に、該指示手段(11)の指示に基づき、最初に書
込んだデータブロック群から順次書込み順に、該データ
ブロック群を区別する番号と、各データブロック群毎の
最後に書込まれたデータブロックの書込み終了位置を記
録しておき、上位装置(2)が指定するデータブロック
群を読出す場合、該特定領域に記録された該当データブ
ロック群の番号と書込み終了位置を読取らせ、該データ
ブロック群の書込み終了位置までのデータブロックを読
出した時、読出し動作を終了させることを特徴とする磁
気テープ制御装置のデータ管理方式。
[Claims] In a magnetic tape control device (3) that controls a magnetic tape device (4) to write and read data blocks to and from a magnetic tape (1), new data is added to the magnetic tape (1). When writing a block group, an instruction is given to record the writing end position of the last written data block in the data block group, and
An instruction means (11) is provided for instructing to convert and distinguish index information for each data block group sent by the host device (2) in the order recorded on the magnetic tape (1), and the magnetic tape (1) Based on the instruction from the instruction means (11), data blocks are sequentially written starting from the data block group written first in a specific area provided on the starting end side of the magnetic tape (1) adjacent to the first data block written on the magnetic tape (1). Record the number that distinguishes the data block group and the write end position of the last written data block for each data block group in the writing order, and then read the data block group specified by the host device (2). When the data block group is read out, the number and write end position of the corresponding data block group recorded in the specific area are read, and when the data blocks up to the write end position of the data block group are read, the read operation is ended. A data management method for magnetic tape controllers.
JP19494388A 1988-08-03 1988-08-03 Data control system for magnetic tape control device Pending JPH0244579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19494388A JPH0244579A (en) 1988-08-03 1988-08-03 Data control system for magnetic tape control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19494388A JPH0244579A (en) 1988-08-03 1988-08-03 Data control system for magnetic tape control device

Publications (1)

Publication Number Publication Date
JPH0244579A true JPH0244579A (en) 1990-02-14

Family

ID=16332911

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19494388A Pending JPH0244579A (en) 1988-08-03 1988-08-03 Data control system for magnetic tape control device

Country Status (1)

Country Link
JP (1) JPH0244579A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5739465A (en) * 1995-11-22 1998-04-14 Yazaki Corporation Connector device and connector mounting method
US5769670A (en) * 1995-06-30 1998-06-23 Yazaki Corporation Connector with rear holder
JP2010027118A (en) * 2008-07-16 2010-02-04 Internatl Business Mach Corp <Ibm> Apparatus and method for reading out data recorded on tape
JP2017109150A (en) * 2015-12-15 2017-06-22 旭ファイバーグラス株式会社 Gas adsorbent

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5769670A (en) * 1995-06-30 1998-06-23 Yazaki Corporation Connector with rear holder
US5739465A (en) * 1995-11-22 1998-04-14 Yazaki Corporation Connector device and connector mounting method
JP2010027118A (en) * 2008-07-16 2010-02-04 Internatl Business Mach Corp <Ibm> Apparatus and method for reading out data recorded on tape
JP2017109150A (en) * 2015-12-15 2017-06-22 旭ファイバーグラス株式会社 Gas adsorbent

Similar Documents

Publication Publication Date Title
JPH0244579A (en) Data control system for magnetic tape control device
DE19902659A1 (en) Hard disc head
JPH0876989A (en) Program driven electronic device and program rewriting method
JPS5940309A (en) Memory controller
JP3126829B2 (en) Magnetic tape reading method
JP2560308B2 (en) Magnetic disk controller
JPS58195981A (en) Offline printing control device
JPS6050671A (en) Processing system of magnetic tape
JPH0268782A (en) Head positioning control method
JPS59146466A (en) Magnetic tape recorder
JP2644862B2 (en) Optical disk drive
JP3250449B2 (en) Magnetic tape controller
JPS5938940A (en) Optical disk processor
JPH0612187A (en) Magnetic tape controller
JPS63269361A (en) Magnetic tape device
JPS5854465A (en) Detecting system for final block of magnetic tape
JPS59157813A (en) Controller for magnetic memory of rotor
JPH08161748A (en) Disk recording / reproducing system and data erasing control method
JPS6292105A (en) Magnetic tape recording method
JPH01285078A (en) Read retry control system for magnetic disk device
JPS63304456A (en) Magnetic tape device
JPH0576056B2 (en)
JPS60142454A (en) Input/output control method
JPH0676457A (en) Disk device
JPH03164843A (en) Optical disk processing device