JP2512948B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP2512948B2
JP2512948B2 JP16214887A JP16214887A JP2512948B2 JP 2512948 B2 JP2512948 B2 JP 2512948B2 JP 16214887 A JP16214887 A JP 16214887A JP 16214887 A JP16214887 A JP 16214887A JP 2512948 B2 JP2512948 B2 JP 2512948B2
Authority
JP
Japan
Prior art keywords
storage device
external storage
data
buffer
medium
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 - Fee Related
Application number
JP16214887A
Other languages
Japanese (ja)
Other versions
JPS647369A (en
Inventor
俊一 加治佐
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP16214887A priority Critical patent/JP2512948B2/en
Publication of JPS647369A publication Critical patent/JPS647369A/en
Application granted granted Critical
Publication of JP2512948B2 publication Critical patent/JP2512948B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は、外部記憶装置との入出力用バッファを有
し、上記外部記憶装置に対して非同期に書込み処理が行
えるデータ処理装置に関し、特に上記外部記憶装置が、
フロッピディスク等の記憶媒体(以下、単に「媒体」と
いう)交換可能なものである場合に、バッファへの書込
みと同時に上記媒体への書込みを行い、媒体を何時でも
交換できるようにしたデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having an input / output buffer with an external storage device and capable of asynchronously writing to the external storage device. ,
When a storage medium such as a floppy disk (hereinafter, simply referred to as "medium") is replaceable, the data processing device is capable of performing the writing to the buffer and the medium at the same time so that the medium can be replaced at any time. Regarding

従来技術 米国AT&Tのベル研究所が開発したUNIXオペレーティ
ング・システムの如き、多くの内部バッファを有し、こ
れらの内部バッファのデータを外部記憶装置に対して非
同期に書込み処理を行うことが可能なオペレーティング
・システムにおいては、一般利用者はもちろん、システ
ム管理者に対しても、主記憶上に未書込みデータが残っ
ているかどうかはわからない。そのため、外部記憶装置
がフロッピディスクの如く媒体交換可能なものである場
合には、ユーザが、データ書込みが終了したと思って、
フロッピディスクを交換してしまうおそれがあった。
Prior Art An operating system that has many internal buffers, such as the UNIX operating system developed by Bell Laboratories of AT & T in the United States, and that can write data in these internal buffers asynchronously to an external storage device. -In the system, not only general users but also system administrators cannot know whether unwritten data remains in the main memory. Therefore, if the external storage device is a medium exchangeable device such as a floppy disk, the user thinks that the data writing is completed,
There was a risk of replacing the floppy disk.

また、上述の状態でフロッピディスクを交換してしま
った場合には、新しく入れたフロッピディスクのデータ
と、前に書込んだつもりのデータが混ざり、新しいフロ
ッピディスクのデータが破壊される可能性もあった。
Also, if you replace the floppy disk in the above condition, the data on the newly inserted floppy disk and the data you intended to write previously may be mixed, and the data on the new floppy disk may be destroyed. there were.

目的 本発明は上記事情に鑑みてなされたもので、その目的
とするところは、従来のシステムにおける上述の如き問
題を解消し、外部記憶装置がフロッピディスクの如く媒
体交換可能なものである場合に、ユーザが、主記憶上に
未書込みデータが残っているかどうかを意識せずに上記
媒体交換を行うことを可能にしたデータ処理装置を提供
することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-mentioned problems in the conventional system and to provide a medium exchangeable such as a floppy disk in the external storage device. The purpose is to provide a data processing device which enables a user to perform the medium exchange without being aware of whether or not unwritten data remains in the main memory.

構成 本発明の上述の目的は、外部記憶装置および該外部記
憶装置との入出力用バッファを有するデータ処理装置に
おいて、前記外部記憶装置が媒体交換可能なものか否か
をチェックする手段を設け、ユーザからの前記外部記憶
装置へのデータ書込み要求処理に際し、前記外部記憶装
置が媒体交換可能なものの場合には、データを前記バッ
ファにコピーした後、直ちに前記外部記憶装置にも書込
む如く構成したことを特徴とするデータ処理装置によっ
て達成される。
Configuration The above object of the present invention is to provide a means for checking whether or not the external storage device can exchange media in a data processing device having an external storage device and an input / output buffer with the external storage device, In the processing of a data write request from the user to the external storage device, if the external storage device is a medium exchangeable device, the data is copied to the buffer and immediately written to the external storage device. It is achieved by a data processing device characterized by the above.

非同期書込み処理を行うことが可能な、前述のUNIXオ
ペレーティング・システムの如きオペレーティング・シ
ステムにおいては、主記憶上の多くのバッファを用いて
制御を行う。この制御の流れとしては、バッファデータ
の外部記憶装置への書込みリクエストを行う処理と、実
際に外部記憶装置に対してバッファデータの書込みを行
う処理との2つがある。本発明は、この両者の連携を強
めたものと言うことができる。
In an operating system such as the above-mentioned UNIX operating system capable of performing asynchronous write processing, many buffers on the main memory are used for control. There are two control flows: a process of requesting writing of buffer data to the external storage device and a process of actually writing buffer data to the external storage device. The present invention can be said to enhance the cooperation between the two.

以下、本発明の構成を、実施例に基づいてより詳細に
説明する。
Hereinafter, the configuration of the present invention will be described in more detail based on examples.

第1図は、本発明の一実施例であるシステム構成を示
すブロック図であり、図において、1は後述する主記憶
装置3に記憶されている命令を実行するとともに、下記
の外部記憶制御装置2に命令を出すことにより、データ
転送等を実行させる機能を有する演算制御装置(CP
U)、2は上述の演算制御装置1からの命令により、ハ
ードディスク(HDD)4,フロッピディスク(FDD)5等の
外部記憶装置と下記の主記憶装置(MEM)3との間のデ
ータ転送を行う外部記憶制御装置(IOC)、3は前述の
オペレーティングシステムのプログラムや、アプリケー
ションプログラムが格納されている主記憶装置である。
FIG. 1 is a block diagram showing a system configuration according to an embodiment of the present invention. In the figure, 1 executes an instruction stored in a main storage device 3 described later, and the external storage control device described below. Operation control unit (CP with the function to execute data transfer etc.
U) and 2 are data transfer between an external storage device such as a hard disk (HDD) 4 and a floppy disk (FDD) 5 and the following main storage device (MEM) 3 in accordance with the instruction from the arithmetic and control unit 1 described above. An external storage control device (IOC) 3 is a main storage device in which the above-mentioned operating system programs and application programs are stored.

第2図は、上記主記憶装置3の使用状況(内容)を例
示する図であり、前述のバッファエリアもこの内部に存
在する。第3図に、第2図中のバッファ管理用データの
例を示す。
FIG. 2 is a diagram exemplifying the usage status (contents) of the main storage device 3, and the above-mentioned buffer area also exists inside this. FIG. 3 shows an example of the buffer management data in FIG.

第4図は、上述の如く構成された本実施例の動作を説
明するフローチャートである。以下、これに従って、動
作を説明する。
FIG. 4 is a flow chart for explaining the operation of this embodiment configured as described above. The operation will be described below according to this.

アプリケーションプログラムからの書込み要求がある
と、演算制御装置1は、まず、主記憶装置3上の空きバ
ッファを探す(ステップ11)。この空きバッファの探索
は、第3図に示した主記憶装置3内のバッファ管理用デ
ータBUSYが「使用中」でないものを探すことである。空
きバッファを得た場合には、このバッファに対応する上
記BUSYの情報を「使用中」とする(ステップ13)。
When there is a write request from the application program, the arithmetic and control unit 1 first searches for an empty buffer in the main memory 3 (step 11). This search for an empty buffer is to search for a buffer management data BUSY in the main memory 3 shown in FIG. 3 that is not "in use". When a free buffer is obtained, the BUSY information corresponding to this buffer is set to "in use" (step 13).

ここで、空きバッファがない場合には、上述のバッフ
ァ管理用データのLRUの情報を調べて、最近、最も使用
されていないバッファを選び出す(ステップ12)。次
に、選択したバッファの、上記バッファ管理用データの
DIRTYを調べ、その内容が、既に外部記憶装置に書込み
済みか否かをチェックする(ステップ14)。書込み済み
でなければ、外部記憶制御装置2に命令を与えて、バッ
ファに保持されている未書込みデータを外部記憶装置に
書込み(ステップ15)。書込み後、前記バッファ管理用
データのDIRTYの情報を書込み済みの状態とする。次
に、アプリケーションプログラムが指示した書込みデー
タをバッファに転送し、前述のバッファ管理用データの
DEV,BLKを更新する(ステップ16)。また、書込み済み
であれば、直接、上記ステップ16の処理を行う。
Here, if there is no empty buffer, the LRU information of the above-mentioned buffer management data is checked to select the buffer that has not been used most recently (step 12). Next, of the buffer management data of the selected buffer
DIRTY is checked to see if its contents have already been written to the external storage device (step 14). If it has not been written, an instruction is given to the external storage control device 2 to write the unwritten data held in the buffer to the external storage device (step 15). After writing, the DIRTY information of the buffer management data is set to the written state. Next, the write data specified by the application program is transferred to the buffer, and the above-mentioned buffer management data is transferred.
DEV and BLK are updated (step 16). If it has been written, the process of step 16 is directly performed.

次に、ステップ17で、書込み先の外部記憶装置の媒体
が交換可能なものか否かを調べる。この判断は、前記バ
ッファ管理用データのDEVを調べることによって行う。
書込み先の外部記憶装置の媒体が交換可能なものである
場合は、バッファに保持されている未書込みデータを、
外部記憶装置に書込み(ステップ18)、書込み後、前記
バッファ管理用データのDIRTYの情報を、書込み済みの
状態とする。書込み先の外部記憶装置の媒体が交換可能
なものでなければ、処理を終了する。
Next, in step 17, it is checked whether the medium of the external storage device of the writing destination is exchangeable. This judgment is made by checking the DEV of the buffer management data.
If the medium of the external storage device at the write destination is exchangeable, the unwritten data held in the buffer
Writing to the external storage device (step 18), and after writing, the DIRTY information of the buffer management data is set to the written state. If the medium of the external storage device of the writing destination is not a replaceable medium, the process ends.

上記実施例によれば、媒体を交換可能な外部記憶装置
は、何時でも交換可能となるので、操作性および信頼性
が向上する効果がある。
According to the above embodiment, the external storage device in which the medium can be exchanged can be exchanged at any time, so that there is an effect that operability and reliability are improved.

上記実施例においては、媒体を交換可能な外部記憶装
置として、フロッピディスクを例に挙げて説明したが、
本発明はこれに限定されるべきものではなく、カートリ
ッジディスク,テープ等を用いる外部記憶装置にも適用
可能なものである。
In the above-mentioned embodiment, the floppy disk has been described as an example of the external storage device capable of exchanging the medium.
The present invention should not be limited to this, and can be applied to an external storage device using a cartridge disk, a tape or the like.

効果 以上述べた如く、本発明によれば、外部記憶装置およ
び該外部記憶装置との入出力用バッファを有するデータ
処理装置において、前記外部記憶装置が記憶媒体交換可
能なものか否かをチェックする手段を設け、ユーザから
の前記外部記憶装置へのデータ書込み要求処理に際し、
前記外部記憶装置が記憶媒体交換可能なものの場合に
は、データを前記バッファにコピーした後、直ちに前記
外部記憶装置にも書込む如く構成したので、外部記憶装
置がフロッピディスクの如く媒体交換可能なものである
場合に、ユーザが、主記憶上に未書込みデータが残って
いるかどうかを意識せずに上記媒体交換を行うことを可
能にしたデータ処理装置を実現できるという顕著な実用
的効果を奏するものである。
Effect As described above, according to the present invention, in a data processing device having an external storage device and an input / output buffer with the external storage device, it is checked whether or not the external storage device is a storage medium replaceable. Means for providing a data write request from the user to the external storage device,
In the case where the external storage device is a storage medium exchangeable medium, since the data is copied to the buffer and immediately written to the external storage device, the external storage device can exchange the medium like a floppy disk. In this case, a remarkable practical effect that a user can realize a data processing device capable of performing the medium exchange without being aware of whether or not unwritten data remains in the main memory is exerted. It is a thing.

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

第1図は本発明の一実施例であるシステム構成を示すブ
ロック図、第2図は主記憶装置の内容を例示する図、第
3図はバッファ管理用データの例を示す図、第4図は演
算制御装置の動作を説明するフローチャートである。 1:演算制御装置、2:外部記憶制御装置、3:主記憶装置、
4:ハードディスク、5:フロッピディスク。
FIG. 1 is a block diagram showing a system configuration according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of contents of a main storage device, FIG. 3 is a diagram showing an example of buffer management data, and FIG. 3 is a flowchart for explaining the operation of the arithmetic and control unit. 1: arithmetic control device, 2: external storage control device, 3: main storage device,
4: Hard disk, 5: Floppy disk.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部記憶装置および該外部記憶装置との入
出力用バッファを有するデータ処理装置において、前記
外部記憶装置が記憶媒体交換可能なものか否かをチェッ
クする手段を設け、ユーザからの前記外部記憶装置への
データ書込み要求処理に際し、前記外部記憶装置が記憶
媒体交換可能なものの場合には、データを前記バッファ
にコピーした後、直ちに前記外部記憶装置にも書込む如
く構成したことを特徴とするデータ処理装置。
1. A data processing device having an external storage device and an input / output buffer for the external storage device, comprising means for checking whether or not the external storage device is a storage medium replaceable device, In the process of requesting data write to the external storage device, if the external storage device has a replaceable storage medium, the data is copied to the buffer and then immediately written to the external storage device. Characteristic data processing device.
JP16214887A 1987-06-29 1987-06-29 Data processing device Expired - Fee Related JP2512948B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16214887A JP2512948B2 (en) 1987-06-29 1987-06-29 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16214887A JP2512948B2 (en) 1987-06-29 1987-06-29 Data processing device

Publications (2)

Publication Number Publication Date
JPS647369A JPS647369A (en) 1989-01-11
JP2512948B2 true JP2512948B2 (en) 1996-07-03

Family

ID=15748950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16214887A Expired - Fee Related JP2512948B2 (en) 1987-06-29 1987-06-29 Data processing device

Country Status (1)

Country Link
JP (1) JP2512948B2 (en)

Also Published As

Publication number Publication date
JPS647369A (en) 1989-01-11

Similar Documents

Publication Publication Date Title
US7461201B2 (en) Storage control method and system for performing backup and/or restoration
US7007129B2 (en) Tape management method by which a virtual tape file emulated on a disk drive is copied between disk drives
US6175933B1 (en) Recovery of file transfers in a data processing system
JP2512948B2 (en) Data processing device
JPH1153123A (en) Backup system
US20060143423A1 (en) Storage device, data processing method thereof, data processing program thereof, and data processing system
JP3794322B2 (en) Data copy system
JP2001312421A (en) Backup method and recording medium
JPH10312329A (en) Data backup and restoring device
JPH0793101A (en) Data backup device
JP3022011B2 (en) Data backup system
JPH01198862A (en) System for managing received document
JP2641399B2 (en) File management device
JPH0327470A (en) Data storage system for electronic file
JP2001142772A (en) Management method by memory name, copying method, medium for recording management program by memory name and medium for recording copying program
JP2906739B2 (en) Storage device
JP2573579B2 (en) File operating device for multiple file / volume type magnetic tape
JPH0563824B2 (en)
JP2735400B2 (en) Asynchronous I / O control method
JPH04311231A (en) Method for controlling file transfer
JPH02213955A (en) Back-up copying method for picture data base device
JPS6337437A (en) Volume control system for magnetic disk device
JPH03257521A (en) Medium copy system
JPH0362244A (en) Data assurance control system for external semiconductor memory device
JPH0273436A (en) File control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees