JP2689116B2 - Optical disk storage management method - Google Patents

Optical disk storage management method

Info

Publication number
JP2689116B2
JP2689116B2 JP62204110A JP20411087A JP2689116B2 JP 2689116 B2 JP2689116 B2 JP 2689116B2 JP 62204110 A JP62204110 A JP 62204110A JP 20411087 A JP20411087 A JP 20411087A JP 2689116 B2 JP2689116 B2 JP 2689116B2
Authority
JP
Japan
Prior art keywords
file
area
data
search
header
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 - Lifetime
Application number
JP62204110A
Other languages
Japanese (ja)
Other versions
JPS6448283A (en
Inventor
好造 諸田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP62204110A priority Critical patent/JP2689116B2/en
Publication of JPS6448283A publication Critical patent/JPS6448283A/en
Application granted granted Critical
Publication of JP2689116B2 publication Critical patent/JP2689116B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [技術分野] 本発明は、データファイルと、おのおののデータファ
イルに設定される検索情報を記憶する光ディスクの記憶
管理方法に関する。 [従来技術] 近年、光学的記憶媒体を円盤状に形成した光ディスク
を記憶媒体として用いる光ディスク装置が実用されてお
り、大容量のデータを扱う画像データファイリング装
置、あるいは、電子計算機システムにおける大容量の補
助記憶装置等に応用されている。 この光ディスクの表面には、トラックピッチが1〜2
μmの記録トラックが形成されており、この記録トラッ
クの表面の状態(例えば反射率)を、記録するデータに
対応して変化させることによって、データが記憶され
る。また、多くの場合、データを記録するときには記録
トラックの表面が破壊されるので、記録トラック上では
直接記録データを更新できない。 また、光ディスクでは、所定長(例えば、2048バイ
ト)のセクタ単位にデータを記録/再生しており、それ
により、ファイルアクセスの自由度が高くなるととも
に、データエラーを訂正する誤り訂正処理等を効率よく
行なうことができる。 さて、光ディスクに記憶されている多数のファイルか
ら目的のファイルを迅速に見つけ出すこと(検索)がで
きるように、おのおののファイルには、そのファイルの
内容に関する情報、例えば、作成者、作成日付、ファイ
ルの種別、ファイルの形式、ファイルの属性、および、
標題等からなる検索情報(管理用二次情報)が付加され
ている。 ここで、ファイルの属性とは、例えば、ファイルを構
成するデータが画像データであるのか、あるいは、文字
コードデータであるのかの区別、また、画像データの場
合には1画素当りのビット数をあらわす情報等が含まれ
る。 ところで、従来では、光ディスクにデータを記録/再
生するためのファイル管理システムが、ファイルおよび
検索情報を一元的に管理しているため、次のような不都
合を生じていた。 すなわち、光ディスクの記憶領域の大部分を占めるデ
ータファイル中に検索データが分散するため、複数の検
索データを続けてアクセスする場合、ヘッドの移動の大
半がデータファイルを横切る動作となり時間がかかると
いう不都合を生じる。 また、レコード更新の度に検索データも更新されるの
で、頻繁なレコード更新がなされたデータファイルには
検索データが分散しており、したがって、アクセス時に
シーク動作が多発しアクセス時間が増大するという不都
合を生じる。 [目的] 本発明は、かかる従来技術の不都合を解消するために
なされたものであり、ファイル管理システムがファイル
および検索情報を別系統で操作できる光ディスクの記憶
管理方法を提供することを目的としている。 [構成] 本発明は、データファイルと、おのおののデータファ
イルに設定される検索情報を記憶する光ディスクの記憶
管理方法において、前記検索情報は所定の大きさの領域
に格納するとともに、検索情報の追加時点で前記領域に
空きがない場合には、新たな領域を確保し、前記データ
ファイルのうち必要なデータファイルの検索情報と、前
記追加する検索情報を、前記新たな領域に書き込むとと
もに、それ以降は、前記新たな領域に対して、検索情報
を追加するようにしたものである。 以下、添付図面を参照しながら、本発明の実施例を詳
細に説明する。 第1図は、本発明の一実施例にかかる光ディスクシス
テムを示している。このシステムは、ホスト装置HSTと
光ディスク装置ODEから構成されている。 ホスト装置HSTにおいて、中央処理装置1は本発明に
かかるファイルシステムのための処理等の各種データ処
理を行なうためのものであり、その処理プログラムはプ
ログラムメモリ2に記憶され、ワークエリアはワークメ
モリ3に形成される。 また、CRT表示装置4およびキーボード5はこのホス
ト装置HSTとオペレータのマン−マシンインタフェース
をなすものであり、磁気ディスク制御装置6および磁気
ディスク駆動装置7はこのホスト装置HSTにおいて主と
して使用される補助記憶装置を構成している。 光ディスクインタフェース8はこのホスト装置HSTと
光ディスク装置ODEの間でデータをやりとりするための
ものであり、また、外部インタフェース9は、例えば、
画像読取装置や画像記録装置等の外部装置とデータをや
りとりするためのものである。 そして、これらの中央処理装置1、プログラムメモリ
2、ワークメモリ3、CRT表示装置4、キーボード5、
磁気ディスク制御装置6、光ディスクインタフェース
8、および、外部インタフェース9の相互のデータのや
りとりは、システムバス10を介してなされている。 光ディスク装置ODEにおいて、光ディスク制御装置11
は、ホスト装置HSTとデータをやりとりして光ディスク
駆動装置12が駆動する光ディスクにデータを記録/再生
するためのものである。 また、光ディスクは、周知のように、所定長のセクタ
単位にデータを記録/再生するための物理的なフォーマ
ットが形成されており、おのおののセクタにはセクタア
ドレスが設定されている。この実施例では、1セクタは
2048バイト(2Kバイト)からなる。 第2図(a)〜(e)は、光ディスクの記憶領域の分
割状態を例示している。 光ディスクの記憶領域は、2つの領域、すなわち、デ
ータファイルを記憶するデータ領域ADと、データファイ
ルをアクセスするための管理情報を記憶する管理情報領
域AMに分割され、さらに、管理情報領域AMは、ヘッダ領
域HD、システム領域SM、および、検索用データ領域KYに
分割される。この場合、セクタアドレスOが管理情報領
域AMの先頭に一致し、データ領域ADの最後尾が外部より
アクセス可能な最終セクタアドレスに一致する。 システム領域SMは、システム領域SMが一杯になったと
きに確保される二次的なシステム領域(図示略)を示す
ためのシステム領域リンク情報、ファイルヘッダ(後
述)を効率よくアクセスするためのファイル識別子(以
下、FIDという)ディレクトリ(後述)が記憶されるFID
ディレクトリ領域、および、おのおののデータファイル
あるいは検索用データファイルのデータ領域ADまたは検
索用データ領域KYへの記録状態を登録しているファイル
ヘッダが記憶されるファイルヘッダ領域からなる。 検索用データ領域KYは、検索用データ領域KYが一杯に
なったときに確保される二次的な検索用データ領域(図
示略)を示すための検索用データ領域リンク情報、およ
び、検索用データファイルが記憶される検索用データフ
ァイル領域からなる。 ヘッダ領域HDは、光ディスクの特性等を表示するため
のボリュームマーク、データ領域ADの最終セクタ番号
(セクタアドレス)を示すデータ領域最終セクタ番号、
ヘッダ領域HDの最終セクタ番号を示すヘッダ領域最終セ
クタ番号、光ディスクを識別するためのボリューム名、
システム領域SMの先頭論理ブロックアドレス(以下、LB
Aという)を示すシステム領域先頭LBA、同領域に割り当
てられた記憶領域の大きさをセクタ単位に示すシステム
領域サイズ、種々の制御フラグ、FIDディレクトリ領域
の先頭LBAを示すFIDディレクトリ領域先頭LBA、同領域
に割り当てられた記憶領域の大きさをセクタ単位に示す
FIDディレクトリ領域サイズ、ファイルヘッダ領域の先
頭LBAを示すファイルヘッダ領域先頭LBA、同領域に割り
当てられた記憶領域の大きさをセクタ単位に示すファイ
ルヘッダ領域サイズ、検索用データ領域KYの先頭LBAを
示す検索用データ領域先頭LBA、同領域に割り当てられ
た記憶領域の大きさをセクタ単位に示す検索用データ領
域サイズ、および、データ領域ADの先頭LBAを示すデー
タ領域先頭LBAからなる。 したがって、ヘッダ領域HDの内容に基づいて、光ディ
スクの識別および各領域の割り当て状況を知ることがで
きる。 ここで、一般に、LBAとセクタアドレス(セクタ番
号)は同意であるが、物理的に欠陥のあるセクタは、光
ディスク装置ODEによって他の良好なセクタに代替され
るため全てが一致するとは限らない。なお、代替セクタ
領域はデータ領域ADのさらに外側に設定される。 システム領域リンク情報は、次のシステム領域の先頭
LBAを示す次システム領域先頭LBA、同領域に割り当てら
れた記憶領域の大きさをセクタ単位に示す次システム領
域サイズ、次システム領域の有無等を表示するための制
御フラグ、次システム領域におけるFIDディレクトリ領
域の先頭LBAを示す次FIDディレクトリ領域先頭LBA、同
領域に割り当てられた記憶領域の大きさをセクタ単位に
示す次FIDディレクトリ領域サイズ、次システム領域に
おけるファイルヘッダ領域の先頭LBAを示す次ファイル
ヘッダ領域先頭LBA、同領域に割り当てられた記憶領域
の大きさをセクタ単位に示す次ファイルヘッダ領域サイ
ズ、次ファイルヘッダ領域における最初のファイルヘッ
ダに割り当てられるファイルヘッダ番号(以下、FNOと
いう;後述)を示す次ファイルヘッダ先頭FNO、およ
び、次ファイルヘッダ領域における最終のファイルヘッ
ダに割り当てられるFNOを示す次ファイルヘッダ最終FNO
からなる。 したがって、システム領域リンク情報に基づいて、次
のシステム領域の有無、および、次システム領域におけ
る各領域の割り当て状況を知ることができる。 検索用データ領域リンク情報は、次の検索用データ領
域の先頭LBAを示す次検索用データ領域先頭LBA、同領域
に割り当てられた記憶領域の大きさをセクタ単位に示す
次検索用データ領域サイズ、および、次検索用データ領
域の有無等を表示するための制御フラグからなる。 したがって、検索用データ領域リンク情報に基づい
て、次の検索用データ領域の有無、および、次検索用デ
ータ領域に割り当て状況を知ることができる。 なお、次システム領域および次検索用データ領域リン
ク情報は、システム領域SMおよび検索用データ領域KYが
一杯になった時点で、そのときのデータ領域ADの空領域
に確保され、同時に、システム領域リンク情報および検
索用データ領域リンク情報がおのおのの形成されて記憶
される。 FIDディレクトリ領域には、第3図(a)に示すよう
に、セクタ単位にFIDディレクトリブロックが記憶さ
れ、おのおののFIDディレクトリブロックは、同図
(b)に示すように、ブロックヘッダ、所定個数のFID
ディレクトリ、および、ブロックヘッダバックアップか
らなる。 ブロックヘッダとブロックヘッダバックアップの内容
は同一で、同図(c)に示すように、次のFIDディレク
トリブロックにおける先頭FNOを示す次FIDディレクトリ
ブロック先頭FNOが記憶される。 1つのFIDディレクトリは、同図(d)に示すよう
に、FID、バージョン番号(以下、VNOという)、およ
び、FNOからなる。 ここで、FIDは、ホスト装置HSTがそのファイル(デー
タファイルまたは検索用データファイル;以下同じ)を
識別するために設定し、VNOおよびFNOは、ファイルヘッ
ダが生成/更新されたときに光ディスク装置ODEが自動
的に設定する。なお、VNOは、ファイルの生成時に1が
設定され、それ以降は更新に伴ってインクリメントされ
る。 例えば、ブロックヘッダおよびブロックヘッダバック
アップの大きさを24バイト、FIDディレクトリの大きさ
を10バイトすると、1つのFIDディレクトリブロックに
は、200個のFIDディレクトリが記憶される。したがっ
て、その場合、新たなファイルヘッダが200個形成され
る度に、それらのファイルヘッダに対応した200個のFID
ディレクトリが新たなFIDディレクトリブロックに記録
される。なお、この記録時、200個のFIDディレクトリは
FID、および、VNOをキーとして昇順に並び替えられる。 ファイルヘッダ領域には、第4図(a)に示すよう
に、セクタ単位にファイルヘッダブロックが記憶され、
1つのファイルヘッダブロックには、例えば、同図
(b)に示すように、16個のファイルヘッダが記憶され
る。この場合、1つのファイルヘッダの大きさは128バ
イトである。 ファイルヘッダには、第4図(c)に示すような基本
ファイルヘッダFDNと、同図(d)に示すような拡張フ
ァイルヘッダFDEの2種類がある。 基本ファイルヘッダFDNは、おのおのの基本ファイル
ヘッダFDNを識別するための基本ファイルヘッダ管理情
報部FDNaと、そのファイルヘッダが管理しているファイ
ルの記録状態を登録しているマッピングデータ部MPNaか
らなる。拡張ファイルヘッダFDEは、おのおのの拡張フ
ァイルFDEを識別するための拡張ファイルヘッダ管理情
報部FDEaと、ファイルの記録状態を登録しているマッピ
ングデータ部MPEaからなる。 基本ファイルヘッダ管理情報部FDNaは、そのファイル
ヘッダが基本ファイルヘッダFDNであることをあらわす
値「1」のファイルヘッダ識別子、この基本ファイルヘ
ッダFDNに続く拡張ファイルヘッダFDEの数をあらわすフ
ァイルヘッダ連続数、FNO、FID、VNO、このファイルヘ
ッダが管理しているファイルがデータファイルであるか
検索用データファイルであるかを識別するためのファイ
ルタイプ、そのファイルを生成した日付をあらわす生成
日付、そのファイルを更新した日付をあらわす更新日
付、そのファイルの総データサイズをあらわすファイル
サイズ、そのファイルがデータファイルのときに最大の
レコード(後述)のサイズをあらわす最大レコードサイ
ズ、そのファイルを生成/更新したのちにクローズした
時点でのデータ領域の空領域の先頭LBAをあらわすデー
タ領域カレントポインタ、および、そのファイルを生成
/更新したのちにクローズした時点でのカレントな検索
用データファイルの先頭LBAをあらわす検索用データフ
ァイル領域カレントポインタからなる。 ここで、ファイルヘッダ番号FNOは、次のようにして
設定される。 すなわち、1つのファイルヘッダを生成するとき、そ
のファイルヘッダが格納されるファイルヘッダブロック
のLBAと、そのファイルヘッダブロックにおけるそのフ
ァイルヘッダのオフセット(0から始まる順序番号)を
用いて、次の式により算出される。 FNO=LBA×16+(オフセット) 拡張ファイルヘッダ管理情報部FDEaは、基本ファイル
ヘッダFDNに連続する順番をその値にもつファイルヘッ
ダ識別子、FNO、その拡張ファイルヘッダFDEのマッピン
グデータ部MPEaに登録されているレコードの種別をあら
わす拡張ファイル種別からなる。なお、FNOは、対応す
る基本ファイルヘッダFDNのFNOと同じ値である。 ここで、データファイルおよび検索用データファイル
の構成について説明する。 1つのデータファイルは、第5図(a)に示すよう
に、ひとまとまりのデータからなる可変長サイズのレコ
ードを、複数個集めてなる。例えば、データファイルが
画像データの場合、1つのレコードは画像の1ページ分
のデータに相当する。ただし、1つのデータファイルを
構成する複数のレコードが連続的な領域に記録されると
は限らない。 なお、光ディスクへのデータの記録/再生がセクタ
(SC)単位に行なわれるため、おのおののレコードのデ
ータは、光ディスクにセクタ単位に記録される。また、
レコードが記録される最終セクタに空領域がある場合、
その空領域には「0」が詰められる。 また、レコードの種類には、連続領域に記録されるも
の以外に、第5図(b)に示すように、複数のセグメン
トに分割されて記録される分割レコードがある。この場
合も、おのおののレコードセグメントはセクタ単位に記
録され、レコードセグメントが記録される最終セクタに
空領域がある場合、その空領域には「0」が詰められ
る。 1つの検索用データファイルの領域は、第5図(c)
に示すように、セクタと同じ大きさのブロックを複数個
連続した領域に確保される。この領域の確保は検索用デ
ータファイルの生成時に行なわれ、それ以降、上位シス
テムの必要に応じ、その確保された領域の空きブロック
に検索用データファイルの内容が記録される。また、こ
の場合にもデータの記録/再生はブロック(セクタ)単
位に行なわれ、おのおののブロックは領域の先頭からの
順序番号により指定される。 そこで、基本ファイルヘッダFDNのマッピングデータ
部MPNaおよび拡張ファイルヘッダFDEのマッピングデー
タ部MPEaには、おのおののファイルおよびレコードの種
類に応じ、第6図(a)〜(d)に示したようなレコー
ド定義データNSR、分割レコード定義データSDR、分割レ
コードマップデータSDM、検索用データファイル定義デ
ータKYMが配置される。 レコード定義データNSRは、非分割レコードをあらわ
す値「0」をとるレコードタイプ、ファイル内でおのお
ののレコードを識別するためのレコード識別子、レコー
ドの大きさをあらわすレコードサイズ、および、レコー
ドの先頭LBAをあらわすレコード先頭LBAからなる。 分割レコード定義データSDRは、分割レコードをあら
わす値「1」をとるレコードタイプ、レコード識別子、
レコードサイズ、レコードを構成するレコードセグメン
トの数をあらわすセグメント数、および、次の拡張ファ
イルヘッダFDEのマッピングデータ部MPEaにおいて、そ
の分割レコードの最初のレコードセグメントに関するデ
ータを登録している分割レコードマップデータSDMの順
番をあらわすセグメントマップオフセットからなる。 分割レコードマップデータSDMは、分割レコードにお
けるレコードセグメントの順番をあらわすセグメント番
号、レコード識別子、セグメントの大きさをあらわすセ
グメント長、および、レコードセグメントの先頭LBAを
あらわすレコードセグメント先頭LBAからなる。 検索用データファイル定義データKYMは、検索用デー
タファイルに割り当てられた領域の大きさをあらわす検
索用データブロックサイズ、および、検索用データファ
イルに割り当てられた領域の先頭LBAをあらわす検索用
データファイル先頭LBAからなる。 したがって、第5図(a),(b)に示したレコード
1〜4よりなるデータファイル、および、第5図(c)
に示した検索用データファイルを示すファイルヘッダ
は、それぞれ第7図(a),(b)に示したようなもの
になる。 すなわち、データファイルのファイルヘッダは、基本
ファイルヘッダFDN1と拡張ファイルヘッダFDE1からな
り、検索用データファイルのファイルヘッダは基本ファ
イルヘッダFDN2からなる。 基本ファイルヘッダFDN1のマッピングデータ部には、
レコード1〜3のレコード定義データNSR1〜NSR3、およ
び、レコード4の分割レコード定義データSDR4がレコー
ド順に配置され、拡張ファイルヘッダFDE1のマッピング
データ部には、レコード4のレコードセグメントの分割
レコードマップデータSDM1,SDM2がセグメント順に配置
される。なお、分割レコードマップデータSDM1,SDM2の
レコード識別子は、分割レコード定義データSDR4のレコ
ード識別子と同じ値である。 基本ファイルヘッダFDN2のマッピングデータ部には、
検索用データファイルに割り当てられた領域に対応した
検索用データファイル定義データKYM1が配置される。 第8図にデータファイルのファイルヘッダの一般的な
形式を示す。ただし、ファイルヘッダが基本ファイルヘ
ッダのみに収まる場合には拡張ファイルヘッダが付加さ
れず、また、分割レコードを含まない場合にはマッピン
グデータ部に分割レコード定義部をもつ拡張ファイルヘ
ッダが付加されない。 以上の構成で、中央処理装置1は、以下のようにして
光ディスクにデータを記録/再生する。なお、この場
合、光ディスクへのデータの記録/再生のための制御処
理(以下、光ディスクファイルシステムという)と、そ
の上位ファイルシステムの制御処理(以下、ファイルシ
ステムという)、すなわち、ファイルに対するFIDの設
定、データファイルの構成(例えばレコード構成等)、
検索用データファイルの構成、および、ファイルの検索
等の処理は、中央処理装置1によって行なわれる。 光ディスクが光ディスク装置ODEにセットされたと
き、まず、光ディスクファイルシステムは、システム領
域SMのFIDディレクトリ領域の内容を磁気ディスク装置
(磁気ディスク制御装置6および磁気ディスク駆動装置
7よりなる;以下同じ)に読み出す。 このとき、FIDディレクトリに登録されていないファ
イルヘッダがある場合には、そのファイルヘッダを読み
出してその未登録部分のファイルヘッダに関するFIDデ
ィレクトリ(以下、カレントディレクトリという)を磁
気ディスク装置上に形成する。このとき、カレントディ
レクトリ内のFIDディレクトリデータを、FIDおよびVNO
をキーとして昇順に並べ替える。 また、これ以降の処理によりファイルヘッダが生成/
更新されたときには、対応するFIDディレクトリデータ
を形成するとともに、上述と同様にして、磁気ディスク
装置上でカレントディレクトリ内のFIDディレクトリデ
ータの並べ替えを行なう。 そして、カレントディレクトリ内にFIDディレクトリ
データが200個(すなわち、FIDディレクトリブロック
分)形成されたときには、光ディスクを新たなFIDディ
レクトリブロックにその200個のFIDディレクトリデータ
を記録する。 さて、ファイルシステムは、必要な検索情報を登録し
ている検索用データファイルのFIDを指定した状態で、
光ディスクファイルシステムに対してファイルのオープ
ンを要求する。 それにより、光ディスクファイルシステムは、磁気デ
ィスク装置上のFIDディレクトリを参照して指定されたF
IDをもつファイルヘッダのFNOを見つけ、そのファイル
ヘッダを参照して目的の検索用ファイルデータを読み出
し、その内容をファイルシステムに転送する。 これにより、ファイルシステムは、検索用データファ
イルの内容に基づいて目的のデータファイルを検索し、
そのデータファイルのFIDを得る。なお、ファイルシス
テムは、検索用データファイルの読み出しを完了する
と、その検索用データファイルをクローズするように光
ディスクファイルシステムに指令する。 そして、そのデータファイルを読み出すときには、そ
のデータファイルのFIDを指定した状態で、光ディスク
ファイルシステムに対してファイルのオープンを要求す
る。 したがって、光ディスクファイルシステムは、FIDデ
ィレクトリを参照して指定されたFIDをもつファイルヘ
ッダのFNOを見つけ、そのファイルヘッダを参照して目
的のファイルデータを読み出し、その内容をファイルシ
ステムに転送する。 このようにして、所望のデータファイルを得ると、フ
ァイルシステムはそのデータファイルの種別に応じた処
理を行なう。 例えば、データファイルの内容をCRT表示装置4に表
示してオペレータに確認させ、オペレータが所望の処理
を行なえるようにする。 オペレータがデータファイルになんらの操作を加えず
そのままデータファイルをクローズするときには、ファ
イルシステムは光ディスクファイルシステムにファイル
をクローズするように要求する。それにより、光ディス
クファイルシステムは、オープンしたデータファイルを
クローズする。 また、オペレータがデータファイルになんらかの操作
を加えたとき、例えば、レコードを削除したり追加した
とき、ファイルシステムは、それらの操作に対応したデ
ータファイルの更新を行なうための指令およびデータを
光ディスクファイルシステムに出力する。 これにより、光ディスクファイルシステムは、その指
令に対応したデータ更新を行なうとともに、その更新に
伴う新たなファイルヘッダをワークメモリ3に作成し、
さらに、そのファイルヘッダに基づいてカレントディレ
クトリを更新する。 そして、そのアクセスしたデータファイルをクローズ
するときには、光ディスクファイルシステムは、磁気デ
ィスク装置に形成したテンポラリバッファに、そのアク
セスに伴って形成されたファイルヘッダを記録する。 また、データファイルの生成/更新に伴って検索用デ
ータファイルの内容を更新する場合、ファイルシステム
は、検索用データファイルに付したFID、更新内容を記
録するブロックをあらわすブロック番号および更新デー
タを記録するブロック数を指定した状態で、光ディスク
ファイルシステムに更新データを転送する。 これにより、光ディスクファイルシステムは、FIDデ
ィレクトリを参照して指定されたFIDに対応するFNOを得
て、ファイルヘッダを読み出す。そして、目的の検索用
データファイルを見つけ、ファイルシステムより転送さ
れたデータを指定されたブロックより順次記録する。な
お、ファイルシステムは、記録を終了するとその検索用
データファイルをクローズするように光ディスクファイ
ルシステムに指令する。 そして、一連の操作を終了し、オペレータが光ディス
クを取り出すように指令したときには、光ディスクファ
イルシステムは、その時点で磁気ディスク装置のテンポ
ラリバッファに作成されているファイルヘッダを新たな
ファイルヘッダブロックに記憶し、光ディスク駆動装置
12より光ディスクを排出させる。 このようにして、データファイルおよび検索用データ
ファイルを光ディスクに記録するとともに、読み出すこ
とができる。 第9図は、ファイルシステムより光ディスクへのデー
タの入出力の依頼を受けたときに、光ディスクファイル
システムが行なう処理例である。 まず、ファイルシステムより光ディスクへの入出力依
頼を受けると(処理101)、その指令がデータファイル
のオープンなのか、データファイルへのデータ登録なの
か、データファイルのクローズなのか、検索用データフ
ァイルの生成なのか、検索用データファイルのオープン
なのか、検索用データファイルのクローズなのか、ある
いは、それ以外の処理なのかを調べる(判断102,103,10
4,105,106,107,108)。 判断102の結果がYESになるときには、そのときにカレ
ントディレクトリに登録されているファイルヘッダの最
後尾に連続するように、データファイル用のファイルヘ
ッダをワークメモリ3に作成する(処理109)。 判断103の結果がYESになるときには、そのときに転送
されたデータをデータ領域ADの空領域に記録するととも
に、その記録状態に対応して、FIDが同一でVNOを1つ増
やしたファイルヘッダを形成し、さらに、そのファイル
ヘッダに対応してカレントディレクトリを更新する(処
理110)。 判断104の結果がYESになるとき、オープンしていたデ
ータファイルに関するファイルヘッダが更新されている
ときには、そのファイルヘッダを磁気ディスク装置に形
成するテンポラリバッファの空領域に記録する(処理11
1)。 判断105の結果がYESになるとき、指定されたFIDをも
つ検索用データファイルの領域を、検索用データファイ
ル領域の空領域に指定されたブロック数だけ確保し、そ
の新たな検索用データファイルに関するファイルヘッダ
をワークメモリ3に形成する(処理112)。 判断106の結果がYESになるとき、指定されたFIDに基
づいてFIDディレクトリを参照し、対応するFNOを得、そ
のFNOに基づいて目的の検索用データファイルのファイ
ルヘッダを読み出す(処理113)。 判断107の結果がYESになるとき、既にオープンされて
いる検索用データファイルの指定されたブロックに、転
送された検索用データファイルを記録する(処理11
4)。 判断108の結果がYESになるとき、そのときにオープン
されている検索用データファイルが新たに生成されたも
のであるときには、それに対応したファイルヘッダを磁
気ディスク装置のテンポラリバッファに記録する(処理
115)。 判断108の結果がNOになるときには、それ以外の指定
された処理を行なう(処理116)。 ところで、検索用データファイルに確保している領域
に空領域がなくなっための新たな領域の追加、あるい
は、それまでに使用していた検索用データファイルの内
容の変更は、すなわち、検索用データファイルのバージ
ョンアップは、次のようにして行なうことができる。 その1つの方法は、第10図(a)に示すように、検索
用データファイルに確保していた領域KF1に新たな領域K
F2を追加するというものである。 この場合、ファイルヘッダは、マップデータ部に領域
FK1の検索用データファイル定義データKYM1のみが配置
されたFD1(VNOは1)から、マップデータ部に領域FK1
の検索用データファイル定義データKYM1と領域FK2の検
索用データファイル定義データKYM2が順次配置されたFD
2(VNOは2)に更新される。 また、領域FK2におけるブロックを指定するときに
は、最初の領域FK1の先頭ブロックから通した順序番号
により行なう。なお、領域FK1に空領域が存在する場
合、領域FK2を追加した後でも領域FK1の空領域をアクセ
スすることができる。 2つ目の方法は、同図(b)に示すように、検索用デ
ータファイルに確保していた領域FK3の記録データのう
ち、必要なもののみを新たに確保した領域FK4の先頭か
ら適宜な順番で再配置するというものである。 この場合、ファイルヘッダは、マップデータ部に領域
FK3の検索用データファイル定義データKYM3が配置され
たFD3(VNOは1)から、マップデータ部に領域FK4の検
索用データファイル定義データKYM4が配置されたFD4(V
NOは2)に更新される。 なお、この場合、領域FK3より領域FK4に移すデータ
は、この光ディスクファイルシステムの上位システム
(この場合は、ファイルシステム)により選択される。 このような検索用データファイルのバージョンアップ
方法のうち、後者のものは、バージョンアップ後の検索
用データファイルに必要なデータのみが残るので、検索
用データファイルを読み出すときのアクセス時間を短縮
できるという利点がある。また、この光ディスクファイ
ルシステムの上位システムは、このバージョンアップ方
法のいずれかを選択することができる。 第11図は、光ディスクファイルシステムがこの検索用
データファイルのバージョンアップを行なうときの処理
例を示している。 まず、上位システムより検索用データファイルを更新
するように依頼を入力すると(処理201)、そのときの
指定されたFIDに基づいてFIDディレクトリを参照して対
応するFNOを得て、その検索用データファイルのファイ
ルヘッダを読み出す(処理202)。 次に、検索用データファイル領域の空領域に、上位シ
ステムより指定された大きさの領域を設定し(処理20
3)、そのときの依頼が領域の追加であるかどうかを調
べる(判断204)。 判断204の結果がYESのときには、読み出したファイル
ヘッダのFNOやVNO等を訂正するとともに、処理203で設
定した領域の検索用データファイル定義データKYMをマ
ッピングデータ部に追加したファイルヘッダを形成し
(処理205)、それを磁気ディスク装置のテンポラリバ
ッファに記録する。 判断204の結果がNOのときには、読み出したファイル
ヘッダのFNOやVNO等を訂正するとともに、処理203で設
定した領域の検索用データファイル定義データKYMでマ
ッピングデータ部の内容を置換したファイルヘッダを形
成し(処理206)、それを磁気ディスク装置のテンポラ
リバッファに記録する。 このようにして、検索用データファイルがバージョン
アップされる。これ以降、上位システムにより、新バー
ジョンの検索用データファイルとして確保された領域
に、データが記録される。 以上のように、本実施例によれば、データファイル
と、データファイルを検索/管理するための管理用二次
情報(検索用データファイル)を別系統に記録/管理で
きるので、管理用二次情報を効率よくアクセスすること
ができる。 また、1つの管理用二次情報が連続領域に記録される
ので、読み出すときのアクセス時間を短縮することがで
きる。 さらに、上位システムの検索系統に応じ、管理用二次
情報のサイズを任意に設定できるので、種々の検索系統
に容易に適用することができる。 なお、上述した実施例では、管理用二次情報に設定さ
れたデータが検索用データのみであるが、それ以外に、
ファイルの形式や属性等をあらわすデータを含ませるこ
ともできる。 [効果] 以上説明したように、本発明によれば、データファイ
ルと、おのおののデータファイルに設定される検索情報
を記憶する光ディスクの記憶管理方法において、前記検
索情報は所定の大きさの領域に格納するとともに、検索
情報の追加時点で前記領域に空きがない場合には、新た
な領域を確保し、前記データファイルのうち必要なデー
タファイルの検索情報と、前記追加する検索情報を、前
記新たな領域に書き込むとともに、それ以降は、前記新
たな領域に対して、検索情報を追加するようにしたの
で、新たに確保された検索情報の記憶領域には、その先
頭から順次必要な検索情報のみが保存され、検索情報を
読み出す際のアクセス時間を大幅に短縮することができ
るという効果を得る。
Description: TECHNICAL FIELD The present invention relates to a storage management method for an optical disc that stores a data file and search information set in each data file. [Prior Art] In recent years, an optical disk apparatus using an optical disk in which an optical storage medium is formed in a disk shape as a storage medium has been put into practical use, and an image data filing apparatus which handles a large amount of data, or a large capacity It is applied to auxiliary storage devices and the like. The track pitch is 1-2 on the surface of this optical disc.
A μm recording track is formed, and data is stored by changing the state (eg, reflectance) of the surface of this recording track in accordance with the data to be recorded. In many cases, when data is recorded, the surface of the recording track is destroyed, so that the recorded data cannot be directly updated on the recording track. In addition, on the optical disc, data is recorded / reproduced in sector units of a predetermined length (for example, 2048 bytes), which increases the degree of freedom of file access and improves error correction processing for correcting data errors. You can do it well. Each file contains information about the contents of the file, such as the creator, the creation date, and the file, so that the desired file can be quickly found (searched) from the large number of files stored on the optical disk. Type, file format, file attributes, and
Search information (secondary information for management) including a title and the like is added. Here, the attribute of the file indicates, for example, whether the data forming the file is image data or character code data, and in the case of image data, indicates the number of bits per pixel. Information etc. are included. By the way, conventionally, a file management system for recording / reproducing data on / from an optical disk centrally manages files and search information, which causes the following inconveniences. That is, since the search data are dispersed in the data file that occupies most of the storage area of the optical disc, when a plurality of search data are continuously accessed, most of the movement of the head crosses the data file and it takes time. Cause Further, since the search data is also updated every time the record is updated, the search data is distributed in the data file in which the record is frequently updated, and therefore, seek operations frequently occur during access and the access time increases. Cause [Purpose] The present invention has been made in order to solve the disadvantages of the prior art, and an object of the present invention is to provide a storage management method for an optical disk, which allows a file management system to operate files and search information in different systems. . [Structure] According to the present invention, in a storage management method of an optical disc for storing a data file and search information set in each data file, the search information is stored in an area of a predetermined size, and the search information is added. If there is no free space in the area at the time point, a new area is secured, and the search information of the necessary data file among the data files and the search information to be added are written in the new area and thereafter. The search information is added to the new area. Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 shows an optical disk system according to one embodiment of the present invention. This system includes a host device HST and an optical disk device ODE. In the host device HST, the central processing unit 1 is for performing various data processing such as processing for the file system according to the present invention, the processing program is stored in the program memory 2, and the work area is the work memory 3 Is formed. The CRT display device 4 and the keyboard 5 form a man-machine interface with the host device HST, and the magnetic disk control device 6 and the magnetic disk drive device 7 are auxiliary storages mainly used in the host device HST. Make up the device. The optical disk interface 8 is for exchanging data between the host device HST and the optical disk device ODE.
This is for exchanging data with an external device such as an image reading device or an image recording device. Then, these central processing unit 1, program memory 2, work memory 3, CRT display device 4, keyboard 5,
Data is exchanged between the magnetic disk controller 6, the optical disk interface 8, and the external interface 9 via the system bus 10. In the optical disk device ODE, the optical disk control device 11
Is for exchanging data with the host device HST and recording / reproducing data on / from the optical disk driven by the optical disk drive device 12. As is well known, an optical disc has a physical format for recording / reproducing data in units of a predetermined length of sector, and a sector address is set for each sector. In this embodiment, one sector is
It consists of 2048 bytes (2K bytes). 2 (a) to 2 (e) exemplify a divided state of a storage area of an optical disk. The storage area of the optical disk is divided into two areas: a data area AD for storing a data file and a management information area AM for storing management information for accessing the data file. It is divided into a header area HD, a system area SM, and a search data area KY. In this case, the sector address O matches the head of the management information area AM, and the tail of the data area AD matches the last sector address accessible from the outside. The system area SM is a file for efficiently accessing the system area link information for indicating a secondary system area (not shown) that is secured when the system area SM is full, and a file header (described later). FID in which an identifier (hereinafter referred to as FID) directory (described later) is stored
It is composed of a directory area and a file header area in which a file header that registers the recording state in the data area AD or the search data area KY of each data file or search data file is stored. The search data area KY includes search data area link information for indicating a secondary search data area (not shown) that is secured when the search data area KY is full, and search data. It consists of a search data file area in which files are stored. The header area HD includes a volume mark for displaying characteristics and the like of the optical disc, a data area last sector number indicating a last sector number (sector address) of the data area AD,
A header area last sector number indicating the last sector number of the header area HD, a volume name for identifying the optical disc,
Start logical block address of the system area SM (hereafter, LB
A), the system area size indicating the size of the storage area allocated to the area in sector units, various control flags, the FID directory area start LBA indicating the FID directory area start LBA, and the like. Indicates the size of the storage area allocated to the area in sector units
FID directory area size, file header area LBA that indicates the head LBA of the file header area, file header area size that indicates the size of the storage area allocated to the area in sector units, and head LBA of the search data area KY It is composed of a search data area start LBA, a search data area size indicating the size of the storage area allocated to the area in sector units, and a data area start LBA indicating the start LBA of the data area AD. Therefore, based on the contents of the header area HD, the identification of the optical disk and the allocation status of each area can be known. Here, in general, the LBA and the sector address (sector number) are the same, but a physically defective sector is replaced by another good sector by the optical disk device ODE, so that not all the sectors are identical. Note that the replacement sector area is set further outside the data area AD. The system area link information is at the beginning of the next system area.
The first LBA of the next system area that indicates the LBA, the next system area size that indicates the size of the storage area allocated to the same area in sector units, a control flag for displaying the presence or absence of the next system area, the FID directory in the next system area Next FID directory area showing the first LBA of the area First LBA of the area, next FID directory area size showing the size of the storage area allocated to the same area in sector units, next file header showing the first LBA of the file header area in the next system area Area head LBA, next file header area size that indicates the size of the storage area allocated to the area in sector units, and file header number (hereinafter referred to as FNO; described later) assigned to the first file header in the next file header area Indicates the next file header beginning FNO and the end in the next file header area Next file header final FNO showing the FNO allocated to the file header
Consists of Therefore, based on the system area link information, the presence or absence of the next system area and the allocation status of each area in the next system area can be known. The search data area link information includes a next search data area start LBA indicating the next search data area start LBA, a next search data area size indicating the size of the storage area allocated to the area in sector units, And a control flag for displaying the presence or absence of the next search data area. Therefore, based on the search data area link information, the presence / absence of the next search data area and the allocation status of the next search data area can be known. When the system area SM and the search data area KY are full, the next system area and next search data area link information is secured in the empty area of the data area AD at that time, and at the same time, the system area link Information and search data area link information are respectively formed and stored. In the FID directory area, as shown in FIG. 3 (a), FID directory blocks are stored in sector units. Each FID directory block has a block header, a predetermined number, as shown in FIG. 3 (b). FID
It consists of a directory and a block header backup. The contents of the block header and the block header backup are the same, and the first FNO of the next FID directory block indicating the first FNO of the next FID directory block is stored as shown in FIG. One FID directory is made up of an FID, a version number (hereinafter, referred to as VNO), and an FNO, as shown in FIG. Here, FID is set for the host device HST to identify the file (data file or search data file; the same applies below), and VNO and FNO are set to the optical disk device ODE when the file header is generated / updated. Is set automatically. Note that VNO is set to 1 when a file is generated, and thereafter, is incremented with updating. For example, if the size of the block header and the backup of the block header is 24 bytes and the size of the FID directory is 10 bytes, 200 FID directories are stored in one FID directory block. Therefore, in that case, every time 200 new file headers are formed, 200 FIDs corresponding to those file headers are created.
The directory is recorded in a new FID directory block. At the time of this recording, the 200 FID directories
Sorted in ascending order using FID and VNO as keys. In the file header area, as shown in FIG. 4A, a file header block is stored in sector units.
For example, 16 file headers are stored in one file header block as shown in FIG. In this case, the size of one file header is 128 bytes. There are two types of file headers, a basic file header FDN as shown in FIG. 4 (c) and an extended file header FDE as shown in FIG. 4 (d). The basic file header FDN includes a basic file header management information section FDNa for identifying each basic file header FDN, and a mapping data section MPNa for registering a recording state of a file managed by the file header. The extended file header FDE includes an extended file header management information section FDEa for identifying each extended file FDE, and a mapping data section MPEa for registering a file recording state. The basic file header management information section FDNa is a file header identifier with a value "1" that indicates that the file header is a basic file header FDN, and the number of consecutive file headers that indicates the number of extended file header FDEs that follow this basic file header FDN. , FNO, FID, VNO, the file type for identifying whether the file managed by this file header is a data file or a search data file, the generation date indicating the date when the file was generated, the file The update date that represents the date when the file was updated, the file size that represents the total data size of the file, the maximum record size that represents the size of the largest record (described later) when the file is a data file, and after the file is created / updated. End of empty area of data area when closed It consists of a data area current pointer representing the head LBA, and a search data file area current pointer representing the head LBA of the current search data file when the file is closed after being generated / updated. Here, the file header number FNO is set as follows. That is, when generating one file header, using the LBA of the file header block in which the file header is stored and the offset (order number starting from 0) of the file header in the file header block, the following expression is used. Is calculated. FNO = LBA × 16 + (offset) The extended file header management information section FDEa is registered in the mapping data section MPEa of the file header identifier, FNO and the extended file header FDE having the order in which the sequence is continuous with the basic file header FDN. It consists of an extended file type that indicates the type of record that is present. The FNO has the same value as the FNO of the corresponding basic file header FDN. Here, the configurations of the data file and the search data file will be described. As shown in FIG. 5 (a), one data file is made up of a plurality of records each having a variable length and composed of a set of data. For example, when the data file is image data, one record corresponds to one page of image data. However, a plurality of records constituting one data file are not always recorded in a continuous area. Since data recording / reproduction on the optical disk is performed in units of sectors (SC), the data of each record is recorded on the optical disk in units of sectors. Also,
If there is an empty area in the last sector where the record is recorded,
The empty area is filled with “0”. In addition to the types of records that are recorded in the continuous area, there are divided records that are divided into a plurality of segments and recorded as shown in FIG. 5B. Also in this case, each record segment is recorded in sector units, and if there is an empty area in the last sector in which the record segment is recorded, the empty area is filled with "0". The area of one search data file is shown in FIG.
As shown in (1), a plurality of blocks having the same size as a sector are secured in a continuous area. This area is secured when the search data file is generated, and thereafter, the contents of the search data file are recorded in the empty blocks of the secured area as required by the host system. Also in this case, recording / reproduction of data is performed in units of blocks (sectors), and each block is designated by an order number from the head of the area. Therefore, in the mapping data part MPNa of the basic file header FDN and the mapping data part MPEa of the extended file header FDE, records such as those shown in FIGS. 6 (a) to 6 (d) depending on the type of each file and record. Definition data NSR, split record definition data SDR, split record map data SDM, and search data file definition data KYM are arranged. The record definition data NSR includes a record type taking a value “0” representing a non-divided record, a record identifier for identifying each record in the file, a record size representing a record size, and a head LBA of the record. It consists of the LBA at the head of the record. The divided record definition data SDR includes a record type, a record identifier, and a value that take a value “1” representing the divided record.
Record size, the number of segments that represent the number of record segments that make up the record, and the divided record map data that registers data about the first record segment of that divided record in the mapping data section MPEa of the next extended file header FDE It consists of a segment map offset indicating the order of SDM. The divided record map data SDM is composed of a segment number indicating the order of the record segments in the divided record, a record identifier, a segment length indicating the size of the segment, and a record segment start LBA indicating the start LBA of the record segment. The search data file definition data KYM is a search data block size that indicates the size of the area allocated to the search data file, and the head of the search data file that indicates the head LBA of the area allocated to the search data file. Consists of LBA. Therefore, a data file consisting of the records 1 to 4 shown in FIGS. 5A and 5B, and FIG.
The file header indicating the search data file shown in FIG. 7 is as shown in FIGS. 7A and 7B, respectively. That is, the file header of the data file includes the basic file header FDN1 and the extension file header FDE1, and the file header of the search data file includes the basic file header FDN2. In the mapping data part of the basic file header FDN1,
The record definition data NSR1 to NSR3 of the records 1 to 3 and the divided record definition data SDR4 of the record 4 are arranged in the record order, and the mapping data part of the extended file header FDE1 includes the divided record map data SDM1 of the record segment of the record 4. , SDM2 are arranged in segment order. Note that the record identifiers of the divided record map data SDM1 and SDM2 have the same value as the record identifier of the divided record definition data SDR4. In the mapping data part of the basic file header FDN2,
Search data file definition data KYM1 corresponding to the area allocated to the search data file is arranged. FIG. 8 shows a general format of a file header of a data file. However, if the file header fits only in the basic file header, no extended file header is added, and if it does not include a divided record, no extended file header having a divided record definition part is added to the mapping data part. With the above configuration, the central processing unit 1 records / reproduces data on / from the optical disk as follows. In this case, a control process for recording / reproducing data on the optical disc (hereinafter, referred to as an optical disc file system) and a control process for a higher-order file system (hereinafter, referred to as a file system), that is, setting of FID for a file , Data file configuration (for example, record configuration, etc.),
The configuration of the search data file and processing such as file search are performed by the central processing unit 1. When the optical disk is set in the optical disk device ODE, first, the optical disk file system transfers the contents of the FID directory area of the system area SM to the magnetic disk device (consisting of the magnetic disk control device 6 and the magnetic disk drive device 7; the same applies hereinafter). read out. At this time, if there is a file header that is not registered in the FID directory, the file header is read and a FID directory (hereinafter referred to as the current directory) for the file header of the unregistered portion is formed on the magnetic disk device. At this time, change the FID directory data in the current directory to FID and VNO.
Sort in ascending order using as a key. In addition, the file header is generated /
When updated, the corresponding FID directory data is formed, and the FID directory data in the current directory is rearranged on the magnetic disk device in the same manner as described above. Then, when 200 pieces of FID directory data (that is, FID directory blocks) are formed in the current directory, the 200 pieces of FID directory data are recorded in a new FID directory block of the optical disc. Now, in the file system, with the FID of the search data file that registers the necessary search information specified,
Requests the optical disk file system to open a file. As a result, the optical disc file system refers to the F
The FNO of the file header with the ID is found, the target search file data is read by referring to the file header, and the contents are transferred to the file system. Thereby, the file system searches for the target data file based on the contents of the search data file,
Get the FID for that data file. When the file system completes reading the search data file, it instructs the optical disk file system to close the search data file. When reading the data file, the optical disk file system is requested to open the file with the FID of the data file specified. Therefore, the optical disk file system finds the FNO of the file header having the designated FID by referring to the FID directory, reads out the target file data by referring to the file header, and transfers the contents to the file system. When a desired data file is obtained in this way, the file system performs a process according to the type of the data file. For example, the contents of the data file are displayed on the CRT display device 4 so that the operator can confirm the contents and the operator can perform desired processing. When the operator closes the data file without any operation on the data file, the file system requests the optical disk file system to close the file. Thereby, the optical disk file system closes the opened data file. When the operator performs any operation on the data file, for example, deletes or adds a record, the file system transmits a command and data for updating the data file corresponding to the operation to the optical disk file system. Output to As a result, the optical disk file system updates the data corresponding to the command and creates a new file header in the work memory 3 with the update,
Further, the current directory is updated based on the file header. Then, when closing the accessed data file, the optical disk file system records the file header formed by the access in the temporary buffer formed in the magnetic disk device. When updating the content of the search data file in conjunction with the creation / update of the data file, the file system records the FID attached to the search data file, the block number indicating the block for recording the update content, and the update data. The update data is transferred to the optical disk file system with the number of blocks to be specified specified. Thereby, the optical disk file system obtains the FNO corresponding to the designated FID by referring to the FID directory, and reads the file header. Then, the target search data file is found, and the data transferred from the file system is sequentially recorded from the designated block. When the recording is completed, the file system instructs the optical disc file system to close the search data file. When a series of operations is completed and the operator instructs to remove the optical disk, the optical disk file system stores the file header created in the temporary buffer of the magnetic disk device at that time in a new file header block. , Optical disk drive
The optical disk is ejected from 12. In this manner, the data file and the search data file can be recorded on the optical disc and read out. FIG. 9 shows an example of processing performed by the optical disk file system when a request for inputting / outputting data from / to the optical disk is received from the file system. First, when an input / output request to the optical disk is received from the file system (process 101), whether the command is open data file, register data in data file, close data file, or close search data file. Check whether it is generation, open search data file, close search data file, or other processing (decision 102, 103, 10)
4,105,106,107,108). When the result of determination 102 is YES, a file header for the data file is created in the work memory 3 so as to be continuous at the end of the file header registered in the current directory at that time (process 109). When the result of the determination 103 is YES, the data transferred at that time is recorded in the empty area of the data area AD, and the file header with the same FID and VNO increased by 1 is recorded corresponding to the recorded state. Then, the current directory is updated corresponding to the file header (process 110). When the result of determination 104 is YES, and when the file header related to the opened data file is updated, the file header is recorded in the empty area of the temporary buffer formed in the magnetic disk device (Process 11).
1). When the result of judgment 105 is YES, the area of the search data file having the specified FID is secured for the number of blocks specified in the empty area of the search data file area, and the new search data file is related. A file header is formed in the work memory 3 (process 112). When the result of determination 106 is YES, the FID directory is referred to based on the designated FID, the corresponding FNO is obtained, and the file header of the target search data file is read based on the FNO (process 113). When the result of determination 107 is YES, the transferred search data file is recorded in the specified block of the search data file that has already been opened (process 11).
Four). When the result of determination 108 is YES, and when the search data file opened at that time is newly created, the file header corresponding to it is recorded in the temporary buffer of the magnetic disk device (process.
115). When the result of determination 108 is NO, other designated processing is performed (processing 116). By the way, if you add a new area to the area reserved in the search data file so that there is no empty area, or change the contents of the search data file that has been used up to that point, Can be upgraded as follows. One method is to add a new area K to the area KF1 reserved in the search data file as shown in FIG. 10 (a).
It is to add F2. In this case, the file header has an area in the map data section.
From the FD1 (VNO is 1) where only the FK1 search data file definition data KYM1 is located, the area FK1 in the map data section
FD in which the search data file definition data KYM1 and the search data file definition data KYM2 in area FK2 are sequentially arranged
Updated to 2 (VNO is 2). When designating a block in the area FK2, the sequence number passed from the first block of the first area FK1 is used. If an empty area exists in the area FK1, the empty area in the area FK1 can be accessed even after the area FK2 is added. The second method is, as shown in FIG. 6B, that the recording data of the area FK3 reserved in the search data file is appropriately selected from the beginning of the area FK4 in which only necessary data is newly reserved. It is to rearrange in order. In this case, the file header has an area in the map data section.
From FD3 (VNO is 1) where search data file definition data KYM3 for FK3 is located, to FD4 (V where search data file definition data KYM4 for area FK4 is located in the map data section
NO is updated to 2). In this case, the data to be moved from the area FK3 to the area FK4 is selected by the host system of this optical disk file system (in this case, the file system). Of these methods for upgrading the search data file, the latter method can reduce the access time when reading the search data file because only the necessary data remains in the upgraded search data file. There are advantages. Moreover, the host system of this optical disk file system can select one of the version upgrade methods. FIG. 11 shows a processing example when the optical disk file system upgrades the search data file. First, when a request is input from the host system to update the search data file (process 201), the FID directory is referenced based on the FID specified at that time to obtain the corresponding FNO, and the search data is retrieved. The file header of the file is read (process 202). Next, set an area of the size specified by the host system in the empty area of the search data file area (Process 20
3), it is checked whether the request at that time is addition of a region (decision 204). When the result of determination 204 is YES, the FNO, VNO, etc. of the read file header are corrected, and the file header in which the search data file definition data KYM of the area set in process 203 is added to the mapping data section is formed ( Processing 205), it is recorded in the temporary buffer of the magnetic disk device. When the result of the judgment 204 is NO, the FNO and VNO of the read file header are corrected, and the file header is formed by replacing the contents of the mapping data section with the search data file definition data KYM of the area set in step 203. (Process 206), and records it in the temporary buffer of the magnetic disk device. In this way, the search data file is upgraded. Thereafter, the host system records the data in the area secured as the new version search data file. As described above, according to the present embodiment, the data file and the management secondary information (search data file) for searching / managing the data file can be recorded / managed in different systems. Information can be accessed efficiently. Further, since one piece of management secondary information is recorded in the continuous area, the access time for reading can be shortened. Further, since the size of the management secondary information can be arbitrarily set according to the search system of the host system, it can be easily applied to various search systems. In the above-described embodiment, the data set in the management secondary information is only the search data, but in addition to that,
It is also possible to include data representing the format and attributes of the file. [Effect] As described above, according to the present invention, in the optical disk storage management method for storing the data file and the search information set in each data file, the search information is stored in an area of a predetermined size. In addition to storing, when there is no space in the area at the time of adding the search information, a new area is secured, and the search information of the necessary data file among the data files and the search information to be added are added to the new area. Since the search information is added to the new area thereafter, the search information is added to the new area, so that only the necessary search information is sequentially stored in the newly secured search information storage area. Is saved, and the access time for reading out the search information can be significantly shortened.

【図面の簡単な説明】 第1図は本発明の一実施例にかかる光ディスクシステム
を示すブロック図、第2図(a)〜(e)は光ディスク
の記憶領域の分割状態を例示した概略図、第3図(a)
〜(d)はファイル識別子ディレクトリ領域の構成例を
示した概略図、第4図(a)〜(d)はファイルヘッダ
の構成例を示した概略図、第5図(a)〜(c)は記録
データの構成例を示した概略図、第6図(a)〜(d)
はマッピングデータ部に配置されるデータを例示した概
略図、第7図(a),(b)はファイルヘッダを例示し
た概略図、第8図はファイルヘッダの一般例を示した概
略図、第9図は上位システムよりデータの入出力依頼を
受けたときに行なう処理例を示すフローチャート、第10
図(a),(b)は検索用データファイルのバージョン
アップ例を示す概略図、第11図は検索用データファイル
のバージョンアップ時の処理例を示すフローチャートで
ある。 HST……ホスト装置、ODE……光ディスク装置。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an optical disc system according to an embodiment of the present invention, and FIGS. 2 (a) to 2 (e) are schematic diagrams illustrating division states of storage areas of an optical disc. Fig. 3 (a)
4A to 4D are schematic diagrams showing a configuration example of a file identifier directory area, FIGS. 4A to 4D are schematic diagrams showing a configuration example of a file header, and FIGS. 5A to 5C. Is a schematic diagram showing a configuration example of recording data, and FIGS. 6 (a) to (d).
Is a schematic diagram illustrating the data arranged in the mapping data part, FIGS. 7A and 7B are schematic diagrams illustrating the file header, and FIG. 8 is a schematic diagram illustrating a general example of the file header. FIG. 9 is a flow chart showing an example of processing performed when a data input / output request is received from a host system, FIG.
FIGS. 11A and 11B are schematic diagrams showing an example of upgrading the search data file, and FIG. 11 is a flowchart showing an example of processing when upgrading the search data file. HST: Host device, ODE: Optical disk device.

