JP3179372B2 - WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE - Google Patents

WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE

Info

Publication number
JP3179372B2
JP3179372B2 JP17039397A JP17039397A JP3179372B2 JP 3179372 B2 JP3179372 B2 JP 3179372B2 JP 17039397 A JP17039397 A JP 17039397A JP 17039397 A JP17039397 A JP 17039397A JP 3179372 B2 JP3179372 B2 JP 3179372B2
Authority
JP
Japan
Prior art keywords
write
data
cache
medium
write cache
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
JP17039397A
Other languages
Japanese (ja)
Other versions
JPH1116246A (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.)
NEC Software Hokkaido Ltd
Original Assignee
NEC Software Hokkaido 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 NEC Software Hokkaido Ltd filed Critical NEC Software Hokkaido Ltd
Priority to JP17039397A priority Critical patent/JP3179372B2/en
Publication of JPH1116246A publication Critical patent/JPH1116246A/en
Application granted granted Critical
Publication of JP3179372B2 publication Critical patent/JP3179372B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディスクのキャッ
シュメモリ制御に関し、特にリムーバブルなディスク装
置におけるライトキャッシュ制御方法およびライトキャ
ッシュに伴う媒体排出スイッチ制御プログラムを記録し
た記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to disk cache memory control, and more particularly to a write cache control method and a write cache control method for a removable disk device.
Media discharge switch control program for
Recording media .

【0002】[0002]

【従来の技術】ディスク等の性能向上のためにキャッシ
ュメモリ(バッファメモリ)が使用されている。書込用
として使用されているキャッシュメモリのことをライト
キャッシュと呼ばれているが、その技術を使用したもの
が公開されてきている。
2. Description of the Related Art A cache memory (buffer memory) is used to improve the performance of a disk or the like. A cache memory used for writing is called a write cache, and a cache using this technique has been disclosed.

【0003】この種の従来のキャッシュ制御方式の第1
のケースとして、特開平08ー166911が開示され
ている。こ従来の方式は、活性保守を目的として、ディ
スクユニットに送る入出力コマンドにディスクユニット
に対応した制御フラグを設け、ディスクユニットを制御
する入出力装置にその入出力コマンドを送付していた。
制御フラグをオンにした入出力コマンドを入出力装置で
受信すると、活性挿抜を禁止する表示を行うようにする
か、または構造的にディスクを挿抜できないようにして
いた。
The first of such a conventional cache control system is as follows.
Japanese Patent Application Laid-Open No. 08-166911 is disclosed as a case of the above. In this conventional method, for the purpose of active maintenance, an input / output command sent to a disk unit is provided with a control flag corresponding to the disk unit, and the input / output command is sent to an input / output device that controls the disk unit.
When an input / output command with the control flag turned on is received by an input / output device, a display for prohibiting hot insertion / removal is performed or a disk is not structurally inserted / removed.

【0004】また、別の方式の第2のケースとして、特
開平−68603号公報が開示されている。この従来の
光ディスク等のリムーバブルなディスク媒体においての
ライトキャッシュの使用方法は、欠陥セクタに対する書
き込みの際に、上位からのデータをライトキャッシュに
保存しておき、媒体排出時に前記保存されたデータを媒
体に書き込むというものであった。
[0004] As a second case of another system, Japanese Patent Application Laid-Open No. 68603/1996 is disclosed. The conventional method of using a write cache in a removable disk medium such as an optical disk is to store data from a higher order in a write cache when writing to a defective sector and store the stored data in the medium when the medium is ejected. Was to write to.

【0005】この従来のライトキャッシュ制御方式につ
いて図面を参照して説明する。
The conventional write cache control system will be described with reference to the drawings.

【0006】図3は従来のライトキャッシュ制御方式の
一例の処理の流れを示す流れ図である。
FIG. 3 is a flowchart showing an example of the processing flow of a conventional write cache control system.

【0007】上位コンピュータから書込要求がくると、
装置のヘッドを目的のセクタにシークし(ステップ40
1)、上位コンピュータから受け取ったデータをバッフ
ァメモリ内の作業領域に書き込む(ステップ402)。
次に、上記目的のセクタの状態をチェックし(ステップ
404)、欠陥セクタの場合に、作業領域内のデータを
バッファメモリの代替セクタ領域に転送する(ステップ
407)、終了する(ステップ406)。上記目的のセ
クタが欠陥セクタでない場合には、前記作業領域内のデ
ータを媒体上の目的のセクタに書き込み(ステップ40
5)、終了する(ステップ406)。
When a write request comes from a host computer,
Seek the head of the device to the target sector (step 40)
1) Write the data received from the host computer into the work area in the buffer memory (step 402).
Next, the state of the target sector is checked (step 404). If the sector is a defective sector, the data in the work area is transferred to the alternative sector area of the buffer memory (step 407), and the process is terminated (step 406). If the target sector is not a defective sector, the data in the work area is written to the target sector on the medium (step 40).
5), end (step 406).

【0008】[0008]

【発明が解決しようとする課題】第1の問題点は、上述
の第1のケースのようにライトキャッシュを使用してい
る場合、キャッシュ内容が媒体に書き込まれていない旨
の通知(表示)をオペレータが無視して媒体を抜いた場
合にデータのロストの危険性があった。また、ライトキ
ャッシュ内容が媒体に書き込まれていない場合に媒体の
抜き取りをロックする機構においては、オペレータが意
図したとき媒体を抜くことができなくなる。
A first problem is that when a write cache is used as in the first case described above, a notification (display) indicating that the cache content has not been written to the medium is issued. There is a risk of data loss if the operator ignores and removes the medium. In a mechanism for locking the removal of the medium when the contents of the write cache are not written in the medium, the medium cannot be removed when the operator intends.

【0009】その理由は、入出力コマンドと媒体排出ス
イッチはそれぞれ独立しており、オペレータの誤操作が
発生し易くなるためと、媒体の抜き取りをロックするコ
マンドを発生させてから媒体排出スイッチを操作する手
順が入り、操作が複雑になるためである。
The reason for this is that the input / output command and the medium discharge switch are independent of each other, so that an erroneous operation by the operator is likely to occur, and the medium discharge switch is operated after generating a command to lock the removal of the medium. This is because the procedure enters and the operation becomes complicated.

【0010】第2の問題点は、上述の第2のケースのよ
うに、上位コンピュータから見た書込性能の向上を、欠
陥等のない正常なセクタに対して、図ることができな
い。
A second problem is that, as in the second case described above, it is impossible to improve the write performance as viewed from the host computer for a normal sector having no defect or the like.

【0011】その理由は、装置内ライトキャッシュへの
データの転送と、媒体排出時における前記ライトキャッ
シュから媒体へのデータ書き込みを、欠陥セクタに対す
る代替セクタへの書込時のみ行い、正常時の処理が考慮
されていないためである。
The reason is that the transfer of data to the write cache in the apparatus and the writing of data from the write cache to the medium when the medium is ejected are performed only when the defective sector is written to the substitute sector. Is not taken into account.

【0012】[0012]

【課題を解決するための手段】本発明の目的は、装置内
ライトキャッシュへのデータの転送と、媒体排出時にお
けるライトキャッシュ内容の媒体への書き出しを、欠陥
セクタに対する代替セクタへの書込時のみだけではな
く、通常のセクタに対する書込時にも行うことにより、
装置内バッファメモリをライトキャッシュとして使用
し、リムーバブルディスク装置における書込速度を向上
させることと、データ書き込みの信頼性の向上を図るこ
とにある。
SUMMARY OF THE INVENTION It is an object of the present invention to transfer data to an internal write cache and write the write cache contents to a medium when the medium is ejected, and to write the write cache contents to a substitute sector for a defective sector. By performing not only when writing to normal sectors,
An object of the present invention is to improve the writing speed in a removable disk device by using an internal buffer memory as a write cache and to improve the reliability of data writing.

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】そのため、本発明のライトキャッシュ制御
方法は、オペレータにより媒体排出スイッチが押下され
ると、媒体排出制御機構が、ライトキャッシュ内データ
書込判断機構に媒体排出スイッチが押下されたことを通
知し、前記ライトキャッシュ内データ書込判断機構から
のライトキャッシュ内データの書込完了の通知を待ち合
わせる第一のステップと、前記ライトキャッシュ内デー
タ書込判断機構が、ライトキャッシュ内に媒体に書き込
むべきデータがあるか否かを検索し、書き込むべきデー
タがある場合、ライトキャッシュ内データ書込機構にラ
イトキャッシュ内データの書込要求を通知し、前記ライ
トキャッシュ内データ書込機構が前記ライトキャッシュ
内のデータを媒体に書き込み、前記ライトキャッシュ内
データ書込判断機構にライトキャッシュ内データの書込
完了を通知し、前記ライトキャッシュ内データ書込判断
機構が媒体排出制御機構にライトキャッシュ内データの
書込完了を通知する第二のステップと、前記ライトキャ
ッシュ内データ書込判断機構が、ライトキャッシュ内に
媒体に書き込むべきデータがあるか否かを検索し、書き
込むべきデータがない場合、前記ライトキャッシュ内デ
ータ書込判断機構が、前記ライトキャッシュ内データ書
込機構にライトキャッシュ内データの書込要求を通知せ
ずに、前記媒体排出制御機構にライトキャッシュ内デー
タの書込完了を通知する第三のステップと、前記排出制
御機構が前記ライトキャッシュ内データの書込完了の通
知を受けた後、媒体排出機構に対して媒体排出要求を通
知し、前記媒体排出機構が媒体を排出する第四のステッ
プと、リムーバブルディスク装置への書込データが前記
ライトキャッシュに転送されてからの経過時間後に、前
記リムーバブルディスク装置に要求された前記媒体のア
クセス位置をみて前記ライトキャッシュ内データ書込判
断機構が前記ライトキャッシュから前記媒体へのデータ
書込が必要と判断した場合、または、前記ライトキャッ
シュから前記媒体へのデータ書込要求が通知された場合
においても、前記ライトキャッシュ内データ書込判断機
構は、書き込むべきデータがある場合、前記ライトキャ
ッシュ内データ書込機構に前記ライトキャッシュ内デー
タの書込要求を通知する第五のステップとを有すること
を特徴としている。
Therefore, according to the write cache control method of the present invention, when the medium ejection switch is pressed by the operator, the medium ejection control mechanism notifies the write data in write cache mechanism that the medium ejection switch is pressed. A first step of waiting for a notification of the completion of writing of the data in the write cache from the data write judging mechanism in the write cache; and A search is performed to determine whether there is data. If there is data to be written, a write request for writing data in the write cache is notified to a data writing mechanism in the write cache. The data in the write cache, and A second step of notifying the completion of writing the data in the write cache to the medium, and the write-in-cache data writing determining mechanism notifying the medium ejection control mechanism of the completion of the writing of the data in the write cache; A write judging mechanism searches whether or not there is data to be written to the medium in the write cache, and if there is no data to be written, the write cache data write judging mechanism checks the data write mechanism in the write cache. A third step of notifying the medium ejection control mechanism of the completion of the writing of the data in the write cache without notifying the write request of the data in the write cache to the medium; After receiving the notification of the completion of the loading, a media ejection request is notified to the medium ejection mechanism, and the medium ejection mechanism ejects the medium. And after a lapse of time from when the write data to the removable disk device is transferred to the write cache, a fourth step of reading the data in the write cache by looking at the access position of the medium requested by the removable disk device. When the write judging mechanism judges that data write from the write cache to the medium is necessary, or when a request to write data from the write cache to the medium is notified, And a fifth step of, when there is data to be written, notifying the data writing mechanism in the write cache of a write request for the data in the write cache.

