JPH0635780A - File controlling method of large capacity storage device - Google Patents
File controlling method of large capacity storage deviceInfo
- Publication number
- JPH0635780A JPH0635780A JP4190549A JP19054992A JPH0635780A JP H0635780 A JPH0635780 A JP H0635780A JP 4190549 A JP4190549 A JP 4190549A JP 19054992 A JP19054992 A JP 19054992A JP H0635780 A JPH0635780 A JP H0635780A
- Authority
- JP
- Japan
- Prior art keywords
- file
- area
- information
- directory
- index
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims description 22
- 238000007726 management method Methods 0.000 claims description 16
- 238000011989 factory acceptance test Methods 0.000 description 7
- 238000012949 factory acceptance testing Methods 0.000 description 7
- 239000003925 fat Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000000523 sample Substances 0.000 description 5
- 238000005259 measurement Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、大容量記憶装置のファ
イル管理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management method for a mass storage device.
【0002】[0002]
【従来技術】パソコンにおいて、広く使用されているオ
ペレーションシステム(OS)として、MS−DOSな
どで代表されるOSでは、フロッピディスク、ハードデ
ィスク、光ディスク、半導体メモリディスクなどの外部
記憶装置に対して、FAT(File Allocat
ion Table)並びに、ディレクトリを用い、こ
れらFATおよびディレクトリによってディスク内のデ
ータを管理している。2. Description of the Related Art As an operating system (OS) widely used in personal computers, an OS represented by MS-DOS or the like is used as a FAT for an external storage device such as a floppy disk, a hard disk, an optical disk or a semiconductor memory disk. (File Allocat
Ion Table) and directories, and the data in the disc is managed by these FATs and directories.
【0003】FATはディスク全体を縮小して表し、フ
ァイルがディスク上のどの部分に入っているかを表して
いる。また、ディレクトリは索引領域であり、ディレク
トリにはディレクトリ名、ファイル名や日時等の情報と
FATの番号が書かれている。そして、このディレクト
リとFATにより、ディスクにおけるファイルのパソコ
ンとの間でのアクセスを可能にしている。The FAT is a reduced representation of the entire disc and indicates which part of the disc the file is on. The directory is an index area, and information such as the directory name, file name, date and time, and FAT number is written in the directory. The directory and the FAT enable access to files on the disc between the personal computer and the personal computer.
【0004】MS−DOSなどの例では、ディレクトリ
は階層構造にすることができ、ルートディレクトリの下
に、チャイルドディレクトリを置くことができ、さらに
その下、そしてさらにその下にもチャイルドディレクト
リを置くことができる。In an example such as MS-DOS, the directories may have a hierarchical structure, a child directory may be placed under the root directory, and a child directory may be placed further under the root directory. You can
【0005】各ディレクトリにはディレクトリ名を与え
るようにしており、ディレクトリ間の移動はディレクト
リ名指定によるチェンジディレクトリコマンドで実施す
ることができる。ディレクトリはルートディレクトリの
下に、チャイルドディレクトリを置くかたちとなるの
で、階層構造、すなわち、ツリー構造となる。A directory name is given to each directory, and movement between directories can be performed by a change directory command by designating a directory name. Since the directory has a child directory under the root directory, it has a hierarchical structure, that is, a tree structure.
【0006】[0006]
【発明が解決しようとする課題】ところで、この種のO
Sにおけるルートディレクトリでは、そのディレクトリ
領域が一杯になるとそれ以上、同じディレクトリにはフ
ァイルを入れられないと云う第1の問題点があった。By the way, this kind of O
In the root directory of S, when the directory area is full, there is the first problem that the file cannot be put in the same directory any more.
【0007】また、MS‐DOSなどでは、FATは2
系統設けてあり、一方は予備領域として主領域のFAT
の内容のバックアップ用として、主領域のものと同じ内
容が記憶され、万一の場合に利用される。しかし、FA
Tが予備領域も含めて壊されたときはファイル部分のデ
ータが無事であってもファイルの修復が不可能になると
云う第2の問題点があった。In MS-DOS, FAT is 2
A system is provided, one of which is the FAT of the main area as a spare area.
The same contents as those of the main area are stored as a backup of the contents of the above, and are used in case of emergency. However, FA
There is a second problem that when T is destroyed including the spare area, the file cannot be restored even if the data of the file portion is safe.
【0008】そこで、この発明の目的とするところは、
1つのディレクトリにおいて管理できるファイル数の制
限をなくすことができると共に、索引領域が破壊された
としてもファイルを修復することのできるようにした大
容量記憶装置のファイル管理方法を提供することにあ
る。Therefore, the object of the present invention is to
It is an object of the present invention to provide a file management method for a mass storage device which can eliminate the limitation on the number of files that can be managed in one directory and can restore the files even if the index area is destroyed.
【0009】[0009]
【課題を解決するための手段】上記目的を達成するた
め、本発明は次のように構成した。すなわち、ディレク
トリ単位で複数のファイルを管理させると共に、これら
ディレクトリ単位で管理させるファイルの索引情報を索
引領域に保持させ、記録と読出しを行うことができるよ
うにした大容量の記録メディアにおける管理方法とし
て、In order to achieve the above object, the present invention is configured as follows. That is, as a management method in a large-capacity recording medium that manages a plurality of files in directory units and holds index information of files managed in directory units in an index area so that recording and reading can be performed. ,
【0010】特定ディレクトリにおける索引領域に記憶
させる索引情報が一杯になったとき、新たな索引領域を
作り、かつ、それらをチェーン状につなぐための位置情
報を各索引領域に順に付与するようにし、また、記録メ
ディア内のファイル領域は固定長として、複数用意し、
ファイル名及び当該索引領域内の索引情報における最初
のファイルの記憶位置情報対応のファイル領域には、フ
ァイル名及びファイル長情報とを含むファイルヘッダ情
報と共に、ファイル内容の情報を記憶させ、記憶対象の
ファイルの容量がそのファイルの記憶に供しているファ
イル領域の容量を越えるときは、ファイルの続きを別の
ファイル領域に許容される容量の範囲で順次記憶させ、
当該対象のファイルの記憶に供した各ファイル領域に
は、次に続くファイルの記憶に供したファイル領域の位
置情報を保持させるようにした。When the index information to be stored in the index area in the specific directory becomes full, a new index area is created, and position information for connecting them in a chain is sequentially added to each index area, Also, prepare a plurality of file areas in the recording medium as fixed length,
In the file area corresponding to the storage position information of the first file in the file name and the index information in the index area, the file header information including the file name and the file length information is stored together with the file content information, and the storage target information is stored. When the capacity of the file exceeds the capacity of the file area used for storing the file, the continuation of the file is sequentially stored in another file area within the allowable capacity range,
The position information of the file area used to store the next file is held in each file area used to store the target file.
【0011】[0011]
【作用】すなわち、ディレクトリ単位で複数のファイル
を管理させると共に、これらディレクトリ単位で管理さ
せるファイルの索引情報を索引領域に保持させ、記録と
読出しを行うことができるようにした大容量の記録メデ
ィアにおける管理方法として、That is, in a large-capacity recording medium in which a plurality of files are managed in directory units, and index information of files managed in directory units is held in an index area for recording and reading. As a management method,
【0012】特定ディレクトリにおける索引領域に記憶
させる索引情報が一杯になったとき、新たな索引領域を
作り、溢れた索引情報をこの新たな索引領域に記憶させ
てファイル管理をする。そして、それら索引領域群をチ
ェーン状につなぐための位置情報を、上記特定ディレク
トリにおける各索引領域に順に付与するようにして、こ
れにより、一つの特定ディレクトリにおける管理可能な
ファイル数の制限を排除する。また、記録メディア内の
ファイル領域は固定長として、複数用意し、ファイル名
及び当該索引領域内の索引情報における最初のファイル
の記憶位置情報対応のファイル領域には、ファイル名及
びファイル長情報とを含むファイルヘッダ情報と共に、
ファイル内容の情報を記憶させ、記憶対象のファイルの
容量がそのファイルの記憶に供しているファイル領域の
容量を越えるときは、ファイルの続きを別のファイル領
域に許容される容量の範囲で順次記憶させ、当該対象の
ファイルの記憶に供した各ファイル領域には、次に続く
ファイルの記憶に供したファイル領域の位置情報を保持
させることにより、ファイルがどのファイル領域に記憶
されているかを管理できるようにした。また、一つのフ
ァイルは複数のファイル領域に跨がるようにしたが、こ
の場合に、各ファイル領域には次に続くファイル領域が
どこであるかを情報として持たせたので、一つのファイ
ルの記憶に供したファイル領域の関係が各ファイル領域
においてわかるから、ディレクトリが破壊されても、フ
ァイル領域が保存されていれば、ファイルの復元ができ
る。When the index information to be stored in the index area in the specific directory becomes full, a new index area is created and the overflowing index information is stored in this new index area for file management. Then, position information for connecting the index area groups in a chain shape is sequentially added to each index area in the specific directory, thereby eliminating the limit of the number of manageable files in one specific directory. . In addition, a plurality of file areas in the recording medium are prepared with a fixed length, and the file name and the file length information are stored in the file area corresponding to the storage location information of the first file in the index information in the index area. With file header information to include
When the file content information is stored and the capacity of the file to be stored exceeds the capacity of the file area used for storing that file, the continuation of the file is sequentially stored in another file area within the allowable capacity range. By storing the position information of the file area used for storing the next file in each file area used for storing the target file, it is possible to manage in which file area the file is stored. I did it. Also, one file is set to span multiple file areas. In this case, since each file area has information as to where the next file area is, the storage of one file Since the relationship between the file areas provided for the above is known in each file area, even if the directory is destroyed, the files can be restored if the file areas are saved.
【0013】従って、この発明によれば、ツリー構造の
1つのディレクトリに書けるファイル数の制限をなくす
ことができると共に、索引領域が破壊されたとしてもフ
ァイルを修復することのできるようになる。Therefore, according to the present invention, it is possible to eliminate the limitation on the number of files that can be written in one directory of the tree structure, and to repair the files even if the index area is destroyed.
【0014】[0014]
【実施例】以下、本発明の実施例について、図面を参照
して説明する。図1に本発明方式によるフォーマット例
を示す。図はディスクに書き込まれる情報の全体図を示
すもので、本発明方式によるフォーマット例である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of the format according to the method of the present invention. The figure shows an overall view of the information written on the disc, and is an example of the format according to the method of the present invention.
【0015】本発明のフォーマットでは、図に示すよう
に、索引領域、ファイル領域ともに、それぞれ固定長と
する。そして、一つのディレクトリに収容できるファイ
ル数の制限を無くすために、一つのディレクトリに割り
当てられる領域(索引領域)は必要に応じて複数個確保
できる。In the format of the present invention, as shown in the figure, both the index area and the file area have fixed lengths. Then, in order to eliminate the limit of the number of files that can be accommodated in one directory, a plurality of areas (index areas) assigned to one directory can be secured as necessary.
【0016】任意のディレクトリ名のディレクトリに割
り当てられた索引領域にはディレクトリの内容、すなわ
ち、ディレクトリ内にあるファイル数および各ファイル
のファイル名や日時、ファイルの先頭位置、ファイル長
さ等の情報が書かれている。The index area assigned to a directory having an arbitrary directory name stores the contents of the directory, that is, the number of files in the directory, the file name and date and time of each file, the start position of the file, the file length, and the like. has been written.
【0017】また、これらディレクトリの内容の他に、
索引領域内の特定箇所(この実施例ではディレクトリヘ
ッダ領域の末尾)に続きの索引領域の置かれる位置の情
報である位置情報(アドレス)が書き込まれる。In addition to the contents of these directories,
Position information (address), which is information on the position where the subsequent index area is placed, is written at a specific location (the end of the directory header area in this embodiment) in the index area.
【0018】続きの索引領域には、その前の索引領域に
収容できなかったファイルに関する情報が収容される
が、その内容は、ファイル名や日時、ファイル先頭位置
やファイル長さ等の情報である。The subsequent index area contains information about files that could not be stored in the previous index area. The contents are information such as file name, date and time, file start position and file length. .
【0019】また、ファイル領域にはファイルヘッダ
と、次に続くファイル領域の先頭位置(次に続くファイ
ル領域の先頭アドレス)情報に続いてファイルの内容と
なっている。ファイル領域はそのファイルが収容されて
いるディレクトリの割り当てられた索引領域に続いて順
に配置される。In the file area, a file header and information of the head position of the next file area (head address of the next file area) are followed by the contents of the file. The file area is sequentially arranged following the assigned index area of the directory containing the file.
【0020】すなわち、本発明では上記第1の問題点を
解決するために、1つの索引領域(A)がいっぱいにな
ったとき新たな索引領域(B)をディスクの空き領域に
取り、そのアドレスを前のいっぱいになった索引領域
(A)の中に書いておくことにより、索引領域をチェー
ン状に検索できるようにし、1つのディレクトリに書け
るファイル数の制限をなくすことができるようにしてい
る。That is, according to the present invention, in order to solve the first problem, when one index area (A) becomes full, a new index area (B) is taken in the free area of the disk and its address is stored. Is written in the previous full index area (A) so that the index area can be searched in a chain and the number of files that can be written in one directory can be eliminated. .
【0021】また、上記第2の問題点を解決するため
に、ファイルの書かれる領域を固定としている。そし
て、ファイル容量がその領域より大きい場合のために、
その領域の先頭にファイルの続きのアドレスを示す領域
を設ける。これにより、もし索引領域が破壊されたとし
てもファイルが固定領域に書き込まれるため容易に修復
を行うことができる。 (実施例の構成)Further, in order to solve the second problem, the area where the file is written is fixed. And if the file size is larger than that area,
An area indicating the address of the continuation of the file is provided at the beginning of the area. Thus, even if the index area is destroyed, the file is written in the fixed area, so that the file can be easily repaired. (Structure of Example)
【0022】図2に本発明方式によるフォーマットを適
用した本発明システムの構成を示す。図において、20
0はコンピュータであり、201は試料の画像データを
取り込むための走査型プローブ顕微鏡であって、試料の
微細な表面状況を画像デ−タで出力することができる。
202はコンピュータ200に接続された出力装置の一
つであるディスプレイであり、画像やキャラクタ情報を
表示するためのものであって、コンピュータ200の出
力する文字情報や、画像情報を可視化して表示するため
のものである。FIG. 2 shows the configuration of the system of the present invention to which the format according to the present invention is applied. In the figure, 20
Reference numeral 0 is a computer, and 201 is a scanning probe microscope for taking in image data of the sample, which can output a fine surface condition of the sample as image data.
Reference numeral 202 denotes a display, which is one of output devices connected to the computer 200, for displaying images and character information, and visualizes and displays character information and image information output by the computer 200. It is for.
【0023】203は光磁気ディスク装置であり、コン
ピュータ200に接続された大容量の外部記憶装置であ
る。204はコンピュータ200に接続された入力装置
としての操作パネルであって、オペレータがコンピュー
タ200を操作するための操作パネルである。上記光磁
気ディスク装置203は極めて大容量のデータを保持す
ることができるものであり、そのファイル管理は図3の
ようなフォ−マットに従っている。Reference numeral 203 denotes a magneto-optical disk device, which is a large-capacity external storage device connected to the computer 200. An operation panel 204 is an input device connected to the computer 200, and is an operation panel for an operator to operate the computer 200. The magneto-optical disk device 203 is capable of holding an extremely large amount of data, and its file management follows the format shown in FIG.
【0024】図3は本発明方式によるフォーマットであ
り、ディスクに書き込まれる情報の全体図を示すもので
ある。図に示すように、本発明方式ではファイルの索引
領域とファイル領域とがあり、各領域はそれぞれ複数あ
って、それぞれが固定長としてある。FIG. 3 is a format according to the method of the present invention and shows an overall view of information written on the disc. As shown in the figure, in the method of the present invention, there are a file index area and a file area, and there are a plurality of areas, each of which has a fixed length.
【0025】ファイルの索引領域はディレクトリヘッダ
部300とファイル情報領域301から構成されてい
て、各ファイルは複数ある予め大きさと先頭アドレスが
決められた領域であるファイル領域302に順に書き込
まれる。The file index area is composed of a directory header section 300 and a file information area 301, and each file is sequentially written into a file area 302, which is an area having a predetermined size and a start address.
【0026】ファイル情報領域301には複数のファイ
ル情報500が順に書き込まれる。また、ファイル領域
302にはファイルヘッダ303と付加条件304およ
びファイル内容305が書き込まれる。A plurality of pieces of file information 500 are sequentially written in the file information area 301. A file header 303, additional conditions 304, and file contents 305 are written in the file area 302.
【0027】図4から図6にこれら各部分の詳細を示
す。図4はディレクトリヘッダ300部分のフォーマッ
トを示す。ディレクトリヘッダ300には同一階層のデ
ィレクトリ内に書き込まれているファイルの数を格納し
たディレクトリ内ファイル数情報401と、メディア空
き領域の先頭アドレスを示すメディア空き領域先頭アド
レス情報402と、ディレクトリ内ファイル数が一杯に
なった時(ディレクトリ内ファイル数が情報401の値
が上限に達した時;例えば、200個)に、新たに確保
される新しいディレクトリの索引領域の先頭アドレスの
情報を格納するための次ディレクトリの索引領域先頭ア
ドレス403などが書き込まれる。4 to 6 show details of each of these parts. FIG. 4 shows the format of the directory header 300 portion. In the directory header 300, the file number information 401 in the directory storing the number of files written in the directory of the same hierarchy, the media free area start address information 402 indicating the start address of the media free area, and the file number in the directory To store the information of the start address of the index area of the newly secured new directory when the number of files in the directory reaches the upper limit of the value of the information 401 (for example, 200) The index area top address 403 of the next directory is written.
【0028】図5はファイル情報500のフォーマット
である。ファイル情報領域301には200個のファイ
ル情報500が書き込まれる。ファイル情報500はそ
のメディア上の、そのファイルの先頭アドレス501
と、ファイルの容量502と、ファイル名504と、日
時情報505と、各種フラグ(ディレクトリかファイル
を表わすディレクトリフラグ506、そのファイルを取
り込んだ時の条件などを付加条件としてファイルの先頭
に付けているかを表す付加条件フラグ507、そのファ
イルが有効か無効かを表すファイル有効フラグ508)
FLG、付加条件のある時はその付加条件の容量を表す
付加条件容量などが書き込まれる。FIG. 5 shows the format of the file information 500. 200 pieces of file information 500 are written in the file information area 301. The file information 500 is the start address 501 of the file on the medium.
, File capacity 502, file name 504, date and time information 505, various flags (directory flag 506 representing a directory or a file, conditions when the file is loaded, etc. are added as the additional conditions at the beginning of the file? Additional condition flag 507 indicating that the file is valid, and a file valid flag 508 indicating whether the file is valid or invalid)
FLG, if there is an additional condition, an additional condition capacity indicating the capacity of the additional condition is written.
【0029】上記各種フラグFLGとしては、例えば、
ディレクトリなのかファイルなのかを表わすディレクト
リフラグ506、そのファイルを取り込んだ時の条件な
どを付加条件としてファイルの先頭に付けているかを表
わす付加条件フラグ507、そのファイルが有効か無効
かを表わすファイル有効フラグ508などがある。As the various flags FLG, for example,
A directory flag 506 indicating whether it is a directory or a file, an additional condition flag 507 indicating whether the condition when the file is imported is added to the beginning of the file as an additional condition, and a file valid indicating whether the file is valid or invalid There is a flag 508 and the like.
【0030】図6はファイルヘッダ303のフォーマッ
トである。ファイルヘッダ303にはファイル情報50
0と同じ情報が書き込まれ、さらにファイルがファイル
領域の容量よりも大きかったとき、そのファイルの続き
がどこから始まるかを示す続きファイルアドレス601
が書き込まれる。 (実施例の作用の説明)次にこのようなフォ−マットを
採用した本発明システムの作用を述べる。FIG. 6 shows the format of the file header 303. File information 50 in the file header 303
When the same information as 0 is written and the file is larger than the capacity of the file area, the continuation file address 601 indicating where the continuation of the file starts
Is written. (Explanation of the operation of the embodiment) Next, the operation of the system of the present invention employing such a format will be described.
【0031】[データの保存方法]はじめに保存データ
の流れを本実施例上で示す。まず、操作パネル204を
操作して、走査型プローブ顕微鏡201で画像データを
コンピュータ200に取り込み、ディスプレイ202に
表示する。[Data Storage Method] First, the flow of stored data will be described in the present embodiment. First, the operation panel 204 is operated to capture image data into the computer 200 by the scanning probe microscope 201 and display it on the display 202.
【0032】つぎに、そのデータを保存したいときは操
作パネル204を操作し、保存指令をコンピュータ20
0に与える。これにより、コンピュータ200は光磁気
ディスク装置203にデータを送り保存する。この保存
データのコンピュータ200から光磁気ディスク装置へ
の流れを図7に示すフローチャートに沿って説明する。Next, when it is desired to save the data, the operation panel 204 is operated to issue a save command to the computer 20.
Give to 0. As a result, the computer 200 sends the data to the magneto-optical disk device 203 and stores it. The flow of the stored data from the computer 200 to the magneto-optical disk device will be described with reference to the flowchart shown in FIG.
【0033】コンピュータ200もしくは光磁気ディス
ク装置203のコントロ−ラは、まず、光磁気ディスク
装置203におけるディスク上のファイルを書き込むア
ドレスと、ファイル名や日時、容量などの情報以下ファ
イル情報500を書き込むアドレスとを確定する。The controller of the computer 200 or the magneto-optical disk device 203 firstly writes an address for writing a file on the disk in the magneto-optical disk device 203 and an address for writing file information 500 such as file name, date and time, and capacity. And to confirm.
【0034】そのために、まず、メディア先頭のディレ
クトリヘッダ部を読み込む(S701)。ファイルを書
き込む領域の先頭アドレスは、ディレクトリヘッダ部の
中のディスク空き領域先頭アドレス402になるので、
このアドレスを先頭アドレスとして決定する(S70
2)。For that purpose, first, the directory header portion at the head of the medium is read (S701). Since the start address of the area for writing the file is the free area start address 402 of the disk in the directory header part,
This address is determined as the start address (S70)
2).
【0035】先頭アドレスが決定されたならば、この領
域内にファイルの内容であるファイル情報500を書き
込むことになるが、そのためには、そのファイルを書き
込みにあてる領域のアドレスを、決める必要がある。When the head address is determined, the file information 500 which is the content of the file is written in this area. For that purpose, it is necessary to determine the address of the area to which the file is written. .
【0036】ファイル情報500を書き込むアドレスの
決定には、ディレクトリ内のファイル数401が、ファ
イル情報領域に入る最大ファイル数(200個)と等し
いかそうでないかで、処理が分かれる(S703)。To determine the address to write the file information 500, the process is divided depending on whether the number of files 401 in the directory is equal to or not the maximum number of files (200) that can be stored in the file information area (S703).
【0037】すなわち、S703において、ディレクト
リ内のファイル数が最大ファイル数である200個に等
しいかをチェックし、200個に等しいときは、ディレ
クトリ内のファイル数がファイル情報領域に入る最大フ
ァイル数より小さいファイル数を持つディレクトリヘッ
ダに辿りつくまで、読出したディレクトリヘッダ303
中の、次のディレクトリ位置403で示される位置のデ
ィレクトリヘッダを読むことを繰り返す。That is, in S703, it is checked whether the number of files in the directory is equal to 200, which is the maximum number of files. If the number of files is equal to 200, the number of files in the directory is less than the maximum number of files in the file information area. Read directory header 303 until the directory header with a small number of files is reached
The reading of the directory header at the position indicated by the next directory position 403 in the directory is repeated.
【0038】つまり、ディレクトリ内のファイル数40
1が最大ファイル数である200個に等しいときは、続
きがあるか、あるいはそこで丁度索引領域が終りになる
ので、今、読出したディレクトリヘッダ303中の次の
索引領域の先頭アドレス403の情報部分から処理が2
つに分かれる。“0”以上の数が書かれているときは、
次のディレクトリ位置(次の索引領域の先頭アドレス)
であるので、その位置、すなわち、次の索引領域の先頭
アドレス403で示される位置にあるディレクトリヘッ
ダを読出す。“0”が書かれているときは、そこで丁
度、索引領域が終りになったと云うことであるから、次
の索引領域は無いことになる。That is, the number of files in the directory is 40
When 1 is equal to 200, which is the maximum number of files, there is a continuation or the index area just ends there, so the information part of the head address 403 of the next index area in the directory header 303 that has just been read out. Processing from 2
Divide into two. If a number greater than “0” is written,
Next directory position (start address of next index area)
Therefore, the directory header at that position, that is, the position indicated by the start address 403 of the next index area is read. When "0" is written, it means that the index area has just ended, so there is no next index area.
【0039】詳しく云うと、S715でのチェックは、
次のディレクトリアドレス403が“0”であるか否か
を調べるものであり、アドレス403が“0”でなけれ
ば、上述の手法で次のディレクトリヘッダの位置を知
り、その位置のディレクトリヘッダを読み(S71
6)、S703のステップに戻る。つまり、次の索引領
域があるならば、その索引領域の先頭アドレスがあるの
で、アドレスが“0”であるか否かをチェックした結
果、アドレスが“0”でなければ、次のディレクトリヘ
ッダを読み、S703のステップに戻る。More specifically, the check in S715 is
This is to check whether or not the next directory address 403 is "0". If the address 403 is not "0", the position of the next directory header is known by the above method, and the directory header at that position is read. (S71
6) and returns to the step of S703. In other words, if there is the next index area, there is the start address of that index area. Therefore, if the address is not "0" as a result of checking whether the address is "0", the next directory header is set. Read and return to the step of S703.
【0040】ステップS715において、ディレクトリ
アドレスが“0”であれば、S717に移る。すなわ
ち、S715でのチェックにおいて、ディレクトリアド
レスが“0”であったときは、次のディレクトリ位置の
情報403がメディアの先頭を表していることになるの
で、このときは、1つ前に保存したファイルで丁度ファ
イル情報領域が一杯になったと云うことを意味するか
ら、新たなディレクトリヘッダとファイル情報領域とを
ディスク上で取り(S717)、フォーマット(図4,
5参照)に従って値を書き込む。そのとき、保存される
ファイルのファイル情報500が書き込まれるアドレス
は、新しく作ったファイル情報領域の先頭になる(S7
18)。If the directory address is "0" in step S715, the process proceeds to step S717. That is, in the check in S715, if the directory address is "0", it means that the information 403 of the next directory position represents the beginning of the medium. At this time, the information is saved one before. Since it means that the file information area has just been filled with a file, a new directory header and file information area are taken on the disk (S717) and the format (FIG. 4, FIG.
Write the value according to (5. At that time, the address to which the file information 500 of the file to be saved is written is at the head of the newly created file information area (S7).
18).
【0041】S715でのチェックにおいて、ディレク
トリアドレスが“0”でないときは、ディレクトリ内の
ファイル数401の領域に書き込まれている数が、ファ
イル情報領域に入る最大ファイル数(200個)と等し
くないときと同様にして、ファイル情報500を書き込
む領域を確定する。If the directory address is not "0" in the check in S715, the number written in the area of the number of files 401 in the directory is not equal to the maximum number of files (200) that can be stored in the file information area. The area in which the file information 500 is to be written is determined in the same manner as described above.
【0042】一方、ステップS703におけるチェック
の結果、ディレクトリ内のファイル数401が、ファイ
ル情報領域に入る最大ファイル数と等しくないときは
(ファイル数200個でないときは)、「ディレクトリ
ヘッダ内の現在のディレクトリ内のファイル数401の
値+1番目の領域」をファイル情報500を書き込む領
域とする(S704)。On the other hand, as a result of the check in step S703, when the number of files 401 in the directory is not equal to the maximum number of files that can be stored in the file information area (when the number of files is not 200), "current directory header The value of the number of files 401 in the directory + first area ”is set as an area in which the file information 500 is written (S704).
【0043】そして、ステップS702で確定した領域
に、そのファイル情報と同じファイルヘッダ600と、
また、付加条件304があればファイル付加条件304
と、そして、ファイルとを書き込む(S705〜S70
8)。Then, in the area determined in step S702, the same file header 600 as the file information,
If there is an additional condition 304, the file additional condition 304
And then write the file (S705 to S70
8).
【0044】そのとき、ファイルの大きさが予め決めら
れたファイル領域の容量より大きいかをチェックして
(S706)、大きいときは、次のファイル領域のアド
レスを続きファイルアドレス601に書き込み(S71
9)、次のファイル領域にファイルヘッダと続きのファ
イルを書き込む(S721)。At this time, it is checked whether or not the size of the file is larger than the capacity of the predetermined file area (S706), and if it is larger, the address of the next file area is written in the subsequent file address 601 (S71).
9), the file header and the subsequent file are written in the next file area (S721).
【0045】その際、「ファイル容量=ファイル容量−
ファイル領域容量」なる演算をし(S720)、この演
算結果が残り容量がファイル領域より小さくなるまで、
ステップS706,S719以下の処理を繰り返す(S
706)。At this time, "file capacity = file capacity-
The file area capacity "is calculated (S720), until the remaining capacity of this calculation result is smaller than the file area,
Steps S706 and S719 and subsequent steps are repeated (S
706).
【0046】ステップS706でのチェックの結果、フ
ァイルの残り容量がファイル領域より小さいときは、ス
テップS707以下の処理に移り、S704で定めた領
域にそのまま、ファイルを書き込んで、残りの領域は空
けておく。次に、ステップS704またはS718を実
行することによって、確定した領域に、ファイル情報5
00を書き込む(S709)。As a result of the check in step S706, when the remaining capacity of the file is smaller than the file area, the process proceeds to step S707 and thereafter, the file is written in the area determined in step S704 as it is, and the remaining area is free. deep. Next, by executing step S704 or S718, the file information 5 is added to the confirmed area.
00 is written (S709).
【0047】さらに、ディレクトリヘッダ部のディレク
トリ内ファイル数401の値をインクリメントし(S7
10)、メディア先頭のディレクトリヘッダのディスク
空き領域先頭アドレス情報領域402に、「所定のファ
イル領域の容量に掛けることの、使用したファイル領域
数」だけ加えて(S711)、ファイルの所属するディ
レクトリヘッダおよびメディア先頭のディレクトリヘッ
ダを書き込み(S714),(S713)、処理を終了
する。Further, the value of the number of files in directory 401 in the directory header is incremented (S7
10) Addition of "the number of used file areas multiplied by the capacity of a predetermined file area" to the disk free area start address information area 402 of the directory header at the head of the medium (S711), and the directory header to which the file belongs Then, the directory header at the head of the medium is written (S714) and (S713), and the process ends.
【0048】以上の概略を纏めてみると、本管理方法
は、外部記憶装置に対するファイルの保持と管理のた
め、記録メディア内における記憶領域を、所定の容量単
位で複数に区分して、固定長の索引領域及びファイル領
域を複数確保すると共に、索引情報を格納する索引領域
には、少なくともその索引領域内で管理されるファイル
数及びファイル名と、ファイルの上記記録メディア内に
おける記録位置情報とファイル長と、拡張索引領域であ
る次索引領域の先頭位置情報とを保存し、また、上記拡
張索引領域にて管理するファイルがないときは、当該索
引領域における上記次索引領域の先頭位置情報を所定の
初期値情報とするようにし、上記記録メディア内におけ
る記録領域のファイル領域には、少なくともファイル先
頭位置情報とファイル名情報及びファイル長情報とを含
むファイルヘッダと、ファイル内容の情報の続きがある
ときは当該続きのファイルの保存に供する記憶領域位置
の情報を含め、ファイル内容の情報とを保存させる構成
とし、索引領域および各ファイル領域の先頭位置は上記
記憶領域のうちの、記憶領域における先頭位置より予め
決めた固定間隔で割り付けて使用するようにした点に特
徴を有する。また、上記次の索引領域に保持するファイ
ルがないときは、当該索引における次の索引領域の先頭
位置情報を所定の初期値情報とするようにした。Summarizing the above outline, the present management method divides the storage area in the recording medium into a plurality of fixed capacity units in order to hold and manage files in the external storage device. In addition to securing a plurality of index areas and file areas, the index area for storing the index information includes at least the number of files and file names managed in the index area, the recording position information of the files in the recording medium, and the file. The length and the head position information of the next index area, which is the extended index area, are stored. If there is no file to be managed in the extended index area, the head position information of the next index area in the index area is specified. The initial value information of the file is at least the file start position information and the file in the file area of the recording area in the recording medium. The file header including the information and the file length information, and the file content information including the information of the storage area position used for saving the file of the continuation when the file content information continues, The area and the head position of each file area are characterized in that they are used by allocating at a fixed fixed interval from the head position in the storage area of the storage area. Further, when there is no file to be held in the next index area, the head position information of the next index area in the index is set as the predetermined initial value information.
【0049】このため、一般的な管理方法ではルートデ
ィレクトリにはサブディレクトリを設けない限り、例え
ば、最大200ファイルと云ったファイル数の制限が生
じ、ファイル数が多い時は、別の名前のディレクトリに
分散させねばならなかったところを、ルートディレクト
リのディレクトリ領域を、次々に増やしてゆくことがで
き、その増やしたディレクトリ領域にファイルの索引情
報を記憶してゆくことで、制限なくルートディレクトリ
にファイルを格納してゆくことができ、便利である。ま
た、ファイルは固定長のファイル領域に、一つのファイ
ル領域を一つのファイル占有させるかたちで、必要とす
るファイル容量対応分確保して記録し、続きのファイル
との繋がりは使用するファイル領域にファイル位置情報
を持たせることで、わかるようにした。そのため、ファ
イル領域に格納されているファイルの関係が、ファイル
領域内の情報のみで把握できる。次に上記フォ−マット
で記憶されたファイルデータの再生方法について説明す
る。Therefore, in the general management method, unless a subdirectory is provided in the root directory, the number of files is limited to, for example, a maximum of 200 files. When the number of files is large, a directory with a different name is used. The directory area of the root directory can be increased one after another, and the index information of the files can be stored in the increased directory area so that files can be stored in the root directory without any restrictions. Is convenient because it can be stored. In addition, files are stored in a fixed-length file area, allocating one file area to one file, and securing and recording the amount corresponding to the required file capacity. I made it easier to understand by having location information. Therefore, the relationship between the files stored in the file area can be understood only by the information in the file area. Next, a method of reproducing the file data stored in the above format will be described.
【0050】[データの再生方法]データ再生の光磁気
ディスク装置203からコンピュータ200への流れを
図8に示すフローチャートに沿って説明する。[Data Reproduction Method] The flow of data reproduction from the magneto-optical disk device 203 to the computer 200 will be described with reference to the flowchart shown in FIG.
【0051】まず、光磁気ディスク装置203内におけ
る再生したいファイルのファイル名から、光磁気ディス
ク装置203内におけるそのファイル情報が書き込まれ
ている領域を検索する。First, from the file name of the file to be reproduced in the magneto-optical disk device 203, the area in the magneto-optical disk device 203 in which the file information is written is searched.
【0052】そのために、まず、メディア先頭のディレ
クトリヘッダ部を読み込む(S801)。次に、ディレ
クトリ内のファイル数だけファイル情報を読み込み(S
802)、ファイル名が一致しているファイル情報を検
索する(S803)。Therefore, first, the directory header portion at the head of the medium is read (S801). Next, the file information is read by the number of files in the directory (S
802), the file information in which the file names match is searched (S803).
【0053】そして、ステップS803において検索し
たファイル名と一致するファイル情報の有無をチェック
する(S804)。このチェックの結果、一致したとき
は(S804)、そのファイル情報の中のファイルのデ
ィスク上アドレスと、ファイルの容量から、ファイルと
付加条件とを読み込む(S805)。そして、ファイル
の容量がファイルの領域の容量より大きいかをチェック
する(S800)。その結果、ファイルの容量がファイ
ル領域の容量より大きいときは、続きファイルアドレス
601を辿って読み込む。Then, it is checked whether or not there is file information that matches the file name retrieved in step S803 (S804). If the result of this check is that they match (S804), the file and additional conditions are read from the on-disk address of the file in the file information and the file capacity (S805). Then, it is checked whether the file size is larger than the file area size (S800). As a result, when the capacity of the file is larger than the capacity of the file area, the continuous file address 601 is traced and read.
【0054】一方、前記ステップS804でのチェック
の結果、一致しなかったときは、データ保存処理のとこ
ろでも述べたように、ディレクトリのチェーンを辿っ
て、1つづつファイル情報領域を検索してゆく(S80
8,S809)。もし、それでもファイルが存在しない
ときはエラーを表示して(S810)処理を終了する。On the other hand, if the result of the check in step S804 is that they do not match, the file information area is searched one by one by tracing the chain of directories as described in the data saving process. (S80
8, S809). If the file still does not exist, an error is displayed (S810) and the process ends.
【0055】[サブディレクトリの表現方法]特定ディ
レクトリの下階層のディレクトリであるサブディレクト
リの表現方法はファイル情報中のディレクトリフラグ5
06をセットすることにより行う。その他の情報はその
まま用い、ファイル名がディレクトリ名になる。ファイ
ルの本体には、新たなディレクトリヘッダと、ファイル
の情報領域が取られる。この部分がサブディレクトリの
索引領域になる。[Expression method of sub-directory] The expression method of the sub-directory which is a directory under the specific directory is the directory flag 5 in the file information.
This is done by setting 06. Other information is used as it is, and the file name becomes the directory name. In the body of the file, a new directory header and a file information area are taken. This part becomes the index area of the subdirectory.
【0056】上記の保存および再生の処理流れは、ルー
トディレクトリのファイルに対してのものであり、サブ
ディレクトリ内のファイルの保存および再生は、サブデ
ィレクトリ名でディレクトリの階層に入ってゆき、最後
のディレクトリから上記の保存および再生の流れに沿っ
て行う。The above-described storage and reproduction processing flow is for the files in the root directory, and the storage and reproduction of the files in the sub-directory goes into the directory hierarchy by the sub-directory name, Perform from the directory according to the above saving and playback flow.
【0057】次にファイルの修復方法について説明す
る。 [ファイルの修復方法]もし、索引領域が破壊されたと
きは、固定長のファイル領域それぞれについて、ファイ
ルヘッダの内容を参照すれば良い。上述した方式では、
予め決められたファイル領域の先頭にそのファイル領域
に格納されているファイルの情報が書かれているため、
どのファイルであるかががわかり、続きがあればどのフ
ァイル領域であるかがわかるので、これらの情報に従っ
て再生することにより復元可能である。また、ファイル
が格納されたファイル領域には、いずれであっても、フ
ァイル名や続きのファイルの繋がりの等に関する情報が
あるので、ファイル領域についてダメージを受けた場合
でも、無傷で残ったファイル領域については復元が可能
である。Next, a method of repairing a file will be described. [File Recovery Method] If the index area is destroyed, the content of the file header may be referred to for each fixed-length file area. In the above method,
Since the information of the file stored in the file area is written at the beginning of the predetermined file area,
Since it is known which file and which file area if there is a continuation, it is possible to restore by reproducing according to these information. In addition, in any file area where files are stored, there is information about the file name and connection of subsequent files, so even if the file area is damaged, the file area that remains intact Can be restored.
【0058】また、本発明方法では、付加条件フラグと
付加条件容量とをフォーマットに加えたため、データフ
ァイルが測定データであるような場合に、そのデータを
測定したときの測定条件などに応じて、容量を可変にす
ることができる。Further, in the method of the present invention, since the additional condition flag and the additional condition capacity are added to the format, in the case where the data file is the measurement data, according to the measurement conditions when the data is measured, etc. The capacity can be made variable.
【0059】また、各ファイル領域にはファイルヘッダ
を設けて、ファイル情報と同じものをファイルヘッダと
して記録するようにしたため、これらファイル情報を利
用することで、索引領域も含めたファイルの修復ができ
る。Since a file header is provided in each file area and the same information as the file information is recorded as the file header, the file including the index area can be restored by using this file information. .
【0060】以上のように、本発明によるファイル管理
方法は、ディレクトリ単位で複数のファイルを管理させ
ると共に、これらディレクトリ単位で管理させるファイ
ルの索引情報を索引領域に保持させ、記録と読出しを行
うことができるようにした大容量の記録メディアにおけ
る管理方法として、特定ディレクトリにおける索引領域
に記憶させる索引情報が一杯になったとき、新たな索引
領域を作り、かつ、それらをチェーン状につなぐための
位置情報を各索引領域に順に付与するようにし、また、
記録メディア内のファイル領域は固定長として、複数用
意し、ファイル名及び当該索引領域内の索引情報におけ
る最初のファイルの記憶位置情報対応のファイル領域に
は、ファイル名及びファイル長情報とを含むファイルヘ
ッダ情報と共に、ファイル内容の情報を記憶させ、記憶
対象のファイルの容量がそのファイルの記憶に供してい
るファイル領域の容量を越えるときは、ファイルの続き
を別のファイル領域に許容される容量の範囲で順次記憶
させ、当該対象のファイルの記憶に供した各ファイル領
域には、次に続くファイルの記憶に供したファイル領域
の位置情報を保持させるようにした。As described above, in the file management method according to the present invention, a plurality of files are managed in directory units, and index information of files managed in directory units is held in the index area for recording and reading. As a management method for large-capacity recording media that has been made possible, a position for creating a new index area and connecting them in a chain when the index information stored in the index area in a specific directory is full Information should be added to each index area in order, and
A plurality of file areas with a fixed length are prepared in the recording medium, and the file area corresponding to the storage location information of the first file in the file name and the index information in the index area includes the file name and the file length information. When the file content information is stored together with the header information and the capacity of the file to be stored exceeds the capacity of the file area used for storage of that file, the continuation of the file is not allowed to the capacity of another file area. The files are sequentially stored in the range, and the position information of the file area used for storing the next file is held in each file area used for storing the target file.
【0061】すなわち、ディレクトリ単位で複数のファ
イルを管理させると共に、これらディレクトリ単位で管
理させるファイルの索引情報を索引領域に保持させ、記
録と読出しを行うことができるようにした大容量の記録
メディアにおける管理方法として、特定ディレクトリに
おける索引領域に記憶させる索引情報が一杯になったと
き、新たな索引領域を作り、溢れた索引情報をこの新た
な索引領域に記憶させてファイル管理をする。That is, in a large-capacity recording medium in which a plurality of files are managed in directory units, and index information of files managed in directory units is held in an index area so that recording and reading can be performed. As a management method, when the index information to be stored in the index area in the specific directory becomes full, a new index area is created, and the overflowing index information is stored in this new index area for file management.
【0062】そして、それら索引領域群をチェーン状に
つなぐための位置情報を、上記特定ディレクトリにおけ
る各索引領域に順に付与するようにして、これにより、
一つの特定ディレクトリにおける管理可能なファイル数
の制限を排除する。Then, position information for connecting the index area groups in a chain form is sequentially given to each index area in the specific directory.
Eliminate the limit on the number of manageable files in one specific directory.
【0063】また、記録メディア内のファイル領域は固
定長として、複数用意し、ファイル名及び当該索引領域
内の索引情報におけるファイルの記憶位置情報対応のフ
ァイル領域には、ファイル名及びファイル長情報とを含
むファイルヘッダ情報と共に、ファイル内容の情報を記
憶させ、記憶対象のファイルの容量がそのファイルの記
憶に供しているファイル領域の容量を越えるときは、フ
ァイルの続きを別のファイル領域に許容される容量の範
囲で順次記憶させ、当該対象のファイルの記憶に供した
各ファイル領域には、次に続くファイルの記憶に供した
ファイル領域の位置情報を保持させることにより、ファ
イルがどのファイル領域に記憶されているかを管理でき
るようにした。Further, a plurality of file areas in the recording medium are prepared with a fixed length, and a file name and file length information are stored in the file area corresponding to the file storage location information in the index information in the index area. Information of the file contents is stored together with the file header information that includes, and when the capacity of the file to be stored exceeds the capacity of the file area used for storing the file, the continuation of the file is allowed in another file area. The file area to which the file is stored by storing the position information of the file area used to store the next file in each file area used to store the target file. Enabled to manage what is remembered.
【0064】また、一つのファイルは複数のファイル領
域に跨がるようにしたが、この場合に、各ファイル領域
には次に続くファイル領域がどこであるかを情報として
持たせたので、一つのファイルの記憶に供したファイル
領域の関係が各ファイル領域においてわかるから、ディ
レクトリが破壊されても、ファイル領域が保存されてい
れば、ファイルの復元ができる。Further, one file is made to span a plurality of file areas, but in this case, since each file area has information as to where the next succeeding file area is, Since the relationship between the file areas used for storing files is known in each file area, even if the directory is destroyed, the files can be restored if the file areas are saved.
【0065】従って、この発明によれば、ツリー構造の
1つのディレクトリに書けるファイル数の制限をなくす
ことができると共に、索引領域が破壊されたとしてもフ
ァイルを修復することができるようになる。Therefore, according to the present invention, it is possible to eliminate the limitation on the number of files that can be written in one directory of the tree structure, and to repair the files even if the index area is destroyed.
【0066】[0066]
【発明の効果】ツリー構造の1つのディレクトリに書け
るファイル数の制限をなくすことができる他、索引領域
が破壊されたとしてもファイルを修復することができる
ようになるなど、信頼性の高い大容量記憶装置のファイ
ル管理方法を提供できる。EFFECT OF THE INVENTION In addition to being able to remove the limit on the number of files that can be written in one directory of a tree structure, even if the index area is destroyed, files can be restored and a large capacity with high reliability can be obtained. A file management method for a storage device can be provided.
【図1】本発明の実施例における記録メディア内フォー
マット例を示す図。FIG. 1 is a diagram showing an example of a format in a recording medium according to an embodiment of the present invention.
【図2】本発明を適用するシステムの構成例を示すブロ
ック図。FIG. 2 is a block diagram showing a configuration example of a system to which the present invention is applied.
【図3】本発明の実施例における記録メディア内フォー
マット例を示す図。FIG. 3 is a diagram showing an example of a format in a recording medium according to the embodiment of the present invention.
【図4】本発明の実施例における記録メディア内フォー
マットに使用するディレクトリヘッダフォーマット例を
示す図。FIG. 4 is a diagram showing an example of a directory header format used for a format in a recording medium in an embodiment of the present invention.
【図5】本発明の実施例における記録メディア内フォー
マットに使用するファイルデータフォーマット例を示す
図。FIG. 5 is a diagram showing an example of a file data format used as a format in a recording medium in an embodiment of the present invention.
【図6】本発明の実施例における記録メディア内フォー
マットに使用するファイルヘッダフォーマット例を示す
図。FIG. 6 is a diagram showing an example of a file header format used for the format in the recording medium in the embodiment of the present invention.
【図7】本発明の実施例における記録メディア内記録時
の処理の流れを説明するためのフローチャート。FIG. 7 is a flowchart for explaining the flow of processing when recording is performed in a recording medium according to the embodiment of the present invention.
【図8】本発明の実施例における記録メディア内記録内
容の読出し時の処理の流れを説明するためのフローチャ
ート。FIG. 8 is a flowchart for explaining the flow of processing when reading the recorded contents in the recording medium in the embodiment of the present invention.
200…コンピュータ、 201…走査型プロ
ーブ顕微鏡、202…ディスプレイ、 203
…光磁気ディスク装置、204…操作パネル、
300…ディレクトリヘッダ部、301…ファイル
情報領域、 302…ファイル領域、303…ファ
イルヘッダ、 304…付加条件、305…ファ
イル内容、 500…ファイル情報、401…
ディレクトリ内ファイル数情報、402…メディア空き
領域先頭アドレス情報、403…次ディレクトリの索引
領域先頭アドレス、501…先頭アドレス、
502…ファイルの容量、504…ファイル名、
505…日時情報、FLG…各種フラグ、
506…ディレクトリフラグ、507…付加条件
フラグ、 508…ファイル有効フラグ。200 ... Computer, 201 ... Scanning probe microscope, 202 ... Display, 203
... magneto-optical disk device, 204 ... operation panel,
300 ... Directory header part, 301 ... File information area, 302 ... File area, 303 ... File header, 304 ... Addition condition, 305 ... File content, 500 ... File information, 401 ...
File number information in directory, 402 ... Media free area start address information, 403 ... Index area start address of next directory, 501 ... Start address,
502 ... File size, 504 ... File name,
505 ... Date and time information, FLG ... Various flags,
506 ... Directory flag, 507 ... Additional condition flag, 508 ... File valid flag.
Claims (2)
理させると共に、これらディレクトリ単位で管理させる
ファイルの索引情報を索引領域に保持させ、記録と読出
しを行うことができるようにした大容量の記録メディア
における管理方法として、 特定ディレクトリにおける索引領域に記憶させる索引情
報が一杯になったとき、新たな索引領域を作り、かつ、
それらをチェーン状につなぐための位置情報を各索引領
域に順に付与するようにし、また、記録メディア内のフ
ァイル領域は固定長として、複数用意し、ファイル名及
び当該索引領域内の索引情報における最初のファイルの
記憶位置情報対応のファイル領域には、ファイル名及び
ファイル長情報とを含むファイルヘッダ情報と共に、フ
ァイル内容の情報を記憶させ、記憶対象のファイルの容
量がそのファイルの記憶に供しているファイル領域の容
量を越えるときは、ファイルの続きを別のファイル領域
に許容される容量の範囲で順次記憶させ、当該対象のフ
ァイルの記憶に供した各ファイル領域には、次に続くフ
ァイルの記憶に供したファイル領域の位置情報を保持さ
せるようにしたことを特徴とする大容量記憶装置のファ
イル管理方法。1. A large-capacity recording medium in which a plurality of files are managed in directory units, and index information of files managed in directory units is held in an index area for recording and reading. As a management method, when the index information to be stored in the index area in a specific directory becomes full, a new index area is created, and
Positional information for connecting them in a chain is added to each index area in order, and a plurality of file areas in the recording medium are prepared with a fixed length, and the file name and the first in the index information in the index area are prepared. In the file area corresponding to the storage location information of the file, the file header information including the file name and the file length information is stored together with the file content information, and the capacity of the storage target file is used for storing the file. When the capacity of the file area is exceeded, the continuation of the file is sequentially stored in the range of the capacity allowed in another file area, and the storage of the next file is stored in each file area used for storing the target file. A file management method for a large-capacity storage device, characterized in that the position information of the file area provided for is stored.
管理のため、記録メディア内における記憶領域を、所定
の容量単位で複数に区分して、固定長のディレクトリ領
域及びファイル領域を複数確保すると共に、索引情報を
格納するディレクトリ領域には、少なくともそのディレ
クトリ内で管理されるファイル数及びファイル名情報
と、当該ディレクトリ内で管理される最初のファイルの
上記記録メディア内における記録位置情報と、拡張ディ
レクトリ領域である次ディレクトリ領域の先頭位置情報
とを保存し、また、上記拡張ディレクトリ領域にて管理
するファイルがないときは、当該ディレクトリにおける
上記次ディレクトリ領域の先頭位置情報を所定の初期値
情報とするようにし、上記記録メディア内における記録
領域のファイル領域には、少なくともファイル先頭位置
情報とファイル名情報及びファイル長情報とを含むファ
イルヘッダ情報と、ファイル内容の情報の続きがあると
きは当該続きのファイルの保存に供する記憶領域位置の
情報を含め、ファイル内容の情報とを保存させる構成と
し、 ディレクトリ領域および各ファイルの先頭位置は上記記
憶領域のうちの、所望の記憶領域における先頭位置より
割り付けて使用することを特徴とする大容量記憶装置の
ファイル管理方法。2. A storage area in a recording medium is divided into a plurality of predetermined capacity units for holding and managing files in an external storage device, and a plurality of fixed-length directory areas and file areas are secured. In the directory area for storing the index information, at least the number of files and file name information managed in the directory, recording position information of the first file managed in the directory in the recording medium, and extended directory area And the start position information of the next directory area is stored, and when there is no file to be managed in the extension directory area, the start position information of the next directory area in the directory is set as predetermined initial value information. To the file area of the recording area in the above recording medium. Includes the file header information including at least the file head position information, the file name information and the file length information, and the information of the storage area position used to save the continued file when there is a continuation of the file content information. File management of a large-capacity storage device characterized by being configured to store information of contents and using the directory area and the start position of each file by allocating from the start position in a desired storage area of the above-mentioned storage areas. Method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4190549A JPH0635780A (en) | 1992-07-17 | 1992-07-17 | File controlling method of large capacity storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4190549A JPH0635780A (en) | 1992-07-17 | 1992-07-17 | File controlling method of large capacity storage device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0635780A true JPH0635780A (en) | 1994-02-10 |
Family
ID=16259931
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4190549A Withdrawn JPH0635780A (en) | 1992-07-17 | 1992-07-17 | File controlling method of large capacity storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0635780A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999065033A1 (en) * | 1998-06-09 | 1999-12-16 | Sony Corporation | Recorded medium, reproducing apparatus, recording apparatus, and reproducing method and recording method |
| WO2001011626A1 (en) * | 1999-08-03 | 2001-02-15 | Matsushita Electric Industrial Co., Ltd. | Method and apparatus for av data recording, and disk recorded by the method and apparatus |
| WO2005041043A1 (en) * | 2003-10-22 | 2005-05-06 | Olympus Corporation | File creation method and file search method |
| JP2010182254A (en) * | 2009-02-09 | 2010-08-19 | Sony Corp | Apparatus and method for processing information, and program |
| JP2011243230A (en) * | 2011-09-06 | 2011-12-01 | Renesas Electronics Corp | Flash memory, memory control circuit, microcomputer and memory control method |
-
1992
- 1992-07-17 JP JP4190549A patent/JPH0635780A/en not_active Withdrawn
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999065033A1 (en) * | 1998-06-09 | 1999-12-16 | Sony Corporation | Recorded medium, reproducing apparatus, recording apparatus, and reproducing method and recording method |
| US7327946B2 (en) | 1999-08-03 | 2008-02-05 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| US6873789B1 (en) | 1999-08-03 | 2005-03-29 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| US7218844B2 (en) | 1999-08-03 | 2007-05-15 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| US7260317B2 (en) | 1999-08-03 | 2007-08-21 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| US7305175B2 (en) | 1999-08-03 | 2007-12-04 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| US7324740B2 (en) | 1999-08-03 | 2008-01-29 | Matsushita Electric Industrial Co., Ltd. | AV data recording apparatus and method, and disk recorded by the same |
| WO2001011626A1 (en) * | 1999-08-03 | 2001-02-15 | Matsushita Electric Industrial Co., Ltd. | Method and apparatus for av data recording, and disk recorded by the method and apparatus |
| WO2005041043A1 (en) * | 2003-10-22 | 2005-05-06 | Olympus Corporation | File creation method and file search method |
| EP1591903A4 (en) * | 2003-10-22 | 2006-04-12 | Olympus Corp | File creation method and file search method |
| US7836024B2 (en) | 2003-10-22 | 2010-11-16 | Olympus Corporation | File generating method and file retrieving method |
| JP2010182254A (en) * | 2009-02-09 | 2010-08-19 | Sony Corp | Apparatus and method for processing information, and program |
| US8250087B2 (en) | 2009-02-09 | 2012-08-21 | Sony Corporation | Information processing apparatus, information processing method, and program |
| JP2011243230A (en) * | 2011-09-06 | 2011-12-01 | Renesas Electronics Corp | Flash memory, memory control circuit, microcomputer and memory control method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6823417B2 (en) | Memory controller for memory card manages file allocation table | |
| JP4801314B2 (en) | Method and apparatus for storing data in or reading data from a storage medium, and storage medium | |
| EP0487331B1 (en) | Directory management system | |
| JPH0786844B2 (en) | Formatting a write-once optical storage medium | |
| KR100224524B1 (en) | Partition Archive Status A method for incrementally recording a primary storage medium to an archive storage medium using both an array and a partition map. | |
| JPH0635780A (en) | File controlling method of large capacity storage device | |
| JP2581003B2 (en) | Recording disk controller | |
| JP2587417B2 (en) | File backup and restoration method | |
| JP2649675B2 (en) | Optical disk storage management method | |
| JPH11220693A (en) | Moving image recording device | |
| CN117370273A (en) | A read-only type of file system and its creation method | |
| JP2784650B2 (en) | Optical disk storage management method | |
| JPH04344953A (en) | File management method for storage medium | |
| JPH08153028A (en) | File management method and file management device | |
| JPH05250243A (en) | Data processing system for extended storage device | |
| JPH01319820A (en) | Memory medium control system | |
| JPH0452737A (en) | File management method | |
| JPH07105067A (en) | File control method | |
| JPS62177642A (en) | File management system for postscript filing device | |
| JPH05113922A (en) | Data storage | |
| JPS62293358A (en) | Document filing method | |
| JPH03211636A (en) | Method for controlling file of floppy disk | |
| JPH0922375A (en) | File management method | |
| JPS63271787A (en) | Information processor | |
| JPH04195555A (en) | Disk maintenance system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19991005 |