JPH07105067A - File control system - Google Patents

File control system

Info

Publication number
JPH07105067A
JPH07105067A JP5246581A JP24658193A JPH07105067A JP H07105067 A JPH07105067 A JP H07105067A JP 5246581 A JP5246581 A JP 5246581A JP 24658193 A JP24658193 A JP 24658193A JP H07105067 A JPH07105067 A JP H07105067A
Authority
JP
Japan
Prior art keywords
file
rom
magnetic disk
data
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5246581A
Other languages
Japanese (ja)
Inventor
Tokuyuki Iwai
徳幸 岩井
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5246581A priority Critical patent/JPH07105067A/en
Publication of JPH07105067A publication Critical patent/JPH07105067A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To shorten the write time of a magnetic disk and to speed up the access of the same file by partially copying CD-ROM file data in a magnetic disk device. CONSTITUTION:When a use opens the CD-ROM file 101, the file having the same area is generated in the magnetic disk device 104. When a first read request is given, the data block of a read area is read from the CD-ROM file 101 and it is copied in the same data block position for the file of the magnetic disk. When the CD-ROM file 101 is closed, the file of the magnetic disk device 104 is closed. In the case of reading data from the next CD-ROM file 101, it is read from the file of the magnetic disk device 104. Thus, data is read without being conscious of which file is a read destination and second and succeeding reading can be speeded up.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はファイル制御方式に係
り、特に、読み込み専用であるCD−ROMファイル
を、読み書き可能なファイルに疑似するファイル制御方
式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file control method, and more particularly to a file control method for simulating a read-only CD-ROM file into a readable / writable file.

【0002】[0002]

【従来の技術】日経バイト1992/5月号,pp19
8#228,ユニフォーラム 1991カンファレンス プ
ロシーディングズ,ダラス,テキサス(Uniforum 1991
Conference Proceedings, Da−llas Texas),pp107
#114に開示されているように、近年、CD−ROM
などの光ディスクは大量のプログラムやデータを供給す
る記録媒体として注目されている。しかし、CD−RO
Mは読み出し速度が150k/秒と遅いという欠点があ
るため、マルチユーザ環境下では受け入れにくい。
2. Description of the Related Art Nikkei Byte 1992 / May issue, pp19
8 # 228, Uniforum 1991 Conference Proceedings, Dallas, Texas (Uniforum 1991
Conference Proceedings, Da-llas Texas), pp107
Recently, as disclosed in # 114, CD-ROM
Optical discs such as are attracting attention as recording media for supplying a large amount of programs and data. However, CD-RO
The M has a drawback that the read speed is as slow as 150 k / sec, and thus is difficult to accept in a multi-user environment.

【0003】そのため、CD−ROMなどに対する制御
として、磁気ディスク装置とCD−ROM装置を組合
せ、CD−ROM装置のアクセス速度を向上させている
方式がある。この方式では、磁気ディスク装置をCD−
ROM装置のキャッシュとして扱うので、データが磁気
ディスク上にあるときは即座に読み出せることになる。
しかし磁気ディスク装置にデータを書き込む際、CD−
ROMのファイルデータすべてを書き込む方式を採って
いるため、多くの時間がかかる。また参照されないファ
イルに対しては、ディスクへの書き込みが無駄となる。
また、CD−ROMファイルは読み込み専用であり書き換
えが出来ないことが一般に知られている。
Therefore, as a control for a CD-ROM or the like, there is a system in which a magnetic disk device and a CD-ROM device are combined to improve the access speed of the CD-ROM device. In this system, the magnetic disk device is a CD-
Since it is treated as a cache of the ROM device, when the data is on the magnetic disk, it can be read out immediately.
However, when writing data to the magnetic disk unit, the CD-
It takes a lot of time because the method of writing all the file data of the ROM is adopted. In addition, writing to the disk is wasted for files that are not referenced.
It is generally known that the CD-ROM file is read-only and cannot be rewritten.

【0004】[0004]

【発明が解決しようとする課題】上記方式では、CD−
ROM装置から磁気ディスク装置にディレクトリ・ファ
イル情報やファイルデータを全て書き込むため、非常に
多くの時間を要し、ディスクのムダが発生するという問
題があった。また、書き込みに関しては考慮されていな
い。
In the above system, the CD-
Since all the directory / file information and file data are written from the ROM device to the magnetic disk device, it takes a very long time and there is a problem that the disk is wasted. Also, no consideration is given to writing.

