JPH0511927A - Data reproducing method for magnetic tape unit - Google Patents

Data reproducing method for magnetic tape unit

Info

Publication number
JPH0511927A
JPH0511927A JP3165328A JP16532891A JPH0511927A JP H0511927 A JPH0511927 A JP H0511927A JP 3165328 A JP3165328 A JP 3165328A JP 16532891 A JP16532891 A JP 16532891A JP H0511927 A JPH0511927 A JP H0511927A
Authority
JP
Japan
Prior art keywords
data
packet
magnetic tape
host
read
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.)
Granted
Application number
JP3165328A
Other languages
Japanese (ja)
Other versions
JP2923089B2 (en
Inventor
Tokuhiro Tsukiyama
徳広 築山
Hiroshi Ozawa
博 小澤
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 JP16532891A priority Critical patent/JP2923089B2/en
Publication of JPH0511927A publication Critical patent/JPH0511927A/en
Application granted granted Critical
Publication of JP2923089B2 publication Critical patent/JP2923089B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To transmit reversely read data to a host by reversely reading the compressed data stored on a magnetic tape even when reverse restorage is disabled by a compression algorithm or the like. CONSTITUTION:A data buffer 8 stores the (reverse) data read out of the magnetic tape by reversely traveling the tape, the (forward) data are reversely read out of the data buffer 8, the read data are restored at a data compression/ restorage circuit 2, the restored data are stored in a data buffer 5, and the (reverse) data are reversely read out of the data buffer 5 and transferred to the host.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は磁気テープ装置のデータ
再生方法にかかり、特に圧縮アルゴリズムに起因して磁
気テープの逆方向送行による復元が不可能な磁気テープ
装置において、磁気テープ上に記憶された圧縮データを
逆方向に読み出して、逆方向の読み出しデータをホスト
に送信することを可能にし、これによって従来の逆方向
読み出し命令を有するプログラムをそのまま使用可能に
するのに好適な磁気テープ装置のデータ再生方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data reproducing method for a magnetic tape device, and in particular, in a magnetic tape device which cannot be restored by backward feeding of the magnetic tape due to a compression algorithm, the data is stored on the magnetic tape. It is possible to read the compressed data in the reverse direction and send the read data in the reverse direction to the host, thereby making it possible to use the program having the conventional reverse read instruction as it is. The present invention relates to a data reproducing method.

【0002】[0002]

【従来の技術】従来のデータ圧縮・復元方式としては、
特公昭63−6172号公報に記載されているように、
圧縮されたデータを復元する場合に、一方向復元のみ可
能な方式が知られている。
2. Description of the Related Art As conventional data compression / decompression methods,
As described in JP-B-63-6172,
A method is known in which only one-way decompression is possible when decompressing compressed data.

【0003】また、アメリカン ナショナル スタンダ
ード イクステンディドマグネテック テープ フォー
マット フォ− インフォメ−ション インータチエン
ジエックス3ビ−5/89−201エム(AMERIC
AN NATIONALSTANDARD EXTEN
DED MAGNETIC TAPE FORMAT
FOR INFORMATION INTERCHAN
GE X3B5/89−201M)に記載されているよ
うに、ホストから転送された1グループのデータは正方
向で前記した一方向復元のみ可能なデータ圧縮技法によ
り圧縮され、この1グループの圧縮データを1パケット
と定義し、さらに複数のパケットを連結して1データブ
ロックとし、これを磁気テープ上に記録する。さらに、
記録されたデータを1グループ毎に、正方向読み出しを
実施する場合、磁気テープ上の1データブロックを全て
一時記録のバッファへ記録した後、複数パケットの中か
ら必要とするパケットの先頭位置とそのパケット内のデ
ータの終了位置を検出して、一時記録のバッファからパ
ケット内のデータを読み出し、圧縮されたデータを復元
してホストへ1パケットのデータを転送する。
In addition, American National Standard Extended Magnetic Tape Format Information Informatics EX 3B-5 / 89-201M (AMERIC)
AN NATIONAL STANDARD EXTEN
DED MAGNETIC TAPE FORMAT
FOR INFORMATION INTERCHAN
GE X3B5 / 89-201M), one group of data transferred from the host is compressed in the forward direction by the above-described data compression technique capable of only one-way decompression. One packet is defined and a plurality of packets are concatenated to form one data block, which is recorded on the magnetic tape. further,
When the recorded data is read in the forward direction for each group, all one data block on the magnetic tape is recorded in the buffer for temporary recording, and then the start position of the required packet and its The end position of the data in the packet is detected, the data in the packet is read from the buffer for temporary recording, the compressed data is restored, and one packet of data is transferred to the host.

【0004】[0004]

【発明が解決しようとする課題】従来技術においては、
上記したように圧縮アルゴリズムに起因して逆方向復元
が不可能であるため、磁気テープ上に記憶された圧縮デ
ータを磁気テープの逆方向送行によって読み出して、復
元することはできなかった。したがって、ホストから逆
方向読み出し命令が出力された場合には、エラーメッセ
ージをホスト側へ送出し、オペレーテングシステム(以
後、OSと称する)によるリカバリーとして、正方向読
み出し命令が再発行された。
DISCLOSURE OF THE INVENTION In the prior art,
As described above, it is impossible to restore in the backward direction due to the compression algorithm. Therefore, the compressed data stored on the magnetic tape cannot be read out and restored by the backward feeding of the magnetic tape. Therefore, when the backward read command is output from the host, an error message is sent to the host side, and the forward read command is reissued as a recovery by the operating system (hereinafter referred to as OS).

【0005】正方向読み出し命令が再発行されると、磁
気テープ上で読み出しが開始されるデータブロックの位
置が逆方向読み出しの場合と異なるため、位置決めを再
度行い、その後正方向読み出しが行われる。このため、
データ読み出し完了迄に多大の時間を要すると共に、ホ
スト側のオーバーヘッドが増加する等の問題点があっ
た。
When the forward direction read command is reissued, the position of the data block on the magnetic tape at which the reading is started is different from that in the backward direction reading. Therefore, positioning is performed again, and then the forward direction reading is performed. For this reason,
There is a problem that it takes a lot of time until the data reading is completed and the overhead on the host side increases.

【0006】さらに、前記したアメリカン ナショナル
スタンダード イクステンディドマグネテック テー
プ フォーマット フォ− インフォメ−ションインー
タチエンジ エックス3ビ−5/89−201エム(A
MERICAN NATIONAL STANDARD
EXTENDED MAGNETIC TAPE F
ORMAT FOR INFORMATION INT
ERCHANGEX3B5/89−201M)に記載さ
れている技術において、パケット内のデータを圧縮しな
いで磁気テープに記録した場合、磁気テープ上に記憶さ
れたデータを磁気テープの逆方向送行によって読み出し
て、これをそのままホスト側に転送することはできなか
った。その理由は、各パケット間にギャップ領域が設け
られていなため、非圧縮状態のデータであっても、各パ
ケットにおいてデータの始まりと終わりの部分が不明と
なるからである。
[0006] Further, the above-mentioned American National Standard Extended Magnetic Tape Format Information Information Intake Engineering 3B-5 / 89-201M (A
MERICA NATIONAL STANDARD
EXTENDED MAGNETIC TAPE F
ORMAT FOR INFORMATION INTO
In the technology described in ERCHANGEX3B5 / 89-201M), when the data in the packet is recorded on the magnetic tape without being compressed, the data stored on the magnetic tape is read by the backward feeding of the magnetic tape, and this is read. It could not be directly transferred to the host side. The reason is that, since no gap area is provided between each packet, the beginning and end of the data in each packet are unknown even in the uncompressed data.

【0007】本発明は、上記した従来技術の問題点に鑑
みなされたもので、圧縮アルゴリズムに起因して逆方向
復元が不可能な場合においても、磁気テープ上に記憶さ
れた圧縮データを逆方向に読み出して、逆方向の読み出
しデータをホストに送信することを可能にし、これによ
って従来のプログラムをそのまま使用可能とし、さらに
逆方向読み出し命令に対するホスト側の負荷を低減する
(OSによるエラーリカバリー不要)ことが可能な磁気
テープ装置のデータ再生方法を提供することを目的とし
ている。
The present invention has been made in view of the above-mentioned problems of the prior art. Even when backward compression cannot be performed due to the compression algorithm, the compressed data stored on the magnetic tape is reversed. Read data to the host and send the read data in the reverse direction to the host, which allows the conventional program to be used as it is and further reduces the load on the host side for the reverse direction read instruction (no error recovery by the OS is required). It is an object of the present invention to provide a data reproducing method of a magnetic tape device capable of realizing the above.

【0008】さらに、本発明の他の目的は、非圧縮デー
タからなる複数のパケットを1つのデータブロックとし
て記録する場合、磁気テープ上に記憶された非圧縮デー
タを逆方向に読み出して、逆方向の読み出しデータをホ
ストに送信することを可能にする磁気テープ装置のデー
タ再生方法を提供することにある。
Still another object of the present invention is to read the uncompressed data stored on the magnetic tape in the reverse direction when recording a plurality of packets of the non-compressed data as one data block. Another object of the present invention is to provide a data reproducing method of a magnetic tape device, which makes it possible to transmit the read data of the above to the host.

【0009】[0009]

【課題を解決するための手段】本発明の第1の磁気テー
プ装置のデータ再生方法は、データ圧縮・復元手段を備
え、ホストから転送された1グループのデータを圧縮し
て1パケットととし、複数のパケットを鎖状に連結して
1データブロックとし、1データブロック単位に磁気テ
ープに記録し、記録したデータを再生する際に、磁気テ
ープから読み出されたデータを復元してホストに転送す
る磁気テープ装置に適用されるものであり、特に磁気テ
ープを逆方向に走行させた状態において、磁気テープか
ら読み出されたデータの転送順序を逆転する第1のステ
ップと、第1のステップにおいて転送順序が逆転された
データを復元する第2のステップと、第2のステップに
おいて復元されたデータの転送順序を再度逆転する第3
のステップとから構成される。
According to a first aspect of the present invention, there is provided a data reproducing method for a magnetic tape device, comprising data compression / decompression means for compressing one group of data transferred from a host into one packet, Multiple packets are concatenated in a chain to form one data block, which is recorded on the magnetic tape in units of one data block, and when the recorded data is reproduced, the data read from the magnetic tape is restored and transferred to the host. And a first step of reversing the transfer order of the data read from the magnetic tape in the state where the magnetic tape is run in the reverse direction. A second step of restoring the data whose transfer order has been reversed, and a third step of reversing the transfer order of the data restored in the second step.
And the steps of.

【0010】本発明の第2の磁気テープ装置のデータ再
生方法は、データ圧縮・復元手段を備え、ホストから転
送された1グループのデータを圧縮して1パケットとと
し、上記1パケットは少なくともテープ上の自分の位置
と上記データのパケット内における格納エリアを指示す
る制御情報及びホストから転送されたデータを有して構
成され、複数のパケットを鎖状に連結して1データブロ
ックとし、1データブロック単位に磁気テープに記録
し、記録したデータを再生する際に、磁気テープから読
み出されたデータのうちの目的のパケット内のデータを
復元してホストに転送する磁気テープ装置に適用される
ものであり、特に磁気テープを逆方向に走行させた状態
において、磁気テープから読み出されたデータを格納す
る第1のステップと、第1のステップにおいて格納され
たデータ内のパケットの制御情報を読み出して目的のパ
ケットか否かを判定する第2のステップと、第2のステ
ップにおいて目的のパケットであると判定された場合、
上記制御情報からパケット内におけるデータの先頭位置
と最終位置を知り、これに基づいて上記目的のパケット
内のデータを上記最終位置から先頭位置に向かって逆方
向に読み出して転送する第3のステップと、第3のステ
ップにおいて転送された上記目的のパケット内のデータ
を復元する第4のステップと、第4のステップにおいて
復元された上記目的のパケット内のデータを格納する第
4のステップと、第4のステップにおいて格納されたデ
ータを逆方向に読み出してホストに転送する第5のステ
ップとから構成されている。
A second data reproducing method for a magnetic tape device of the present invention comprises a data compression / decompression means, compresses one group of data transferred from the host into one packet, and the one packet is at least the tape. It is configured to have its own position above and control information indicating a storage area in the packet of the above data and data transferred from the host, and a plurality of packets are concatenated in a chain to form one data block and one data. It is applied to a magnetic tape device that records on a magnetic tape in blocks and reproduces the recorded data by restoring the data in the target packet of the data read from the magnetic tape and transferring it to the host. The first step of storing the data read from the magnetic tape, particularly when the magnetic tape is running in the opposite direction. A second step of determining whether the purpose of the packet by reading a control information packet in the stored data in the first step, if it is determined that the packet of interest in a second step,
The third step of knowing the start position and the end position of the data in the packet from the control information, and reading and transferring the data in the target packet in the reverse direction from the final position to the start position based on this. A fourth step of restoring the data in the packet of interest transferred in the third step, a fourth step of storing the data in the packet of interest restored in the fourth step, In the fourth step, the data stored in the fourth step is read in the reverse direction and transferred to the host.

【0011】本発明の第3の磁気テープ装置のデータ再
生方法は、ホストから転送された1グループのデータを
1パケットととし、上記1パケットは少なくともテープ
上の自分の位置と上記データのパケット内における格納
エリアを指示している制御情報及びホストから転送され
たデータを有して構成され、複数のパケットをギャップ
領域を介することなく鎖状に連結して1データブロック
とし、1データブロック単位に磁気テープに記録し、記
録したデータを再生する際に、磁気テープから読み出さ
れたデータのうちの目的のパケット内のデータをホスト
に転送する磁気テープ装置に適用されるものであり、特
に磁気テープを逆方向に走行させた状態において、磁気
テープから読み出されたデータを格納する第1のステッ
プと、第1のステップにおいて格納されたデータ内のパ
ケットの制御情報を読み出して目的のパケットか否かを
判定する第2のステップと、第2のステップにおいて目
的のパケットであると判定された場合、上記制御情報か
らパケット内におけるデータの先頭位置と最終位置を知
り、これに基づいて上記目的のパケット内のデータを上
記最終位置から先頭位置に向かって逆方向に読み出して
転送する第3のステップと、第3のステップにおいて転
送された上記目的のパケット内のデータを格納する第4
のステップと、第4のステップにおいて格納されたデー
タを逆方向に読み出してホストに転送する第5のステッ
プとから構成されるている。
According to the third data reproducing method of the magnetic tape device of the present invention, one group of data transferred from the host is regarded as one packet, and the one packet is at least the position on the tape and the packet of the data. In the storage area and control data indicating the storage area, and data transferred from the host. A plurality of packets are concatenated in a chain without a gap area to form one data block. It is applied to a magnetic tape device that transfers the data in the target packet of the data read from the magnetic tape to the host when recording the data on the magnetic tape and reproducing the recorded data. With the tape running in the reverse direction, the first step of storing the data read from the magnetic tape and the first step of storing the data read from the magnetic tape. In the second step, the control information of the packet in the data stored in the packet is read to determine whether or not the packet is the target packet, and when it is determined that the packet is the target packet in the second step, A third step of knowing the start position and the end position of the data in the packet, and reading and transferring the data in the target packet in the reverse direction from the final position to the start position based on this Storing the data in the packet of interest transferred in step 4;
And the fifth step of reading the data stored in the fourth step in the reverse direction and transferring it to the host.

【0012】[0012]

【作用】上記第1及び第2の発明によれば、磁気テープ
装置の圧縮アルゴリズムに起因して逆方向復元が不可能
な場合においても、磁気テープ上に記憶された圧縮デー
タを逆方向に読み出して、データの転送順序を逆転して
データ復元し、さらに復元されたデータ転送順序を逆転
してホストに送ることができる。したがって、逆方向の
読み出しデータをホストに送信することが可能になり、
これによって従来のプログラムをそのまま使用可能と
し、さらに逆方向読み出し命令に対するホスト側の負荷
を低減する(OSによるエラーリカバリー不要)ことが
可能になる。また、上記第3の発明によれば、非圧縮状
態のデータからなる複数のパケットを1つのデータブロ
ックとして磁気テープに記録している場合、磁気テープ
上に記憶された非圧縮データを逆方向に読み出して格納
し、各パケットの制御情報から各パケットにおけるデー
タの先頭位置と最終位置を知り、上記最終位置から先頭
位置に向かってデータを転送し、さらに転送されたデー
タを格納して逆方向に読み出すことにより、磁気テープ
上に記憶された非圧縮データを逆方向に読み出して、逆
方向の読み出しデータをホストに送信することが可能に
なる。
According to the first and second aspects of the present invention, the compressed data stored on the magnetic tape is read in the reverse direction even when the reverse direction cannot be restored due to the compression algorithm of the magnetic tape device. The data transfer order can be reversed to restore the data, and the restored data transfer order can be reversed and sent to the host. Therefore, it becomes possible to send read data in the reverse direction to the host,
As a result, the conventional program can be used as it is, and the load on the host side for the backward read instruction can be reduced (no error recovery by the OS is required). Further, according to the third aspect of the invention, when a plurality of packets of uncompressed data are recorded on the magnetic tape as one data block, the uncompressed data stored on the magnetic tape is reversed. Read and store, know the start position and end position of the data in each packet from the control information of each packet, transfer the data from the end position to the start position, store the transferred data, and store in the reverse direction. By reading, it becomes possible to read the uncompressed data stored on the magnetic tape in the reverse direction, and to send the read data in the reverse direction to the host.

