JPH054693B2 - - Google Patents

Info

Publication number
JPH054693B2
JPH054693B2 JP60236903A JP23690385A JPH054693B2 JP H054693 B2 JPH054693 B2 JP H054693B2 JP 60236903 A JP60236903 A JP 60236903A JP 23690385 A JP23690385 A JP 23690385A JP H054693 B2 JPH054693 B2 JP H054693B2
Authority
JP
Japan
Prior art keywords
buffer
magnetic tape
data
block
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60236903A
Other languages
Japanese (ja)
Other versions
JPS6297020A (en
Inventor
Masaki Fujiki
Noboru Oowa
Yoshio Ooshima
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 JP60236903A priority Critical patent/JPS6297020A/en
Publication of JPS6297020A publication Critical patent/JPS6297020A/en
Publication of JPH054693B2 publication Critical patent/JPH054693B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Digital Magnetic Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔概要〕 リール対リール駆動式磁気テープの数ブロツク
分データを蓄積するデータバツフアを具備する制
御装置に係り、上位装置から例えば、リード/ス
ペース命令があつた時、実際には磁気テープを駆
動することなく所要とするデータの転送処理をお
こなう制御方法が示される。
[Detailed Description of the Invention] [Summary] This control device is equipped with a data buffer that stores data for several blocks of a reel-to-reel driven magnetic tape. A control method is shown in which the required data transfer processing is performed without driving the magnetic tape.

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

本発明は磁気テープ制御装置に係り、上位装置
から発せられる単発コマンド群に対する応答処理
時間を合理的に短縮する磁気テープ制御方法に関
する。
The present invention relates to a magnetic tape control device, and more particularly to a magnetic tape control method for rationally shortening response processing time to a group of single commands issued from a host device.

〔従来の技術〕[Conventional technology]

係る磁気テープ制御装置は上位装置の命令に対
して磁気テープ装置を動作させているため、フオ
ワード系、バツクワード系各命令が混在して発行
された場合、対応してテープを前進、後退させて
いるため、ストリーミング磁気テープ装置のよう
にアクセス時間が長くかつまたスタートストツプ
特性に依存してテープがオーバランする。これに
ともない所定のIBG(Inter Block Gap)内に停
止出来ずテープのリポジシヨン動作を行うことと
なりプログラム処理の時間的効率が低下する。
Since such a magnetic tape control device operates the magnetic tape device in response to commands from a host device, if a mixture of forward and backward commands is issued, the tape is moved forward or backward accordingly. Therefore, unlike a streaming magnetic tape device, the access time is long and the tape may overrun depending on the start-stop characteristics. As a result, the tape cannot be stopped within a predetermined IBG (Inter Block Gap) and a tape repositioning operation is performed, reducing the time efficiency of program processing.

これを改善するため磁気テープ制御装置にデー
タバツフアを設けて、データ書込み時は予め上位
装置からデータを逐次的に入力しておき該バツフ
アを介して前記の入力データを磁気テープ装置に
転送するとか、あるいはデータリード時は予めバ
ツフアに必要とするデータを書込んだ後上位装置
に高速で送り込むことが行われている。
In order to improve this, a data buffer may be provided in the magnetic tape control device, and data may be sequentially input from the host device in advance during data writing, and the input data may be transferred to the magnetic tape device via the buffer. Alternatively, when reading data, necessary data is written into a buffer in advance and then sent to the host device at high speed.

本発明は特に、種々のフアイル形式を採用する
磁気テープに対して、該テープのフアイルオープ
ンなどに係る最低限情報を、同一のコマンド列で
処理するやうな場合におけるデータ処理の効率化
を意図するものである。
The present invention is particularly intended to improve the efficiency of data processing when the same command sequence is used to process the minimum information related to file opening of magnetic tapes employing various file formats. It is something.

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

第4図はあるフアイルのオープンに係るプログ
ラム処理ブロツクの一配置例である。
FIG. 4 shows an example of the arrangement of program processing blocks related to opening a certain file.

磁気テープ30にはBOTに続いて、逐次的に
ボリユームラベルブロツク31(Vo1)、複数の
ヘツダブロツク32(HD1)〜34(HD3)、及
びテープマークブロツク35(FM)などが順次
書き込まれている。
Following BOT, a volume label block 31 (Vo1), a plurality of header blocks 32 (HD1) to 34 (HD3), and a tape mark block 35 (FM) are sequentially written on the magnetic tape 30.

このような定フオーマツトに従つて記録された
磁気テープを下記の如きコマンド列で処理するよ
うなフアイルオープンに際しては、同一のブロツ
ク位置を数回アクセスする処理が必要とされる。
When opening a magnetic tape recorded according to such a fixed format using the following command sequence, it is necessary to access the same block position several times.

リード命令(Vo1)→リード命令(HD1)→
バツクスペース命令(HD1)→バツクスペー
ス命令(Vo1)→リード命令(Vo1)→ライト
命令(新しいHD1) 即ち、上位装置からの単発的リードあるいはラ
イト命令が出る場合は、同一のブロツク位置を数
回反復してアクセスすることが多いため、データ
処理の効率化を図ることが必須の要件となる。
Read command (Vo1) → Read command (HD1) →
Backspace command (HD1) → Backspace command (Vo1) → Read command (Vo1) → Write command (new HD1) In other words, when a single read or write command is issued from the host device, the same block position is read several times. Since data is often accessed repeatedly, it is essential to improve the efficiency of data processing.

〔問題点を解決するための手段〕 本発明の目的は、先取りによつて得られたデー
タバツフア内部のデータを有効に用いることによ
つて、上位装置からのリード命令などのコマンド
に対するコントローラから磁気テープ装置へのコ
マンド送信の必要性を独自に判断して、コントロ
ーラからの上位装置へのコマンド処理時間を短縮
することである。
[Means for Solving the Problems] An object of the present invention is to effectively use the data inside the data buffer obtained by prefetching, so that the magnetic tape can be read from the controller in response to commands such as read commands from the host device. The objective is to independently determine the necessity of sending commands to devices and shorten the time required to process commands from a controller to a host device.

この目的を達成するに当たり、複数ブロツク分
のデータを蓄積するデータバツフアを備え、ブロ
ツク先読み制御機能を備えた磁気テープ制御装置
において、 或る時点の上位装置19の命令に対応するブロ
ツク位置を示す論理ブロツクポインタレジスタ
1、前記時点における磁気テープの位置付けされ
ている物理ブロツクポインタレジスタ3、前記デ
ータバツフア12の有効性を示すバツフアバリツ
ドフオワードカウンタ6とバツフアバリツドバツ
クワードカウンタ7を設け、 前記カウンタ6,7の値により前記上位装置1
9から磁気テープ制御のバツクスペースブロツク
或いはペースブロツクの命令21、リード或いは
リードバツクワード命令20のバースト転送命令
を受信した時、 前記論理ブロツクポインタレジスタ1の値を変
更せしめて磁気テープ装置18を駆動することな
くコントロール命令の完了を通知することを特徴
とする磁気テープ制御方法とする。
To achieve this purpose, in a magnetic tape control device that is equipped with a data buffer that stores data for multiple blocks and is equipped with a block read-ahead control function, a logical block that indicates the block position corresponding to a command from the host device 19 at a certain point in time is used. A pointer register 1, a physical block pointer register 3 in which the magnetic tape is positioned at the time, a buffer avalid forward counter 6 and a buffer avalid back word counter 7 indicating the validity of the data buffer 12 are provided; According to the values 6 and 7, the host device 1
When a magnetic tape control backspace block or pace block instruction 21 or a burst transfer instruction such as a read or read backword instruction 20 is received from 9, the value of the logical block pointer register 1 is changed to drive the magnetic tape device 18. This magnetic tape control method is characterized in that the completion of a control command is notified without the need for a control command to be completed.

〔作用〕[Effect]

制御装置16のバツフア12に蓄えられている
先取りデータを有効に利用し、上位装置からリー
ドあるいはリードバツクワード命令20が発せら
れた時、バツフア12内データを上位装置に転
送、あるいはバツフアのブロツクポインタを移動
することによつて実際には磁気テープ装置駆動を
しないでコマンドの完了を上位装置に報告するよ
うにしたものである。
The prefetch data stored in the buffer 12 of the control device 16 is effectively used, and when a read or read back word command 20 is issued from the host device, the data in the buffer 12 is transferred to the host device or the block pointer of the buffer is used. By moving the , command completion is reported to the host device without actually driving the magnetic tape device.

バツフアバリツドカウンタ5はフオワード方向
コマンドで実動作しなくてもよいブロツク数を示
すバツフアバリツドフオワードカウンタ6
(VFC)、バツクワード方向コマンドで実動作し
なくてもよいブロツク数を示すバツフアバリツド
バツクワードカウンタ7(VBC)を具備する。
そして前記カウンタ6または7の値がゼロの時、
実際に磁気テープを移動しなくてはならないと認
識せしめる。
A buffer valid counter 5 is a buffer valid counter 6 which indicates the number of blocks that do not need to be actually operated in the forward direction command.
(VFC) and a buffer reverse word counter 7 (VBC) which indicates the number of blocks that do not need to be actually operated in response to a backward direction command.
And when the value of the counter 6 or 7 is zero,
Make the user realize that the magnetic tape must actually be moved.

〔実施例〕〔Example〕

第1図は本発明による磁気テープ制御実施例と
するシステムブロツク図である。
FIG. 1 is a system block diagram of an embodiment of magnetic tape control according to the present invention.

第2図はバツフア内四分割のデータ格納になる
状態図、及び第3図はポインタレジスタ及びカウ
ンタのポインタ制御ビツトの配置図である。
FIG. 2 is a state diagram for storing data in four divisions in the buffer, and FIG. 3 is a diagram showing the arrangement of pointer control bits of a pointer register and a counter.

システムブロツク図において、制御装置16内
の論理ブロツクポインタ(BP)レジスタ1は該
制御装置が次に上位装置19へ送るべきブロツク
のバツフアアドレスに対応したビツトを“1”と
して示すものであり、物理ブロツクポインタ
(HP)レジスタ3は該制御装置が次にバツフア
12に送るべきアドレスに対応したビツトを
“1”として示すバツフア分割分のビツト数を示
すシフトレジスタで、フオワード方向を右シフ
ト、バツクワード方向を左シフトと定義する。
In the system block diagram, a logical block pointer (BP) register 1 in the control device 16 indicates the bit corresponding to the buffer address of the block to be sent next by the control device to the host device 19 as “1”. The physical block pointer (HP) register 3 is a shift register that indicates the number of bits corresponding to the address to be sent next by the control device to the buffer 12 as "1", and indicates the number of bits for dividing the buffer. Define the direction as left shift.

制御装置16は磁気テープ装置18より単ブロ
ツク分のデータを読み取つてバツフア12に書き
込むたびに、HPレジスタ3の“1”を右にシフ
トして単ブロツク分のデータを上位装置19へ転
送するたびにBPレジスタ1の“1”を右にシフ
トする。
Each time the control device 16 reads a single block of data from the magnetic tape device 18 and writes it to the buffer 12, it shifts "1" in the HP register 3 to the right and transfers a single block of data to the host device 19. Shift “1” in BP register 1 to the right.

HPレジスタ3とBPレジスタ1のビツト位置が
一致したときは上位装置19への転送データが未
だバツフア12内に取り込まれていないことをし
めし、1ビツト以上HPレジスタ3が右にシフト
するまで上位装置へのデータ転送を待たせる。
When the bit positions of HP register 3 and BP register 1 match, it indicates that the data transferred to the host device 19 has not yet been taken into the buffer 12, and the data transferred to the host device 19 is transferred to the host device until the HP register 3 is shifted to the right by one bit or more. Make data transfer to wait.

本実施例では先読み動作中にテープ制御用ブロ
ツク例えばBOT(Biginnig Of Tape)または
EOT(End Of Tape)あるいはエンドオブデー
タブロツク、テープマークブロツクが検出された
時は先読み動作を中止するものである。
In this embodiment, a tape control block such as BOT (Biginnig Of Tape) or
When an EOT (End Of Tape), end of data block, or tape mark block is detected, the preread operation is stopped.

第3図は前記フアイルオープンに係るプログラ
ム処理に係るHPレジスタ、BPレジスタ、及び
VFCカウンタ6、VBCカウンタ7内におけるポ
インタ制御ビツトがシフト動作するそれぞれの状
態を示す図である。
Figure 3 shows the HP register, BP register, and
7 is a diagram showing the states in which the pointer control bits in the VFC counter 6 and the VBC counter 7 are shifted. FIG.

図中、イは初期状態、ロはヘツダブロツク32
(HD1)までバツフアに磁気テープ装置18のデ
ータ書込みがされ、かつボリユームラベルブロツ
ク31(Vo1)が上位装置12に転送された状
態、及びハは前記ロ図状態において、上位装置1
2からバツクスペースコマンドを受信したとき、
BPレジスタを左にシフトせしめて磁気テープ装
置の駆動はされない状態をそれぞれ示している。
In the figure, A is the initial state and B is the header block 32.
(HD1), the data of the magnetic tape device 18 has been written to the buffer, and the volume label block 31 (Vo1) has been transferred to the host device 12.
When receiving a backspace command from 2,
Each figure shows a state in which the BP register is shifted to the left and the magnetic tape device is not driven.

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

以上説明したように本発明磁気テープ制御方法
によれば、有効な先取りデータが存在するかぎり
磁気テープ装置を駆動することなしに、上位装置
からのフオワード系並びにバツクワード系の命令
に応答することが出来るのでコマンドの応答時間
を顕著に短縮することができる。
As explained above, according to the magnetic tape control method of the present invention, as long as valid prefetch data exists, it is possible to respond to forward and backward commands from the host device without driving the magnetic tape device. Therefore, command response time can be significantly shortened.

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

第1図は本発明のテープ制御実施例とするシス
テムブロツク図、第2図は四分割されたバツフア
を示す。第3図はポインタレジスタ及びカウンタ
の制御ビツト配置図、第4図はフアイルオープン
に係るルーチンブロツク配置図である。 図中、1は論理ブロツクポインタレジスタ、3
は物理ブロツクポインタレジスタ、6と7はバツ
フアバリツドカウンタ、16は本発明に係る磁気
テープ制御装置、18は磁気テープ装置、19は
上位装置、20はリードあるいはリードバツクワ
ード命令、及び、21はスペースブロツク命令あ
るいはバツクスペースブロツク命令である。
FIG. 1 is a system block diagram of a tape control embodiment of the present invention, and FIG. 2 shows a buffer divided into four parts. FIG. 3 is a layout diagram of the control bits of the pointer register and counter, and FIG. 4 is a layout diagram of routine blocks related to file opening. In the figure, 1 is the logical block pointer register, 3
1 is a physical block pointer register, 6 and 7 are buffer abutment counters, 16 is a magnetic tape control device according to the present invention, 18 is a magnetic tape device, 19 is a host device, 20 is a read or read back word instruction, and 21 is a space block instruction or a backspace block instruction.

Claims (1)

【特許請求の範囲】 1 複数ブロツク分のデータを蓄積するデータバ
ツフアを備え、ブロツク先読み制御機能を備えた
磁気テープ制御装置において、 ある時点の上位装置19の命令に対応するブロ
ツク位置を示す論理ブロツクポインタレジスタ
1、前記時点における磁気テープの位置付けされ
ている物理ブロツクポインタレジスタ3、前記デ
ータバツフア12の有効性を示すバツフアバリツ
ドフオワードカウンタ6とバツフアバリツドバツ
クワードカウンタ7を設け、 前記カウンタ6,7の値により前記上位装置1
9から磁気テープ制御のバツクスペースブロツク
或いはペースブロツクの命令21、リード或いは
リードバツクワード命令20のバースト転送命令
を受信した時、 前記論理ブロツクポインタレジスタ1の値を変
更せしめて磁気テープ装置18を駆動することな
くコントロール命令の完了を通知することを特徴
とする磁気テープ制御方法。 2 前記バースト転送命令を受信した時、前記バ
ツフアバリツドフオワードカウンタ6とバツフア
バリツドバツクワードカウンタ7の値を参照して
前記バツフア12内のデータが有効であれば前記
論理ブロツクポインタレジスタ1を変更してテー
プからのデータを読み取らずに前記バツフア12
内データを転送して前記命令が完了したことを通
知することを特徴とする前記特許請求の範囲第1
項記載の磁気テープ制御方法。
[Scope of Claims] 1. In a magnetic tape control device equipped with a data buffer for accumulating data for a plurality of blocks and equipped with a block prefetch control function, a logical block pointer indicating a block position corresponding to a command from a host device 19 at a certain point in time. A register 1, a physical block pointer register 3 in which the magnetic tape is positioned at the time, a buffer valid backward counter 6 indicating the validity of the data buffer 12, and a buffer valid backward counter 7 are provided; , 7, the host device 1
When a magnetic tape control backspace block or pace block instruction 21 or a burst transfer instruction such as a read or read backword instruction 20 is received from 9, the value of the logical block pointer register 1 is changed to drive the magnetic tape device 18. A magnetic tape control method characterized in that the completion of a control command is notified without the need for a control command to be completed. 2. When receiving the burst transfer command, refer to the values of the buffer avalid forward counter 6 and the buffer avalid back word counter 7, and if the data in the buffer 12 is valid, the logical block pointer register is 1 to the buffer 12 without reading data from the tape.
Claim 1 is characterized in that it notifies that the instruction has been completed by transferring data within the scope of the invention.
Magnetic tape control method described in Section 1.
JP60236903A 1985-10-23 1985-10-23 Control method for magnetic tape Granted JPS6297020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60236903A JPS6297020A (en) 1985-10-23 1985-10-23 Control method for magnetic tape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60236903A JPS6297020A (en) 1985-10-23 1985-10-23 Control method for magnetic tape

Publications (2)

Publication Number Publication Date
JPS6297020A JPS6297020A (en) 1987-05-06
JPH054693B2 true JPH054693B2 (en) 1993-01-20

Family

ID=17007460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60236903A Granted JPS6297020A (en) 1985-10-23 1985-10-23 Control method for magnetic tape

Country Status (1)

Country Link
JP (1) JPS6297020A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0550761B1 (en) * 1991-07-22 2000-02-16 Fujitsu Limited Method for controlling data recording on magnetic tape
EP0570632A1 (en) * 1992-05-21 1993-11-24 The Dow Chemical Company Mass polymerized styrene polymer composites reinforced with a mixture of fibrous and spherical particles
JPH1166730A (en) * 1997-08-18 1999-03-09 Fujitsu Ltd Control method for magnetic tape device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5133608A (en) * 1974-09-17 1976-03-22 Hitachi Ltd

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5133608A (en) * 1974-09-17 1976-03-22 Hitachi Ltd

Also Published As

Publication number Publication date
JPS6297020A (en) 1987-05-06

Similar Documents

Publication Publication Date Title
JPH0378649B2 (en)
WO1995006284B1 (en) Ata interface architecture employing state machines
US4584617A (en) Method and apparatus for improving the transfer time in rotating data storage systems
JPH054693B2 (en)
JPS6232494B2 (en)
JPS5833571B2 (en) You can do it yourself.
JP2000235456A (en) Magnetic disk device and its disk access method
JPH02240867A (en) Data recording and reproducing device
EP0080878A2 (en) Cache memory and method of control for use with magnetic disks
JP2655119B2 (en) Magnetic disk drive controller
US4647991A (en) Disk channel controller
JP3392159B2 (en) Track emulation method and external storage subsystem
JP3593608B2 (en) Magnetic disk drive and record reading method
JP2834081B2 (en) Magnetic disk controller
JP3147575B2 (en) Data writing device and data block writing method
JP2789772B2 (en) Magnetic disk reformatting method
JPS59221810A (en) Alternate sector device in magnetic storage device
JPS6095762A (en) Magnetic disc controller
JPS63306567A (en) Rotary type storage device
JPS5916066A (en) Data transfer system
JPH0521367U (en) Magnetic tape controller
JPH06103510A (en) Method for processing data of recording and reproducing device
JPS6247735A (en) Controller for external memory device
JPH064221A (en) Buffer control circuit and rotary storage device
JPS63124124A (en) Method for reading out data from disk device