【0005】本発明の目的は、磁気ディスク装置にファ
イルを、書き込む時間の短縮と共に、所要ディスク容量
も軽減し、また再度同じ領域へのアクセスに対しては、
磁気ディスクから読み出せるため、読み込み処理を高速
化することにある。
An object of the present invention is to reduce the time required to write a file to a magnetic disk device, reduce the required disk capacity, and to access the same area again,
Since the data can be read from the magnetic disk, it is intended to speed up the reading process.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明によるファイル制御方式は、ファイルを記憶
する複数のCD−ROM装置と、各CD−ROM装置か
らデータを読み込む手段と、前記CD−ROM装置から
読み込まれたデータを一時的に格納するための記憶領域
であるバッファ・メモリと、読み出したデータを複写す
る磁気ディスク装置と、前記磁気ディスク装置にCD−
ROMファイル構造を構築する手段と、前記バッファ・
メモリ内のデータ単位に前記磁気ディスク装置上のCD
−ROMファイルアクセスを行う手段と、データを書き
込んだ磁気ディスク装置上CD−ROMファイルがCD
−ROMファイルに対応したファイルのどの位置かを管
理し、データがCD−ROM上のみあるのか、磁気ディ
スク装置上にも複写データがあるかを示した管理テーブ
ルと、前記管理テーブルからデータの読み込みを磁気デ
ィスク装置のファイルか、CD−ROM装置のファイル
かを判定する手段からなり、磁気ディスク装置にCD−
ROMファイルデータを部分複写することにより、磁気
ディスクへの書き込み時間の軽減及び大容量,低速アク
セスデバイスへの同一ファイルのアクセスを高速化す
る。
In order to achieve the above object, the file control method according to the present invention comprises a plurality of CD-ROM devices for storing files, a means for reading data from each CD-ROM device, and the CD. -A buffer memory which is a storage area for temporarily storing the data read from the ROM device, a magnetic disk device for copying the read data, and a CD on the magnetic disk device-
Means for constructing a ROM file structure, said buffer
A CD on the magnetic disk unit for each data unit in the memory
-ROM file access means and a CD-ROM file on the magnetic disk device where the data is written is a CD
A management table that manages which position of the file corresponding to the ROM file and indicates whether the data is only on the CD-ROM or whether there is copy data on the magnetic disk device, and reading of the data from the management table Is a file of a magnetic disk device or a file of a CD-ROM device.
By partially copying the ROM file data, the write time to the magnetic disk is reduced and the access to the same file to a large capacity, low speed access device is accelerated.

【0007】また、前記CD−ROMファイルに対応し
たファイル位置を管理し、CD−ROMへのアクセスと
磁気ディスクへのアクセスを判断する手段により、磁気
ディスク上にデータ書き込みを行った際、このデータを
CDーROMファイル上の位置と対応させることによ
り、疑似的な書き換えを可能とする。
Further, when data is written on the magnetic disk by means of managing the file position corresponding to the CD-ROM file and judging access to the CD-ROM and access to the magnetic disk, this data is recorded. By corresponding to the position on the CD-ROM file, pseudo rewriting is possible.

【0008】[0008]

【作用】本発明において、ユーザがまずCD−ROMフ
ァイルをオープンすると、磁気ディスク装置にCD−R
OMファイルと同じ領域を持つファイルが作成される。
次にユーザが第1回目の読み込み要求を行うと、リード
する領域のデータブロックをCD−ROMファイルから
読み込むと共に、磁気ディスクのファイルに対して同じ
データブロック位置へと複写する。ユーザがCD−RO
Mファイルを閉じると、磁気ディスク装置のファイルも
閉じられる。次にユーザが同じ操作でCD−ROMファ
イルを読み込む場合は、磁気ディスク装置のファイルか
ら読み込まれる。このようにユーザに対しては、読み込
む先がCD−ROMファイルからか、磁気ディスクのフ
ァイルからかを意識させず、かつ二回目以降の読み込み
に対して高速化することを可能とする。
In the present invention, when the user first opens the CD-ROM file, the CD-R is loaded on the magnetic disk device.
A file having the same area as the OM file is created.
Next, when the user makes a first read request, the data block in the area to be read is read from the CD-ROM file and is copied to the same data block position in the magnetic disk file. User is CD-RO
When the M file is closed, the file on the magnetic disk device is also closed. Next, when the user reads the CD-ROM file by the same operation, it reads from the file of the magnetic disk device. In this way, it is possible for the user not to be aware of whether the read destination is from the CD-ROM file or the file on the magnetic disk, and to speed up the second and subsequent reading.

【0009】また、ユーザが、CD−ROMファイルに
対して書き込み動作を行った場合には、磁気ディスク上
の対応ファイルの内容を書き換えるとともに管理情報も
書き換え、データが既に磁気ディスク上に存在するよう
に見せることで、CD−ROMファイルの疑似的な書き換
えが可能である。
When the user performs a writing operation on the CD-ROM file, the contents of the corresponding file on the magnetic disk are rewritten and the management information is also rewritten so that the data already exists on the magnetic disk. , It is possible to rewrite the CD-ROM file in a pseudo manner.

【0010】[0010]

【実施例】本発明におけるCD−ROMファイルシステ
ムのブロック図を図1に示す。
1 is a block diagram of a CD-ROM file system according to the present invention.