【0013】[0013]

【実施例】以下、本発明の一実施例を図1、図2を用い
て説明する。図2は、ホストから送られたデータを磁気
テープ上に記録する場合における磁気テープ上のデータ
フォーマットを示すものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 2 shows the data format on the magnetic tape when the data sent from the host is recorded on the magnetic tape.

【0014】図2において、標準データフォーマット1
00は、データ圧縮を行わないもので、ホストから転送
された1グループのデータを1データブロックとして磁
気テープ上に記録する。このとき、データブロック間に
IBGと称するギャップを挿入することで、1データブ
ロックの始端と終端が判かる様になっている。
In FIG. 2, standard data format 1
00 does not perform data compression and records one group of data transferred from the host as one data block on the magnetic tape. At this time, by inserting a gap called IBG between the data blocks, the start end and the end of one data block can be known.

【0015】図2に示すデータフォーマット101は、
本発明の対象となるものであり、ホストから転送された
データをデータ圧縮して、データ量を削減し、これを1
パケットとする。さらに、磁気テープ上に記録される1
データブロックは、互いに連結された複数(n個)のパ
ケットから構成される。すなわち、図示するように、情
報があらかじめ定められた一定量になるまでIBGを削
除して各パケット間を連結し、1パケットからnパケッ
ト迄を1データブロック107としている。
The data format 101 shown in FIG.
The object of the present invention is to compress the data transferred from the host to reduce the data amount.
Let it be a packet. Furthermore, 1 recorded on the magnetic tape
The data block is composed of a plurality of (n) packets connected to each other. That is, as shown in the figure, the IBG is deleted until the information reaches a predetermined fixed amount, and the packets are connected to form one data block 107 from one packet to n packets.

【0016】各パケット102は、図示するよう、パケ
ットID103とユーザデータ104とパケットトレー
ラ105とから構成されている。ここで、パケットID
103は32バイトで構成され、パケットの先頭部分に
非圧縮状態で記録されている。このパケットID103
には、当該パケットに含まれるブロックのブロック位置
を示すブロックIDと、パケットID103のバイト数
とユーザデータ104のバイト数を加算した合計バイト
数を表示すパケット・オフセット位置106と、パケッ
トトレーラ105のバイト数を表示する情報と、パケッ
トID103内の先行する30バイトに対する冗長情報
の2バイトなどから構成されている。
Each packet 102 is composed of a packet ID 103, user data 104, and a packet trailer 105, as shown in the figure. Where packet ID
Reference numeral 103 is composed of 32 bytes, and is recorded in an uncompressed state at the beginning of the packet. This packet ID 103
Indicates a block ID indicating the block position of a block included in the packet, a packet offset position 106 indicating the total number of bytes obtained by adding the number of bytes of the packet ID 103 and the number of bytes of the user data 104, and the packet trailer 105. It is composed of information indicating the number of bytes and 2 bytes of redundant information for the preceding 30 bytes in the packet ID 103.

【0017】ユーザデータ104は、ホストより転送さ
れたデータを圧縮して得られたデータ又は非圧縮のデー
タを記録する領域である。本実施例では圧縮したデータ
の場合を示す。
The user data 104 is an area for recording data obtained by compressing the data transferred from the host or uncompressed data. This embodiment shows the case of compressed data.

【0018】パケットトレーラ105は、ホストから転
送された非圧縮状態のデータのバイト数及びそのデータ
に対する冗長情報CRC1と、圧縮後のユーザデータ1
04のバイト数及びCRC1を含んだ冗長情報CRC2
と、ユーザデータ104とパケットトレーラ105の合
計バイト長が32の倍数となる様にパディング・データ
“00”を付加した情報と、圧縮されたユーザデータ1
04の情報と前記パケットトレーラ105の情報を含め
た冗長情報CRC3とから構成される。
The packet trailer 105 includes the number of bytes of uncompressed data transferred from the host, redundancy information CRC1 for the data, and user data 1 after compression.
Redundancy information CRC2 including 04 bytes and CRC1
And information to which padding data “00” is added so that the total byte length of the user data 104 and the packet trailer 105 is a multiple of 32, and the compressed user data 1
04 information and redundant information CRC3 including the information of the packet trailer 105.

【0019】図1は、本発明の一実施例を示すブロック
図であり、まずデータの磁気テープへの書き込み動作に
ついて説明する。図1において、ホストより転送された
データは、チャネルインタフェース1を介してデータ圧
縮・復元回路2に入力され、データ圧縮・復元回路得に
おいてデータ圧縮される。圧縮されたデータは、パケッ
ト内のユーザデータ104として、データバッファイン
タフェース3を介して主データバッファ4に格納され
る。続いて、データ圧縮・復元回路2からパケットトレ
ーラ105の情報が、データバッファインターフェイス
3を介して主データバッファ4に格納される。ユーザ・
データ104とパケット・トレイラ105のデータが主
データ・バック4に格納された後、マイクロ・プロセッ
サ9は、マイクロプログラムによりパケットID103
の情報を生成し、ライトPIDレジスタ6に転送する。
転送されたパケットIDの情報は、最後に冗長情報バイ
トCRC2を付加され、データバッファインターフェイ
ス3を介して主データバッファ4へ格納される。以後、
同様の動作を繰り返すことで複数のパケットが主データ
バッファに格納される。
FIG. 1 is a block diagram showing an embodiment of the present invention. First, the operation of writing data on a magnetic tape will be described. In FIG. 1, the data transferred from the host is input to the data compression / decompression circuit 2 via the channel interface 1 and compressed in the data compression / decompression circuit. The compressed data is stored in the main data buffer 4 via the data buffer interface 3 as the user data 104 in the packet. Then, the information of the packet trailer 105 from the data compression / decompression circuit 2 is stored in the main data buffer 4 via the data buffer interface 3. A user·
After the data 104 and the data of the packet trailer 105 are stored in the main data back 4, the microprocessor 9 causes the packet ID 103
Information is generated and transferred to the write PID register 6.
The transferred packet ID information is added with a redundant information byte CRC2 at the end and stored in the main data buffer 4 via the data buffer interface 3. After that,
By repeating the same operation, a plurality of packets are stored in the main data buffer.

【0020】主データバッファ4に格納されたパケット
の合計バイト数が一定値になると、それまでに格納した
複数パケットが、1データブロックとして、図2のデー
タ圧縮後のデータフォーマット101及びパケット10
2に示す構成順に磁気テープ上へ記録される。
When the total number of bytes of the packets stored in the main data buffer 4 reaches a constant value, the plurality of packets stored up to that point constitute one data block and the data format 101 and packet 10 after data compression shown in FIG.
Data is recorded on the magnetic tape in the order of the structure shown in 2.

【0021】次に、データの逆方向復元動作について説
明する。ここで、データ圧縮・復元回路2は、逆方向復
元が不可能であるものとする。この場合でも、データバ
ッファ8によってデ−タの方向を正方向にすることで復
元動作を可能とする。
Next, the backward data restoring operation will be described. Here, it is assumed that the data compression / decompression circuit 2 cannot perform backward decompression. Even in this case, the data buffer 8 makes the direction of the data forward so that the restoration operation can be performed.

【0022】すなわち、1パケット目のユーザ・データ
104をホストが逆方向で読み出す場合、磁気テープ上
より必要とする1パケットを含んだ1データブロック1
07の情報を、磁気テープを逆方向に走行させて主デー
タバッファ4に格納する。
That is, when the host reads the user data 104 of the first packet in the reverse direction, one data block 1 containing one packet required on the magnetic tape.
The information 07 is stored in the main data buffer 4 by running the magnetic tape in the reverse direction.

【0023】マイクロプロセッサ9は、1データブロッ
ク107の情報が主データバッファ4に格納されると、
主データバッファ4からデータバッファインターフェイ
ス3を介してデータバッファ8へデータを転送するよう
に、信号線10によって指示する。これによって、デー
タバッファ8に主データバッファ4に格納されているデ
ータが転送されて格納される。
When the information of one data block 107 is stored in the main data buffer 4, the microprocessor 9
The signal line 10 instructs to transfer data from the main data buffer 4 to the data buffer 8 via the data buffer interface 3. As a result, the data stored in the main data buffer 4 is transferred to and stored in the data buffer 8.

【0024】データバッファ8に格納された1データブ
ロック107の情報は、逆方向に読み出されて格納され
ているため、そのアドレスはnパケットの終端より順に
カウントアップされてゆき、最後に1パケットのパケッ
トID103の先頭で終わっている。したがって、デー
タパッファ8から1パケットのユーザデータ104を正
方向で読み出すために、マイクロプロセッサ9は信号線
11によってデータバッファ8のアドレスをカウントダ
ウンする様にデータバッファ8をセットし、データバッ
ファ8に格納された1データブロック107の最終アド
レスからカウントダウンしてゆき、パケットID103
の情報を正方向でリードPIDレジスタ7へ転送する。
Since the information of one data block 107 stored in the data buffer 8 is read and stored in the reverse direction, its address is sequentially counted up from the end of n packets, and finally one packet. End of the packet ID 103. Therefore, in order to read one packet of user data 104 from the data buffer 8 in the forward direction, the microprocessor 9 sets the data buffer 8 to count down the address of the data buffer 8 by the signal line 11 and stores it in the data buffer 8. Counting down from the final address of the 1 data block 107 that has been performed, the packet ID 103
Information in the forward direction is transferred to the read PID register 7.

【0025】マイクロプロセッサ9は、リードPIDレ
ジスタ7内のパケットID103の情報を分析し、目的
のパケットであるか否か及びパケットのオフセット位置
106を判断する。次に、目的のパケットである場合に
は、1パケット内のユーザデータ104をホストへ転送
するために、前記データバッファ8の最終アドレスから
パケットIDの32バイトを引いたアドレスを、マイク
ロプロセッサ9よりバス線12によってデータバッファ
8へセットし、ユーザデータ104の始端のアドレスと
する。1パケット内のユーザデータ104の終端とし
て、前記同様マイクロプロセッサ9よりバス線12によ
ってパケットのオフセット位置106のアドレスをデー
タバッファ8へセットする。マイクロプロセッサ9より
データバッファ8の始端アドレスから、終端アドレス迄
をカウントダウンでデータを読み出す指示を信号線13
により出力すると、1パケットのユーザデータ14は、
データバッファ8よりデータ圧縮・復元回路2に転送さ
れ、データの正方向復元動作が実施される。
The microprocessor 9 analyzes the information of the packet ID 103 in the read PID register 7 to determine whether it is the target packet and the offset position 106 of the packet. Next, in the case of the target packet, in order to transfer the user data 104 in one packet to the host, the address obtained by subtracting 32 bytes of the packet ID from the final address of the data buffer 8 is sent from the microprocessor 9. The data is set in the data buffer 8 by the bus line 12 and used as the start address of the user data 104. As the end of the user data 104 in one packet, the address of the offset position 106 of the packet is set in the data buffer 8 by the bus line 12 from the microprocessor 9 as described above. The signal line 13 instructs the microprocessor 9 to read out data in a countdown from the start address to the end address of the data buffer 8.
When output by, one packet of user data 14 is
The data is transferred from the data buffer 8 to the data compression / decompression circuit 2, and the forward data decompression operation is performed.

【0026】正方向でデータ復元されたデータは、デー
タ圧縮・復元回路2よりデータバッファ5にアドレスカ
ウントアップして格納される。
Data decompressed in the forward direction is stored in the data buffer 5 by the data compression / decompression circuit 2 with the address counted up.

【0027】1パケット分のユーザデータ104が全て
データ圧縮・復元回路2でデータ復元完了すると、エン
ド信号を信号線13によりデータバッファ5へ送出する
ことにより、データバッファ5はアドレスカウントをカ
ウントダウンに切り替える。続いて、データバッファ5
に格納された復元後の全てのユーザデータ104は、カ
ウントダウンでアドレスを更新することにより、データ
バッファ5からチャネルインターフェイス1を介してホ
スト側へ転送される。この時、ホストへ転送されるデー
タは、ホストから正方向で書き込んだ時と逆方向で転送
されており、逆方向読み出しが行なわれている。
When the data compression / decompression circuit 2 completes the data decompression of one packet of user data 104, an end signal is sent to the data buffer 5 by the signal line 13, whereby the data buffer 5 switches the address count to the countdown. . Then, the data buffer 5
All the restored user data 104 stored in (1) are transferred from the data buffer 5 to the host side via the channel interface 1 by updating the address by the countdown. At this time, the data transferred to the host is transferred in the reverse direction to that when the data was written in the normal direction from the host, and the reverse direction reading is performed.

【0028】次に、ホストより1データブロック内の2
パケット目のユーザ・データを逆方向で読み出す命令が
出た場合、すでにデータバッファ8内に1データブロッ
クのデータが全て格納されているため、磁気テープを動
作することなく、読み出すことが可能になる。すなわ
ち、前記の場合と同様に、マイクロプロセッサ9は、パ
ケットID103から2パケット目のパケットIDの始
端を検索し、2パケット目のユーザデータ104を前記
と同様に逆方向転送によってホスト側へ転送する。
Next, the host sends 2 in 1 data block.
When an instruction is issued to read the user data of the packet in the reverse direction, all the data of one data block has already been stored in the data buffer 8, so it is possible to read it without operating the magnetic tape. . That is, as in the case described above, the microprocessor 9 searches the packet ID 103 for the beginning of the packet ID of the second packet, and transfers the user data 104 of the second packet to the host side by the reverse transfer as in the above case. .

【0029】以上の説明から明らかなように、上記実施
例によれば、データ圧縮・復元回路が一方向のみの復元
動作可能な圧縮・復元方式であっても、ホストからの逆
方向読み出し命令を実現することが可能になる。
As is apparent from the above description, according to the above embodiment, even if the data compression / decompression circuit is a compression / decompression system capable of decompression operation in only one direction, a backward read command from the host is used. Can be realized.

【0030】また、複数パケットを1データブロックに
連結するデータ書き込み方式において、同一データブロ
ック内のパケットを続けて逆方向読み出しを行う場合、
前記データ復元方式と組み合わせることにより、磁気テ
ープを動作させることなく、データの復元と逆方向読み
出しが可能となる。したがって、ホストのオーバヘッド
が低減でき、逆方向読み出し時の処理時間の短縮を図る
ことができる。
Further, in the data writing method in which a plurality of packets are concatenated into one data block, when packets in the same data block are successively read in the reverse direction,
By combining with the data restoration method, data restoration and reverse reading can be performed without operating the magnetic tape. Therefore, the overhead of the host can be reduced, and the processing time at the time of reverse reading can be shortened.

【0031】なお、上記実施例においては、データ圧縮
・復元回路によってホストから送られたデータを圧縮し
て磁気テープに記録する場合について説明したが、本発
明はこれに限定されるものではなく、図2の基準データ
フォーマット100に示すように、データ圧縮されてい
ないデータを磁気テープに記録する場合についても適用
できる。
In the above embodiment, the case where the data sent from the host is compressed by the data compression / decompression circuit and recorded on the magnetic tape has been described, but the present invention is not limited to this. As shown in the reference data format 100 of FIG. 2, the present invention can also be applied to the case of recording uncompressed data on a magnetic tape.

【0032】また、上記実施例においては、図2の圧縮
後のデータフォーマット101に示すように、各パケッ
ト間にはギャップIBGが設けられていない例を示して
いるが、本発明はこれに限定されるものではなく、各パ
ケット間にギャップIBGを設けてもよい。この場合に
は、あらかじめ定められた数のパケットが磁気テープか
ら読み出され場会、磁気テープからの読み出しを停止
し、読み出しされパケット群を1データブロックとすれ
ばよい。
In the above embodiment, as shown in the data format 101 after compression shown in FIG. 2, an example in which no gap IBG is provided between packets is shown, but the present invention is not limited to this. However, a gap IBG may be provided between each packet. In this case, if a predetermined number of packets are read from the magnetic tape and the reading from the magnetic tape is stopped, the read packet group may be set as one data block.

【0033】[0033]