【0017】ライトキャッシュに伴う媒体排出スイッチ
制御プログラムを記録した記録媒体は、オペレータによ
り媒体排出スイッチが押下されると、媒体排出制御機構
が、ライトキャッシュ内データ書込判断機構に媒体排出
スイッチが押下されたことを通知し、前記ライトキャッ
シュ内データ書込判断機構からのライトキャッシュ内デ
ータの書込完了の通知を待ち合わせる第一のステップ
と、前記ライトキャッシュ内データ書込判断機構が、ラ
イトキャッシュ内に媒体に書き込むべきデータがあるか
否かを検索し、書き込むべきデータがある場合、ライト
キャッシュ内データ書込機構にライトキャッシュ内デー
タの書込要求を通知し、前記ライトキャッシュ内データ
書込機構が前記ライトキャッシュ内のデータを媒体に書
き込み、前記ライトキャッシュ内データ書込判断機構に
ライトキャッシュ内データの書込完了を通知し、前記ラ
イトキャッシュ内データ書込判断機構が媒体排出制御機
構にライトキャッシュ内データの書込完了を通知する第
二のステップと、前記ライトキャッシュ内データ書込判
断機構が、ライトキャッシュ内に媒体に書き込むべきデ
ータがあるか否かを検索し、書き込むべきデータがない
場合、前記ライトキャッシュ内データ書込判断機構が、
前記ライトキャッシュ内データ書込機構にライトキャッ
シュ内データの書込要求を通知せずに、前記媒体排出制
御機構にライトキャッシュ内データの書込完了を通知す
る第三のステップと、前記排出制御機構が前記ライトキ
ャッシュ内データの書込完了の通知を受けた後、媒体排
出機構に対して媒体排出要求を通知し、前記媒体排出機
構が媒体を排出する第四のステップと、リムーバブルデ
ィスク装置への書込データが前記ライトキャッシュに転
送されてからの経過時間後に、前記リムーバブルディス
ク装置に要求された前記媒体のアクセス位置をみて前記
ライトキャッシュ内データ書込判断機構が前記ライトキ
ャッシュから前記媒体へのデータ書込が必要と判断した
場合、または、前記ライトキャッシュから前記媒体への
データ書込要求が通知された場合においても、前記ライ
トキャッシュ内データ書込判断機構は、書き込むべきデ
ータがある場合、前記ライトキャッシュ内データ書込機
構に前記ライトキャッシュ内データの書込要求を通知す
る第五のステップとの処理を上位コンピュータに実行さ
せることを特徴としている。
When a medium ejection switch is pressed by an operator on the recording medium on which the medium ejection switch control program associated with the write cache is recorded, the medium ejection control mechanism causes the data writing switch in the write cache to press the medium ejection switch. A first step of notifying that the data has been written, and waiting for a notification of the completion of writing of the data in the write cache from the data write determining mechanism in the write cache; and Whether or not there is data to be written to the medium, and if there is data to be written, notifies a write request for writing data in the write cache to the data writing mechanism in the write cache; Writes the data in the write cache to a medium, A second step of notifying the write-in-cache data writing mechanism of the completion of writing of the data in the write cache, and the write-in-cache data write determining mechanism notifying of the completion of writing of the data in the write cache to the medium ejection control mechanism; The write cache data write determination mechanism searches whether there is data to be written to the medium in the write cache, and if there is no data to write, the write cache data write determination mechanism
A third step of notifying the medium ejection control mechanism of the completion of writing of the data in the write cache without notifying the write request of the data in the write cache to the data writing mechanism in the write cache; Receiving a notification of completion of writing of the data in the write cache, notifies a medium ejection request to a medium ejection mechanism, and the medium ejection mechanism ejects the medium in a fourth step. After a lapse of time from when the write data is transferred to the write cache, the write cache data write judging mechanism checks the access position of the medium requested by the removable disk device and writes the data from the write cache to the medium. If it is determined that data writing is necessary, or a request to write data from the write cache to the medium Even in the case of being informed, the data write judging mechanism in the write cache, if there is data to be written, a fifth step of notifying the data writing mechanism in the write cache of a write request of the data in the write cache. Is performed by a host computer.

【0018】作用としては、リムーバブルディスク装置
へのデータ書込要求はライトキャッシュに転送された時
点で完了となるので、上位コンピュータまたはアプリケ
ーションソフトからみて速度は速くなる。
As an operation, since the data write request to the removable disk device is completed when it is transferred to the write cache, the speed is increased from the viewpoint of the host computer or application software.

【0019】また、媒体排出時においては、上記ライト
キャッシュ内データを媒体に書き出した後に媒体を排出
するため、不意の媒体排出によって、ライトキャッシュ
内データが媒体に書き出されずデータを消失してしまう
危険性がなくなる。
Also, when the medium is ejected, since the medium in the write cache is ejected after the data in the write cache is written out to the medium, there is a risk that the data in the write cache is not written out to the medium and the data is lost due to unexpected ejection of the medium. Loses sex.

【0020】[0020]

【発明の実施の形態】次に、本発明の第1の実施の形態
について図面を参照して説明する。
Next, a first embodiment of the present invention will be described with reference to the drawings.

【0021】図1は本発明の第1の実施の形態の構成を
示すブロック図である。
FIG. 1 is a block diagram showing the configuration of the first embodiment of the present invention.

【0022】図1を参照すると、本発明の第1の実施の
形態は、上位コンピュータによるデータを装置内のライ
トキャッシュ102に転送するデータ書込機構101
と、その後、当該装置の動作状況を考慮しての装置独自
判断(例えば、上位コンピュータからリムーバブル装置
内のライトキャッシュにデータを転送してからの経過時
間後に、上位コンピュータから要求される媒体へのアク
セス位置をみて、書き込む必要性の判断)に、上位コン
ピュータの要求に、または媒体排出スイッチ押下時にお
けるライトキャッシュ102から媒体105へのデータ
書込要求をするライトキャッシュ内データ書込判断機構
103と、ライトキャッシュ内データ書込判断機構10
3の要求によりライトキャッシュ102から媒体105
へデータを書き込むライトキャッシュ内データ書込機構
104と、オペレータによる媒体排出スイッチ106押
下時に、ライトキャッシュ内データ書込判断機構103
に対し、媒体排出スイッチ106が押下された旨を通知
し、ライトキャッシュ内データ書込判断機構103から
のライトキャッシュ102内データの書出完了通知を待
ってから媒体排出機構108に媒体排出を要求する媒体
排出制御機構107とを備えている。
Referring to FIG. 1, a first embodiment of the present invention is a data writing mechanism 101 for transferring data from a host computer to a write cache 102 in the apparatus.
Then, a device-specific determination in consideration of the operation status of the device (for example, after a lapse of time from when data is transferred from a higher-level computer to a write cache in a removable device, a medium requested by the higher-level computer is transferred to a medium) A write-in-cache data write determination mechanism 103 for requesting a write of data from the write cache 102 to the medium 105 at the request of the host computer or when the medium ejection switch is depressed. Write cache data write determination mechanism 10
3 from the write cache 102 to the medium 105
Write-in-cache data writing mechanism 104 for writing data to the write cache and data write-in-write cache mechanism 103 when the operator presses the medium discharge switch 106.
To the medium ejection switch 108, and waits for a write completion notification of the data in the write cache 102 from the write cache data writing judgment mechanism 103, and then requests the medium ejection mechanism 108 to eject the medium. And a medium discharge control mechanism 107 that performs the operation.

【0023】次に、本発明の第1の実施の形態における
動作について図1,図2を参照して説明する。
Next, the operation of the first embodiment of the present invention will be described with reference to FIGS.

【0024】図2は本実施の形態の処理を示す流れ図で
ある。
FIG. 2 is a flowchart showing the processing of this embodiment.

【0025】上位コンピュータ109からのデータはデ
ータ書込機構101によってライトキャッシュ102に
転送される。
Data from the host computer 109 is transferred to the write cache 102 by the data writing mechanism 101.

【0026】以降、図2の流れ図に沿ってライトキャッ
シュに転送されたデータが媒体に書き込まれる動作を説
明する。
Hereinafter, the operation of writing data transferred to the write cache to the medium will be described with reference to the flowchart of FIG.