【0011】101はISO9660論理フォーマット
で記憶されたCD−ROMファイルであり、CD−RO
M記憶媒体と、その駆動装置からなる。102はCD−
ROM101の動作を制御するコントローラである。1
04は、CD−ROM101から読みだされたデータと
そのブロック位置を示すビットマップ情報を記憶する仮
想ファイルおよびディレクトリを保存する磁気ディスク
装置とその駆動装置である。103はシステム全体を制
御するCPU、105はCPU103を動作させる制御
プログラムを格納するためのプログラム・メモリ、10
6はCD−ROMファイル101から読みだされたデー
タを一時的に記憶するためのバッファメモリ、107は
ビットマップ情報を一時的に記憶するためのメモリ、1
08はパステーブルを一時的に記憶するためのメモリ、
109はCPU103が利用する変数,テーブル類を格
納するワークメモリである。
Reference numeral 101 is a CD-ROM file stored in the ISO9660 logical format, which is a CD-RO.
The M storage medium and its drive unit. 102 is a CD-
A controller that controls the operation of the ROM 101. 1
Reference numeral 04 is a magnetic disk device for storing virtual files and directories for storing the data read from the CD-ROM 101 and bitmap information indicating the block positions of the data and its drive device. 103 is a CPU for controlling the entire system, 105 is a program memory for storing a control program for operating the CPU 103, 10
6 is a buffer memory for temporarily storing the data read from the CD-ROM file 101, 107 is a memory for temporarily storing bitmap information, 1
08 is a memory for temporarily storing the path table,
A work memory 109 stores variables and tables used by the CPU 103.

【0012】図3はCD−ROMファイル101上の記
憶エリアの構成を模式的に描いた図である。CD−RO
Mファイル101内のデータアドレスは、論理ブロック
で表され、一意に論理ブロック番号で識別する。コント
ローラ102は、この論理ブロック番号を用いて入力ア
ドレスを指定する。記憶エリアは、ボリュームの属性,
ルートディレクトリの論理ブロック位置,パステーブル
の論理ブロック位置を記憶するボリューム記述子30
1,ディレクトリの階層構造を記述するパステーブル3
02、そしてディレクトリ記述子303とファイル記述
子304からなる。パステーブル302は、ディレクト
リ名の長さ305,拡張属性レコードの長さ306,デ
ィレクトリの位置307,親ディレクトリの番号30
8,ディレクトリ名309からなる。
FIG. 3 is a diagram schematically showing the structure of the storage area on the CD-ROM file 101. CD-RO
The data address in the M file 101 is represented by a logical block and is uniquely identified by a logical block number. The controller 102 uses this logical block number to specify the input address. The storage area is the volume attribute,
Volume descriptor 30 that stores the logical block position of the root directory and the logical block position of the path table
1, path table 3 that describes the hierarchical structure of the directory
02, and a directory descriptor 303 and a file descriptor 304. The path table 302 has a directory name length 305, extended attribute record length 306, directory position 307, and parent directory number 30.
8 and a directory name 309.

【0013】図4は仮想ファイル402の記憶エリアを
表したものである。仮想ファイル402は、CD−RO
Mファイル401と同じ領域を持っており、データブロ
ックは、CD−ROMファイル401のデータブロック
と1対1に対応している。そしてCD−ROMファイル
名称とビットマップ情報を含む。ビットマップ404は、
1ビットが表す大きさを16kバイトとし、ビットの位
置が仮想ファイル402内のデータブロックの位置を示
す。以下1ブロックは、この16Kバイトのデータブロ
ックとする。ビットマップ404は、ビットの値が1の
場合は、仮想ファイル402上にデータブロックが存在
することを表し、0ならば仮想ファイル402には存在
しないことを示す。これによりCD−ROMファイルか
ら読み込むか、仮想ファイルから読み込むかを判定す
る。
FIG. 4 shows the storage area of the virtual file 402. The virtual file 402 is a CD-RO
It has the same area as the M file 401, and the data blocks correspond one-to-one with the data blocks of the CD-ROM file 401. It also contains the CD-ROM file name and bitmap information. Bitmap 404 is
The size represented by 1 bit is 16 kbytes, and the bit position indicates the position of the data block in the virtual file 402. Hereinafter, one block is a 16-Kbyte data block. In the bitmap 404, a bit value of 1 indicates that the data block exists in the virtual file 402, and a bit value of 0 indicates that the data block does not exist in the virtual file 402. As a result, it is determined whether to read from the CD-ROM file or the virtual file.

【0014】図2は、本発明におけるCD−ROMファ
イルシステムの読み込み動作を表すフローである。図2
(a)では、ユーザがCD−ROMファイルに対して読
み込みを行う場合の動作を示す。ユーザはまずCD−R
OMファイルをオープンする。次いで所望のデータブロ
ックをCD−ROMファイルから読み込み、最後にCD
−ROMファイルをクローズする。(a)のユーザ動作
に対して、(b)は、第1回目の読み込み処理のファイ
ル制御の処理フローを示す。(b)の初期状態では、磁
気ディスク装置104にはディレクトリ階層および仮想
ファイルとビットマップ情報は存在しない。
FIG. 2 is a flow chart showing the reading operation of the CD-ROM file system according to the present invention. Figure 2
(A) shows an operation when the user reads a CD-ROM file. First the user is a CD-R
Open the OM file. Next, read the desired data block from the CD-ROM file, and finally read the CD.
-Close the ROM file. In contrast to the user operation of (a), (b) shows a processing flow of file control of the first read processing. In the initial state of (b), the magnetic disk device 104 has no directory hierarchy, virtual file, and bitmap information.

【0015】図2(b)の204では、ユーザがディレ
クトリ作成要求をすることにより、パステーブル302
から磁気ディスク装置104にCD−ROMのディレク
トリ階層を作成する。
In 204 of FIG. 2B, the path table 302 is issued when the user makes a directory creation request.
To create a directory hierarchy of the CD-ROM in the magnetic disk device 104.

【0016】ディレクトリ作成処理を図5を用いて説明
する。ステップ501では、図3のパステーブル302
をコントローラ102によりメモリ108に記憶する。
パステーブル302は、ルートディレクトリから階層の
レベルに従った昇順に格納されている。ステップ502
では、メモリ108に記憶したパステーブル302の先
頭ディレクトリエントリを取り出す。ステップ503で
は、取り出したディレクトリエントリのディレクトリ名
をメモリ109に記憶する。
The directory creation process will be described with reference to FIG. In step 501, the path table 302 of FIG.
Is stored in the memory 108 by the controller 102.
The path table 302 is stored in ascending order from the root directory according to the level of hierarchy. Step 502
Then, the leading directory entry of the path table 302 stored in the memory 108 is extracted. In step 503, the directory name of the extracted directory entry is stored in the memory 109.

【0017】ステップ504では、同じディレクトリエ
ントリの親ディレクトリ番号から親ディレクトリエント
リを取り出す。ステップ505では、ステップ503で
記憶したディレクトリ名の前にステップ504で取得し
た親ディレクトリエントリのディレクトリ名を挿入す
る。以上のステップ504〜505までをステップ506
の判断により、親のディレクトリ番号が1、つまり、ル
ートディレクトリになるまで繰り返す。
In step 504, the parent directory entry is extracted from the parent directory number of the same directory entry. In step 505, the directory name of the parent directory entry acquired in step 504 is inserted before the directory name stored in step 503. The above steps 504 to 505 are performed to step 506.
It is repeated until the parent directory number becomes 1, that is, the root directory.

【0018】この処理によりディレクトリのフルパス名
がメモリ109内に記憶される。ステップ507では、
フルパス名で表されたディレクトリを磁気ディスク装置
104に作成する。以上のステップ502〜506までの
処理をステップ508の判断によりパステーブル302
の最終レコードまで繰り返すことにより、パステーブル
の全ディレクトリ階層構造を作成できる。
By this processing, the full path name of the directory is stored in the memory 109. In step 507,
The directory represented by the full path name is the magnetic disk unit.
Create to 104. The processing of the above steps 502 to 506 is executed according to the judgment of step 508.
The entire directory hierarchy structure of the path table can be created by repeating up to the last record of.

【0019】ユーザは以上の操作を終えた後、図2
(a)の処理201のようにファイルをオープンする。
この操作に対して図2(b)の処理205では、磁気デ
ィスク装置104に図4に示す仮想ファイル402を作
成する。
After the user has completed the above operations, FIG.
The file is opened as in step 201 of (a).
In response to this operation, in the process 205 of FIG. 2B, the virtual file 402 shown in FIG. 4 is created in the magnetic disk device 104.

【0020】図2(b)の処理206の後仮想ファイル
402の状態は、ビットマップが全て0、データブロッ
クサイズが0である。次にユーザは図2(a)の処理2
02を行う。これに対して(b)の第1回目の読み込み
では、図6の操作が実行される。
In the state of the virtual file 402 after the process 206 of FIG. 2B, the bitmap is all 0 and the data block size is 0. Next, the user performs the process 2 of FIG.
Do 02. On the other hand, in the first read of (b), the operation of FIG. 6 is executed.

【0021】ステップ601では、ユーザが指定したC
D−ROMファイルに対応する仮想ファイルをオープン
し、そのビットマップ情報をメモリ107に記憶する。
ステップ602,603では、ユーザが指定したリード
の先頭データブロック位置と終了データブロック位置を
計算する。次に先頭データブロック位置から終了データ
ブロック位置までのビットマップの状態を調べる処理6
04〜607について説明する。
In step 601, the C designated by the user
The virtual file corresponding to the D-ROM file is opened, and the bitmap information is stored in the memory 107.
In steps 602 and 603, the head data block position and the end data block position of the read designated by the user are calculated. Next, processing 6 for checking the state of the bitmap from the position of the first data block to the position of the end data block
04 to 607 will be described.