Claims (1)

(57)【特許請求の範囲】 1.データファイルと、おのおののデータファイルに設
定される検索情報を記憶する光ディスクの記憶管理方法
において、 前記検索情報は所定の大きさの領域に格納するととも
に、検索情報の追加時点で前記領域に空きがない場合に
は、新たな領域を確保し、前記データファイルのうち必
要なデータファイルの検索情報と、前記追加する検索情
報を、前記新たな領域に書き込むとともに、それ以降
は、前記新たな領域に対して、検索情報を追加するよう
にしたことを特徴とする光ディスクの記憶管理方法。
(57) [Claims] In an optical disk storage management method for storing a data file and search information set in each data file, the search information is stored in an area of a predetermined size, and there is a space in the area when the search information is added. If not, a new area is secured, the search information of the necessary data file among the data files and the search information to be added are written in the new area, and thereafter, in the new area. On the other hand, a storage management method for an optical disk, characterized in that search information is added.
JP62204110A 1987-08-19 1987-08-19 Optical disk storage management method Expired - Lifetime JP2689116B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62204110A JP2689116B2 (en) 1987-08-19 1987-08-19 Optical disk storage management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62204110A JP2689116B2 (en) 1987-08-19 1987-08-19 Optical disk storage management method

Publications (2)

Publication Number Publication Date
JPS6448283A JPS6448283A (en) 1989-02-22
JP2689116B2 true JP2689116B2 (en) 1997-12-10

Family

ID=16484967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62204110A Expired - Lifetime JP2689116B2 (en) 1987-08-19 1987-08-19 Optical disk storage management method

Country Status (1)

Country Link
JP (1) JP2689116B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0756651B2 (en) * 1985-09-02 1995-06-14 松下電送株式会社 Document file search method

Also Published As

Publication number Publication date
JPS6448283A (en) 1989-02-22

Similar Documents

Publication Publication Date Title
US5029125A (en) Method of reading and writing files on nonerasable storage media
US5446857A (en) Method and apparatus for writing files on nonerasable storage medium
EP0284037B1 (en) Modular data storage directories for large-capacity data storage units
US8065473B2 (en) Method for controlling memory card and method for controlling nonvolatile semiconductor memory
JPH04141867A (en) File managing method
CN101807418B (en) Drive device
CN1957414B (en) Data recording/reproduction for write-once discs
JP2004520672A (en) Method and apparatus for recording a file on a sequential medium, method and apparatus for reading a file from a sequential medium, and sequential medium
JP2002202902A (en) Partition formation method and deletion method, recording medium having program recorded thereon, and information processing device
JP4310120B2 (en) System and method for information control block tracking stream for universal disk format file system
JP4221959B2 (en) Bridge file system, computer system, data management method and recording medium using bridge file system
KR20070029705A (en) Data recording/reproduction for write-once discs
KR20070029704A (en) Data recording/reproduction for write-once discs
JP2689116B2 (en) Optical disk storage management method
JPS61241850A (en) Memory control system of optical disk
JP2649675B2 (en) Optical disk storage management method
JP2001243107A (en) Av data recorder and its method, disk recored by av data recorder and the method
JPH0262779A (en) File retrieval method from rotary-disk storage device
JP2612589B2 (en) Directory search method
JP2784650B2 (en) Optical disk storage management method
JPH01236488A (en) Rewritable type optical disk control system
JP3316763B2 (en) Storage controller
JPS61160133A (en) Data input control method
JPH0744427A (en) Data arrangement system for disk
JPS62226487A (en) Memory control system for optical disk

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term