【発明の効果】本発明によれば、圧縮アルゴリズムに起
因して逆方向復元が不可能な場合においても、磁気テー
プ上に記憶された圧縮データを逆方向に読み出して、逆
方向の読み出しデータをホストに送信することを可能に
し、これによって従来のプログラムをそのまま使用可能
とし、さらに逆方向読み出し命令に対するホスト側の負
荷を低減する(OSによるエラーリカバリー不要)こと
が可能となり、逆方向読み出し時の処理時間を早めるこ
とができる。
According to the present invention, the compressed data stored on the magnetic tape is read in the reverse direction and the read data in the reverse direction is read even if the reverse direction cannot be restored due to the compression algorithm. It is possible to send the data to the host, and thus the conventional program can be used as it is, and further, the load on the host side for the backward read instruction can be reduced (no error recovery by the OS is required). The processing time can be shortened.

【0034】さらに、本発明によれば、非圧縮データか
らなる複数のパケットを1つのデータブロックとして記
録する場合、磁気テープ上に記憶された非圧縮データを
逆方向に読み出して、逆方向の読み出しデータをホスト
に送信することを可能にする磁気テープ装置のデータ再
生方法を提供することができる。
Furthermore, according to the present invention, when a plurality of packets of uncompressed data are recorded as one data block, the uncompressed data stored on the magnetic tape is read in the reverse direction and read in the reverse direction. It is possible to provide a data reproducing method of a magnetic tape device that enables data to be transmitted to a host.

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

【図1】本発明の磁気テープ装置の一実施例を示すブロ
ック図。
FIG. 1 is a block diagram showing an embodiment of a magnetic tape device of the present invention.

【図2】磁気テープ上に記録されるデータのデータフォ
ーマットの一例を示す図。
FIG. 2 is a diagram showing an example of a data format of data recorded on a magnetic tape.

【符号の説明】[Explanation of symbols]

1…チャネルインターフェイス、2…データ圧縮・復元
回路、3…データバッファインターフェイス、4…主デ
ータバッファ、5…データバッファ、6…ライトPID
レジスタ、7…リードPIDレジスタ、8…データバッ
ファ、9…マイクロプロセッサ、100…標準データフ
ォーマット、101…データ圧縮後データフォーマッ
ト、102…パケット、103…パケットID、104
…ユーザデータ、105…パケットトレーラ、106…
パケットのオフセット位置、107…1データブロッ
ク。
1 ... Channel interface, 2 ... Data compression / decompression circuit, 3 ... Data buffer interface, 4 ... Main data buffer, 5 ... Data buffer, 6 ... Write PID
Register, 7 ... Read PID register, 8 ... Data buffer, 9 ... Microprocessor, 100 ... Standard data format, 101 ... Data format after data compression, 102 ... Packet, 103 ... Packet ID, 104
... user data, 105 ... packet trailer, 106 ...
Offset position of packet, 107 ... 1 data block.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】データ圧縮・復元手段を備え、ホストから
転送された1グループのデータを圧縮して1パケットと
とし、複数のパケットを鎖状に連結して1データブロッ
クとし、1データブロック単位に磁気テープに記録し、
記録したデータを再生する際に、磁気テープから読み出
されたデータを復元してホストに転送する磁気テープ装
置において、 磁気テープを逆方向に走行させた状態において、磁気テ
ープから読み出されたデータの転送順序を逆転する第1
のステップと、 第1のステップにおいて転送順序が逆転されたデータを
復元する第2のステップと、 第2のステップにおいて復元されたデータの転送順序を
再度逆転してホストに転送する第3のステップとから構
成されることを特徴とする磁気テープ装置におけるデー
タ再生方法。
1. A data compression / decompression means is provided for compressing one group of data transferred from a host into one packet, and connecting a plurality of packets in a chain to form one data block, one data block unit. On a magnetic tape,
In a magnetic tape device that restores the data read from the magnetic tape and transfers it to the host when playing back the recorded data, the data read from the magnetic tape when the magnetic tape is running in the reverse direction. First to reverse the transfer order of
Step, the second step of restoring the data whose transfer order has been reversed in the first step, and the third step of reversing the transfer order of the data restored in the second step and transferring it to the host. And a data reproducing method in a magnetic tape device.
【請求項2】データ圧縮・復元手段を備え、ホストから
転送された1グループのデータを圧縮して1パケットと
とし、上記1パケットは少なくともテープ上の自分の位
置と上記データのパケット内における格納エリアを指示
する制御情報及びホストから転送されたデータを有して
構成され、複数のパケットを鎖状に連結して1データブ
ロックとし、1データブロック単位に磁気テープに記録
し、記録したデータを再生する際に、磁気テープから読
み出されたデータのうちの目的のパケット内のデータを
復元してホストに転送する磁気テープ装置において、 磁気テープを逆方向に走行させた状態において、磁気テ
ープから読み出されたデータを格納する第1のステップ
と、 第1のステップにおいて格納されたデータ内のパケット
の制御情報を読み出して目的のパケットか否かを判定す
る第2のステップと、 第2のステップにおいて目的のパケットであると判定さ
れた場合、上記制御情報からパケット内におけるデータ
の先頭位置と最終位置を知り、これに基づいて上記目的
のパケット内のデータを上記最終位置から先頭位置に向
かって逆方向に読み出して転送する第3のステップと、 第3のステップにおいて転送された上記目的のパケット
内のデータを復元する第4のステップと、 第4のステップにおいて復元された上記目的のパケット
内のデータを格納する第4のステップと、 第4のステップにおいて格納されたデータを逆方向に読
み出してホストに転送する第5のステップとから構成さ
れることを特徴とする磁気テープ装置におけるデータ再
生方法。
2. A data compression / decompression means is provided to compress one group of data transferred from the host into one packet, and the one packet stores at least its position on the tape and the data in the packet. It is configured to have control information indicating an area and data transferred from the host. A plurality of packets are concatenated in a chain to form one data block, which is recorded on a magnetic tape in units of one data block. When reproducing, in a magnetic tape device that restores the data in the target packet of the data read from the magnetic tape and transfers it to the host, when the magnetic tape is running in the reverse direction, The first step of storing the read data and the control information of the packet in the data stored in the first step The second step of deciding whether or not the packet is a target packet, and when it is determined to be the target packet in the second step, the start position and the final position of the data in the packet are known from the control information. A third step of reading the data in the target packet in the reverse direction from the final position to the start position based on this, and transferring the data; and the data in the target packet transferred in the third step. And a fourth step of storing the data in the packet of interest restored in the fourth step, and reading the data stored in the fourth step in the reverse direction to the host. A data reproducing method in a magnetic tape device, which comprises a fifth step of transferring.
【請求項3】ホストから転送された1グループのデータ
を1パケットととし、上記1パケットは少なくともテー
プ上の自分の位置と上記データのパケット内における格
納エリアを指示する制御情報及びホストから転送された
データを有して構成され、複数のパケットをギャップ領
域を有することなく鎖状に連結して1データブロックと
し、1データブロック単位に磁気テープに記録し、記録
したデータを再生する際に、磁気テープから読み出され
たデータのうちの目的のパケット内のデータをホストに
転送する磁気テープ装置において、 磁気テープを逆方向に走行させた状態において、磁気テ
ープから読み出されたデータを格納する第1のステップ
と、 第1のステップにおいて格納されたデータ内のパケット
の制御情報を読み出して目的のパケットか否かを判定す
る第2のステップと、 第2のステップにおいて目的のパケットであると判定さ
れた場合、上記制御情報からパケット内におけるデータ
の先頭位置と最終位置を知り、これに基づいて上記目的
のパケット内のデータを上記最終位置から先頭位置に向
かって逆方向に読み出して転送する第3のステップと、 第3のステップにおいて転送された上記目的のパケット
内のデータを格納する第4のステップと、 第4のステップにおいて格納されたデータを逆方向に読
み出してホストに転送する第5のステップとから構成さ
れることを特徴とする磁気テープ装置におけるデータ再
生方法。
3. One group of data transferred from the host is defined as one packet, and the one packet is transferred from the host and at least control information indicating a position on the tape and a storage area of the data in the packet. When a plurality of packets are connected in a chain without a gap area to form one data block and recorded on a magnetic tape in units of one data block, and the recorded data is reproduced, In a magnetic tape device that transfers the data in the target packet of the data read from the magnetic tape to the host, the data read from the magnetic tape is stored while the magnetic tape is running in the reverse direction. The first step and reading the control information of the packet in the data stored in the first step If it is determined that the packet is the target packet in the second step of determining whether the packet is a packet or not, the start position and the final position of the data in the packet are known from the control information, and based on this, A third step of reading and transferring the data in the target packet in the reverse direction from the final position to the head position, and a fourth step of storing the data in the target packet transferred in the third step. And a fifth step of reading the data stored in the fourth step in the reverse direction and transferring it to the host, the data reproducing method in the magnetic tape device.
JP16532891A 1991-07-05 1991-07-05 Data reproducing method in magnetic tape device Expired - Lifetime JP2923089B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16532891A JP2923089B2 (en) 1991-07-05 1991-07-05 Data reproducing method in magnetic tape device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16532891A JP2923089B2 (en) 1991-07-05 1991-07-05 Data reproducing method in magnetic tape device

Publications (2)

Publication Number Publication Date
JPH0511927A true JPH0511927A (en) 1993-01-22
JP2923089B2 JP2923089B2 (en) 1999-07-26

Family

ID=15810249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16532891A Expired - Lifetime JP2923089B2 (en) 1991-07-05 1991-07-05 Data reproducing method in magnetic tape device

Country Status (1)

Country Link
JP (1) JP2923089B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016105274A (en) * 2014-11-25 2016-06-09 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー Methods for restoring data, method for storing data and tape storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016105274A (en) * 2014-11-25 2016-06-09 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー Methods for restoring data, method for storing data and tape storage system

Also Published As

Publication number Publication date
JP2923089B2 (en) 1999-07-26

Similar Documents

Publication Publication Date Title
JP4157294B2 (en) File system that enables repair of defective files
JPH0828053B2 (en) Data recording method
JPH0815263B2 (en) Data compression / decompression method
JPH10289537A (en) Digital data recording method and digital data recording medium
JPH1091393A (en) Data buffering device
JPH04359315A (en) Data compression controller and data restoration controller
JP2923089B2 (en) Data reproducing method in magnetic tape device
KR100659915B1 (en) Method and apparatus for transferring data
US5612829A (en) Data recording control method of magnetic tape
JPS58121115A (en) Data compression controlling system
JP3282385B2 (en) Digital information recording method and recording apparatus
JP3448085B2 (en) Information recording / reproducing device
JPH0512800A (en) Information recording and reproducing device equipped with data compressing function and information recording medium
JP3017351B2 (en) Data writing method
JPH1198503A (en) Transfer and reproduction system of image data
JP3247776B2 (en) Information recording / reproducing device
JPH11212821A (en) Trace data gathering system
JP2544327B2 (en) Magnetic disk controller
JPH04242424A (en) Data compression controller and data restoration controller
JP3282552B2 (en) Digital information recording method and recording apparatus
JPH05204553A (en) Data processor
JPH04139665A (en) Data compression system for magnetic tape control device and magnetic tape control device
JPH1127611A (en) Image data recording and reproducing device and image data recording method
JPH0478218B2 (en)
JPH04248613A (en) Magnetic tape controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080430

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090430

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090430

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100430

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110430

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120430

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120430

Year of fee payment: 13