【0022】最初のステップ604では、リード先頭ブ
ロック位置のビット状態つまり1か0をメモリに格納す
る。このメモリの値に対して、次のデータブロックのビ
ットが変化するか、しないかを判定する。ビットの値が
変化した場合、変化したデータブロック位置をメモリに
格納する。そしてそのビット状態をメモリに格納する。
これをリード終了ブロックまで繰り返す。この処理結
果、図7に示すステイタス情報テーブルがワークメモリ
上に作成される。
In the first step 604, the bit state of the read head block position, that is, 1 or 0 is stored in the memory. It is determined whether or not the bit of the next data block changes with respect to the value of this memory. When the value of the bit changes, the changed data block position is stored in the memory. Then, the bit state is stored in the memory.
This is repeated until the read end block. As a result of this processing, the status information table shown in FIG. 7 is created in the work memory.

【0023】ステイタス情報テーブルは、リード開始ブ
ロックのビット状態を示すレコード701,ビット変化
のあったブロック位置を示すレコード702〜704,
終了を示すレコード705からなる。レコード701が
1で、次に終了レコード705が格納された場合、リード
するデータブロックが全てが仮想ファイルに存在するこ
とを表す。反対にレコード701が0の場合、仮想ファ
イルには存在しないことを表す。また歯抜けの場合、あ
まり歯抜けの数が多過ぎると仮想ファイルからの読み込
み処理の効果が失われてしまう。そこで歯抜け数とビッ
ト状態1の比率に条件を設け、この条件を満たさなかっ
たら全てCD−ROMファイルから読み込む事にする。
但し仮想ファイルに存在するデータブロックに対しては
書き込みは行わない。
The status information table includes a record 701 indicating the bit state of the read start block, and records 702 to 704 indicating the block position where the bit has changed.
It is composed of a record 705 indicating the end. If the record 701 is 1 and the end record 705 is stored next, it means that all the data blocks to be read exist in the virtual file. On the other hand, when the record 701 is 0, it means that the record does not exist in the virtual file. Further, in the case of missing teeth, if the number of missing teeth is too large, the effect of reading processing from a virtual file is lost. Therefore, a condition is set for the ratio of the number of missing teeth and the bit state 1, and if this condition is not satisfied, all are read from the CD-ROM file.
However, writing is not performed for the data block existing in the virtual file.

【0024】リード開始から終了までのデータブロック
位置のビットマップは、すべて0なので、ステイタス情
報テーブルのレコード701は0が入り、次にレコード
705が来る。このため、図6のステップ609〜616
では、ステイタス情報テーブルを参照して読み込み処理
を実行する。ステップ611では、リード対象となるデ
ータブロックがビット変化のあったブロック位置を示す
レコード701〜704の内容に基づいて、仮想ファイル
上にあるのか、無いのか判定する。仮想ファイル上にあ
る場合は、仮想ファイルからリード対象のデータブロッ
クをバッファ・メモリに読み込む。仮想ファイル上にな
い場合は、CD−ROMファイルからリード対象のデー
タブロックをバッファ・メモリに読み込む。
Since the bit map of the data block position from the start of reading to the end is all 0, 0 is entered in the record 701 of the status information table, and the next record
705 is coming. Therefore, steps 609 to 616 of FIG.
Then, the reading process is executed with reference to the status information table. In step 611, it is determined whether the data block to be read is in the virtual file or not based on the contents of the records 701 to 704 indicating the block positions where the bit change has occurred. If it is on the virtual file, the data block to be read is read from the virtual file into the buffer memory. If it is not on the virtual file, the data block to be read from the CD-ROM file is read into the buffer memory.

【0025】ステイタス情報テーブルを参照すると、リ
ード対象ブロックのビット状態は0である。そのためス
テップ612,614を実行する。ステップ612で
は、リード対象ブロックをCD−ROMからバッファ・
メモリに読み込む。ステップ614では、バッファメモ
リ上のデータを作成した仮想ファイルの適切なデータブ
ロック位置に複写する。そしてメモリに記憶したビット
マップのデータブロック位置のビットを1にする。以上
の操作をリード終了のデータブロック位置まで繰り返
す。リード終了したら、メモリのビットマップを仮想フ
ァイルに書き込む。これにより仮想ファイル上にはユー
ザが要求したリード領域を含むデータブロックが読み込
まれ、それに対応するビットマップが更新される。
Referring to the status information table, the bit state of the read target block is 0. Therefore, steps 612 and 614 are executed. In step 612, the read target block is buffered from the CD-ROM.
Read into memory. In step 614, the data on the buffer memory is copied to an appropriate data block position in the created virtual file. Then, the bit at the data block position of the bitmap stored in the memory is set to 1. The above operation is repeated up to the data block position at the end of reading. When reading is completed, the memory bitmap is written to the virtual file. As a result, the data block including the read area requested by the user is read on the virtual file, and the corresponding bitmap is updated.

【0026】図2(a)の処理203ではユーザがファ
イルをクローズする。これに対し(b)では処理208
が実行され、仮想ファイルはクローズされる。
In step 203 of FIG. 2A, the user closes the file. On the other hand, in step (b), the process 208
Is executed and the virtual file is closed.

【0027】次に図2(a)のユーザ操作で、同じデー
タブロックに対して二回目からの読み込み処理(c)に
ついて説明する。ユーザは、同じファイルをオープンす
る。この処理に対して二回目のファイル制御方式ステッ
プ209では、第1回目の読み込み時に作成した仮想フ
ァイルをオープンする。次にユーザが同じデータブロッ
クに対してリード要求すると、(b)同様、図6の処理
が実行される。
Next, the reading process (c) from the second time on the same data block by the user operation of FIG. 2A will be described. The user opens the same file. In response to this processing, in the second file control method step 209, the virtual file created at the time of the first reading is opened. Next, when the user makes a read request for the same data block, the processing of FIG. 6 is executed as in (b).

【0028】ステップ601,ユーザが指定したCD−
ROMファイルに対応する仮想ファイルをオープンし、
そのビットマップ情報をメモリ107に記憶する。第1
回目の読み込み同様リード開始,終了のブロック位置を
算出し、ビットマップの状態を調べる処理を行う。この
処理の結果、ステイタス情報テーブルは、レコード70
1に1が入り、次に終了レコード705が来る。これは
先程第1回目の読み込み処理において、ビットマップが
すべて1に変化したことに起因する。このテーブルを参
照すると、ステップ613が実行される。ステップ61
3では、仮想ファイルより読み込む。ユーザがファイル
をクローズすると、仮想ファイルは閉じられる。これに
よりアクセス速度の遅いCD−ROMから読み込まず、
磁気ディスク装置上に格納している仮想ファイルより読
み込むことが可能となる。よって二回目以降の読み込む
速度を高速化できる。
Step 601, CD specified by user
Open the virtual file corresponding to the ROM file,
The bitmap information is stored in the memory 107. First
Similar to the second reading, the block positions at the start and end of the read are calculated, and the process of checking the status of the bitmap is performed. As a result of this processing, the status information table has a record 70
1 is entered in 1 and then the end record 705 comes. This is because the bitmap has changed to all 1's in the first read process. Referring to this table, step 613 is executed. Step 61
In 3, data is read from the virtual file. The virtual file is closed when the user closes the file. This prevents you from reading from a CD-ROM with a slow access speed,
It is possible to read from a virtual file stored on the magnetic disk device. Therefore, the reading speed after the second reading can be increased.

【0029】次に、書き込み動作について図8により説
明する。ユーザから書き込み要求が発行された場合、ス
テップ801でディレクトリ情報がディスク上に格納さ
れているか否かをチェックする。格納されていない場合
は、ステップ806で、図5に示す処理によりディレク
トリ情報を作成し、ステップ802にすすむ。既作成の
場合は、ステップ802にすすむ。ステップ802で
は、ユーザが指定したファイルが、CD−ROM上に存
在するか否かをチェックする。存在しない場合は、ステ
ップ807,808により新規作成し、ディレクトリ情
報および、仮想ファイルにファイルに対するエントリを
登録し、ステップ804にすすむ。ファイルが存在した
場合は、ステップ803で仮想ファイル上のファイルエ
ントリを取得し、ステップ804にすすむ。ステップ8
04では、データを仮想ファイル上に書き込み、その
後、ステップ805で、書き込みデータにもとづきビッ
トマップ情報を更新し処理を終了する。
Next, the write operation will be described with reference to FIG. When a write request is issued by the user, it is checked in step 801 whether directory information is stored on the disc. If it is not stored, the directory information is created by the process shown in FIG. 5 in step 806, and the process proceeds to step 802. If already created, the process proceeds to step 802. In step 802, it is checked whether the file designated by the user exists on the CD-ROM. If it does not exist, it is newly created in steps 807 and 808, the directory information and the entry for the file are registered in the virtual file, and the process proceeds to step 804. If the file exists, the file entry on the virtual file is acquired in step 803, and the process proceeds to step 804. Step 8
In 04, the data is written on the virtual file, and then, in step 805, the bitmap information is updated based on the written data, and the process ends.

【0030】以上の実施例により、読み込み動作、及
び、疑似的な書き込み動作が可能となる。
According to the above embodiment, the read operation and the pseudo write operation are possible.

