JPS62214575A - Data updating control system - Google Patents

Data updating control system

Info

Publication number
JPS62214575A
JPS62214575A JP61057317A JP5731786A JPS62214575A JP S62214575 A JPS62214575 A JP S62214575A JP 61057317 A JP61057317 A JP 61057317A JP 5731786 A JP5731786 A JP 5731786A JP S62214575 A JPS62214575 A JP S62214575A
Authority
JP
Japan
Prior art keywords
data
recording
area
file
tape
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
JP61057317A
Other languages
Japanese (ja)
Inventor
Akihiro Hayakawa
早川 顕宏
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 JP61057317A priority Critical patent/JPS62214575A/en
Publication of JPS62214575A publication Critical patent/JPS62214575A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent destruction of succeeding data by detecting the data recorded in excess of a designated area or obtaining the result from the calculation so as to instruct the forced stop of data recording processing. CONSTITUTION:When a remaining area (f) exists with respect to a recording area size (d) after the end of data write, the area (f) is erased and the end of a tape mark TMB is positioned. When the data write is about to exceed the size (d), that is, when the instructed tape length or over is being run, and it is detected by a tape medium running distance measuring section 90 in a prescribed magnetic tape device MTU 40(i), it is informed immediately to magnetic tape controllers 30a, 30b. A designated recording area excess notice section 70 in the controllers 30a, 30b stops the write to the MTU 40(i) via a recording data processing section 60. Thus, the data destruction of the next file is prevented.

Description

【発明の詳細な説明】 〔概要〕 データ記録サブシステムにおけるデータ更新制御方式で
あって、記録媒体の長手順方向にデータを記録し、その
データの部分更新をする場合は、テープボリューム全体
に亙るデータ更新、或いは任意のデータ位置以降の全面
的なデータ更新で対応していたのに対して、データ記録
領域サイズを指定・確保し、この指定サイズと更新処理
サイズとを管理することにより、部分的なデータ更新が
可能となると共にデータ更新処理時間が大幅に短縮可能
となる。
[Detailed Description of the Invention] [Summary] This is a data update control method in a data recording subsystem, in which data is recorded in the longitudinal direction of a recording medium, and when partially updating that data, the data is updated over the entire tape volume. Previously, this was handled by updating the data or updating the entire data starting from an arbitrary data position, but by specifying and securing the data recording area size and managing this specified size and the update processing size, partial updates can be performed. This allows data to be updated in a timely manner, and the data update processing time can be significantly shortened.

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

本発明は、マルチファイルボリューム又はシングルファ
イルボリュームにてデータ処理を行うデータ記録サブシ
ステムに係り、特に部分的なデータ更新処理を行う場合
のデータ更新制御方式に関する。
The present invention relates to a data recording subsystem that performs data processing on a multi-file volume or a single file volume, and particularly to a data update control method when performing partial data update processing.

近年、DASD (直接アクセス記憶装置の略称で、例
えば磁気ディスク装置に相当する)の記憶スペースの有
効利用の一環として、使用頻度の低いファイルデータを
磁気テープに一旦退避記録して置き、そのデータを必要
に応じて再びDASD上に展開する処理(マグレーショ
ン/リコール)が広く使用されるようになって来た。
In recent years, as part of efforts to effectively utilize the storage space of DASD (an abbreviation for direct access storage device, equivalent to, for example, a magnetic disk device), infrequently used file data is temporarily saved and recorded on magnetic tape, and the data can be used when needed. In response to this, processing to develop data on DASD (migration/recall) has come to be widely used again.

この場合、ファイル単位の部分更新が頻繁に必要となる
が、かかる部分更新が効率的に処理出来る方式の開発が
待たれている。
In this case, partial updates on a file-by-file basis are frequently required, and the development of a method that can efficiently process such partial updates is awaited.

〔従来の技術〕[Conventional technology]

第5図は従来例を説明するブロック図、第6図は磁気テ
ープ上のファイル領域を説明する図をそれぞれ示す。
FIG. 5 is a block diagram illustrating a conventional example, and FIG. 6 is a diagram illustrating a file area on a magnetic tape.

第5図に示すブロック図は磁気テープサブシステム2の
システム概要を示し、その構成は、磁気テープサブシス
テム2を制御するホストシステム1と、 ホストシステ1からの命令に応じてデータの書込み/読
取り及びデータ更新処理等を行う磁気テープサブシステ
ム2とから構成されている。
The block diagram shown in FIG. 5 shows the system outline of the magnetic tape subsystem 2, and its configuration consists of a host system 1 that controls the magnetic tape subsystem 2, and a host system 1 that writes/reads data in accordance with commands from the host system 1. and a magnetic tape subsystem 2 that performs data update processing and the like.

又、磁気テープサブシステム2はホストシステム1から
命令を受けて磁気テープ装置(以下MTUと称する)4
(0)〜4(n)に対してデータの書込み/読取り及び
データ更新処理等を指示すると共に、その動作制御を行
う磁気テープ制御装置(以下MTCと称する) 3a、
3bと、 MTC3a、3bの指示のもとに磁気テープ媒体5 (
第6図中に図示している)上のデータブロックDB上に
、対応するデータの書込み/読取り及びデータ更新処理
動作を行うMTU 4(0)〜4(n)とか構成されて
いる。
Further, the magnetic tape subsystem 2 receives a command from the host system 1 to operate a magnetic tape unit (hereinafter referred to as MTU) 4.
A magnetic tape control device (hereinafter referred to as MTC) 3a, which instructs (0) to 4(n) to write/read data, data update processing, etc., and controls the operations thereof;
3b, and the magnetic tape medium 5 (
On the data block DB (shown in FIG. 6), MTUs 4(0) to 4(n) that perform corresponding data write/read and data update processing operations are configured.

本例の磁気テープサブシステム2における磁気テープ媒
体5は第6図に示すように構成している。
The magnetic tape medium 5 in the magnetic tape subsystem 2 of this example is constructed as shown in FIG.

即ち、テープ媒体5の先端側にはファイルの開始位置を
示すBOF  (Beginig of File)が
あり、その両端にはテープマーク律が記録されている。
That is, there is a BOF (Beginning of File) at the leading end of the tape medium 5 that indicates the starting position of the file, and tape mark rules are recorded at both ends of the BOF.

次の領域がファイルデータ領域(b)で、これはデータ
を記録する複数のデータブロックDBからなっている。
The next area is the file data area (b), which consists of a plurality of data blocks DB for recording data.

又、次の領域(テープ媒体5の終端側)はテープマーク
TMに挟まれたn0F(End of File)があ
る。
Further, in the next area (the end side of the tape medium 5), there is n0F (End of File) sandwiched between tape marks TM.

上記のBOF(Beginig of File)の先
端のテープマーク鮒からEOF (End of Fi
le)の終端のテープマークTMまでが1つのファイル
領域(alを構成しており、この複数のファイル領域(
a)が1つのテープボリューム(媒体5)に記録される
のをマルチファイルボリュームと呼ぶ。
From the tape mark at the tip of the BOF (Beginning of File) above to the EOF (End of File)
le) up to the tape mark TM at the end constitutes one file area (al), and these multiple file areas (
When a) is recorded on one tape volume (medium 5), it is called a multi-file volume.

尚、BOP(Beginig of File)及びE
OF(End of File)の領域(C1,(Cビ
には、当該ファイルに関する管理情報、制御情報が記録
される。
In addition, BOP (Beginning of File) and E
In the OF (End of File) areas (C1, (CBI), management information and control information regarding the file are recorded.

上記のように、本例の磁気テープサブシステム2でのデ
ータ記録は、磁気テープ媒体5の長手方向にデータを記
録する方式を採用しており、ホストシステム1からの命
令により、MTC3a又はMTC3bは所定MTU4 
(i)に対してデータの書込み/読取り処理動作の制御
を行う。
As mentioned above, data recording in the magnetic tape subsystem 2 of this example employs a method of recording data in the longitudinal direction of the magnetic tape medium 5, and the MTC 3a or MTC 3b is Predetermined MTU4
Controls data write/read processing operations for (i).

又、書込まれたデータの更新も上記と同様にMTC3a
又は)ITC3bの指示に基づき所定MTU4 (i)
が指定されたテープボリュームに対するデータ更新を行
う。
Also, the written data can be updated using MTC3a in the same way as above.
or) specified MTU4 based on instructions from ITC3b (i)
Updates data on the specified tape volume.

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

しかし、従来のMTU4(0) 〜4(n)では、■テ
ープボリューム全体に亙るデータの更新、■又は任意の
データ位置以降の全面的なデータの更新は、更新したテ
ープ位置以降に記録されている旧データが破壊される可
能性があるため許していない。
However, with conventional MTU4(0) to 4(n), ■Updating data over the entire tape volume, or ■Updating entire data starting from an arbitrary data position, cannot be recorded after the updated tape position. This is not allowed because the old data that is currently in use may be destroyed.

従って、第5図に示すような従来の磁気テープサブシス
テム2では、テープボリューム当たりの効率的なデータ
記憶容量を増すために使われるマルチファイルボリュー
ムの途中のファイル領域(alのデータを更新する場合
、そのファイル領域(al以降に記録している他のファ
イル領域(a)のデータも全て書面していた。
Therefore, in the conventional magnetic tape subsystem 2 as shown in FIG. , all data in other file areas (a) recorded after that file area (al) were also written down.

即ち、ファイル領域(aJのデータ更新時には、当該M
TU4(i)の他にもう1台のMTUを用意し、当該M
TU4(i)には元ボリュームテープをマウントし、も
う一台のMTUにはそのコピー用のボリュームテープを
マウントし、先端から同一データ部分はコピーをし、デ
ータを更新したい部分だけコピー用ボリュームテープに
更新データを書込むと言う処理を行っている。
In other words, when updating data in the file area (aJ, the M
Prepare another MTU in addition to TU4(i), and
Mount the original volume tape on TU4(i), mount the copy volume tape on the other MTU, copy the same data part from the beginning, and use the copy volume tape only for the part where you want to update the data. The process is to write update data to.

このため、前項で説明したDASDに使用されるMTU
の場合は頻繁なコピー処理によるデータ更新を行うこと
により、処理時間の増大及び2台のMTUを用意する等
の余分な資源が必要であった。
For this reason, the MTU used in the DASD explained in the previous section
In this case, data is updated through frequent copy processing, which increases processing time and requires extra resources such as preparing two MTUs.

又、この処理時間を最少化するためにシングルファイル
ボリューム(1ボリユーム1フアイル)にした取扱いを
採用した場合、データ媒体5のボリューム数が一層増大
する等の問題点があった。
Furthermore, if a single file volume (one volume and one file) is adopted in order to minimize this processing time, there is a problem that the number of volumes of the data medium 5 will further increase.

C問題点を解決するための手段〕 第1図は本発明の詳細な説明するブロック図を示す。Measures to solve problem C] FIG. 1 shows a block diagram illustrating the invention in detail.

第1図の原理ブロック図は、 データ記憶サブシステム20に対して確保すべき記録領
域サイズを通知する記録領域サイズ通知手段50を備え
たホストシステム10と、ホストシステム10から送出
される通知/命令に基づき、ホストシステム10から転
送されて来るデータを記録するデータ記録サブシステム
2oとがら構成されている。
The principle block diagram of FIG. 1 shows a host system 10 equipped with a recording area size notification means 50 that notifies the data storage subsystem 20 of the recording area size to be secured, and a notification/command sent from the host system 10. Based on the above, the system includes a data recording subsystem 2o that records data transferred from the host system 10.

又、データ記録サブシステム20は、ホストシステム1
0内データ処理部11からの指示により転送されて来た
記録データをデータ記録装置4oに送出すると共に、指
定記録領域長超過通知手段7oがらの信号により、デー
タ更新処理の強制打ち切りを指示する記録データ処理部
60と、 データ記録装置40内テープ媒体走行距離測定手段90
からの検出信号により記録データ処理部6oに対して記
録処理強制打ち切り指示信号を通知する指定記録領域長
超過通知手段70と、 予め記録領域サイズ通知手段50で指示された記憶量サ
イズ(データブロックのデータ量(バイト数)xnデー
タブロック数)を、これらのデータ容量を記録するため
の充分な記録媒体長を算出し、又この長さをデータ記録
装置40に通知する記録領域演算制御手段80等を具備
して構成されている。
Further, the data recording subsystem 20 is connected to the host system 1.
A record that sends the recorded data transferred in response to an instruction from the 0-internal data processing unit 11 to the data recording device 4o, and at the same time instructs forcible termination of the data update process by a signal from the specified recording area length excess notification means 7o. Data processing section 60 and tape medium running distance measuring means 90 in data recording device 40
A specified recording area length excess notification means 70 notifies the recording data processing unit 6o of a recording processing forced termination instruction signal based on a detection signal from the recording area size notification means 50; A recording area calculation control means 80 etc. that calculates a sufficient length of a recording medium to record the amount of data (number of bytes x n number of data blocks) and notifies the data recording device 40 of this length. It is configured with the following.

又、データ記録装置40は、テープ走行及び内部の各種
動作を制御するテープ走行制御部41と、記録処理する
データへの変換、及び読取ったデータを復調すると共に
これらの処理動作を実行させる記録・再生部42と、 記録領域演算制御手段80から指示された長さ以上の長
手順方向(テープ始端から終端への方向)へのテープ走
行長を監視するテープ媒体走行距離測定手段90とを具
備して構成されている。
The data recording device 40 also includes a tape running control unit 41 that controls tape running and various internal operations, and a recording unit that converts data to be recorded, demodulates read data, and executes these processing operations. It is equipped with a playback section 42 and a tape medium running distance measuring means 90 for monitoring the tape running length in the longitudinal direction (direction from the tape start end to the tape end end) which is equal to or longer than the length instructed by the recording area calculation control means 80. It is composed of

〔作用〕[Effect]

ホストシステム内データ処理部からの指示により記録デ
ータ処理部を経由して記録・再生部でデータの記録処理
を行う。この時、予め記録領域サイズ通知手段(記録領
域サイズ通知部)で指示された記憶量サイズ(データブ
ロックのデータ量(バイト数)xnデータブロック数)
を、これらのデータ容量を記録するための必要十分な記
録媒体長を記録領域演算制御手段(記録領域演算制御部
)で算出する。
The recording/reproducing section performs data recording processing via the recording data processing section according to instructions from the data processing section within the host system. At this time, the storage amount size (data amount (number of bytes) of data block x n number of data blocks) specified in advance by the recording area size notification means (recording area size notification unit)
A recording area calculation control means (recording area calculation control unit) calculates a recording medium length necessary and sufficient for recording these data capacities.

又、記録領域演算制御手段(記録領域演算制御部)はこ
の長さをデータ記録装置内テープ走行制御部に通知する
Further, the recording area calculation control means (recording area calculation control section) notifies this length to the tape running control section in the data recording apparatus.

テープ走行制御部は記録領域演算制御手段(記録領域演
算制御部)から指示された長さ以上の、テープ始端から
終端への長手順方向へのテープ走行長をテープ媒体走行
距離測定手段(テープ媒体走行距離測定部)で監視させ
る。
The tape running control unit measures the tape running length in the longitudinal direction from the tape start end to the tape end, which is longer than the length instructed by the recording area calculation control unit (recording area calculation control unit), using the tape medium running distance measuring unit (tape medium running distance measurement unit). The vehicle is monitored by the mileage measuring section).

この後、指定された領域(指示されたテープ走行長)を
超過してデータが記録(更新)されたことをテープ媒体
走行距離測定手段(テープ媒体走行距離測定部)が検出
するか、記録領域演算制御手段(記録領域演算制御部)
で演算して求めると、これを割込み信号として指定記録
領域長超過通知手段(指定記録領域長超過通知部)に送
出する。
After this, the tape medium running distance measuring means (tape medium running distance measuring section) detects that data has been recorded (updated) exceeding the specified area (instructed tape running length), or the recording area Arithmetic control means (recording area arithmetic control section)
Once calculated, this is sent as an interrupt signal to the designated recording area length excess notification means (designated recording area length excess notification unit).

これにより記録データ処理部にてデータ記録装置に対す
るデータ記録(更新)処理の強制打ち切りが指示される
ことにより、それ以降のデータ(EOF等も含む)破壊
が防止される。
This instructs the recording data processing unit to forcibly terminate the data recording (update) process for the data recording device, thereby preventing data (including EOF, etc.) from being destroyed thereafter.

尚、指定された領域(指示されたテープ走行長)内でデ
ータ記録(更新)が終了した場合、テープ媒体走行距離
測定手段(テープ媒体走行距離測定部)からの割込み信
号により、指定記録領域長超過通知手段(指定記録領域
長超過通知部)は残余領域のイレーズ処理を記録データ
処理部に指示する信号を通知する。
Furthermore, when data recording (updating) is completed within the specified area (instructed tape running length), the specified recording area length is The excess notification means (designated recording area length excess notification unit) notifies the recording data processing unit of a signal instructing the recording data processing unit to erase the remaining area.

これらにより、部分的なデータ更新が可能となると共に
、データ更新処理時間が大幅に短縮可能となる。
These make it possible to partially update data and to significantly shorten data update processing time.

〔実施例〕〔Example〕

以下本発明の要旨を第2図〜第4図及び第5図に示す実
施例により具体的に説明する。
The gist of the present invention will be specifically explained below with reference to embodiments shown in FIGS. 2 to 4 and 5.

第2図は本発明の詳細な説明するブロック図、第3図は
本発明の実施例におけるデータ書込み状況を説明する図
、第4図は本発明の実施例におけるデータブロックの状
況を説明する図をそれぞれ示す。尚、企図を通じて同一
符号は同一対象物を示す。
FIG. 2 is a block diagram explaining the present invention in detail, FIG. 3 is a diagram explaining the data writing situation in the embodiment of the invention, and FIG. 4 is a diagram explaining the data block situation in the embodiment of the invention. are shown respectively. Note that the same reference numerals refer to the same objects throughout the plan.

第2図の本実施例のMTC30a 、 30bおよびM
TU40(i)内の制御部31及びテープ走行制御部4
1はそれぞれの処理動作を制御すると共にインタフェー
ス機能を有する機能ブロックであり、MTU40(i)
内の記録/再生機構部43は記録媒体、ヘッド等を含む
機能ブロックを示す。
MTC30a, 30b and M of this embodiment in FIG.
Control unit 31 and tape running control unit 4 in TU40(i)
1 is a functional block that controls each processing operation and has an interface function, and MTU40(i)
A recording/reproducing mechanism section 43 inside indicates a functional block including a recording medium, a head, etc.

第3図に示すBOF領域の領域(C)には管理情報及び
制御情報が記録されるが、それはデータに先行してホス
トシステム10から転送される管理情報及び制御情報記
録命令に基づき、MTC30a 、 30bの制御のも
とに予め書込んで置く。
Management information and control information are recorded in area (C) of the BOF area shown in FIG. It is written in advance under the control of 30b.

この時、ホストシステム10の記録領域サイズ通知部5
0から送出される指定記録領域サイズ(d)をMTC3
0a、30b内記録デ一タ処理部60が受け、この指示
・制御によりMTU40(i)内記録/再生機構部43
は、BOF領域の領域(蜀に指定記録領域サイズ(dl
確保に関する制御情報を書込む。
At this time, the recording area size notification unit 5 of the host system 10
Specified recording area size (d) sent from 0 to MTC3
The recorded data processing unit 60 in MTU 40(i)
is the area of the BOF area (specified recording area size (dl
Writes control information regarding reservation.

この制御情報は第3図に示す指定記録領域サイズ(dl
を指定するもので、DBサイズ(バイト数)、DB数に
て表示される。
This control information is the designated recording area size (dl) shown in Figure 3.
This specifies the DB size (number of bytes) and the number of DBs.

次に、上述の処理動作の詳細を以下説明する。Next, details of the above-mentioned processing operation will be explained below.

(1)上述の状態で、ホストシステム10がテープマー
クTMを書込むコマンドをMTC30a 、 30bに
発行すると、MTC30a 、 30b内記録デ一タ処
理部60の指示によりMTU40(i)内記録/再生機
構部43にて、第3図に示すようにテープマーク律へを
書込み、同時に確保すべき指定記録領域サイズ(d)も
記録領域演算制御部80で演算し求め一緒に指定する。
(1) In the above state, when the host system 10 issues a command to write a tape mark TM to the MTC 30a, 30b, the recording/playback mechanism in the MTU 40(i) In the section 43, as shown in FIG. 3, the specified recording area size (d) to be secured is calculated and specified at the same time by the recording area calculation control section 80.

即ち、例えばホストシステム10からのDefine 
Pile Reginコマンド中の制御情報により、記
録領域サイズ通知部50は指定記録領域サイズ(dlを
指定定義し、MTC30a 、 30b内記録領域演算
制御部80に通知し、引き続きホストシステム10が命
令するWrite Tape MarkコマンドでMT
C30a 、 30bの制御のもとにMTU40(i)
同記録/再生機構部43にてテープマークTMAが書込
まれる。
That is, for example, Define from the host system 10
Based on the control information in the Pile Regin command, the recording area size notifying unit 50 specifies and defines the specified recording area size (dl), notifies it to the recording area calculation control unit 80 in the MTC 30a, 30b, and then writes the Write Tape commanded by the host system 10. MT with Mark command
MTU40(i) under the control of C30a, 30b
A tape mark TMA is written in the recording/reproducing mechanism section 43.

(2)MTU40(i)のテープ媒体5上の所定位置に
テープマークTMAを書込んだ後、MTC30a 、 
30b内記録領演算制御部80は制御部31と共に、D
efine File Reginコマンドで指定定義
された指定記録領域サイズ(d)を、データ記録密度及
びギャップ(IBG)長と、エラーリトライ領域等を加
味して、それを記録するに必要なテープ長を計算し、確
保すべき指定記録領域サイズ(d)としてのテープ長を
求める。
(2) After writing the tape mark TMA at a predetermined position on the tape medium 5 of the MTU40(i), the MTC30a,
The recording area calculation control section 80 in 30b, together with the control section 31,
Calculate the tape length required to record the designated recording area size (d) specified and defined by the efine File Regin command, taking into account the data recording density, gap (IBG) length, error retry area, etc. , find the tape length as the specified recording area size (d) to be secured.

記録類演算制御部80は制御部31を介して、この指定
記録領域サイズ(diをMTU40(i)に通知する。
The record class calculation control unit 80 notifies the MTU 40(i) of the designated recording area size (di) via the control unit 31.

一方、MTU40(i)は領域(g)にその制御情報を
記録する。
On the other hand, MTU 40(i) records its control information in area (g).

その後、ホストシステム10からのファイルデータ書込
みコマンドによるファイルデータ書込みが゛終了し、テ
ープマークTMBの書込みが指示される。
Thereafter, the file data writing by the file data writing command from the host system 10 is completed, and writing of the tape mark TMB is instructed.

この時、記録領域演算制御部80に記憶している指定記
録領域サイズ(d)と、MTU40(i)内記録・再生
部43から送出される再生情報とにより残存領域(fl
の有無を記録領域演算制御部80で演算して得るか、或
いはMTU40(i)内テープ媒体走行距離測定部90
の走行長監視に基づき、テープ走行長が指定記録領域サ
イズ(d)を超過しているか否かの検出で残存領域(f
)の有無を判定する。
At this time, the remaining area (fl
The recording area calculation control unit 80 calculates the presence or absence of
Based on the running length monitoring of the tape running length, the remaining area (f
) is determined.

その結果、残存領域ff)ありと記録領域演算制御部8
0又はテープ媒体走行距離測定部90の出力信号で判定
されると、指定記録領域長超過通知部70はその残存領
域(flのテープ長をイレーズするよう制御部31を介
して記録データ処理部60に通知し、その指示により既
に記録されている可能性があるデータブロックDB、 
テープマークTM等をイレーズした後、テープマークT
MBを書込む。
As a result, it is determined that there is a remaining area ff) and the recording area calculation control unit 8
0 or the output signal of the tape medium running distance measuring section 90, the designated recording area length excess notification section 70 sends a command to the recording data processing section 60 via the control section 31 to erase the tape length of the remaining area (fl). and the data block DB that may have already been recorded according to the instructions,
After erasing the tape mark TM, etc., erase the tape mark T.
Write MB.

尚、データブロックDBには、第4図に示すようにデー
タ領域と制御領域の2種類の情報領域がある。
Note that the data block DB has two types of information areas: a data area and a control area, as shown in FIG.

即ち、データ領域にはホストシテム10から書込みを指
示されたデータを、又、制御領域には各データブロック
DB固有の情報であるブロック10 (ブロック識別情
報)及び、記録したデータの正常性をチェックするため
のチェックキャラクタを含めた情報力器TC30a、3
0b内制御部31の制御のもとに書込まれる。
That is, data instructed to be written by the host system 10 is stored in the data area, block 10 (block identification information), which is information unique to each data block DB, is stored in the control area, and the normality of the recorded data is checked. Information power device TC30a, 3 including check characters for
It is written under the control of the 0b internal control section 31.

又、ブロック識別情報であるブロックIDは、そのデー
タブロックDBがテープ媒体5の先端から何番目のTM
位位置、その市の何番目のデータブロックDBに相当す
るかで表示する。
In addition, the block ID, which is block identification information, is the number of TM from the leading edge of the tape medium 5 that the data block DB is located at.
It is displayed based on the city's position and the number of data block DB in the city.

(3)次に、ファイルデータ更新時、ホストシステム1
0からのDefine File Regionコマン
ドで領域(glの制御情報を記録/再生機構部43で読
取り記録/再生部42で変換して記録領域サイズ情報を
読出し、引続き5pase Fileコマンドでテープ
マークTMAをスキップする時、読出した記録領域サイ
ズ情報をMTC30a 、 30b内制御部31等で確
認する。この後、更新ファイルデータを書込む。
(3) Next, when updating file data, host system 1
With the Define File Region command from 0, read the control information of the area (gl) in the recording/playback mechanism unit 43, convert it in the recording/playback unit 42, read out the recording area size information, and then skip the tape mark TMA with the 5pase File command. At this time, the read recording area size information is confirmed by the control unit 31 in the MTC 30a, 30b, etc. After that, update file data is written.

次に、MTC30a、 30bはMTU40(i)に対
して記録領域サイズ情報から記録領域演算制御部80で
算出したテープ長(占込み許容テープ長)を領域サイズ
(diとして通知する。その後、ホストシステム10か
ら指示されるデータの書込みを行い、ファイルデータの
更新をする。
Next, the MTCs 30a and 30b notify the MTU 40(i) of the tape length (occupation allowable tape length) calculated by the recording area calculation control unit 80 from the recording area size information as the area size (di). The data specified by 10 is written and the file data is updated.

データ書込みが終了した後、ホストシステム10から5
pace Fileコマンド(テープマークTMBを終
端側に位置付は指定する)が発行される。この時前述と
同様に残存領域(f)の有無を記録領域演算制御部80
の演算又はテープ媒体走行距離測定部90の走行長測定
で求め、もし記録領域サイズ(diに対して残存領域(
f)があれば、その残存領域(f)のイレーズを行い、
テープマークTMBの終端側に位置付ける。
After data writing is completed, host system 10 to 5
A pace File command (specifying the positioning of tape mark TMB on the end side) is issued. At this time, the recording area calculation control unit 80 determines whether or not there is a remaining area (f) as described above.
or by measuring the running length of the tape medium running distance measuring section 90, and if the remaining area (
f), erase the remaining area (f),
Position it at the end of the tape mark TMB.

又、もしデータ書込みが指定した記録領域サイズ(d)
より超過しようとした場合、即ち、指示されたテープ長
以上走行しようとすることを所定MTU40(i)内テ
ープ媒体走行距離測定部90が検出すると、直ちにMT
C30a、30bに通知する。通知を受けたMTC30
a、30b内指定記録領域長超過通知部70は、記録デ
ータ処理部60を介して所定MTU40 (i)に対し
て強制的に書込みを中止させる。
Also, if data writing specifies the recording area size (d)
If the tape medium running distance measuring section 90 within the predetermined MTU 40(i) detects that the tape medium running distance measuring unit 90 attempts to exceed the specified tape length, the MT immediately
Notify C30a and 30b. MTC30 received notification
The designated recording area length excess notification unit 70 in a and 30b forcibly stops writing to the predetermined MTU 40 (i) via the recording data processing unit 60.

上述のように制御することにより、次のファイル(位置
付けするテープマークTMB以降のファイル)のデータ
破壊が防止出来る。
By controlling as described above, data destruction of the next file (the file after the tape mark TMB to be positioned) can be prevented.

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

以上のような本発明によれば、データ更新ファイルの次
のファイルのデータ破壊が防止出来ることにより、部分
的なデータ更新が可能となり、更にデータ更新処理時間
が大幅に短縮出来ると言う効果がある。
According to the present invention as described above, it is possible to prevent data destruction in the file following the data update file, thereby making it possible to partially update data, and furthermore, it has the effect of significantly shortening the data update processing time. .

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

第1図は本発明の詳細な説明するブロック図、第2図は
本発明の詳細な説明するブロック図、第3図は本発明の
実施例におけるデータ書込み状況を説明する図、 第4図は本発明の実施例におけるデータブロックの状況
を説明する図、 第5図は従来例を説明するブロック図、第6図は磁気テ
ープ上のファイル領域を説明する図、 をそれぞれ示す。 図において、 1.10はホストシステム、 2は磁気テープサブシステム、 3a、3b、30a、30b はMTC14(0)〜4
(n)、40(i)はMTU、5はテープ媒体、   
11はデータ処理部、20はデータ記録サブシステム、 30はデータ記録制御装置、 31は制御部、     40はデータ記録装置、41
はテープ走行制御部、42は記録・再生部、43は記録
・再生機構部、 50は記録領域サイズ通知部、 60は記録データ処理部、 70は指定記録領域長超過通知部、 80は記録領域演算制御部、 90はテープ媒体走行距離測定部、 ρB 夾禾H・) Z t BA套ブ0ツクZ多5団
FIG. 1 is a block diagram explaining the present invention in detail, FIG. 2 is a block diagram explaining the present invention in detail, FIG. 3 is a diagram explaining the data writing situation in an embodiment of the present invention, and FIG. 4 is a block diagram explaining the present invention in detail. FIG. 5 is a block diagram explaining the conventional example, and FIG. 6 is a diagram explaining the file area on the magnetic tape. In the figure, 1.10 is the host system, 2 is the magnetic tape subsystem, and 3a, 3b, 30a, 30b are MTC14(0) to 4.
(n), 40(i) is MTU, 5 is tape medium,
11 is a data processing unit, 20 is a data recording subsystem, 30 is a data recording control device, 31 is a control unit, 40 is a data recording device, 41
is a tape running control section, 42 is a recording/playback section, 43 is a recording/playback mechanism section, 50 is a recording area size notification section, 60 is a recording data processing section, 70 is a specified recording area length excess notification section, 80 is a recording area Arithmetic control section; 90 is tape medium running distance measurement section; ρB 夾禾H・)

Claims (1)

【特許請求の範囲】  マルチファイルボリューム又はシングルファイルボリ
ュームからなる記録媒体上の長手方向にホストシステム
(10)から転送されるデータを記録するデータ記録サ
ブシステム(20)において、前記ホストシステム(1
0)内に前記データ記録サブシステム(20)に対して
確保すべき記録領域サイズを定義し通知する記録領域サ
イズ通知手段(50)と、 前記データ記録サブシステム(20)内に、前記ホスト
システム(10)内データ処理部(11)から転送され
て来た記録データをデータ記録装置(40)で処理させ
るべく送出すると共に、指定記録領域長超過通知手段(
70)からの信号により、前記データ記録装置(40)
でのデータ記録(更新)処理動作の打ち切りを指示する
記録データ処理部(60)と、前記データ記録装置(4
0)内テープ媒体走行距離測定手段(90)からの検出
信号により前記記録データ処理部(60)に対してデー
タ記録(更新)処理打ち切り指示信号を送出し通知する
指定記録領域長超過通知手段(70)と、 予め前記記録領域サイズ通知手段(50)で指示された
記憶量サイズを記録するための充分な記録媒体長を算出
すると共に、この該記録媒体長を前記データ記録装置(
40)に通知する記録領域演算制御手段(80)と、 前記データ記録装置(40)内に前記記録領域演算制御
手段(80)から指示された該記録媒体長以上の該記録
媒体の長手順方向への走行を監視するテープ媒体走行距
離測定手段(90)とを設け、前記ホストシステム(1
0)からの命令により、前記データ記録サブシステム(
20)にて既に確保されているファイル領域のデータ更
新を行う時、前記テープ媒体走行距離測定手段(90)
で測定した更新処理済みファイル長又は、該記録媒体上
から読取った該ファイル領域長を前記記録領域演算制御
手段(80)で演算し求め、確保されている該ファイル
領域長以内でデータ更新が終了したことが判定された場
合は、その残余領域の初期化処理を行い、確保された該
ファイル領域長以上を超過して走行することを前記指定
記録領域長超過通知手段(70)から通知された場合、
前記記録データ処理部(60)はデータ更新処理を打ち
切らせることを特徴とするデータ更新制御方式。
[Scope of Claims] A data recording subsystem (20) for recording data transferred from a host system (10) in the longitudinal direction on a recording medium consisting of a multi-file volume or a single-file volume, wherein the host system (10)
0) a recording area size notifying means (50) for defining and notifying a recording area size to be secured for the data recording subsystem (20); (10) The recorded data transferred from the internal data processing section (11) is sent to be processed by the data recording device (40), and the specified recording area length excess notification means (
70), the data recording device (40)
a recording data processing unit (60) that instructs to abort the data recording (update) processing operation in the data recording device (4);
0) Specified recording area length excess notification means ( 70), calculates a sufficient recording medium length to record the storage amount size specified in advance by the recording area size notification means (50), and calculates this recording medium length to the data recording device (70).
recording area calculation control means (80) for notifying the storage area calculation control means (80) in the data recording device (40); tape medium running distance measuring means (90) for monitoring the running of the tape medium to the host system (1);
0), the data recording subsystem (
When updating data in the file area already secured in step 20), the tape medium traveling distance measuring means (90)
The length of the updated file measured in or the file area length read from the recording medium is calculated and determined by the recording area calculation control means (80), and the data update is completed within the secured file area length. If it is determined that the remaining area has been exceeded, the remaining area is initialized, and the designated recording area length excess notification means (70) notifies that the file area length exceeds the secured file area length. case,
A data update control method characterized in that the recorded data processing unit (60) terminates data update processing.
JP61057317A 1986-03-14 1986-03-14 Data updating control system Pending JPS62214575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61057317A JPS62214575A (en) 1986-03-14 1986-03-14 Data updating control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61057317A JPS62214575A (en) 1986-03-14 1986-03-14 Data updating control system

Publications (1)

Publication Number Publication Date
JPS62214575A true JPS62214575A (en) 1987-09-21

Family

ID=13052195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61057317A Pending JPS62214575A (en) 1986-03-14 1986-03-14 Data updating control system

Country Status (1)

Country Link
JP (1) JPS62214575A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007305076A (en) * 2006-05-15 2007-11-22 Hitachi Ltd Storage control method and system for backup and/or restoration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007305076A (en) * 2006-05-15 2007-11-22 Hitachi Ltd Storage control method and system for backup and/or restoration

Similar Documents

Publication Publication Date Title
US4775969A (en) Optical disk storage format, method and apparatus for emulating a magnetic tape drive
EP0406188B1 (en) Combining small records into a single record block for recording on a record media
US5274772A (en) Data processing systems having means for selectively combining records into signal blocks for recording in a record medium
US5034914A (en) Optical disk data storage method and apparatus with buffered interface
US5454098A (en) Method of emulating access to a sequential access data storage device while actually using a random access storage device
EP0332210A2 (en) Backup control method and system in data processing system
US5335328A (en) Methods for recording and reading data from a record member having data in any one of a plurality of block formats including determining length of records being transferred
JP2015069290A (en) Method of improving reading velocity of file updated by tape drive file system
JPH06302112A (en) Transparent file mark
JP6341652B2 (en) Automatic reclamation of tape cartridge data
JPS62214575A (en) Data updating control system
US6301588B1 (en) Signal processing method
WO2002035338A1 (en) Data recorder
JPH04285783A (en) System for managing magnetic tape storage device
JPH02210643A (en) Method and device for duplicating recording medium
JPS5845083B2 (en) Data read check method
JP2957380B2 (en) Head positioning controller for magnetic disk
JPH034315A (en) Disk formatting system
JP2972365B2 (en) Access control method for magnetic tape storage
JP3095070B2 (en) Method of positioning tape in magnetic tape device
KR100189927B1 (en) Hard disk drive control device and method
JPS61133433A (en) Defective sector alternate processing system in unrewritable data recording medium
JP3334696B2 (en) Magnetic tape recorder
JPS5854463A (en) Driving system of sequential access file
GB2250374A (en) Back-up tape drive and tape format