【0027】オペレータにより媒体排出スイッチ106
が押下されると(ステップ201)、媒体排出制御機構
107は、ライトキャッシュ内データ書込判断機構10
3に媒体排出スイッチが押下されたことを通知し(ステ
ップ202)、ライトキャッシュ内データ書込判断機構
103からのライトキャッシュ内データの書込完了の通
知を待ち合わせる(ステップ203)。
The medium discharge switch 106 is operated by the operator.
Is pressed (step 201), the medium ejection control mechanism 107 sets the
3 is notified that the medium discharge switch has been pressed (step 202), and waits for a notification of the completion of writing of the data in the write cache from the write-in-cache data write determination mechanism 103 (step 203).

【0028】ライトキャッシュ内データ書込判断機構1
03は、ライトキャッシュ102内に媒体105に書き
込むべきデータがあるか否かを検索し(ステップ20
8)、書き込むべきデータがある場合、ライトキャッシ
ュ内データ書込機構104にライトキャッシュ内データ
の書込要求を通知し(ステップ209)、ライトキャッ
シュ内データ書込機構104はライトキャッシュ102
内のデータを媒体105に書き込み(ステップ21
0)、ライトキャッシュ内データ書込判断機構103に
ライトキャッシュ内データの書込完了を通知し、ライト
キャッシュ内データ書込判断機構103は媒体排出制御
機構107にライトキャッシュ内データの書込完了を通
知する(ステップ211)。
Write cache data write determination mechanism 1
03 searches the write cache 102 for data to be written to the medium 105 (step 20).
8) If there is data to be written, the write request for writing data in the write cache is notified to the data writing mechanism 104 in the write cache (step 209).
Is written to the medium 105 (step 21).
0), the completion of writing of the data in the write cache is notified to the write-in-cache data write determining mechanism 103, and the write-in-cache data write determination mechanism 103 notifies the medium ejection control mechanism 107 of the completion of the write of the write cache data. Notify (step 211).

【0029】書き込むべきデータがない場合、ライトキ
ャッシュ内データ書込判断機構103は、ライトキャッ
シュ内データ書込機構104にライトキャッシュ内デー
タの書込要求を通知せずに、媒体排出制御機構107に
ライトキャッシュ内データの書込完了を通知する(ステ
ップ211)。
When there is no data to be written, the write-in-cache data write judging mechanism 103 does not notify the write-in-cache data write mechanism 104 of the write request of the write-cache data, and sends it to the medium ejection control mechanism 107. The completion of writing of the data in the write cache is notified (step 211).

【0030】排出制御機構107はライトキャッシュ内
データの書込完了の通知を受けた後、媒体排出機構10
8に対して媒体排出要求を通知し(ステップ204)、
媒体排出機構108は媒体105を排出する(ステップ
205)。
The ejection control mechanism 107 receives the notification of the completion of the writing of the data in the write cache, and then,
8 is notified of a medium discharge request (step 204),
The medium discharge mechanism 108 discharges the medium 105 (Step 205).

【0031】また、上位コンピュータ109からのデー
タがライトキャッシュ102に転送されてからの経過時
間中に、上位コンピュータ109から要求された媒体へ
のアクセス位置等をみて、ライトキャッシュ内データ書
込判断機構103がライトキャッシュ102から媒体1
05へのデータ書込みが必要と判断した場合(ステップ
206)、または、上位コンピュータ109からライト
キャッシュ102から媒体105へのデータ書込要求が
通知された場合(ステップ206)においても、ライト
キャッシュ内データ書込判断機構103は前述したもの
と同様に、書き込むべきデータがある場合、ライトキャ
ッシュ内データ書込機構104にライトキャッシュ内デ
ータの書込要求を通知する(ステップ209)。
Also, during the elapsed time from when the data from the host computer 109 has been transferred to the write cache 102, the data write determination mechanism in the write cache is checked by checking the access position to the medium requested by the host computer 109. 103 is the medium 1 from the write cache 102
05 (step 206), or when a request to write data from the write cache 102 to the medium 105 is sent from the host computer 109 (step 206), As described above, when there is data to be written, the write judging mechanism 103 notifies the write cache data writing mechanism 104 of a write request of the write cache data (step 209).

【0032】次に、本発明の第1の実施形態の動作につ
いて図1および表1,表2を参照しながら詳細に説明す
る。表1,表2は本発明の第1の実施形態における処理
順序を示した表である。
Next, the operation of the first embodiment of the present invention will be described in detail with reference to FIG. Tables 1 and 2 are tables showing the processing order in the first embodiment of the present invention.

【0033】表1は媒体排出時にライトキャッシュ内に
媒体に書き込むべきデータがない場合の処理順序であ
る。
Table 1 shows the processing order when there is no data to be written to the medium in the write cache when the medium is ejected.

【0034】[0034]

【表1】 [Table 1]

【0035】上位コンピュータ109からデータの書込
要求があり、データ書込機構101はデータをライトキ
ャッシュ102に転送する(表1の項番1)。データの
ライトキャッシュへの転送後、規定時間経過した場合、
ライトキャッシュ内データ書込判断機構103はライト
キャッシュ内データ書込機構104にライトキャッシュ
内データの媒体への書込要求を通知し(表1の項番
2)、ライトキャッシュ内データ書込機構104は、表
1の項番1でライトキャッシュへ転送されたデータを媒
体105に書き込み(表1の項番3)、ライトキャッシ
ュ内データ書込判断機構103にライトキャッシュ内デ
ータの媒体への書き込みの完了を通知する(表1の項番
4)。その後オペレータにより媒体排出スイッチを押下
されると、媒体排出制御機構107はライトキャッシュ
内データ書込判断機構103に媒体排出スイッチ押下を
通知し(表1の項番5)、ライトキャッシュ内データ書
込判断機構103は、表1の項番3で既にライトキャッ
シュ102内のデータが媒体105に書き込まれてお
り、ライトキャッシュ内データの媒体への書き込みは不
要であるため、何も処理をせずに媒体排出制御機構10
7にライトキャッシュ内データの媒体への書き込みの完
了を通知し(表1の項番6)、媒体排出制御機構107
は媒体排出機構108に媒体排出要求を通知し(表1の
項番7)、媒体排出機構108は媒体105を排出する
(表1の項番8)。
When a data write request is issued from the host computer 109, the data writing mechanism 101 transfers the data to the write cache 102 (item 1 in Table 1). If the specified time has passed after the data was transferred to the write cache,
The write-in-cache-data writing mechanism 103 notifies the write-cache-data writing mechanism 104 of a request to write the data in the write cache to the medium (item number 2 in Table 1). Writes the data transferred to the write cache in the item 1 of Table 1 to the medium 105 (item 3 in Table 1), and instructs the write-in-cache data write determination mechanism 103 to write the data in the write cache to the medium. The completion is notified (item 4 in Table 1). Thereafter, when the operator presses the medium discharge switch, the medium discharge control mechanism 107 notifies the write data in write cache mechanism 103 of the press of the medium discharge switch (item 5 in Table 1), and writes the data in the write cache. Since the data in the write cache 102 has already been written to the medium 105 in item No. 3 of Table 1 and it is unnecessary to write the data in the write cache to the medium, the determination mechanism 103 performs no processing. Medium discharge control mechanism 10
7 is notified of the completion of writing the data in the write cache to the medium (item 6 in Table 1), and the medium ejection control mechanism 107
Notifies the medium discharge mechanism 108 of the medium discharge request (item 7 in Table 1), and the medium discharge mechanism 108 discharges the medium 105 (item 8 in Table 1).