【0031】尚、本実施例では、CD−ROM装置が1
台の場合について説明したが、装置を物理的に複数つな
ぐことにより、複数のCD−ROMファイルから構成さ
れるディレクトリ階層を扱うことが可能である。従っ
て、磁気ディスク装置上に、複数のCD−ROMから構
成される別のCD−ROMファイル構造を構築できる。
In this embodiment, the CD-ROM device is 1
Although the case of a stand has been described, it is possible to handle a directory hierarchy composed of a plurality of CD-ROM files by physically connecting a plurality of devices. Therefore, another CD-ROM file structure composed of a plurality of CD-ROMs can be constructed on the magnetic disk device.

【0032】[0032]

【発明の効果】本発明によれば、CD−ROM装置から
ファイルデータを読み込むと共に、磁気ディスク装置に
ファイルを部分的に複写するため、全ファイルデータを
書き込む待ち時間が解消できる。またアクセスされた部
分のみ常に磁気ディスク装置上に存在しているので、参
照されないデータは持つこと無くディスクの無駄も解消
でき、データの読み込みに対して、すでにデータが磁気
ディスク装置上にあるときは、短時間に読み出すことが
可能である。
According to the present invention, since the file data is read from the CD-ROM device and the file is partially copied to the magnetic disk device, the waiting time for writing all the file data can be eliminated. Also, since only the accessed part is always present on the magnetic disk device, there is no unreferenced data and the waste of the disk can be eliminated. When reading data, when the data is already on the magnetic disk device, It is possible to read in a short time.

【0033】また、CD−ROMファイル上の複写デー
タが磁気ディスク上にあるときは、磁気ディスクからデ
ータを読む機能を使用して、磁気ディスク上のデータを
書き換えることで、疑似的にCD−ROMファイルを書
き換えたことと同じ効果が得られ、マスターのCD−R
OMに対し簡単に編集を加え別のCD−ROM構造を構
築できる。
When the copied data on the CD-ROM file is on the magnetic disk, the function of reading the data from the magnetic disk is used to rewrite the data on the magnetic disk, so that the CD-ROM is simulated. The same effect as rewriting the file is obtained, and the master CD-R
You can easily edit the OM to build another CD-ROM structure.

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

【図1】CD−ROMファイルシステムの全体構成を示
すブロック図。
FIG. 1 is a block diagram showing the overall configuration of a CD-ROM file system.

【図2】CD−ROMファイルシステムの動作フローチ
ャート。
FIG. 2 is an operation flowchart of a CD-ROM file system.

【図3】CD−ROMファイルの説明図。FIG. 3 is an explanatory diagram of a CD-ROM file.

【図4】仮想ファイルの説明図。FIG. 4 is an explanatory diagram of a virtual file.

【図5】CD−ROMファイルシステムの制御動作のフ
ローチャート。
FIG. 5 is a flowchart of control operation of the CD-ROM file system.

【図6】CD−ROMファイルシステムの制御動作のフ
ローチャート。
FIG. 6 is a flowchart of the control operation of the CD-ROM file system.

【図7】検索されたビットマップ情報のスティタスを記
憶するテーブルの説明図。
FIG. 7 is an explanatory diagram of a table that stores the status of retrieved bitmap information.

【図8】CD−ROMファイルシステムの制御動作のフ
ローチャート。
FIG. 8 is a flowchart of a control operation of the CD-ROM file system.

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

101…CD−ROM装置、102…コントローラ、1
03…CPU、104…磁気ディスク装置、105…バ
ッファメモリ、106,107,108,109…ワーク
メモリ。
101 ... CD-ROM device, 102 ... Controller, 1
03 ... CPU, 104 ... Magnetic disk device, 105 ... Buffer memory, 106, 107, 108, 109 ... Work memory.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】CD−ROMなどの読み込み専用の大容量
で且つ低速アクセスのファイルシステムにおいて、ファ
イルを記憶する複数のCD−ROM装置と、前記各CD
−ROM装置からデータを読み込む手段と、前記CD−
ROM装置から読み込まれたデータを一時的に格納する
ための記憶領域であるバッファ・メモリと、読み出した
データを複写する磁気ディスク装置と、前記磁気ディス
ク装置にCD−ROMファイルを構築する手段と、前記バ
ッファ・メモリ内のデータ単位に前記磁気ディスク装置
上のCD−ROMファイルアクセスを行う手段と、デー
タを書き込んだ前記磁気ディスク装置上の前記CD−R
OMファイルが前記CD−ROMに対応したファイルの
どの位置かを管理し、データが前記CD−ROM上のみ
にあるのか、前記磁気ディスク装置上に複写データがあ
るのかを示した管理テーブルと、前記管理テーブルから
データの読み込み先が、前記磁気ディスク装置上のファ
イルか、前記CD−ROM装置上のファイルかを判定す
る手段からなり、読み込み動作に対しては、前記磁気デ
ィスク装置に前記CD−ROM上のファイルデータを部
分複写することにより、前記磁気ディスク装置への書き
込み時間の軽減及び大容量、低速アクセスデバイスへの
同一ファイルのアクセスを高速化すること、及び、書き
込み動作に対しては、前記磁気ディスク装置上にデータ
を書き込み、書き込んだデータ位置に対するデータが既
に前記磁気ディスク装置上に存在しているように、前記
管理情報を書き換えることによって、読み込み専用の前
記CD−ROMファイルを、読み書き可能ファイルに疑
似出来ることを特徴とするファイル制御方式。
1. In a read-only large-capacity, low-speed access file system such as a CD-ROM, a plurality of CD-ROM devices for storing files and the respective CDs are provided.
-Means for reading data from a ROM device and the CD-
A buffer memory which is a storage area for temporarily storing the data read from the ROM device, a magnetic disk device for copying the read data, and means for constructing a CD-ROM file on the magnetic disk device, Means for accessing a CD-ROM file on the magnetic disk device for each data unit in the buffer memory, and the CD-R on the magnetic disk device in which data is written.
A management table that manages which position of the file corresponding to the CD-ROM is stored in the OM file, and indicates whether the data exists only on the CD-ROM or whether there is copy data on the magnetic disk device; The management table comprises means for determining whether the read destination of data is a file on the magnetic disk device or a file on the CD-ROM device. For reading operation, the CD-ROM is stored on the magnetic disk device. By partially copying the above file data, the write time to the magnetic disk device is shortened and a large capacity, the same file is accessed to a low speed access device at a high speed. Data is written on the magnetic disk unit, and the data for the written data position has already been written on the magnetic disk. To be present on the device, by rewriting the management information, file control method, characterized in that the read only the CD-ROM file can simulates a read-write file.
【請求項2】請求項1において、前記CD−ROMファ
イルを前記磁気ディスク装置上に構築する手段により、
前記磁気ディスク装置上に、前記複数のCD−ROMフ
ァイルから成るディレクトリ階層構造を作成し、前記複
数のCD−ROMファイルから構成される別のCD−R
OMファイルの構築とファイル編集を行うファイル制御
方式。
2. The means for constructing the CD-ROM file on the magnetic disk device according to claim 1,
Another CD-R composed of the plurality of CD-ROM files is created on the magnetic disk device by creating a directory hierarchical structure composed of the plurality of CD-ROM files.
A file control method for constructing and editing OM files.
JP5246581A 1993-10-01 1993-10-01 File control system Pending JPH07105067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5246581A JPH07105067A (en) 1993-10-01 1993-10-01 File control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5246581A JPH07105067A (en) 1993-10-01 1993-10-01 File control system

Publications (1)

Publication Number Publication Date
JPH07105067A true JPH07105067A (en) 1995-04-21

Family

ID=17150552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5246581A Pending JPH07105067A (en) 1993-10-01 1993-10-01 File control system

Country Status (1)

Country Link
JP (1) JPH07105067A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10210309B2 (en) 2009-01-21 2019-02-19 Toshiba Medical Systems Corporation Image display method, medical diagnostic imaging apparatus, and medical image processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10210309B2 (en) 2009-01-21 2019-02-19 Toshiba Medical Systems Corporation Image display method, medical diagnostic imaging apparatus, and medical image processing apparatus

Similar Documents

Publication Publication Date Title
US5666531A (en) Recordable CDROM accessing system
JP3005645B2 (en) How to read and write files on non-erasable storage media
JPH05313980A (en) Information recording method
JP2940208B2 (en) Recording / reproducing method, recording / reproducing apparatus, optical disc
JPH04141867A (en) File managing method
JPH04186447A (en) Directory management system
JP5128130B2 (en) Data pseudo-rewrite for write-once discs
KR950015322A (en) Controller for Recording Media
JP2831369B2 (en) Information recording / reproducing method and system
KR100891088B1 (en) A method and an apparatus for writing data on a write-once disc, and a semiconductor integrated circuit
JPH0646488B2 (en) Storage medium auto changer device
JPH07105067A (en) File control system
JP2581003B2 (en) Recording disk controller
JPH10283717A (en) Cd-rom reading system and cd-rom reading method
JPH0876935A (en) Backup data preparation and reproduction system
WO2001008013A1 (en) Disk medium managing method
CN100573693C (en) Pseudo-overwriting data on write-once discs
JPH10302397A (en) Optical disk recording device
JPH03217972A (en) File retrieving device
JPH0322046A (en) Control method for file using draw type storage medium
JPH0635780A (en) File controlling method of large capacity storage device
JPH03166634A (en) Information recording/reproducing system
JP3453185B2 (en) Write-once optical disc creation and playback system
JP2008527582A (en) How to change operations on a storage medium from the current file system to a new or updated file system
JPH064368A (en) File access device