JPH0452724A - Input/output processing system for data saving device - Google Patents
Input/output processing system for data saving deviceInfo
- Publication number
- JPH0452724A JPH0452724A JP2156384A JP15638490A JPH0452724A JP H0452724 A JPH0452724 A JP H0452724A JP 2156384 A JP2156384 A JP 2156384A JP 15638490 A JP15638490 A JP 15638490A JP H0452724 A JPH0452724 A JP H0452724A
- Authority
- JP
- Japan
- Prior art keywords
- data
- input
- output
- program
- evacuation
- 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
Links
- 238000000034 method Methods 0.000 claims description 50
- 238000003672 processing method Methods 0.000 claims description 15
- 230000004913 activation Effects 0.000 claims description 13
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 1
- 230000008685 targeting Effects 0.000 description 1
- 230000002087 whitening effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、データベースのデータの待避/復元で使用さ
れるデータ退避装置(it!気テープ装置やフロッピー
ディスク装置等)に対するデータの入出力処理を制御す
るデータ退避装置入出力処理方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to data input/output processing for a data saving device (such as an IT! tape device or a floppy disk device) used for saving/restoring database data. The present invention relates to a data saving device input/output processing method for controlling a data saving device.
従来、この種のデータ退避装置入出力処理方式は、デー
タベースのデータの入出力等を行うデータ退避/復元プ
ログラム内に全て組み込まれて実現されていた。Conventionally, this type of data backup device input/output processing method has been realized by being completely incorporated into a data backup/restore program that inputs/outputs database data.
データ退避装置には、ブロッキングによるデータ入出力
を行うデータ退避装置やストリームによるデータ入出力
を行うデータ退避装置等が存在する。Data saving devices include data saving devices that perform data input/output using blocking, data saving devices that perform data input/output using streams, and the like.
従来のデータ退避装置入出力処理方式は、データ入出力
の方式の異なる複数のデータ退避装置を対象とする場合
には、データ入出力の各方式に対応するデータ入出力手
段(データ退避/復元プログラム内に組み込まれてデー
タ退避装置に対するデータの入出力処理を行う手段)を
それぞれ有し、データ退避装置(データ入出力の方式ン
の識別に基づいて該当するデータ入出力手段への切り替
えを行い、各データ退避装置に対するデータの入出力処
理を行っていた6
なお、データ入出力手段の切り替えの方式としては、処
理対象のデータ退避装置をデータ退避/復元プログラム
内で自動的に識別して切り替えを行う方式や、利用者に
よる処理対象のデータ退避装置の指定に基づいて切り替
えを行う方式等が存在した。Conventional data evacuation device input/output processing methods, when targeting multiple data evacuation devices with different data input/output methods, require a data input/output means (data evacuation/restore program) corresponding to each data input/output method. The data saving device (means incorporated in the data saving device to perform data input/output processing to the data saving device), switches to the corresponding data input/output means based on the identification of the data input/output method, Data input/output processing was performed for each data backup device.6 Note that the method for switching data input/output means is to automatically identify the data backup device to be processed within the data backup/restore program and switch. There are two methods: one method that performs processing, and another method that performs switching based on the user's designation of the data backup device to be processed.
上述した従来のデータ退避装置入出力処理方式では、各
種のデータ入出力の方式に係るデータ退避装置に対する
データ入出力手段を含むデータ退避装置入出力処理方式
が全てデータ退避/復元プログラム内に組み込まれてい
るので、あるデータ退避装置のデータ入出力の方式が変
更になった場合には、そのデータ退避装置に対するデー
タ入出力手段を変更するためにデータ退避/復元プログ
ラム全体を作成し直す必要があるという欠点がある。In the conventional data evacuation device input/output processing method described above, all data evacuation device input/output processing methods including data input/output means for the data evacuation device related to various data input/output methods are incorporated into the data evacuation/restore program. Therefore, if the data input/output method of a data backup device is changed, the entire data backup/restore program must be rewritten to change the data input/output method for that data backup device. There is a drawback.
また、同様の理由により、新しいデータ入出力の方式を
行うデータ退避装置が新設された場合には、そのデータ
退避装置に対するデータ入出力手段を追加したデータ退
避/復元プログラムを新たに作成する必要があるという
欠点がある。Also, for the same reason, when a new data backup device that uses a new data input/output method is installed, it is necessary to create a new data backup/restore program that adds data input/output means for the data backup device. There is a drawback.
本発明の目的は、上述の点に鑑み、データ退避装置のデ
ータ入出力の方式の変更または新しいデータ入出力の方
式のデータ退避装置のサポート等に対して、既存のデー
タ退避/復元プログラムには全く影響を与えずに対処す
ることができるデータ退避装置入出力処理方式を提供す
ることにある。In view of the above-mentioned points, an object of the present invention is to change the data input/output method of a data backup device or to support a data backup device with a new data input/output method. It is an object of the present invention to provide a data saving device input/output processing method that can cope with the problem without any influence.
本発明のデータ退避装置入出力処理方式は、データベー
スのデータの待避/復元で使用されるデータ退避装置に
対するデータの入出力処理を行うデータ退避装置入出力
処理方式において、データ退避/復元プログラムおよび
データ退避装置とは独立して両者の間に介在し対応する
データ退避装置への出力データの書き込みおよび対応す
るデータ退避装置からの入力データの読み込みを行うデ
ータ退避装置入出力フィルタプログラムと、データ退避
装置情報を取得するデータ退避/復元プログラム内のデ
ータ退避装置情報取得手段と、このデータ退避装置情報
取得手段により取得されたデータ退避装置情報を使用し
て該当する前記データ退避装置入出力フィルタプログラ
ムを起動するデータ退避/復元プログラム内のフィルタ
起動手段と、データ退避装置への出力データをそのデー
タ退避装置に対応する前記データ退避装置入出力フィル
タプログラムに渡すデータ退避/復元プログラム内のデ
ータ出力手段と、データ退避装置からの入力データをそ
のデータ退避装置に対応する前記データ退避装置入出力
フィルタプログラムから受け取るデータ退避/復元プロ
グラム内のデータ入力手段と、データ退避装置に対する
データの入出力処理を行うために前記データ退避装置情
報取得手段、前記フィルタ起動手段、前記データ出力手
段および前記データ入力手段を制御するデータ退避/復
元プログラム内のデータ入出力制御手段とを有する。The data evacuation device input/output processing method of the present invention is a data evacuation device input/output processing method that performs data input/output processing to a data evacuation device used for saving/restoring database data. A data evacuation device input/output filter program that is interposed between the two, independent of the evacuation device, and writes output data to a corresponding data evacuation device and reads input data from the corresponding data evacuation device; and a data evacuation device. Start the corresponding data evacuation device input/output filter program using the data evacuation device information acquisition means in the data evacuation/restore program that acquires the information and the data evacuation device information acquired by this data evacuation device information acquisition means. a data output means in a data evacuation/restore program that passes output data to the data evacuation device to the data evacuation device input/output filter program corresponding to the data evacuation device; A data input means in a data evacuation/restoration program that receives input data from a data evacuation device from the data evacuation device input/output filter program corresponding to the data evacuation device, and for performing data input/output processing to the data evacuation device. It has data input/output control means in a data save/restore program that controls the data save device information acquisition means, the filter activation means, the data output means, and the data input means.
本発明のデータ退避装置入出力処理方式では、データ退
避/復元プログラムおよびデータ退避装置とは独立して
両者の間に介在するデータ退避装置入出力フィルタプロ
グラムが対応するデータ退避装置への出力データの書き
込みおよび対応するデータ退避装置からの入力データの
読み込みを行い、データ退避/復元プログラム内のデー
タ退避装置情報取得手段がデータ退避装置情報を取得し
、データ退避/復元プログラム内のフィルタ起動手段が
データ退避装置情報取得手段により取得されたデータ退
避装置情報を使用して該当するデータ退避装置入出力フ
ィルタプログラムを起動し、データ退避/復元プログラ
ム内のデータ出力手段がテ゛−タ退避装置への出力デー
タをそのデータ退避装置に対応するデータ退避装置入出
力フィルタプログラムに渡し、データ退避/復元プログ
ラム内のデータ入力手段がデータ退避装置からの入力デ
ータをそのデータ退避装置に対応するデータ退避装置入
出力フィルタプログラムから受け取り、データ退避/復
元プログラム内のデータ入出力制御手段がデータ退避装
置に対するデータの入出力処理を行うためにデータ退避
装置情報取得手段、フィルタ起動手段、データ出力手段
およびデータ入力手段を制御する。In the data evacuation device input/output processing method of the present invention, a data evacuation device input/output filter program interposed between the data evacuation/restoration program and the data evacuation device independently of the data evacuation/restoration program and the data evacuation device outputs data to the corresponding data evacuation device. The input data is written and read from the corresponding data evacuation device, the data evacuation device information acquisition means in the data evacuation/restoration program acquires the data evacuation device information, and the filter activation means in the data evacuation/restoration program saves the data. The data evacuation device information acquired by the evacuation device information acquisition means is used to start the corresponding data evacuation device input/output filter program, and the data output means in the data evacuation/restoration program outputs the data to the data evacuation device. is passed to the data evacuation device input/output filter program corresponding to the data evacuation device, and the data input means in the data evacuation/restoration program passes the input data from the data evacuation device to the data evacuation device input/output filter program corresponding to the data evacuation device. Received from the program, the data input/output control means in the data save/restore program controls the data save device information acquisition means, filter activation means, data output means, and data input means to perform data input/output processing to the data save device. do.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は、本発明のデータ退避装置入出力処理方式の一
実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the data saving device input/output processing method of the present invention.
本実施例のデータ退避装置入出力処理方式は、データ入
出力制御手段1と、データ退避装置情報取得手段2と、
フィルタ起動手段3と、データ出力手段4と、データ入
力手段5と、1つ以上のデータ退避装置入出力フィルタ
プログラム6と、1つ以上のデータ退避装置7とを含ん
で構成されている。The data backup device input/output processing method of this embodiment includes a data input/output control means 1, a data backup device information acquisition means 2,
It is configured to include a filter activation means 3, a data output means 4, a data input means 5, one or more data saving device input/output filter programs 6, and one or more data saving devices 7.
ここで、データ入出力制御手段1.データ退避装置情報
取得手段2.フィルタ起動手段3.データ出力手段4お
よびデータ入力手段5は、データ退避/復元プログラム
に組み込まれている。また、1つ以上のデータ退避装置
入出力フィルタプログラム6によって、データ退避/復
元プログラムおよびデータ退避装置7とは独立したフィ
ル多が構成されている。さらに、各データ退避装置入出
力フィルタプログラム6に対応する各データ退避装置7
には、各データ退避装置媒体が存在する(セットされる
)。Here, data input/output control means 1. Data backup device information acquisition means 2. Filter activation means 3. The data output means 4 and the data input means 5 are incorporated into the data save/restore program. Further, one or more data evacuation device input/output filter programs 6 constitute a filter that is independent of the data evacuation/restoration program and the data evacuation device 7. Furthermore, each data saving device 7 corresponding to each data saving device input/output filter program 6
Each data evacuation device medium is present (set) in the .
第2図は、データ入出力制御手段1の処理を示す流れ図
である。この処理は、データ退避装置情報取得手段実行
ステップ201と、データ処理種別判定ステップ202
と、出力モードデータ退避装置入出力フィルタプログラ
ム起動ステンプ203と、出力データ取得ステンプ20
4と、出力データ存在判定ステップ205と、データ出
力手段実行ステップ206と、出力終了通知ステップ2
07と、入力モードデータ退避装置入出力フィルタプロ
グラム起動ステップ208と、データ入力手段実行ステ
ップ209と、入力データ存在判定ステップ210と、
入力データ取得ステップ211とからなる。FIG. 2 is a flowchart showing the processing of the data input/output control means 1. This process includes a data backup device information acquisition means execution step 201 and a data processing type determination step 202.
, output mode data saving device input/output filter program start step 203 , and output data acquisition step 20
4, output data existence determination step 205, data output means execution step 206, and output end notification step 2
07, input mode data saving device input/output filter program activation step 208, data input means execution step 209, input data existence determination step 210,
It consists of an input data acquisition step 211.
第3図は、データ退避装置情報取得手段2の処理を示す
流れ図である。この処理は、データ退避装置入出力フィ
ルタプログラム名取得ステップ301と、データ退避装
置名取得ステップ302と、データ入出力サイズ取得ス
テップ303と、データ退避装置媒体容量取得ステップ
304とからなる。FIG. 3 is a flowchart showing the processing of the data saving device information acquisition means 2. This processing consists of a step 301 for acquiring data backup device input/output filter program name, a step 302 for acquiring data backup device name, a step 303 for acquiring data input/output size, and a step 304 for acquiring data backup device medium capacity.
第4図は、フィルタ起動手段3の処理を示す流れ図であ
る。この処理は、データ交換経路確立ステップ401と
、子プロセス生成ステップ402と、データ退避装置入
出力フィルタプログラム実行ステップ403とからなる
。FIG. 4 is a flowchart showing the processing of the filter activation means 3. This processing consists of a data exchange path establishment step 401, a child process generation step 402, and a data saving device input/output filter program execution step 403.
第5図は、データ出力手段4の処理を示す流れ図である
。この処理は、出力データ存在判定ステップ501と、
出力データ出力ステップ502とからなる。FIG. 5 is a flowchart showing the processing of the data output means 4. This process includes an output data existence determination step 501;
and an output data output step 502.
第6図は、データ入力手段5の処理を示す流れ図である
。この処理は、入力データ存在判定ステンプ601と、
入力データ入力ステップ602とからなる。FIG. 6 is a flowchart showing the processing of the data input means 5. This process includes an input data existence determination step 601;
and an input data input step 602.
第7図は、データ退避装置入出力フィルタプログラム6
の処理を示す流れ圀である。この処理は、データ入出力
用へソファ確保ステップ701と、データ処理種別判定
ステップ702と、媒体交換必要判定ステップ703と
、媒体交換要求ステップ704と、出力モードオーブン
ステップ705と、出力データ受け取りステップ706
と、出力データ終了判定ステップ707と、バフファー
杯判定ステップ708と、データ退避装置書き込みステ
ップ709と、ハソファ内出力データ存在判定ステップ
710と、データ退避装置書き込みステップ711と、
媒体交換必要判定ステップ712と、媒体交換要求ステ
ップ713と、入力モードオーブンステップ714と、
データ退避装置読み込みステップ715と、読み込み終
了判定ステップ716と、入力データ渡しステップ71
7と、ハソファ分全処理終了判定ステップ718と、読
み込み終了通知ステップ719と、データ退避装置クロ
ーズステップ720と、白子プロセス終了ステップ72
1とからなる。Figure 7 shows the data evacuation device input/output filter program 6.
This is a flow diagram showing the processing. This process includes a step 701 for securing a couch for data input/output, a step 702 for determining data processing type, a step 703 for determining the necessity of medium exchange, a step 704 for requesting medium exchange, a step 705 for output mode oven, and a step 706 for receiving output data.
, an output data end determination step 707 , a buffer cup determination step 708 , a data saving device writing step 709 , an internal output data existence determining step 710 , a data saving device writing step 711 ,
A medium exchange necessity determination step 712, a medium exchange request step 713, an input mode oven step 714,
Data saving device reading step 715, reading completion determination step 716, and input data passing step 71
7, step 718 for determining the end of all processing for the sofa, step 719 for notifying the end of reading, step 720 for closing the data saving device, and step 72 for ending the milt process.
Consists of 1.
次に、このように構成された本実施例のデータ退避装置
入出力処理方式の動作について説明する。Next, the operation of the data saving device input/output processing method of this embodiment configured as described above will be explained.
初めに、第2図を参照しながら、データ入出力制御手段
lの処理について説明する。First, the processing of the data input/output control means 1 will be explained with reference to FIG.
データ入出力制御手段1は、以下に示すような処理を行
う。The data input/output control means 1 performs the following processing.
まず、処理対象のデータ退避装置7に対するデータの入
出力を行うために必要な当該データ退避装置7に関する
情報(当該データ退避装置7に対応するデータ退避装置
入出力フィルタプログラム6の名前、当該データ退避装
置70名前(論理名称)、当該データ退避装置7のデー
タ入出力サイズおよび当該データ退避袋W7内のデータ
退避装置媒体容量からなる情報。以下、データ退避装置
情報という)を、データ退避装置情報取得手段2を実行
して取得する(ステップ201)。First, information about the data saving device 7 necessary for inputting and outputting data to the data saving device 7 to be processed (the name of the data saving device input/output filter program 6 corresponding to the data saving device 7, the data saving device 7, the name of the data saving device input/output filter program 6, Information consisting of the device 70 name (logical name), the data input/output size of the data evacuation device 7, and the data evacuation device media capacity in the data evacuation bag W7 (hereinafter referred to as data evacuation device information) is obtained by acquiring data evacuation device information. Obtain by executing means 2 (step 201).
次に、これから行おうとするデータ処理が当該データ退
避装置7に対してデータを出力する処理(出力処理)で
あるか当該データ退避装置7からデータを入力する処理
(入力処理)であるかを判定する(ステップ202)。Next, it is determined whether the data processing to be performed is a process of outputting data to the data saving device 7 (output processing) or a process of inputting data from the data saving device 7 (input processing). (step 202).
この判定でこれから行おうとするデータ処理が出力処理
である場合には、ステップ203から始まる出力処理を
実行する。In this determination, if the data processing to be performed is output processing, the output processing starting from step 203 is executed.
出力処理では、まず、フィルタ起動手段3を実行するこ
とにより該当するデータ退避装置入出力フィルタプログ
ラム6(ステップ201で取得したデータ退避装置情報
で特定されるデータ退避装置入出力フィルタプログラム
6)を出力モードで起動する(ステップ203)。In the output process, first, the filter starting means 3 is executed to output the corresponding data evacuation device input/output filter program 6 (the data evacuation device input/output filter program 6 specified by the data evacuation device information acquired in step 201). mode (step 203).
次に、当該データ退避装置7に出力すべきデータ(出力
データ)を順次取得しくステップ204)、出力データ
が存在するか否か(ステップ204で出力データを取得
できたか否か)を判定する(ステップ205)。Next, the data to be output to the data saving device 7 (output data) is sequentially acquired (step 204), and it is determined whether the output data exists (whether the output data was acquired in step 204). Step 205).
この判定で出力データが存在する場合には、データ出力
手段4を実行することにより当該データ退避装置人出カ
フイルタブログラム6に対してその出力データを出力し
くステップ206)、ステップ204の実行に戻る。If output data exists in this judgment, the data output means 4 is executed to output the output data to the data evacuation device crowd filter program 6 (step 206), and step 204 is executed. return.
ステップ205の判定で出力データが存在しない場合に
は、当該データ退避装置入出力フィルタプログラム6に
対して出力データの終了の通知(出力終了通知)を行い
(ステップ207)、処理を終了する。If it is determined in step 205 that no output data exists, the data saving device input/output filter program 6 is notified of the end of the output data (output end notification) (step 207), and the process ends.
ステップ202の判定でこれから行おうとするデータ処
理が入力処理である場合には、ステップ208から始ま
る入力処理を実行する。If it is determined in step 202 that the data processing to be performed is input processing, input processing starting from step 208 is executed.
入力処理では、まず、フィルタ起動手段3を実行するこ
とにより該当するデータ退避装置入出力フィルタプログ
ラム6を入力モードで起動する(ステップ208)。In the input process, first, by executing the filter starting means 3, the corresponding data saving device input/output filter program 6 is started in the input mode (step 208).
次に、データ入力手段5を実行することにより当該デー
タ退避装置入出力フィルタプログラム6から入力すべき
データ(入力データ)を受け取り(ステップ209)、
入力データが存在するが否か(ステップ209で当該デ
ータ退避装置人出カフイルタブログラム6から入力デー
タを受け取ったか否か)を判定する(ステップ21o)
。Next, data to be input (input data) is received from the data saving device input/output filter program 6 by executing the data input means 5 (step 209);
Determine whether or not input data exists (whether or not input data was received from the data evacuation device turnout filter program 6 in step 209) (step 21o)
.
この判定で入力データが存在する場合には、その入力デ
ータを取得しくステップ211.)、ステップ209の
実行δこ戻る。If input data exists in this determination, the input data is acquired in step 211. ), the execution δ of step 209 returns.
ステップ210の判定で入力データが存在しない場合に
は、処理を終了する。If the input data does not exist as determined in step 210, the process ends.
続いて、第3図を参照しながら、データ退避装置情報取
得手段2の処理について説明する。Next, the processing of the data saving device information acquisition means 2 will be explained with reference to FIG.
データ退避装置情報取得手段2は、以下に示すような処
理を行う。The data backup device information acquisition means 2 performs the following processing.
まず、処理対象のデータ退避袋W7に対するデータ入出
力を制御するためのデータ退避装置入出力フィルタプロ
グラム6の名前を取得する(ステップ301)。なお、
データ退避装置入出力フィルタプログラム6は、データ
退避/復元プログラムとは別プログラムとなっており、
対応するデータ退避装置7との入出力インタフェース(
データ入出力の方式の種別)の整合性をとりながら対応
するデータ退避装置7とのデータ入出力を行うプログラ
ムである。First, the name of the data evacuation device input/output filter program 6 for controlling data input/output to the data evacuation bag W7 to be processed is acquired (step 301). In addition,
The data backup device input/output filter program 6 is a separate program from the data backup/restore program.
Input/output interface with the corresponding data saving device 7 (
This is a program that performs data input/output with the corresponding data saving device 7 while maintaining consistency in data input/output method type).
次に、当該データ退避装置7の論理名称を取得する(ス
テップ302)。なお、データ退避装置7の論理名称は
、データ退避装置入出力フィルタプログラム6がデータ
退避装置7を識別するために使用される情報である。Next, the logical name of the data saving device 7 is acquired (step 302). Note that the logical name of the data saving device 7 is information used by the data saving device input/output filter program 6 to identify the data saving device 7.
さらに、当該データ退避装置7に対する1回の入力また
は出力におけるデータのサイズ(データ入出力サイズ)
を取得する(ステップ303)。Furthermore, the size of data in one input or output to the data saving device 7 (data input/output size)
(step 303).
なお、このデータ入出力サイズに従って、データ退避装
置入出力フィルタプログラム6は対応するデータ退避装
置7に対するデータ入出力を行う。Note that, according to this data input/output size, the data saving device input/output filter program 6 performs data input/output to the corresponding data saving device 7.
加えて、当該データ退避装置7内のデータ退避装置媒体
である入出力用の媒体が保持することのできるデータ容
量(データ退避装置媒体容量)を取得する(ステップ3
04)。なお、このデータ退避装置媒体容量に従って、
データ退避装置入出力フィルタプログラム6は対応する
データ退避装置7に対するデータ入出力の容量を判定し
てデータ退避装置媒体の交換要求を行うことができる。In addition, the data capacity that can be held by the input/output medium that is the data evacuation device medium in the data evacuation device 7 is acquired (data evacuation device medium capacity) (step 3).
04). In addition, according to this data backup device media capacity,
The data evacuation device input/output filter program 6 can determine the data input/output capacity for the corresponding data evacuation device 7 and request replacement of the data evacuation device medium.
続いて、第4図を参照しながら、フィルタ起動手段3の
処理について説明する。Next, the processing of the filter activation means 3 will be explained with reference to FIG.
フィルタ起動手段3は、以下に示すような処理を行う。The filter activation means 3 performs the following processing.
まず、該当するデータ退避装置入出力フィルタプログラ
ム6とのデータ交換を行うための経路を確立する(ステ
ップ401)。ここでは、後述するステップ402で生
成される当該データ退避装置入出力フィルタプログラム
6を実行する子プロセスとのデータ交換を行うために、
データ交換用のメソセージ交換(パイプライン制御によ
るメンセージ交換および共有メモリを使用したメソセー
ジ交換等)の経路を確立する。First, a route for exchanging data with the corresponding data saver input/output filter program 6 is established (step 401). Here, in order to exchange data with the child process that executes the data backup device input/output filter program 6 generated in step 402, which will be described later,
Establishes a path for message exchange for data exchange (message exchange using pipeline control, message exchange using shared memory, etc.).
次に、当該データ退避装置入出力フィルタプログラム6
を実行するための子プロセスを生成しくステップ402
)、その子プロセス上で当日亥データ退避装置入出力フ
ィルタプログラム6を起動し実行する(ステップ403
)。当該データ退避装置入出力フィルタプログラム6の
起動に際しては、対応するデータ退避装置7の名前、デ
ータ入出力サイズおよびデータ退避装置媒体容量を引数
で与えることにより、データ退避装置情報を当該データ
退避装置入出力フィルタプログラム6に伝達する。Next, the data evacuation device input/output filter program 6
Step 402: Create a child process to execute
), starts and executes the day's boar data backup device input/output filter program 6 on its child process (step 403
). When starting the data evacuation device input/output filter program 6, by giving the name, data input/output size, and data evacuation device media capacity of the corresponding data evacuation device 7 as arguments, the data evacuation device information is imported into the data evacuation device. It is transmitted to the output filter program 6.
続いて、第5図を参照しながら、データ出力手段4の処
理について説明する。Next, the processing of the data output means 4 will be explained with reference to FIG.
データ出力手段4は、以下に示すような処理を行う。The data output means 4 performs the following processing.
該当するデータ退避装置入出力フィルタプログラム6へ
の出力データが存在するか否かを判定する(ステップ5
01)。Determine whether or not there is output data to the corresponding data evacuation device input/output filter program 6 (step 5
01).
この判定で出力データが存在する場合ζこは、当該デー
タ退避装置入出力フィルタプログラム6に対してその出
力データを出力しくステップ502)、ステップ501
の実行に戻る。If output data exists in this judgment, the output data is output to the data saving device input/output filter program 6 (Step 502), Step 501
Return to execution.
ステップ501の判定で出力データが存在しない場合に
は、処理を終了する。If it is determined in step 501 that there is no output data, the process ends.
なお、データ入出力制御手段1によって渡された出力デ
ータの量が当該データ退避装置入出力フィルタプログラ
ム6における1回の処理で出力できる量を越えている場
合におけるステップ502の処理では、出力データを分
割しながら当該データ退避装置入出力フィルタプログラ
ム6に対する出力データの出力を行う。Note that in the process of step 502 when the amount of output data passed by the data input/output control means 1 exceeds the amount that can be output in one process in the data saving device input/output filter program 6, the output data is While dividing, output data is output to the data saving device input/output filter program 6.
続いて、第6図を参照しながら、データ入力手段5の処
理について説明する。Next, the processing of the data input means 5 will be explained with reference to FIG.
データ入力手段5は、以下に示すような処理を行う。The data input means 5 performs the following processing.
該当するデータ退避装置入出力フィルタプログラム6か
らの入力データが存在するか否かを判定する(ステップ
601)。It is determined whether input data from the corresponding data saving device input/output filter program 6 exists (step 601).
この判定で入力データが存在する場合には、当該データ
退避装置入出力フィルタプログラム6からその入力デー
タを入力しくステップ602)、ステップ601の実行
に戻る。If the input data exists in this judgment, the input data is input from the data saving device input/output filter program 6 (step 602), and the process returns to step 601.
ステップ601の判定で入力データが存在しない場合に
は、処理を終了する。If the input data does not exist as determined in step 601, the process ends.
最後に、第7図を参照しながら、データ退避装置入出力
フィルタプログラム6の処理について説明する。Finally, the processing of the data saving device input/output filter program 6 will be explained with reference to FIG.
処理対象のデータ退避袋N7に対応するデータ退避装置
入出力フィルタプログラム6は、以下に示すような処理
を行う。The data saving device input/output filter program 6 corresponding to the data saving bag N7 to be processed performs the following processing.
まず、データ入出力のためのバッファを確保する(ステ
ップ701)。このバッファのサイズとしては、当該デ
ータ退避装置入出力フィルタプログラム6の起動時に引
数として渡されたデータ入出力サイズを使用する。First, a buffer for data input/output is secured (step 701). As the size of this buffer, the data input/output size passed as an argument when starting the data saving device input/output filter program 6 is used.
次に、これから行おうとするデータ処理が当該データ退
避装置7に対する出力処理であるか入力処理であるかを
判定しくステップ702)、出力処理であればステップ
703に制御を移し、入力処理であればステップ712
に制御を移す。Next, it is determined whether the data processing to be performed is output processing or input processing for the data saving device 7 (step 702), and if it is output processing, control is transferred to step 703; if it is input processing, control is transferred to step 703). Step 712
transfer control to
出力処理では、まず、データ退避装置媒体の交換(媒体
交換)が必要であるか否かを判定する(ステップ703
)。In the output process, first, it is determined whether or not it is necessary to replace the data backup device medium (medium exchange) (step 703).
).
この判定で媒体交換が必要である場合には、利用者に対
して媒体交換要求を行い(ステップ704)、媒体交換
後に当該データ退避装置7を出力モードでオープンする
(ステップ705)。If it is determined that medium exchange is necessary, a medium exchange request is made to the user (step 704), and after the medium exchange, the data saving device 7 is opened in output mode (step 705).
ステップ705の処理が終了した場合またはステップ7
03の判定で媒体交換が必要でない場合には、データ出
力手段4から渡された出力データを受け取る(ステップ
706)。If the process of step 705 is completed or step 7
If the medium exchange is not necessary in the determination of 03, the output data passed from the data output means 4 is received (step 706).
ステップ706で出力データを受け取ることができたか
否か(受け取るべき出力データが終了でないかどうか)
を判定する(ステップ707)。Whether the output data could be received in step 706 (whether the output data to be received is not finished)
is determined (step 707).
この判定で出力データが終了でない場合には、当該デー
タ退避装置7への出力のためのバッファが一杯であるか
否かを判定する(ステップ70B)。If the output data is not finished in this determination, it is determined whether the buffer for output to the data saving device 7 is full (step 70B).
この判定でバッファが一杯でない場合には、ステップ7
06の実行に戻る。If the buffer is not full in this judgment, step 7
Return to execution of 06.
ステップ708の判定でバッファが一杯である場合には
、バッファの内容を当該データ退避装置7に書き込み(
ステップ709)、ステップ703の実行に戻る。If the buffer is full as determined in step 708, the contents of the buffer are written to the data saving device 7 (
Step 709), returning to the execution of step 703.
ステップ707の判定で出力データが終了である場合に
は、当該データ退避装置7に出力されていない出力デー
タがバッファに残っているか否かを判定する(ステップ
710)。If it is determined in step 707 that the output data is finished, it is determined whether or not output data that has not been output to the data saving device 7 remains in the buffer (step 710).
この判定で出力データがバッファに残っている場合には
、その出力データを当該データ退避装置7に書き込み(
ステップ711)、当該データ退避装置7をクローズし
くステップ720)、白子プロセス(当該データ退避装
置入出力フィルタプログラム6)を終了しくステップ7
21)、処理を終了する。If the output data remains in the buffer in this judgment, the output data is written to the data saving device 7 (
Step 711), close the data saving device 7 Step 720), terminate the Shirako process (the data saving device input/output filter program 6) Step 7
21), the process ends.
ステップ710の判定で出力データがバッファに残って
いない場合には、当該データ退避装置7をクローズしく
ステップ720)、白子プロセスを終了しくステップ7
21) 、処理を終了する。If it is determined in step 710 that no output data remains in the buffer, close the data saving device 7 (step 720) and terminate the whitening process (step 7).
21) , the process ends.
入力処理では、まず、媒体交換が必要であるか否かを判
定する(ステップ712)。In the input process, first, it is determined whether or not medium exchange is necessary (step 712).
この判定で媒体交換が必要である場合には、利用者に対
して媒体交換要求を行い(ステップ713)、媒体交換
後に当該データ退避装置7を入力モードでオープンする
(ステップ714)。If it is determined that medium exchange is necessary, a medium exchange request is made to the user (step 713), and after the medium exchange, the data saving device 7 is opened in input mode (step 714).
ステップ714の処理が終了した場合またはステップ7
12の判定で媒体交換が必要でない場合には、当該デー
タ退避装置7から入力データをバッファに読み込む(ス
テップ715)。If the process of step 714 is completed or step 7
If it is determined in step 12 that medium exchange is not necessary, the input data is read from the data saving device 7 into the buffer (step 715).
次に、ステップ715で入力データを読み込むことがで
きたか否かく当該データ退避装置7からの入力データの
読み込みが終了でないかどうか)を判定する(ステップ
716)。Next, it is determined whether or not the input data could be read in step 715 (step 716).
この判定で読み込みが終了でない場合には、データ入力
手段5に入力データを渡しくステップ717)、バッフ
ァ分の入力データを全て処理したか否かを判定する(ス
テップ718)。If it is determined that the reading is not completed, the input data is passed to the data input means 5 (step 717), and it is determined whether all the input data for the buffer has been processed (step 718).
この判定でバッファ分の入力データを全て処理している
場合には、ステップ712の実行に戻る。If it is determined that all input data for the buffer has been processed, the process returns to step 712.
ステップ718の判定でバッファ分の入力データを全て
処理していない場合(未処理の入力データがバッファに
残っている場合)には、ステップ717の実行に戻る。If it is determined in step 718 that all the buffered input data has not been processed (unprocessed input data remains in the buffer), the process returns to step 717.
ステップ716の判定で読み込みが終了である場合には
、当該データ退避装置7からの入力データの読み込み終
了の通知(読み込み終了通知)をデータ入力手段5に行
い(ステップ719)、当該データ退避装置7をクロー
ズしくステップ720)、白子プロセスを衿了しくステ
ップ721)、処理を終了する。If the reading is completed as determined in step 716, a notification of the completion of reading the input data from the data saving device 7 (reading completion notification) is sent to the data input means 5 (step 719), and the data saving device 7 Step 720), the albino process is completed (Step 721), and the process ends.
以上説明したように本発明は、データ退避装置に対する
データの入出力処理をそのデータ退避装置のデータ入出
力の方式に対応したデータ退避装置入出力フィルタプロ
グラム(データ退避/復元プログラムとは別のプログラ
ム)で行うことにより、データ退避/復元プログラムと
データ退避装置との独立性を高めることができ、データ
退避装置のデータ入出力の方式の変更または新しいデー
タ入出力の方式のデータ退避装置のサポート等に対して
対応するデータ退避装置入出力フィルタプログラムの変
更または作成等によって対処することが可能になる(既
存のデータ退避/復元プログラムには全く影響を与えず
に対処することができる)という効果がある。As explained above, the present invention performs data input/output processing to a data evacuation device using a data evacuation device input/output filter program (a program different from the data evacuation/restoration program) corresponding to the data input/output method of the data evacuation device. ), it is possible to increase the independence between the data backup/restore program and the data backup device, and it is possible to change the data input/output method of the data backup device or support the data backup device with a new data input/output method. This has the effect that it is possible to deal with it by changing or creating a corresponding data evacuation device input/output filter program (this can be done without affecting the existing data evacuation/restoration program at all). be.
また、データ退避/復元プログラムにおけるデータ退避
装置入出力処理方式に関するインタフェースとしては、
フィルタ(データ退避装置入出力フィルタプログラム群
)との間のインタフェースを1つ定義しておくだけでよ
くなるので、データ退避/復元プログラムのプログラム
ロジックを簡易化することができ、データ退避/復元プ
ログラム自体の規模を縮小することができるという副次
的な効果もある。In addition, as an interface regarding the data evacuation device input/output processing method in the data evacuation/restore program,
Since it is only necessary to define one interface with the filter (data backup device input/output filter program group), the program logic of the data backup/restore program can be simplified, and the data backup/restore program itself can be There is also the side effect of being able to reduce the scale of
第1図は本発明の一実施例の構成を示すブロック図、
第2図は第1図中のデータ入出力制御手段の処理を示す
流れ図、
第3図は第1図中のデータ退避装置情報取得手段の処理
を示す流れ図、
第4図は第1図中のフィルタ起動手段の処理を示す流れ
図、
第5図は第1図中のデータ出力手段の処理を示す流れ図
、
第6図は第1図中のデータ入力手段の処理を示す流れ図
、
第7図は第1図中のデータ退避装置入出力フィルタプロ
グラムの処理を示す流れ図゛である。
図において、
1・・・データ入出力制御手段、
2・・・データ退避装置情報取得手段、3・・・フィル
タ起動手段、
4・・・データ出力手段、
5・・・データ入力手段、
6・・・データ退避装置入出力フィルタプログラム、
7・・・データ退避装置である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the processing of the data input/output control means in FIG. 1, and FIG. 3 is data saving device information in FIG. 1. 4 is a flow chart showing the processing of the filter activation means in FIG. 1; FIG. 5 is a flow chart showing the processing of the data output means in FIG. 1; FIG. 6 is a flow chart showing the processing of the data output means in FIG. FIG. 7 is a flowchart showing the processing of the data input means in FIG. 1. FIG. 7 is a flowchart showing the processing of the data saving device input/output filter program in FIG. In the figure, 1... Data input/output control means, 2... Data saving device information acquisition means, 3... Filter activation means, 4... Data output means, 5... Data input means, 6. ...Data evacuation device input/output filter program, 7...Data evacuation device.
Claims (1)
退避装置に対するデータの入出力処理を行うデータ退避
装置入出力処理方式において、データ退避/復元プログ
ラムおよびデータ退避装置とは独立して両者の間に介在
し、対応するデータ退避装置への出力データの書き込み
および対応するデータ退避装置からの入力データの読み
込みを行うデータ退避装置入出力フィルタプログラムと
、 データ退避装置情報を取得するデータ退避/復元プログ
ラム内のデータ退避装置情報取得手段と、このデータ退
避装置情報取得手段により取得されたデータ退避装置情
報を使用して該当する前記データ退避装置入出力フィル
タプログラムを起動するデータ退避/復元プログラム内
のフィルタ起動手段と、 データ退避装置への出力データをそのデータ退避装置に
対応する前記データ退避装置入出力フィルタプログラム
に渡すデータ退避/復元プログラム内のデータ出力手段
と、 データ退避装置からの入力データをそのデータ退避装置
に対応する前記データ退避装置入出力フィルタプログラ
ムから受け取るデータ退避/復元プログラム内のデータ
入力手段と、 データ退避装置に対するデータの入出力処理を行うため
に前記データ退避装置情報取得手段、前記フィルタ起動
手段、前記データ出力手段および前記データ入力手段を
制御するデータ退避/復元プログラム内のデータ入出力
制御手段と を有することを特徴とするデータ退避装置入出力処理方
式。[Scope of Claims] In a data evacuation device input/output processing method that performs data input/output processing to a data evacuation device used for saving/restoring database data, the method is independent of the data evacuation/restoration program and the data evacuation device. a data evacuation device input/output filter program that interposes between the two and writes output data to the corresponding data evacuation device and reads input data from the corresponding data evacuation device; and data that acquires data evacuation device information. Data evacuation/restoration that starts the corresponding data evacuation device input/output filter program using a data evacuation device information acquisition means in the evacuation/restoration program and the data evacuation device information obtained by the data evacuation device information acquisition means. a filter activation means within the program; a data output means within the data evacuation/restore program that passes output data to the data evacuation device to the data evacuation device input/output filter program corresponding to the data evacuation device; data input means in a data save/restore program that receives input data from the data save device input/output filter program corresponding to the data save device; and data save device information for performing data input/output processing to the data save device. A data saving device input/output processing method comprising: an acquisition means, a filter activation means, a data input/output control means in a data save/restore program that controls the data output means and the data input means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2156384A JPH0452724A (en) | 1990-06-14 | 1990-06-14 | Input/output processing system for data saving device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2156384A JPH0452724A (en) | 1990-06-14 | 1990-06-14 | Input/output processing system for data saving device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0452724A true JPH0452724A (en) | 1992-02-20 |
Family
ID=15626574
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2156384A Pending JPH0452724A (en) | 1990-06-14 | 1990-06-14 | Input/output processing system for data saving device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0452724A (en) |
-
1990
- 1990-06-14 JP JP2156384A patent/JPH0452724A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0452724A (en) | Input/output processing system for data saving device | |
| JPH06250830A (en) | Service uninterrupted program replacement device | |
| JP3099752B2 (en) | Simulation system, steering method in simulation system | |
| JP3002406B2 (en) | Graphic processor | |
| JPH05181613A (en) | Information processor | |
| JPH0535414A (en) | Magnetic tape file access system | |
| JPH02284251A (en) | Data transfer control system for hard disk | |
| JPH09171476A (en) | Dump file compressing system | |
| JPH05113882A (en) | Out-fitted man-machine interface realizing system by intermediate file | |
| JPS63296148A (en) | Page buffer access system | |
| JP2793258B2 (en) | Data setting method for positioning control device | |
| JPH03270540A (en) | Opposite subscriber number setting system | |
| JPH0581108A (en) | System for processing data backup | |
| JPH09231139A (en) | Data doubling device | |
| JPH03255547A (en) | Memory dump output system | |
| JPH04292091A (en) | Data management system for electronic exchange | |
| JPS63201740A (en) | Data editing system for service processor | |
| JPH04354048A (en) | Backup system for arithmetic unit | |
| JP2000047917A (en) | File managing method and filing system | |
| JPS60239821A (en) | File control system | |
| JPH01120986A (en) | Correction system for telephone exchange processing program | |
| JPH10207783A (en) | Volume copy system and method therefor, and computer readable recording medium recorded with volume copy program | |
| JP2001109634A (en) | System call control device and recording medium | |
| JPH01316817A (en) | data backup system | |
| JPH04141758A (en) | Data transferring method |