【0036】表2は媒体排出時にライトキャッシュ内に
媒体に書き込むべきデータがある場合の処理順序であ
る。
Table 2 shows the processing order when there is data to be written to the medium in the write cache when the medium is ejected.

【0037】[0037]

【表2】 [Table 2]

【0038】上位コンピュータ109からデータの書込
要求があり、データ書込機構101はデータをライトキ
ャッシュ102に転送する(表2の項番1)。その後オ
ペレータにより媒体排出スイッチを押下されると、媒体
排出制御機構107はライトキャッシュ内データ書込判
断機構103に媒体排出スイッチ押下を通知し(表2の
項番2)、ライトキャッシュ内データ書込判断機構10
3は、ライトキャッシュ102内に媒体105へ書き込
まれていないデータがあるため、ライトキャッシュ内デ
ータ書込機構104にライトキャッシュ内データの媒体
への書込要求を通知し(表2の項番3)、ライトキャッ
シュ内データ書込機構104は、表2の項番1でライト
キャッシュへ転送されたデータを媒体105に書き込み
(表2の項番4)、ライトキャッシュ内データ書込判断
機構103にライトキャッシュ内データの媒体への書き
込みの完了を通知し(表2の項番5)、ライトキャッシ
ュ内データ書込判断機構103は媒体排出制御機構10
7にライトキャッシュ内データの媒体への書き込みの完
了を通知し(表2の項番6)、媒体排出制御機構107
は媒体排出機構108に媒体排出要求を通知し(表2の
項番7)、媒体排出機構108は媒体105を排出する
(表2の項番8)。
When there is a data write request from the host computer 109, the data writing mechanism 101 transfers the data to the write cache 102 (item 1 in Table 2). Thereafter, when the operator presses the medium discharge switch, the medium discharge control mechanism 107 notifies the write-in-cache data write determination mechanism 103 of the press of the medium discharge switch (item 2 in Table 2), and writes the data in the write cache. Judgment mechanism 10
No. 3 notifies the write request in the write cache to the medium to the write cache data writing mechanism 104 because there is data in the write cache 102 that has not been written to the medium 105 (item number 3 in Table 2). The write-in-cache-data writing mechanism 104 writes the data transferred to the write cache in item No. 1 of Table 2 to the medium 105 (item 4 in Table 2), and The completion of the writing of the data in the write cache to the medium is notified (item 5 in Table 2), and the data write determination mechanism 103 in the write cache notifies the medium ejection control mechanism 10
7 is notified of the completion of writing the data in the write cache to the medium (item 6 in Table 2), and the medium ejection control mechanism 107
Notifies the medium discharge mechanism 108 of the medium discharge request (item 7 in Table 2), and the medium discharge mechanism 108 discharges the medium 105 (item 8 in Table 2).

【0039】次に、本発明の第2の実施の形態について
図面を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the drawings.

【0040】図3は本発明の第2の実施の形態の構成を
示すブロック図である。
FIG. 3 is a block diagram showing the configuration of the second embodiment of the present invention.

【0041】図3を参照すると、本発明の第2の実施の
形態は、上位コンピュータ31と、リムーバブルディス
ク装置32と、記録媒体33とを備えている。
Referring to FIG. 3, the second embodiment of the present invention includes a host computer 31, a removable disk device 32, and a recording medium 33.

【0042】上位コンピュータ31は、リムーバブルデ
ィスク装置32へのデータの書き込みの処理を含むアプ
リケーションソフトであるアプリケーション309と、
ライトキャッシュ302と、アプリケーション309実
行によりデータをライトキャッシュ302に転送するデ
ータ書込機構301と、上位コンピュータ31自体の動
作状況を考慮しての上位コンピュータ31の独自判断
(例えば、アプリケーションからライトキャッシュにデ
ータを転送してからの経過時間後に、アプリケーション
から要求される媒体へのアクセス位置をみて、書き込む
必要性の判断)に、アプリケーション309の要求に、
または媒体排出スイッチ押下時におけるライトキャッシ
ュ302からリムーバブルディスク装置32(媒体30
5)へのデータの書込要求をするライトキャッシュ内デ
ータ書込判断機構303と、ライトキャッシュ内データ
書込判断機構303に対し、リムーバブルディスク装置
32内の媒体排出スイッチ306が押下された旨を通知
し、ライトキャッシュ内データ書込判断機構303から
のライトキャッシュ302内データの書出完了通知を待
ってからリムーバブル装置32(媒体排出機構308)
に媒体排出を要求する媒体排出制御機構307と、ライ
トキャッシュ内データ書込判断機構303の要求により
ライトキャッシュ302から媒体305へデータを書き
込むライトキャッシュ内データ書込機構304とから構
成される。リムーバブルディスク装置32は、媒体30
5と、媒体排出スイッチ306と、上位コンピュータ3
1からのデータを媒体305に書き込むデータ書込機構
311と、オペレータによる媒体排出スイッチ306押
下時に、リムーバブルディスク装置32から上位コンピ
ュータ31へ媒体305が移出スイッチが押下されたこ
とを通知する媒体排出通知機構310と、上位コンピュ
ータ31(媒体排出制御機構307)からの排出要求に
従って媒体305を排出する媒体排出機構308から構
成される。
The host computer 31 includes an application 309 which is application software including a process of writing data to the removable disk device 32,
The write cache 302, the data writing mechanism 301 for transferring data to the write cache 302 by executing the application 309, and the independent determination of the upper computer 31 in consideration of the operation status of the upper computer 31 itself (for example, from the application to the write cache After the lapse of time from the transfer of the data, the access position to the medium requested by the application is determined and the necessity of writing is determined).
Alternatively, the removable disk device 32 (medium 30)
5) The write-in-cache data write determining mechanism 303 that issues a request to write data to the write cache data write-in determining mechanism 303 is notified that the medium eject switch 306 in the removable disk device 32 has been pressed. The removable device 32 (medium ejecting mechanism 308) notifies the completion of writing of the data in the write cache 302 from the write-in-cache data writing judging mechanism 303.
And a write cache data writing mechanism 304 that writes data from the write cache 302 to the medium 305 in response to a request from the write cache data write determination mechanism 303. The removable disk device 32 stores the medium 30
5, medium discharge switch 306, host computer 3
A data writing mechanism 311 for writing data from the medium 1 to the medium 305, and a medium discharge notification for notifying that the switch for transferring the medium 305 from the removable disk device 32 to the host computer 31 has been pressed when the operator presses the medium discharge switch 306. The mechanism 310 includes a mechanism 310 and a medium discharge mechanism 308 that discharges the medium 305 in accordance with a discharge request from the host computer 31 (medium discharge control mechanism 307).

【0043】次に、第2の実施形態の動作について説明
する。
Next, the operation of the second embodiment will be described.

【0044】図3を参照すると、本発明の第2の実施の
形態は、以下の各ステップの処理を実行させるためのプ
ログラムを記録した記録媒体33を備える。この記録媒
体33は磁気ディスク、半導体メモリその他の記録媒体
であってもよい。
Referring to FIG. 3, the second embodiment of the present invention includes a recording medium 33 on which a program for executing the following steps is recorded. The recording medium 33 may be a magnetic disk, a semiconductor memory, or another recording medium.

【0045】このプログラムは記録媒体33から上位コ
ンピュータ31に読み込まれ、リムーバブルディスク装
置32を制御する。本発明の第2の実施の形態の制御を
行うプログラムにより以下の処理を実行する。
This program is read from the recording medium 33 into the host computer 31, and controls the removable disk device 32. The following processing is executed by a program for controlling the second embodiment of the present invention.

【0046】アプリケーション309実行時のリムーバ
ブルディスク装置32への書込データはデータ書込機構
301によってライトキャッシュ302に転送される。
Data written to the removable disk device 32 when the application 309 is executed is transferred to the write cache 302 by the data writing mechanism 301.

【0047】オペレータにより媒体排出スイッチ306
が押下されると、媒体排出通知機構310は、上位コン
ピュータ内の媒体排出制御機構307に対して媒体排出
スイッチ306が押下されたことを通知する。媒体排出
制御機構307は、ライトキャッシュ内データ書込判断
機構303に媒体排出スイッチが押下されたことを通知
し、ライトキャッシュ内データ書込判断機構303から
のライトキャッシュ内データの書込完了の通知を待ち合
わせる。
The medium discharge switch 306 is operated by the operator.
Is pressed, the medium discharge notification mechanism 310 notifies the medium discharge control mechanism 307 in the host computer that the medium discharge switch 306 has been pressed. The medium discharge control mechanism 307 notifies the write data in write cache 303 that the medium discharge switch has been pressed, and notifies the completion of writing of the data in the write cache from the data write determination mechanism 303 within the write cache. Wait for.

【0048】ライトキャッシュ内データ書込判断機構3
03は、ライトキャッシュ302内に媒体305に書き
込むべきデータがあるか否かを検索し、書き込むべきデ
ータがある場合、ライトキャッシュ内データ書込機構3
04にライトキャッシュ内データの書込要求を通知し、
ライトキャッシュ内データ書込機構304はライトキャ
ッシュ302内のデータをリムーバブルディスク装置内
のデータ書込機構311に転送し、データ書込機構31
1は前記転送されたデータを媒体305に書き込み、デ
ータ書込機構311はライトキャッシュ内データ書込機
構304にデータ書き込みが終了したことを通知し、ラ
イトキャッシュ内データ書込機構304はライトキャッ
シュ内データ書込判断機構303にライトキャッシュ内
データの書込完了を通知し、ライトキャッシュ内データ
書込判断機構303は媒体排出制御機構307にライト
キャッシュ内データの書込完了を通知する。
Write cache data write determination mechanism 3
03 searches the write cache 302 for data to be written to the medium 305, and if there is data to be written,
04 is notified of the write request of the data in the write cache,
The data writing mechanism 304 in the write cache transfers the data in the write cache 302 to the data writing mechanism 311 in the removable disk device, and the data writing mechanism 31
1 writes the transferred data to the medium 305, the data writing mechanism 311 notifies the data writing mechanism 304 in the write cache that the data writing is completed, and the data writing mechanism 304 in the write cache The data write determining mechanism 303 notifies the write completion of the data in the write cache, and the data write determining mechanism 303 notifies the medium ejection control mechanism 307 of the write completion of the data in the write cache.

【0049】書き込むべきデータがない場合、ライトキ
ャッシュ内データ書込判断機構303は、ライトキャッ
シュ内データ書込機構304にライトキャッシュ内デー
タの書込要求を通知せずに、媒体排出制御機構307に
ライトキャッシュ内データの書込完了を通知する。
When there is no data to be written, the data write determining unit 303 in the write cache does not notify the data writing unit 304 in the write cache of the write request of the data in the write cache, Notifies completion of writing of data in the write cache.

【0050】排出制御機構307はライトキャッシュ内
データの書込完了の通知を受けた後、媒体排出機構30
8に対して媒体排出要求を通知し、媒体排出機構308
は媒体305を排出する。
After receiving the notification of the completion of writing the data in the write cache, the ejection control mechanism 307 outputs
8 is notified of a medium ejection request, and the medium ejection mechanism 308 is notified.
Ejects the medium 305.

【0051】また、アプリケーション309実行時の書
込データがライトキャッシュ302に転送されてからの
経過時間中に、アプリケーション309実行時に要求さ
れた媒体305へのヘッドのアクセス位置等をみて、ラ
イトキャッシュ内データ書込判断機構303がライトキ
ャッシュ302から媒体305へのデータ書き込みが必
要と判断した場合、または、アプリケーション309実
行によるライトキャッシュ302から媒体305へのデ
ータ書込要求が通知された場合においても、ライトキャ
ッシュ内データ書込判断機構303は前述したものと同
様に、書き込むべきデータがある場合、ライトキャッシ
ュ内データ書込機構304にライトキャッシュ内データ
の書込要求を通知する。
During the elapsed time from the transfer of the write data at the time of execution of the application 309 to the write cache 302, the position of the head access to the medium 305 requested at the time of execution of the application 309 is checked. Even when the data write determination mechanism 303 determines that data write from the write cache 302 to the medium 305 is necessary, or when a request to write data from the write cache 302 to the medium 305 by execution of the application 309 is given, In the same manner as described above, if there is data to be written, the write-in-cache-data writing mechanism 303 notifies the write-in-cache-data writing mechanism 304 of a write request for writing data in the write cache.

【0052】以上説明したように、全ての書込データに
関してライトキャッシュを使用するようにしたため、デ
ータ書込性能は媒体への実アクセス(ライトキャッシュ
を使用しない方式)の場合と比較して、格段に速いもの
となる。
As described above, since the write cache is used for all the write data, the data write performance is much higher than in the case of the actual access to the medium (method not using the write cache). Will be faster.

【0053】[0053]

【発明の効果】第1の効果は、リムーバブルディスク装
置における、データ書込性能の向上と、データ書き込み
の信頼性の向上とを両立できることである。これによ
り、光ディスク,CD,PD等の大容量リムーバブルメ
ディアにおいても、コンピュータ内蔵のハードディスク
と同等の性能・信頼性を実現できる。
The first effect is that the improvement of the data writing performance and the improvement of the reliability of the data writing in the removable disk device can be achieved at the same time. As a result, even in a large-capacity removable medium such as an optical disk, a CD, and a PD, performance and reliability equivalent to a hard disk built into a computer can be realized.

【0054】その理由は、リムーバブルディスク装置の
特徴である媒体の排出時においても、ライトキャッシュ
内データの媒体への書き込みを保証できるからである。
The reason is that writing of data in the write cache to the medium can be guaranteed even when the medium is ejected, which is a feature of the removable disk device.

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

【図1】本発明の第1の実施の形態の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】本発明の第1の実施の形態の処理を示す流れ図
である。
FIG. 2 is a flowchart showing processing according to the first embodiment of the present invention.

【図3】本発明の第2の実施の形態の構成を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図4】従来のライトキャッシュ制御方式の一例の処理
の流れを示す流れ図である。
FIG. 4 is a flowchart showing a processing flow of an example of a conventional write cache control method.

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

31,109 上位コンピュータ 32 リムーバブルディスク装置 33 記録媒体 101,301 データ書込機構 102,302 ライトキャッシュ 103,303 ライトキャッシュ内データ書込判断
機構 104,304 ライトキャッシュ内データ書込機構 105,305 媒体 106,306 媒体排出スイッチ 107,307 媒体排出制御機構 108,308 媒体排出機構 309 アプリケーション 310 媒体排出通知機構 311 データ書込機構
31, 109 Upper-level computer 32 Removable disk device 33 Recording medium 101, 301 Data writing mechanism 102, 302 Write cache 103, 303 Data writing determination mechanism in write cache 104, 304 Data writing mechanism in write cache 105, 305 Medium 106 , 306 Medium ejection switch 107, 307 Medium ejection control mechanism 108, 308 Medium ejection mechanism 309 Application 310 Medium ejection notification mechanism 311 Data writing mechanism

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G11B 19/02 501 G06F 3/06 304 G06F 12/08 G06F 12/08 320 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G11B 19/02 501 G06F 3/06 304 G06F 12/08 G06F 12/08 320

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 オペレータにより媒体排出スイッチが押
下されると、媒体排出制御機構が、ライトキャッシュ内
データ書込判断機構に媒体排出スイッチが押下されたこ
とを通知し、前記ライトキャッシュ内データ書込判断機
構からのライトキャッシュ内データの書込完了の通知を
待ち合わせる第一のステップと、 前記ライトキャッシュ内データ書込判断機構が、ライト
キャッシュ内に媒体に書き込むべきデータがあるか否か
を検索し、書き込むべきデータがある場合、ライトキャ
ッシュ内データ書込機構にライトキャッシュ内データの
書込要求を通知し、前記ライトキャッシュ内データ書込
機構が前記ライトキャッシュ内のデータを媒体に書き込
み、前記ライトキャッシュ内データ書込判断機構にライ
トキャッシュ内データの書込完了を通知し、前記ライト
キャッシュ内データ書込判断機構が媒体排出制御機構に
ライトキャッシュ内データの書込完了を通知する第二の
ステップと、 前記ライトキャッシュ内データ書込判断機構が、ライト
キャッシュ内に媒体に書き込むべきデータがあるか否か
を検索し、書き込むべきデータがない場合、前記ライト
キャッシュ内データ書込判断機構が、前記ライトキャッ
シュ内データ書込機構にライトキャッシュ内データの書
込要求を通知せずに、前記媒体排出制御機構にライトキ
ャッシュ内データの書込完了を通知する第三のステップ
と、 前記排出制御機構が前記ライトキャッシュ内データの書
込完了の通知を受けた後、媒体排出機構に対して媒体排
出要求を通知し、前記媒体排出機構が媒体を排出する第
四のステップと、リムーバブルディスク装置への書込デ
ータが前記ライトキャッシュに転送されてからの経過時
間後に、前記リムーバブルディスク装置に要求された前
記媒体へのアクセス位置をみて前記ライトキャッシュ内
データ書込判断機構が前記ライトキャッシュから前記媒
体へのデータ書込が必要と判断した場合、または、前記
ライトキャッシュから前記媒体へのデータ書込要求が通
知された場合においても、前記ライトキャッシュ内デー
タ書込判断機構は、書き込むべきデータがある場合、前
記ライトキャッシュ内データ書込機構に前記ライトキャ
ッシュ内データの書込要求を通知する第五のステップと
有することを特徴とするライトキャッシュ制御方法。
When a medium ejection switch is pressed by an operator, a medium ejection control mechanism notifies the write cache data write determination mechanism that the medium ejection switch has been pressed, and writes the data in the write cache. A first step of waiting for a notification of completion of writing of the data in the write cache from the determination mechanism; and a determination whether the write cache data write determination mechanism has data to be written to the medium in the write cache. When there is data to be written, a write request for writing data in the write cache is notified to the data writing mechanism in the write cache, and the data writing mechanism in the write cache writes the data in the write cache to a medium. Notifies write cache data write completion mechanism to write cache data write completion A second step in which the data write judging mechanism in the write cache notifies the medium ejection control mechanism of the completion of writing the data in the write cache; and a data writing judging mechanism in the write cache writes the medium in the write cache. A search is performed to determine whether there is data to be written. If there is no data to be written, the write-in-cache-data write determining mechanism notifies the write-in-cache-data write mechanism of a write request for write-in-cache data. A third step of notifying the medium ejection control mechanism of the completion of the writing of the data in the write cache; and a step of notifying the medium ejection control mechanism of the completion of the writing of the data in the write cache. A fourth step of notifying the medium ejection request to the medium and ejecting the medium by the medium ejection mechanism; After a lapse of time from when write data to the storage device is transferred to the write cache, the write cache data write determination mechanism checks the access position to the medium requested by the removable disk device, and Even when it is determined that data writing to the medium is necessary, or when a request to write data to the medium is sent from the write cache, the data write determination mechanism in the write cache keeps the data to be written. And a fifth step of notifying the write-in-cache-data writing mechanism of a write request for the write-in-cache data, if any.
【請求項2】 オペレータにより媒体排出スイッチが押
下されると、媒体排出制御機構が、ライトキャッシュ内
データ書込判断機構に媒体排出スイッチが押下されたこ
とを通知し、前記ライトキャッシュ内データ書込判断機
構からのライトキャッシュ内データの書込完了の通知を
待ち合わせる第一のステップと、前記ライトキャッシュ
内データ書込判断機構が、ライトキャッシュ内に媒体に
書き込むべきデータがあるか否かを検索し、書き込むべ
きデータがある場合、ライトキャッシュ内データ書込機
構にライトキャッシュ内データの書込要求を通知し、前
記ライトキャッシュ内データ書込機構が前記ライトキャ
ッシュ内のデータを媒体に書き込み、前記ライトキャッ
シュ内データ書込判断機構にライトキャッシュ内データ
の書込完了を通知し、前記ライトキャッシュ内データ書
込判断機構が媒体排出制御機構にライトキャッシュ内デ
ータの書込完了を通知する第二のステップと、 前記ライトキャッシュ内データ書込判断機構が、ライト
キャッシュ内に媒体に書き込むべきデータがあるか否か
を検索し、書き込むべきデータがない場合、前記ライト
キャッシュ内データ書込判断機構が、前記ライトキャッ
シュ内データ書込機構にライトキャッシュ内データの書
込要求を通知せずに、前記媒体排出制御機構にライトキ
ャッシュ内データの書込完了を通知する第三のステップ
と、 前記排出制御機構が前記ライトキャッシュ内データの書
込完了の通知を受けた後、媒体排出機構に対して媒体排
出要求を通知し、前記媒体排出機構が媒体を排出する第
四のステップと、リムーバブルディスク装置への書込デ
ータが前記ライトキャッシュに転送されてからの経過時
間後に、前記リムーバブルディスク装置に要求された前
記媒体へのアクセス位置をみて前記ライトキャッシュ内
データ書込判断機構が前記ライトキャッシュから前記媒
体へのデータ書込が必要と判断した場合、または、前記
ライトキャッシュから前記媒体へのデータ書込要求が通
知された場合においても、前記ライトキャッシュ内デー
タ書込判断機構は、書き込むべきデータがある場合、前
記ライトキャッシュ内データ書込機構に前記ライトキャ
ッシュ内データの書込要求を通知する第五のステップと
の処理を上位コンピュータに実行させることを特徴とす
るライトキャッシュに伴う媒体排出スイッチ制御プログ
ラムを記録した記録媒体。
2. When a medium ejection switch is pressed by an operator, a medium ejection control mechanism notifies the write cache data writing determination mechanism that the medium ejection switch has been pressed, and writes the data in the write cache. A first step of waiting for a notification of completion of writing of the data in the write cache from the determining mechanism, and searching for whether or not the write cache has data to be written to the medium by the write cache data writing determining mechanism. When there is data to be written, a write request for writing data in the write cache is notified to the data writing mechanism in the write cache, and the data writing mechanism in the write cache writes the data in the write cache to a medium. Notifies write cache data write completion mechanism to write cache data write completion A second step in which the write-in-cache data write judging mechanism notifies the medium ejection control mechanism of the completion of writing the data in the write cache; and the write-in-cache data write judging mechanism writes the medium in the write cache. If there is no data to be written, and if there is no data to be written, the write-in-cache data write determining mechanism does not notify the write-in-cache data write mechanism of a write request for write-cache data. A third step of notifying the medium ejection control mechanism of the completion of writing of the data in the write cache; and A fourth step of notifying the medium ejection request to the medium ejection mechanism and ejecting the medium by the medium ejection mechanism; After a lapse of time from when write data to the storage device is transferred to the write cache, the write cache data write determination mechanism checks the access position to the medium requested by the removable disk device, and Even when it is determined that data writing to the medium is necessary, or when a request to write data to the medium is sent from the write cache, the data write determination mechanism in the write cache keeps the data to be written. And a fifth step of notifying the data writing mechanism in the write cache of a write request for the data in the write cache. A recording medium on which a control program is recorded.
JP17039397A 1997-06-26 1997-06-26 WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE Expired - Fee Related JP3179372B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17039397A JP3179372B2 (en) 1997-06-26 1997-06-26 WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17039397A JP3179372B2 (en) 1997-06-26 1997-06-26 WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE

Publications (2)

Publication Number Publication Date
JPH1116246A JPH1116246A (en) 1999-01-22
JP3179372B2 true JP3179372B2 (en) 2001-06-25

Family

ID=15904103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17039397A Expired - Fee Related JP3179372B2 (en) 1997-06-26 1997-06-26 WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE

Country Status (1)

Country Link
JP (1) JP3179372B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242362A1 (en) * 2005-04-20 2006-10-26 Hanes David H Method and apparatus for disconnecting an external data storage device from a computer
JP2010238336A (en) * 2009-03-31 2010-10-21 Sharp Corp Recorder, recording method, program, and recording medium
JP2011008570A (en) * 2009-06-26 2011-01-13 Buffalo Inc Storage device, information processing system, and computer program

Also Published As

Publication number Publication date
JPH1116246A (en) 1999-01-22

Similar Documents

Publication Publication Date Title
US7539816B2 (en) Disk control device, disk control method
JP2009110287A (en) Access control device and access control method
JP2011095812A (en) Apparatus and method for controlling storage
JP3865586B2 (en) Disk unit
US6237109B1 (en) Library unit with spare media and it's computer system
JP3179372B2 (en) WRITE CACHE CONTROL METHOD AND RECORDING MEDIUM RECORDING MEDIUM DISCHARGE SWITCH CONTROL PROGRAM FOR WRITE CACHE
US6088818A (en) Data read apparatus and data read method
JPH08110868A (en) Information recording and reproducing device
JP3969809B2 (en) Data buffer management method in storage device
JP2006113882A (en) Data management device
US5875453A (en) Apparatus for and method of information processing
JP2562753B2 (en) Readout control method for magneto-optical disk device
JPH11306190A (en) Video server system
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JP2634867B2 (en) Disk cache data transfer control method
JPH09282108A (en) Disk device
KR100305309B1 (en) Data reading method and data storage device
JP2732951B2 (en) Data transfer control method
JPH04341977A (en) Data reproducing control system
JPH08249129A (en) Information recording and reproducing device
JPH0895717A (en) Magnetooptic disk drive and disk drive system
JPH04285772A (en) Abnormal medium deciding system for magnetic tape storage device
JPH03208145A (en) Information recording and reproducing device
JPS63305442A (en) Optical information recording and reproducing
JPH0417019A (en) Information recording and reproducing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010321

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080413

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090413

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100413

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110413

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120413

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120413

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130413

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130413

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20140413

Year of fee payment: 13

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees