JP3921751B2 - Recording apparatus, recording method, and recording / reproducing apparatus - Google Patents
Recording apparatus, recording method, and recording / reproducing apparatus Download PDFInfo
- Publication number
- JP3921751B2 JP3921751B2 JP23498597A JP23498597A JP3921751B2 JP 3921751 B2 JP3921751 B2 JP 3921751B2 JP 23498597 A JP23498597 A JP 23498597A JP 23498597 A JP23498597 A JP 23498597A JP 3921751 B2 JP3921751 B2 JP 3921751B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording medium
- recording
- area
- flag
- 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
Links
Images
Landscapes
- Management Or Editing Of Information On Record Carriers (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Optical Recording Or Reproduction (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、データを磁気ディスク,光ディスク,メモリーカード等の不揮発性記録媒体に記録する記録装置及び記録方法等に関する。
【0002】
【従来の技術】
従来より、保存を要するデータは、例えば磁気ディスク,光ディスク,或いはフラッシュメモリを用いたメモリーカード等の不揮発性の記録媒体に記録再生装置を用いて記録するのが一般的である。そして、このような不揮発性記録媒体は、その記憶領域がデータ領域と管理領域とに分けられている場合が多く、この場合にはデータ領域に保存すべきデータが記録されるとともに、管理領域に当該データを管理するための管理情報が記録される。管理領域には、記録されたデータの先頭アドレス,データ容量,データ名等が管理情報として記録され、データ記録時におけるデータ領域へのデータの格納完了時に上記管理情報が書き込まれる。そして、上述のような記録媒体においては、データ再生時に上記記録再生装置が管理領域の管理情報を参照して目的とするデータをデータ領域から読み出して再生するため、この管理領域が非常に重要なものとなる。
【0003】
【発明が解決しようとする課題】
ところで、上記記録媒体にデータを記録している際に記録再生装置の本体の電源が遮断されてしまうと、書き込み中のデータが破壊されて、当該記録媒体に既に記録されたデータの再生ができなくなってしまう場合がある。例えば、記録媒体のデータ領域へのデータの記録が完了して管理領域への管理情報を記録している際に記録再生装置の電源が遮断されてしまった場合には、管理領域上の管理情報が破壊されてしまう。そして、この破壊により、データ領域にデータが正常に記録されたにも関わらず、データの読み出しが不可能になるという問題がある。
【0004】
このため、例えば磁気ディスクや光ディスクのような記録媒体及びその記録再生装置においては、従来より、1枚のディスク上に2箇所の管理領域を形成することとし、これら2箇所の管理領域に対して相互に同一内容の管理情報を記録する方式が採用されていた。これにより、当該記録媒体及びその記録再生装置では、一方の管理領域に記録した管理情報にエラーが発生した場合であっても他方の管理領域の管理情報を参照することにより、データ領域に記録されているデータを読み出すことを可能としていた。
【0005】
しかしながら、一般に上述のような記録媒体は、アクセス速度が遅くデータの読み書きに時間を要するため、2箇所の管理領域に対して管理情報の書き込み及び読み出しを行う場合に時間的なロスが大きいという問題があった。また、磁気ディスクや光ディスクのようなビットあたりの単価が比較的安価な記録媒体に管理領域を複数設ける場合にはコスト上の問題は特に生じないが、フラッシュメモリ等を用いたメモリカード等のビットあたりの単価が比較的高価な記録媒体に管理領域を複数設ける場合には、コスト高になるという問題が生じた。
【0006】
このような問題に対処するため、本出願人は、先に提出した特願平9−109778号の「記録装置及び方法」において、上述の不揮発性記録媒体よりも高速な記憶媒体にデータ及びその管理情報を一旦格納させておき、格納したデータ及びその管理情報を上記不揮発性記録媒体に書き込む方法を用いた発明を提案している。この方法によれば、記録媒体へのデータの記録を行っている間に記録再生装置の電源が遮断された場合であっても、上記記憶媒体にデータ及びその管理情報が正常に保存されていることから、この記憶媒体に保存されたデータ及びその管理情報を改めて上記不揮発性記録媒体に書き込むことで上記データの破壊に対する問題を解決することができる。また、この方法によれば、管理情報の記録に対する信頼性が向上することから、管理領域を1箇所のみとすることができ、上述の時間的ロス及びコスト高の問題をも解決することができる。
【0007】
しかしながら、このような方法においては、例えば所謂ファイルの並べ替えやファイル名の変更等の、データの管理情報を頻繁に変更する処理を行う場合には、その都度不揮発性記録媒体への書き込み処理を行わなければならず、この処理に多くの時間がかかるという問題点があった。
【0008】
そこで、本発明は、上述の問題点を解決するために提案されたものであって、不揮発性記録媒体へのデータ書込みの回数を減少させるとともに、不揮発性記録媒体へのデータ書き込み中に装置本体の電源が遮断されても不揮発性記録媒体に記録されなかったデータを認識することにより、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されたときでもデータの迅速な変更処理を実現することのできる記録装置、記録方法、及び記録再生装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
上述の問題点を解決した本発明に係る記録装置は、不揮発性記録媒体にデータを記録する記録手段と、不揮発性記録媒体よりも高速アクセスのメモリであって、不揮発性記録媒体に記録するデータを保存するための第1の領域と第2の領域とが設定されていて、装置本体の電源が遮断された場合にも記憶内容を保持する記憶手段と、記録手段と記憶手段とを制御する制御手段とを備える。
【0010】
記録装置においては、制御手段が、予め記憶手段の第1の領域にデータを保存し、記録手段が不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に第2の領域に第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して、変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に第1の領域に保存されたデータを不揮発性記録媒体に書き込み、不揮発性記録媒体へのデータの記録が完了した時点で上記記録媒体書き込みフラグを消去するように記録手段と記憶手段とを制御する。
【0011】
また、上述の問題点を解決した本発明に係る記録方法は、不揮発性記録媒体より高速アクセスのメモリであって、装置本体の電源が遮断された場合にも記憶内容を保持する記憶手段に、記録すべきデータを一旦保存する第1のデータ保存工程と、記録媒体書き込みフラグを立てた後にこの記憶手段に保存したデータに変更すべきデータがあるか否かを判定する判定工程と、変更すべきデータがあると判定された場合に記録すべきデータの複製データを記憶手段に保存し、記憶領域書き込みフラグを立てた後にこの保存した記録すべきデータを変更すべきデータに更新し、さらにこのデータの更新が完了した時点で当該記憶領域書き込みフラグを消去することにより記録すべきデータとして改めて保存する第2のデータ保存工程と、記憶手段に保存した記録すべきデータを不揮発性記録媒体に記録し、このデータの記録が完了した時点で上記記録媒体書き込みフラグを消去するデータ記録工程とを有する。
【0012】
記録方法によれば、変更すべきデータがないと判定されるまで判定工程及び第2のデータ保存工程とを繰り返し、変更すべきデータがないと判定された場合にデータ記録工程に移行する。
【0013】
本発明に係る記録再生装置は、データを記憶する記憶手段と、記憶手段に記憶されたデータを不揮発性記録媒体に記録する記録手段と、不揮発性記録媒体からデータを読み出して再生する再生手段と、各手段を制御する制御手段とを備える。
【0014】
記録再生装置によれば、記録時において制御手段が、予め記憶手段の第1の領域にデータを保存し、記録手段が不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に第2の領域に第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して、変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に第1の領域に保存されたデータを不揮発性記録媒体に書き込み、不揮発性記録媒体へのデータの記録が完了した時点で上記記録媒体書き込みフラグを消去するように記録手段と記憶手段とを制御する。
また、記録再生装置によれば、再生時において制御手段が、記憶手段に記憶されていないデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを不揮発性記録媒体から記憶手段に書き込み、不揮発性記録媒体と記憶手段とに書き込まれているデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを記憶手段から読み出すように記憶手段及び再生手段を制御する。
【0015】
【発明の実施の形態】
以下、本発明をデータ記録再生装置に適用した実施の形態について図面を参照しながら詳細に説明する。図1に示すこのデータ記録再生装置1は、不揮発性の大容量記録媒体、例えば図2に示す光ディスク50に対してデータの記録再生を行うものである。
【0016】
データ記録再生装置1は、上記光ディスク50が格納されこの光ディスク50に対してデータの書き込み及び読み出しを行うディスクドライブ20と、ディスクI/F(インターフェース)2と、光ディスク50に書き込むデータを一旦保存する記憶手段としてのSRAM(Static Random Access Memory)3と、上記ディスクドライブ20,ディスクI/F2,SRAM3等を制御する制御手段としてのCPU(Central Processing Unit)5とを備えている。
【0017】
なお、SRAM3は、光ディスク50に書き込むデータを一旦保存する領域が2箇所設けられているとともに、装置本体の電源が遮断された場合にも記憶内容を保持するためのバックアップ電源4が接続されている。
【0018】
また、データ記録再生装置1は、CPU5のプログラムを記憶しているROM(Read Only Memory)6と、CPU5の変数領域になるDRAM(Dynamic Random Access Memory)7と、操作用のキーボード8と、キーボード8から入力された信号をバス上に供給するキーI/F(インターフェース)9と、画像情報を記録するVRAM(Video Random Access Memory)10と、画像を映すモニター11とを備える。データ記録再生装置1においては、上記CPU5,ROM6,DRAM7,ディスクI/F2,SRAM3,キーI/F9,VRAM10が、バスを介して相互に信号の授受を行うようになされている。
【0019】
なお、光ディスク50は、図2に示すように、データを記録するためのデータ領域51と、データ領域51の内周側に設けられ、データ領域51に記録されているデータの管理情報を記録するための管理領域52が備えられている。上記管理領域52に記録される管理情報は、例えば上記データの属するファイル名52a1及びデータのアドレス52a2からなるファイル管理情報52aを含んでいる。
【0020】
次に、データ記録再生装置1の各構成部について説明する。
【0021】
ROM6には、CPU5のプログラムが記憶される。DRAM7は、CPU5のための変数領域とされ、一時的にデータ又はプログラムを記憶する。
【0022】
ディスクI/F2は、CPU5とディスクドライブ20とのインターフェースである。この実施の形態では、光ディスク50がディスクドライブ20内に収納されており、データ記録時にディスクI/F2を介して入力されたデータがディスクドライブ20によって光ディスク50に書き込まれる。また、データ記録再生装置1においては、データ再生時にディスクドライブ20によって光ディスク50から読み出されたデータが、ディスクI/F2を介してVRAM10等に供給される。
【0023】
SRAM3は、揮発性メモリであって、データ記録再生装置1本体の電源遮断時においても駆動できるようにバックアップ電源4を備えている。バックアップ電源4は、例えば電池、充電池、コンデンサー等のいずれかにより構成されており、電源遮断時においてSRAM3のみを駆動する。
【0024】
このSRAM3は、光ディスク50に記録されるデータが一旦保存されるものであり、この実施の形態では、上述のようにこの保存用の領域が2つに分けて設けられている。以下、SRAM3のこの保存用の領域のうち、一方をエリア1と呼び、他方をエリア2と呼ぶ。
【0025】
キーボード8は、例えばユーザによって操作されてそれに応じた信号をキーI/F9に送出する。キーI/F9は、キーボード8からの信号をバス上に供給する。
【0026】
VRAM10は、モニターに表示する画像についての画像データを記憶するためのメモリである。データ記録再生装置1においては、例えば光ディスク50に画像データを記録した場合に、この画像データが光ディスク50の再生時にディスクドライブ20によって読み出され、ディスクI/F2及びバスを介してVRAM10に供給され、このVRAM10に記憶された画像データがモニター11によって静止画像あるいは動画像として表示されるようになっている。
【0027】
CPU5は、データ記録再生装置1を構成する各部の制御を行う。このCPU5は、光ディスク50へのデータ記録時において、光ディスク50に書き込むデータをSRAM3に一旦保存して、当該保存したデータを光ディスク50に書き込むように各部を制御する。
【0028】
次に、データ記録再生装置1において光ディスク50にデータを記録する際の処理の一例を図3に示すフローチャートを参照して説明する。
【0029】
ステップS1において、CPU5は、DRAM7から光ディスク50に書き込むべきデータを読み出す。
【0030】
続くステップS2で、CPU5は、SRAM3のエリア1への書き込み中であることを示すフラグ(以下、SRAMエリア1書き込み中フラグという。)をこのSRAM3にセットしてステップS3に進む。
【0031】
CPU5は、ステップS3で、SRAM3のエリア1に上述のステップS1で読み出したデータを書き込む。
【0032】
次のステップS4で、CPU5は、SRAMエリア1書き込み中フラグをクリアすなわち消去して、ステップS5に進む。
【0033】
ステップS5において、CPU5は、光ディスク50へデータを書き込むことを示すフラグ(以下、ディスク書き込みフラグという。)をSRAM3にセットしてステップS6に進む。
【0034】
ステップS6において、CPU5は、例えばSRAM3のエリア1に書き込まれたデータとこのステップS6の時点におけるDRAM7内のデータとを比較することにより、変更されたデータ(以下、変更データという。)があるか否か、すなわち、ステップS1〜ステップS5の処理がなされている間にDRAM7のデータが変更されたか否かについて判定する。ここで、YESすなわち変更データがあると判定された場合はステップS7に進み、NOすなわち変更データがない場合と判定された場合はステップS8に進む。
【0035】
ステップS7において、CPU5は、SRAM3のエリア2にエリア1のデータをコピーしてステップS1に戻り、ステップS1乃至ステップS6までの処理を繰り返す。そして、CPU5は、ステップS6で変更データが無い状態となるまでステップS1〜ステップS6までの処理を繰り返し、変更データが無い状態となった時点でステップS8に進む。
【0036】
この処理により、データ記録再生装置1においては、変更データが存在する間は光ディスク50へのデータの書き込みが保留される。従って、データ記録再生装置1においては、例えば所謂ファイルの並べ替えやファイル名の変更等により、データの管理情報が次々に変更される場合であっても、その都度光ディスク50の管理領域52におけるファイル管理情報52aが更新されるのではなく、光ディスク50における管理領域52の更新内容が確定した時点でファイル管理情報52aを更新させることが可能となる。
【0037】
CPU5は、ステップS8において、ディスクI/F2に書き込みコマンドを送る。そして、CPU5は、次のステップS9において、光ディスク50へ書き込むべきデータをSRAM3からディスクI/F2に転送する。
【0038】
続くステップS10で、ディスクI/F2を介して書き込みコマンドを受け取ったディスクドライブ20は、その後ディスクI/F2から送られてくるデータを光ディスク50に書き込む。そして、ディスクドライブ20は、この書き込み処理が終了すると、ディスクI/F2を介してCPU5に書込み終了のコマンドを送出する。
【0039】
CPU5は、ディスクI/F2を介して転送されるこの書込み終了のコマンドを検出すると、ステップS11において上記SRAM3内のディスク書き込みフラグをクリアすなわち消去して、処理を終了する。
【0040】
以上の処理により、データ記録再生装置1においては、変更データが存在する間は光ディスク50へのデータ書込みが保留されるので、光ディスク50へのデータの書込み回数を減少させてデータの迅速な変更あるいは更新の処理を実現することができる。
【0041】
なお、データ記録再生装置1においては、以上の処理により最新のデータがSRAM3のエリア1に、その次に新しいデータがエリア2にそれぞれ書き込まれて保存されることになる。
【0042】
図3に示した上述の処理では、光ディスク50にデータを書き込んでいる途中、すなわちステップS10の処理を行っている最中にデータ記録再生装置1の電源が遮断された場合には、ステップS11におけるSRAM3内のディスク書き込みフラグのクリアの処理が行われないために、このディスク書き込みフラグが消去されないままSRAM3内に残る。
【0043】
また、図3に示した上述の処理では、SRAM3のエリア1にデータを書き込んでいる途中、すなわちステップS3の処理を行っている最中にデータ記録再生装置1の電源が遮断された場合には、ステップS4におけるSRAM3内のSRAMエリア1書き込み中フラグのクリアの処理が行われないために、このSRAMエリア1書き込み中フラグが消去されないままSRAM3内に残る。
【0044】
ここで、SRAM3は、上述したようにバックアップ電源4が接続されているため、データ記録再生装置1の電源が遮断された場合でも記憶したデータが消えることはない。なお、データ記録再生装置1においては、SRAM3に代えて例えばフラッシュメモリ等の不揮発性メモリを用いてもよく、この場合にはバックアップ電源4は不要となる。
【0045】
データ記録再生装置1は、上述のように電源が遮断された場合においては、SRAM3内の各フラグの有無を電源再投入時に検出することで、光ディスク50に記録されなかったデータがSRAM3内に保存されていることを認識することができる。データ記録再生装置1のCPU5は、この検出に基づいて、SRAM3のエリア1又はエリア2に保存されているデータを光ディスク50に書き込む処理を行う。以下、この電源再投入時における各フラグの検出及びSRAM3のエリア1又はエリア2に保存されたデータを光ディスク50へ書き込む処理の一例について、図4に示すフローチャートを参照して説明する。
【0046】
電源再投入後のステップS11において、CPU5は、ディスク書き込みフラグがセットされているか否か、すなわちSRAM3にディスク書き込みフラグが立っているか否かについて判定する。ここで、NOすなわちSRAM3にディスク書き込みフラグが立っていないと判定した場合には、CPU5は、電源再投入時の当該処理を終了する。一方、SRAM3にディスク書き込みフラグが立っていると判定した場合には、CPU5は、ステップS12に進む。
【0047】
ステップS12において、CPU5は、エリア1書き込み中フラグがセットされているか否か、すなわちSRAM3にエリア1書き込み中フラグが立っているか否かについて判定する。ここで、YESすなわちSRAM3にエリア1書き込み中フラグが立っていると判定された場合はステップS13に進み、NOすなわちこのフラグが立っていないと判定された場合はステップS14に進む。
【0048】
CPU5は、ステップS13において、SRAM3のエリア2に保存されているデータを読み出してステップS15に進む。なお、このステップS13の処理は、図3で説明したステップS3の処理の途中で、詳しくはステップS7の処理がなされた後のステップS3の処理の途中で電源が遮断された場合に対処するための処理である。
【0049】
すなわち、ステップS13の処理は、SRAM3のエリア1にデータが書き込まれ(ステップS3)、さらに変更データが存在するためにSRAM3のエリア2に当該データがコピー(ステップS7)された後における、再度の上記ステップS3の処理の途中で電源が遮断された場合に対処するための処理である。この場合は、SRAM3のエリア1にデータが書き込まれている途中で電源が遮断されたため、このエリア1内のデータは破壊されており正常でないことが予想される。
【0050】
従って、CPU5は、ステップS13において、上述のようにSRAM3のエリア2に保存されているデータを読み出す処理を行う。なお、この場合は、変更データがまだ存在する状態、すなわち上述の例で言えば光ディスク50における管理領域52の更新内容が確定していない時点で光ディスク50へのデータ書き込みが行われることになるが、データ記録再生装置1においては、このような状態でも光ディスク50へのデータ書き込みが行われることにより、光ディスク50のデータ領域51のデータを再生可能な状態とすることができる。
【0051】
これにより、データ記録再生装置1によれば、装置本体の電源が遮断されたことに起因して光ディスク50のデータ領域51に記録されたデータが読み出し不可能になるという事態を防止することができる。また、この場合には、可及的に新しいデータによって光ディスク50へのデータ書き込みが行われることとなるので、その後のユーザーの行わなければならない作業等の負担が最小限に軽減される。
【0052】
一方、CPU5は、ステップS14において、SRAM3のエリア1に保存されているデータを読み出してステップS15に進む。なお、このステップS14の処理は、図3で説明したステップS10の処理の途中で電源が遮断された場合に対処するための処理である。すなわち、ステップS14の処理は、少なくともSRAM3のエリア1にデータが正常に書き込まれ(ステップS3)、さらにステップS6で変更データが存在しないと判定された状態、例えば光ディスク50における管理領域52の更新内容が確定した状態であって、ステップS10における光ディスク50への当該データの書き込み処理がなされている途中で電源が遮断された場合に対処するための処理である。
【0053】
この場合は、SRAM3のエリア1に保存されているデータが正常でありかつ最終的,確定的なものであるため、CPU5は、ステップS14において、上述のようにこのエリア1に保存されているデータを読み出す処理を行う。従って、この場合は、光ディスク50への記録中であったデータを改めて光ディスク50に記録する後述の処理を行うことにより、光ディスク50のデータを完全な状態で再生させることが可能となる。
【0054】
SRAM3のエリア1或いはエリア2のいずれかからデータを読み出した後のステップS15において、CPU5は、ディスクI/F2に書き込みコマンドを送る。さらにCPU5は、次のステップS16において、SRAM3のエリア1或いはエリア2のいずれかから読み出したデータをディスクI/F2に転送する。
【0055】
続くステップS17で、ディスクI/F2を介して書き込みコマンドを受け取ったディスクドライブ20は、その後ディスクI/F2から送られてくるデータを光ディスク50に書き込む。そして、ディスクドライブ20は、この書き込み処理が終了すると、ディスクI/F2を介してCPU5に書込み終了のコマンドを送出する。
【0056】
そして、このコマンドを検出して光ディスク50へのデータの書き込みの終了を確認したCPU5は、次のステップS18において、SRAM3のエリア1書き込み中フラグ及び/又はディスク書き込みフラグをクリアすなわち消去して処理を終了する。なお、データ記録再生装置1においては、上述のステップS17の処理の途中で装置本体の電源が遮断された場合であっても、依然としてSRAM3のエリア1書き込み中フラグ及び/又はディスク書き込みフラグが残っていることから、再度の電源投入によりステップS11乃至ステップS18の処理を行って光ディスク50へのデータ書き込みを行うことが可能となっている。
【0057】
データ記録再生装置1においては、SRAM3に光ディスク50への書き込みが終わっていないデータがある場合、例えばエリア1書き込み中フラグ及び/又はディスク書き込みフラグが立っていることを確認した場合に、光ディスク50を例えばディスクドライブから取り外せないように構成することが望ましい。例えば、図示しないロック機構を設け、上記フラグが立っているときには光ディスク50を取り出せないように上記ロック機構でロックすることで、SRAM3のエリア1又はエリア2に保存されているデータが書き込まれないままで当該光ディスク50が取り出されることを防止して、データが書き残しなく光ディスク50に記録されるようにすればよい。
【0058】
以上のように、データ記録再生装置1によれば、SRAM3のエリア1にデータを書き込んでいる途中、あるいは光ディスク50にデータを書き込んでいる途中に本体の電源が遮断された場合でも、光ディスク50に正常にデータを記録することができる。
【0059】
よって、データ記録再生装置1においては、例えばファイル管理情報52aをSRAM3のエリア1あるいは光ディスク50に書き込んでいる途中に電源が遮断された場合であっても、そのファイル管理情報52aを電源再投入後に光ディスク50に再現することができる。従って、ファイル管理情報52aやその他の管理情報の書き込み処理が行われている最中に電源が遮断されても、光ディスク50の管理領域52には正しい管理情報が記録されることとなり、装置本体の電源が遮断されたことに起因して光ディスク50のデータ領域51に記録されたデータが読み出し不可能になるという事態を防止することができる。
【0060】
また、データ記録再生装置1によれば、光ディスク50の管理領域52に記録される管理情報の信頼性が増すために、光ディスク50に管理情報を記録するための管理領域を複数設ける必要がなくなり、その分データ領域51を増やすことでディスクの記録領域全体を有効に使用することができるようになる。
【0061】
さらに、データ記録再生装置1は、光ディスク50に比べて書き込み速度の速いSRAM3に一旦データを書き込ませることとしているので、上述したデータの管理情報が次々に変更される場合であっても、この処理に要する時間を最小限に抑えることができる。
【0062】
なお、データ記録再生装置1は、光ディスク50に代えてフラッシュメモリ等を用いたメモリカードにデータを記録することもできる。この場合、例えば図2に示すディスクI/F2及びディスクドライブ20に代えて所定のインターフェース及びドライブを用いればよい。これによりデータ記録再生装置1は、メモリカードに記録した管理情報の信頼性も高めることができる。よって、メモリカードには、複数の管理領域を設ける必要がなくなり、バイトあたりの単価が比較的高価なメモリカードの記憶領域を有効に使用できるようになる。
【0063】
なお、データ記録再生装置1においては、データの再生時に上記SRAM3をいわゆるキャッシュメモリとして用いることもできる。データ記録再生装置1においては、例えばCPU5が図5のフローチャートに示すような処理を行うことにより、SRAM3をキャッシュメモリとして用いることが可能となる。
【0064】
CPU5は、ステップS21において、SRAM3に読み出すデータがあるか否かについて判定する。YESすなわち読み出すデータがあると判定された場合はステップS22に進み、NOすなわち読み出すデータがないと判定された場合はステップS23に進む。
【0065】
読み出すデータがあると判定された場合のステップS22において、CPU5は、SRAM3のエリア1からデータを読み出して後述するステップS27に進む。
【0066】
一方、読み出すデータがないと判定された場合のステップS23において、CPU5は、ディスクI/F2に読み出しコマンドを送る。これにより、続くステップS24において、ディスクI/F2から読み出しコマンドを検出したディスクドライブ20によって光ディスク50からデータが読み出される。読み出されたデータは、ディスクI/F2を介してバス上に送出される。このとき、CPU5は、ディスクI/F2から送出されるデータを読み出して(ステップS25)、読み出したデータをSRAM3のエリア1に書き込んで(ステップS26)、ステップS27に進む。
【0067】
CPU5は、ステップS27において、DRAM7にデータを書き込む処理を行い、当該書き込み処理の完了後に処理を終了する。
【0068】
以上のような処理により、データ記録再生装置1においては、SRAM3のエリア1内に常に読み出し可能なデータを記憶させることで、SRAM3をキャッシュメモリとして使用することができる。
【0069】
【発明の効果】
以上詳細に説明したように、本発明に係る記録装置では、制御手段が、予め記憶手段の第1の領域にデータを保存し、記録手段が不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に第2の領域に第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に第1の領域に保存されたデータを不揮発性記録媒体に書き込むように制御し、不揮発性記録媒体へのデータの記録が完了した時点で記録媒体書き込みフラグを消去する。このようにして、この記録装置では、変更すべきデータが存在する間は不揮発性記録媒体へのデータの書き込みが保留されるとともに、装置本体の電源が遮断された場合においては記憶領域書き込みフラグ及び記録媒体書き込みフラグの有無を記憶手段から検出することで不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができる。従って、記録装置によれば、不揮発性記録媒体へのデータの書込み回数を減少させることが可能となるとともに、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されても不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができることにより、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されてもデータの迅速な変更処理を実現することができる。
【0070】
また、本発明に係る記録方法によれば、変更すべきデータがないと判定されるまで判定工程及び第2のデータ保存工程とを繰り返し、変更すべきデータがないと判定された場合にデータ記録工程に移行することとしたので、変更すべきデータが存在する間はデータ記録工程の処理が行われず、これにより不揮発性記録媒体へのデータの記録が保留されるとともに、装置本体の電源が遮断された場合においては記憶領域書き込みフラグ及び記録媒体書き込みフラグの有無を記憶手段から検出することで不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができる。従って、記録方法によれば、不揮発性記録媒体へのデータの書込み回数を減少させることが可能となるとともに、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されても不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができ、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されてもデータの迅速な変更処理を実現することができる。
【0071】
さらに、本発明に係る記録再生装置によれば、記録時において制御手段が、予め記憶手段の第1の領域にデータを保存し、記録手段が不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に第2の領域に第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に第1の領域に保存されたデータを不揮発性記録媒体に書き込むように制御し、不揮発性記録媒体へのデータの記録が完了した時点で記録媒体書き込みフラグを消去する。このようにして、この記録再生装置では、変更すべきデータが存在する間は不揮発性記録媒体へのデータの書き込みが保留されるとともに、装置本体の電源が遮断された場合においては記憶領域書き込みフラグ及び記録媒体書き込みフラグの有無を記憶手段から検出することで不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができる。従って、記録再生装置によれば、不揮発性記録媒体へのデータの書込み回数を減少させることが可能となるとともに、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されても不揮発性記録媒体に記録されなかったデータが正常であるか否かを認識することができることにより、不揮発性記録媒体へデータを書き込んでいる時に装置本体の電源が遮断されてもデータの迅速な変更処理を実現することができる。
また、本発明に係る記録再生装置によれば、再生時において制御手段が、記憶手段に記憶されていないデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを不揮発性記録媒体から記憶手段に書き込み、不揮発性記録媒体と記憶手段とに書き込まれているデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを記憶手段から読み出すこととしたので、記憶手段をキャッシュメモリとして使用することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態となるデータ記録再生装置を示す回路図である。
【図2】データ記録再生装置がデータの記録再生を行う光ディスク及びこの光ディスクにおける管理領域及びデータ領域について概略的に表した図である。
【図3】データ記録再生装置におけるデータ書き込み時の処理を示すフローチャートである。
【図4】データ記録再生装置における電源再投入時の処理を示すフローチャートである。
【図5】データ記録再生装置が再生時にSRAMをキャッシュメモリとして使用する場合の処理を示すフローチャートである。
【符号の説明】
1 データ記録再生装置、2 ディスクI/F、3 SRAM、4 バックアップ電源、5 CPU、20 ディスクドライブ、50 光ディスク[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a recording apparatus and a recording method for recording data on a nonvolatile recording medium such as a magnetic disk, an optical disk, and a memory card.
[0002]
[Prior art]
Conventionally, data that needs to be stored is generally recorded on a non-volatile recording medium such as a magnetic disk, an optical disk, or a memory card using a flash memory by using a recording / reproducing apparatus. In such a nonvolatile recording medium, the storage area is often divided into a data area and a management area. In this case, data to be stored in the data area is recorded, and the management area is also recorded. Management information for managing the data is recorded. In the management area, the start address, data capacity, data name, and the like of the recorded data are recorded as management information, and the management information is written when data storage in the data area is completed at the time of data recording. In the recording medium as described above, since the recording / reproducing apparatus reads out and reproduces the target data from the data area with reference to the management information in the management area at the time of data reproduction, this management area is very important. It will be a thing.
[0003]
[Problems to be solved by the invention]
By the way, if the power supply of the main body of the recording / reproducing apparatus is cut off while recording data on the recording medium, the data being written is destroyed and the data already recorded on the recording medium can be reproduced. It may disappear. For example, if the recording / reproducing apparatus is turned off when the recording of data in the data area of the recording medium is completed and the management information is recorded in the management area, the management information in the management area Will be destroyed. Due to this destruction, there is a problem that it becomes impossible to read data even though the data is normally recorded in the data area.
[0004]
For this reason, for example, in a recording medium such as a magnetic disk or an optical disk and a recording / reproducing apparatus thereof, conventionally, two management areas are formed on one disk, and the two management areas are defined. A method of recording management information having the same contents was adopted. Thus, in the recording medium and the recording / reproducing apparatus, even if an error occurs in the management information recorded in one management area, the information is recorded in the data area by referring to the management information in the other management area. It was possible to read the data.
[0005]
However, since the recording medium as described above generally has a low access speed and requires time to read and write data, there is a problem that time loss is large when writing and reading management information to and from two management areas. was there. In addition, when providing multiple management areas on a recording medium with a relatively low unit price per bit, such as a magnetic disk or an optical disk, there is no particular problem in terms of cost, but a bit such as a memory card using a flash memory etc. When a plurality of management areas are provided on a recording medium having a relatively high unit price per unit, there is a problem that the cost increases.
[0006]
In order to deal with such a problem, the present applicant, in the “recording apparatus and method” of Japanese Patent Application No. 9-109778 filed earlier, has transferred the data and its data to a storage medium faster than the above-mentioned nonvolatile recording medium. An invention using a method of storing management information once and writing the stored data and the management information in the nonvolatile recording medium is proposed. According to this method, even when the power of the recording / reproducing apparatus is shut off while data is being recorded on the recording medium, the data and its management information are normally stored in the storage medium. Therefore, the data destruction problem can be solved by writing the data stored in the storage medium and its management information to the nonvolatile recording medium again. Further, according to this method, since the reliability with respect to the management information recording is improved, the management area can be set to only one place, and the above-described problems of time loss and high cost can be solved. .
[0007]
However, in such a method, for example, when processing for frequently changing data management information, such as so-called file rearrangement or file name change, is performed, a write process to a nonvolatile recording medium is performed each time. There is a problem that this processing takes a lot of time.
[0008]
Accordingly, the present invention has been proposed to solve the above-described problems, and reduces the number of times data is written to a nonvolatile recording medium.At the same time, it recognizes data that was not recorded on the non-volatile recording medium even when the power supply of the main body of the device was cut off during data writing to the non-volatile recording medium.ByEven when data is being written to a non-volatile recording medium and the power to the main unit is shut offAchieving rapid data change processingRecording apparatus, recording method, and recording / reproducing apparatusThe purpose is to provide.
[0009]
[Means for Solving the Problems]
A recording apparatus according to the present invention that solves the above-described problems includes a recording unit that records data on a nonvolatile recording medium,A memory that can be accessed faster than a non-volatile recording medium,A first area and a second area for storing data to be recorded on the nonvolatile recording medium are set.The stored contents are retained even when the power of the main unit is cut off.Storage means, and control means for controlling the recording means and the storage means are provided.
[0010]
In the recording apparatus, when the control unit stores data in the first area of the storage unit in advance and the recording unit records the data on the nonvolatile recording medium,Raise the recording medium write flagIt is determined whether or not there is data to be changed. When it is determined that there is data to be changed, the data in the first area is copied to the second area.After setting the storage area write flagSave the data to be changed in the first area,When the storage of this data is completed, the storage area write flag is erased to determine whether there is data to be changed,The process is repeated until it is determined that there is no data to be changed, and when it is determined that there is no data to be changed, the data stored in the first area is written to the nonvolatile recording medium.When the data recording to the non-volatile recording medium is completed, the recording medium write flag is erased.Control recording means and storage means.
[0011]
Moreover, the recording method according to the present invention that has solved the above-described problems isA memory that is accessed at a higher speed than a nonvolatile recording medium, and temporarily stores data to be recorded in a storage means that retains the stored contents even when the power of the apparatus main body is cut offA first data storage step;After setting the recording medium write flagA determination step for determining whether or not there is data to be changed in the data stored in the storage means, and a copy of the data to be recorded when it is determined that there is data to be changed is stored in the storage means.After setting the storage area write flag,Update stored data to be changed to data to be changedWhen the data update is completed, the storage area write flag is deleted.A second data storage step for re-storing as data to be recorded, and recording the data to be recorded stored in the storage means on the nonvolatile recording mediumWhen the data recording is completed, the recording medium write flag is erased.A data recording step.
[0012]
According to the recording method, the determination process and the second data storage process are repeated until it is determined that there is no data to be changed. When it is determined that there is no data to be changed, the process proceeds to the data recording process.
[0013]
A recording / reproducing apparatus according to the present invention includes a storage unit that stores data, a recording unit that records data stored in the storage unit on a non-volatile recording medium, and a reproducing unit that reads and reproduces data from the non-volatile recording medium. And control means for controlling each means.
[0014]
According to the recording / reproducing apparatus, at the time of recording, the control unit stores data in the first area of the storage unit in advance, and sets the recording medium write flag when the recording unit records the data on the nonvolatile recording medium. It is determined whether or not there is data to be changed, and when it is determined that there is data to be changed, the data in the first area is copied to the second area and the storage area write flag is set and the change is made. The data to be stored is stored in the first area, and when the storage of this data is completed, the storage area write flag is erased to determine whether there is data to be changed, and there is no data to be changed. Until it is determined that there is no data to be changed, the data stored in the first area is written to the nonvolatile recording medium, and the nonvolatile recording medium When the recording of the data is completed and controls the recording means and the storage means so as to erase the recording medium writing flag.
Also,According to the recording / reproducing apparatus, when reproducing, when the control unit makes a read request for data not stored in the storage unit, the control unit writes the requested data from the non-volatile recording medium to the storage unit. When a read request for data written in the recording medium and the storage means is made, the storage means and the reproduction means are controlled so that the data for which the read request is made is read from the storage means.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments in which the present invention is applied to a data recording / reproducing apparatus will be described in detail with reference to the drawings. The data recording / reproducing
[0016]
The data recording / reproducing
[0017]
The SRAM 3 is provided with two areas for temporarily storing data to be written on the
[0018]
The data recording / reproducing
[0019]
As shown in FIG. 2, the
[0020]
Next, each component of the data recording / reproducing
[0021]
The
[0022]
The disk I /
[0023]
The SRAM 3 is a volatile memory, and includes a
[0024]
The SRAM 3 temporarily stores data recorded on the
[0025]
The keyboard 8 is operated by a user, for example, and sends a signal corresponding thereto to the key I /
[0026]
The
[0027]
The CPU 5 controls each part constituting the data recording / reproducing
[0028]
Next, an example of processing when data is recorded on the
[0029]
In step S <b> 1, the CPU 5 reads data to be written on the
[0030]
In subsequent step S2, the CPU 5 sets a flag indicating that writing to the
[0031]
In step S3, the CPU 5 writes the data read in step S1 described above into the
[0032]
In the next step S4, the CPU 5 clears or erases the
[0033]
In step S5, the CPU 5 sets a flag indicating that data is to be written to the optical disk 50 (hereinafter referred to as a disk write flag) in the SRAM 3, and proceeds to step S6.
[0034]
In step S6, for example, the CPU 5 compares the data written in the
[0035]
In step S7, the CPU 5 copies the data of
[0036]
With this processing, in the data recording / reproducing
[0037]
In step S8, the CPU 5 sends a write command to the disk I /
[0038]
In the subsequent step S10, the
[0039]
When detecting the write end command transferred via the disk I /
[0040]
With the above processing, in the data recording / reproducing
[0041]
In the data recording / reproducing
[0042]
In the above-described processing shown in FIG. 3, when the data recording / reproducing
[0043]
In the above-described processing shown in FIG. 3, when the data recording / reproducing
[0044]
Here, since the
[0045]
When the power is turned off as described above, the data recording / reproducing
[0046]
In step S11 after the power is turned on again, the CPU 5 determines whether or not the disk write flag is set, that is, whether or not the disk write flag is set in the SRAM 3. Here, if NO, that is, if it is determined that the disk write flag is not set in the SRAM 3, the CPU 5 ends the process at the time of power-on. On the other hand, if it is determined that the disk write flag is set in the SRAM 3, the CPU 5 proceeds to step S12.
[0047]
In step S12, the CPU 5 determines whether the
[0048]
In step S13, the CPU 5 reads data stored in the
[0049]
That is, the process in step S13 is performed again after data is written in
[0050]
Therefore, in step S13, the CPU 5 performs a process of reading data stored in the
[0051]
Thereby, according to the data recording / reproducing
[0052]
On the other hand, in step S14, the CPU 5 reads the data stored in the
[0053]
In this case, since the data stored in the
[0054]
In step S15 after data is read from either
[0055]
In the subsequent step S17, the
[0056]
Then, the CPU 5 detecting this command and confirming the completion of the data writing to the
[0057]
In the data recording / reproducing
[0058]
As described above, according to the data recording / reproducing
[0059]
Therefore, in the data recording / reproducing
[0060]
Further, according to the data recording / reproducing
[0061]
Furthermore, since the data recording / reproducing
[0062]
The data recording / reproducing
[0063]
In the data recording / reproducing
[0064]
In step S <b> 21, the CPU 5 determines whether there is data to be read to the SRAM 3. If YES, that is, it is determined that there is data to be read, the process proceeds to step S22. If NO, that is, it is determined that there is no data to be read, the process proceeds to step S23.
[0065]
In step S22 when it is determined that there is data to be read, the CPU 5 reads the data from the
[0066]
On the other hand, when it is determined that there is no data to be read, the CPU 5 sends a read command to the disk I /
[0067]
In step S27, the CPU 5 performs a process of writing data to the
[0068]
With the processing as described above, in the data recording / reproducing
[0069]
【The invention's effect】
As described above in detail, in the recording apparatus according to the present invention, when the control unit stores data in the first area of the storage unit in advance and the recording unit records the data on the nonvolatile recording medium,Raise the recording medium write flagIt is determined whether or not there is data to be changed. When it is determined that there is data to be changed, the data in the first area is copied to the second area.After setting the storage area write flagSave the data to be changed in the first area,When the storage of this data is completed, determine whether there is data to be changed by deleting the storage area write flag,The process is repeated until it is determined that there is no data to be changed, and when it is determined that there is no data to be changed, control is performed so that the data stored in the first area is written to the nonvolatile recording medium.Then, the recording medium write flag is erased when the data recording to the nonvolatile recording medium is completed. In this way, in this recording device,While there is data to be changed, writing of data to the nonvolatile recording medium is suspended.At the same time, when the power supply of the apparatus main body is cut off, whether or not the data that has not been recorded on the non-volatile recording medium is normal by detecting the presence or absence of the storage area writing flag and the recording medium writing flag from the storage means. Can be recognized.Therefore, according to the recording apparatus, it is possible to reduce the number of times data is written to the nonvolatile recording medium.In addition, it is possible to recognize whether or not the data that has not been recorded on the nonvolatile recording medium is normal even when the power of the apparatus main body is cut off when data is being written to the nonvolatile recording medium.ByEven if the power of the main body of the device is cut off while writing data to the non-volatile recording mediumData can be changed quickly.
[0070]
Further, according to the recording method of the present invention, the determination process and the second data storage process are repeated until it is determined that there is no data to be changed, and when it is determined that there is no data to be changed, data recording is performed. Since the process is shifted to the process, the data recording process is not performed while there is data to be changed, and the recording of the data on the nonvolatile recording medium is suspended.At the same time, when the power supply of the apparatus main body is cut off, whether or not the data that has not been recorded on the non-volatile recording medium is normal by detecting the presence or absence of the storage area writing flag and the recording medium writing flag from the storage means. Can be recognized.Therefore, according to the recording method, it is possible to reduce the number of times data is written to the nonvolatile recording medium.In addition, when data is being written to the non-volatile recording medium, it is possible to recognize whether the data that has not been recorded on the non-volatile recording medium is normal even if the power of the apparatus main body is cut off. Even if the power of the main unit is cut off while writing data to the mediumData can be changed quickly.
[0071]
Furthermore, according to the recording / reproducing apparatus of the present invention,Whether there is data to be changed by setting a recording medium write flag when the control unit stores data in the first area of the storage unit in advance during recording and the recording unit records data on the nonvolatile recording medium. If it is determined whether there is data to be changed, the data in the first area is copied to the second area and the storage area write flag is set, and then the data to be changed is When the data is saved, the storage area write flag is erased to determine whether there is data to be changed, and the process is performed until it is determined that there is no data to be changed. When it is determined that there is no data to be changed repeatedly, control is performed so that the data stored in the first area is written to the nonvolatile recording medium. Recording erases the recording medium writing flag upon completion. Thus, in this recording / reproducing apparatus, writing of data to the nonvolatile recording medium is suspended while there is data to be changed, and when the power of the apparatus main body is shut off, the storage area write flag And by detecting the presence or absence of the recording medium write flag from the storage means, it is possible to recognize whether or not the data not recorded on the nonvolatile recording medium is normal. Therefore, according to the recording / reproducing apparatus, it is possible to reduce the number of times data is written to the non-volatile recording medium, and even if the power of the apparatus main body is cut off while the data is being written to the non-volatile recording medium, The ability to recognize whether the data that was not recorded on the volatile recording medium is normal or not, so that the data can be changed quickly even when the power to the main body of the device is cut off when data is being written to the nonvolatile recording medium Can be realized.
Further, according to the recording / reproducing apparatus of the present invention,When the control unit makes a read request for data not stored in the storage unit during reproduction, the control unit writes the requested data from the non-volatile recording medium to the storage unit, and stores the data in the non-volatile recording medium and the storage unit. When the read request for the written data is made, the data for which the read request has been made is read from the storage means, so that the storage means can be used as a cache memory.
[Brief description of the drawings]
FIG. 1 is a circuit diagram showing a data recording / reproducing apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram schematically showing an optical disc on which a data recording / reproducing apparatus records and reproduces data, and a management area and a data area in the optical disc.
FIG. 3 is a flowchart showing processing at the time of data writing in the data recording / reproducing apparatus.
FIG. 4 is a flowchart showing processing upon power-on in the data recording / reproducing apparatus.
FIG. 5 is a flowchart showing processing when the data recording / reproducing apparatus uses an SRAM as a cache memory during reproduction.
[Explanation of symbols]
1 data recording / reproducing apparatus, 2 disk I / F, 3 SRAM, 4 backup power supply, 5 CPU, 20 disk drive, 50 optical disk
Claims (9)
上記不揮発性記録媒体よりも高速アクセスのメモリであって、上記不揮発性記録媒体に記録するデータを保存するための第1の領域と第2の領域とが設定されていて、装置本体の電源が遮断された場合にも記憶内容を保持する記憶手段と、
上記記録手段と上記記憶手段とを制御する制御手段とを備え、
上記制御手段は、予め上記記憶手段の第1の領域にデータを保存し、上記記録手段が上記不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に上記第2の領域に上記第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に上記第1の領域に保存されたデータを上記不揮発性記録媒体に書き込み、上記不揮発性記録媒体へのデータの記録が完了した時点で当該記録媒体書き込みフラグを消去するように上記記録手段と上記記憶手段とを制御することを特徴とする記録装置。Recording means for recording data on a nonvolatile recording medium;
A memory for faster access than the non-volatile recording medium, the non-volatile recording medium a first region for storing data to be recorded in the second region is set, the power supply of the apparatus main body Storage means for retaining the stored contents even when blocked ;
Control means for controlling the recording means and the storage means,
The control means stores data in the first area of the storage means in advance, and there is data to be changed by setting a recording medium write flag when the recording means records the data on the nonvolatile recording medium. If it is determined whether there is data to be changed, the data of the first area is copied to the second area and the data to be changed is set after setting the storage area write flag. When the data is stored in the first area and the storage of the data is completed, the storage area write flag is erased to determine whether there is data to be changed, and until it is determined that there is no data to be changed. Repeat the process, it writes stored in the first region when it is determined that there is no to be changed data data in the non-volatile recording medium, to the non-volatile recording medium Recording apparatus characterized by controlling the said recording means and said memory means so as to erase the recording medium writing flag when the recording of data is completed.
記録媒体書き込みフラグを立てた後に上記記憶手段に保存したデータに変更すべきデータがあるか否かを判定する判定工程と、
変更すべきデータがあると判定された場合に上記記録すべきデータの複製データを上記記憶手段に保存し、記憶領域書き込みフラグを立てた後に上記保存した記録すべきデータを上記変更すべきデータに更新し、さらにこのデータの更新が完了した時点で当該記憶領域書き込みフラグを消去することにより記録すべきデータとして改めて保存する第2のデータ保存工程と、
上記記憶手段に保存した記録すべきデータを不揮発性記録媒体に記録し、このデータの記録が完了した時点で上記記録媒体書き込みフラグを消去するデータ記録工程とを有し、
変更すべきデータがないと判定されるまで上記判定工程及び上記第2のデータ保存工程とを繰り返し、変更すべきデータがないと判定された場合に上記データ記録工程に移行することを特徴とする記録方法。 A first data storage step of temporarily storing data to be recorded in a storage means that is a memory that is accessed at a higher speed than a nonvolatile recording medium and that retains the stored contents even when the power of the apparatus main body is shut off ;
A determination step of determining whether there is data to be changed in the data stored in the storage means after setting the recording medium write flag ;
When it is determined that there is data to be changed, duplicate data of the data to be recorded is stored in the storage means, and after the storage area write flag is set , the stored data to be recorded is changed to the data to be changed. A second data storage step of updating and storing again as data to be recorded by erasing the storage area write flag when the update of the data is completed ;
A data recording step of recording data to be recorded stored in the storage means on a nonvolatile recording medium, and erasing the recording medium write flag when recording of the data is completed ,
The determination process and the second data storage process are repeated until it is determined that there is no data to be changed, and when it is determined that there is no data to be changed, the process proceeds to the data recording process. Recording method.
このフラグ判定工程の判定結果に基づいて上記記録すべきデータ又は複製データのいずれかのデータを上記不揮発性記録媒体に記録するデータ再記録工程と、
上記データ再記録工程の完了後に上記記憶領域書き込みフラグ及び上記記録媒体書き込みフラグを消去するフラグ消去工程とを有し、上記データ再記録工程では、上記フラグ判定工程で記憶領域書き込みフラグがあると判定した場合には上記複製データを記録し、一方上記フラグ判定工程で記憶領域書き込みフラグがないと判定した場合には上記記録すべきデータを記録することを特徴とする請求項5記載の記録方法。When the power is cut off in any one of the first data storage step, the determination step, the second data storage step, and the data recording step, the recording medium is written when the power is turned on again. A flag determining step of determining the presence or absence of a flag, and further determining the presence or absence of the storage area writing flag when it is determined that there is a recording medium writing flag ;
A data re-recording step of recording either the data to be recorded or the duplicated data on the nonvolatile recording medium based on the determination result of the flag determination step;
A flag erasing step of erasing the storage area write flag and the recording medium write flag after completion of the data re-recording process, and in the data re-recording step, it is determined that the storage area write flag is present in the flag determination step. 6. The recording method according to claim 5 , wherein the duplicated data is recorded when the flag is determined, and the data to be recorded is recorded when the flag determining step determines that there is no storage area write flag .
上記不揮発性記録媒体よりも高速アクセスのメモリであって、上記不揮発性記録媒体に記録するデータを保存するための第1の領域と第2の領域とが設定されていて、装置本体の電源が遮断された場合にも記憶内容を保持する記憶手段と、
上記不揮発性記録媒体からデータを読み出して再生する再生手段と、
上記各手段を制御する制御手段とを備え、
上記制御手段は、
記録時において、予め上記記憶手段の第1の領域にデータを保存し、上記記録手段が上記不揮発性記録媒体にデータを記録する際に、記録媒体書き込みフラグを立てて変更すべきデータがあるか否かについて判定し、変更すべきデータがあると判定された場合に上記第2の領域に上記第1の領域のデータをコピーするとともに記憶領域書き込みフラグを立てた後に当該変更すべきデータを第1の領域に保存し、このデータの保存が完了した時点で当該記憶領域書き込みフラグを消去して変更すべきデータがあるか否かについて判断し、変更すべきデータがないと判定されるまで当該処理を繰り返し、変更すべきデータがないと判定された場合に上記第1の領域に保存されたデータを上記不揮発性記録媒体に書き込み、上記不揮発性記録媒体へのデータの記録が完了した時点で当該記録媒体書き込みフラグを消去するように上記記録手段と上記記憶手段とを制御し、
再生時において、上記記憶手段に記憶されていないデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを上記不揮発性記録媒体から上記記憶手段に書き込み、上記不揮発性記録媒体と上記記憶手段とに書き込まれているデータの読み出し要求がなされた場合に当該読み出し要求がなされたデータを上記記憶手段から読み出すように上記記憶手段及び上記再生手段を制御することを特徴とする記録再生装置。 Recording means for recording data on a nonvolatile recording medium;
A memory having a higher access speed than the non-volatile recording medium, wherein a first area and a second area for storing data to be recorded on the non-volatile recording medium are set. Storage means for retaining the stored contents even when blocked;
Reproducing means for reading and reproducing data from the non-volatile recording medium;
Control means for controlling each of the above means,
The control means includes
Whether there is data to be changed by setting a recording medium write flag when data is previously stored in the first area of the storage means during recording and the recording means records data on the nonvolatile recording medium. If it is determined that there is data to be changed, the data in the first area is copied to the second area and the data to be changed is set after the storage area write flag is set. When the storage of this data is completed, the storage area write flag is erased to determine whether there is data to be changed, and until it is determined that there is no data to be changed The processing is repeated, and when it is determined that there is no data to be changed, the data stored in the first area is written to the nonvolatile recording medium, and the nonvolatile recording medium is written. Controls and said recording means and said memory means so as to erase the recording medium writing flag when the recording of data is completed,
When a read request for data not stored in the storage means is made during reproduction, the data for which the read request has been made is written from the nonvolatile recording medium to the storage means, and the nonvolatile recording medium and the storage means A recording / reproducing apparatus for controlling the storage means and the reproducing means so as to read out the data requested to be read from the storage means when a request for reading the data written in is made.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23498597A JP3921751B2 (en) | 1997-08-29 | 1997-08-29 | Recording apparatus, recording method, and recording / reproducing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23498597A JP3921751B2 (en) | 1997-08-29 | 1997-08-29 | Recording apparatus, recording method, and recording / reproducing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH1173732A JPH1173732A (en) | 1999-03-16 |
| JP3921751B2 true JP3921751B2 (en) | 2007-05-30 |
Family
ID=16979351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23498597A Expired - Fee Related JP3921751B2 (en) | 1997-08-29 | 1997-08-29 | Recording apparatus, recording method, and recording / reproducing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3921751B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7472222B2 (en) * | 2004-10-12 | 2008-12-30 | Hitachi Global Storage Technologies Netherlands B.V. | HDD having both DRAM and flash memory |
| JP2010198329A (en) | 2009-02-25 | 2010-09-09 | Nec Corp | Storage apparatus, storage management method, and storage management program |
-
1997
- 1997-08-29 JP JP23498597A patent/JP3921751B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH1173732A (en) | 1999-03-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030023966A1 (en) | Method of software installation and updating firmware, recording and reading device, and recording medium therefor | |
| JPH05313980A (en) | Information recording method | |
| RU2005111237A (en) | METHOD AND DEVICE FOR MANAGING DISK DEFECTS USING TEMPORARY INFORMATION ABOUT DEFECTS (WIOD) AND TEMPORARY INFORMATION ABOUT DEFECT MANAGEMENT (VIAU) AND A DISC HAVING A VIDEO AND VIAUD | |
| JP2002123421A (en) | Remapping control method for flash memory and structure of flash memory using the same | |
| JPH056891B2 (en) | ||
| JP2002358248A (en) | Data recording device and data erasing device | |
| US6956798B2 (en) | Information recording apparatus and method for recording information on recording medium | |
| JP3641863B2 (en) | Data recording apparatus and method | |
| JP3921751B2 (en) | Recording apparatus, recording method, and recording / reproducing apparatus | |
| RU2384897C2 (en) | Method and device for recording data onto recording medium | |
| US6108289A (en) | Optical disc recording apparatus for overwriting information on a previously recorded packet of an optical disc | |
| RU2212062C2 (en) | Record medium and record protection method | |
| JP2003173285A (en) | Information recording method and information recording / reproducing device | |
| JPH03192436A (en) | Information recording and playback method | |
| JP2859205B2 (en) | Data recording device and data recording method for flash memory of portable information processing system | |
| JPH10161942A (en) | Information storage method, information storage device, and information processing device | |
| JPH09312084A (en) | Information recording device | |
| JP3133525B2 (en) | Data backup system | |
| KR100510520B1 (en) | Method for recording data | |
| JP2002251821A (en) | Information recording / reproducing device | |
| JPH09198846A (en) | Magneto-optical recording device | |
| JPH10302371A (en) | Recording device and method | |
| JP2005071443A (en) | Information recording / reproducing apparatus, information recording / reproducing method, and program | |
| JPH04215153A (en) | Information recording and reproducing device | |
| JP3578949B2 (en) | Dubbing device and audio equipment having the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040427 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060705 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060829 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061030 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070130 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070212 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100302 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110302 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120302 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |