JPH0512080A - Disk media control system - Google Patents
Disk media control systemInfo
- Publication number
- JPH0512080A JPH0512080A JP3161195A JP16119591A JPH0512080A JP H0512080 A JPH0512080 A JP H0512080A JP 3161195 A JP3161195 A JP 3161195A JP 16119591 A JP16119591 A JP 16119591A JP H0512080 A JPH0512080 A JP H0512080A
- Authority
- JP
- Japan
- Prior art keywords
- area
- file
- disk medium
- clusters
- bit
- 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
Links
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 disk medium management system, and more particularly to a disk medium management system for managing the usage status of disk media in a table format.
【0002】[0002]
【従来の技術】従来、この種のディスク媒体管理方式で
は、ディスク媒体上に存在するファイルの名称,ファイ
ル作成日付,ファイルサイズなどファイルに関する情報
を格納した目録(ディレクトリ)、ファイルのデータ領
域の使用状況やファイルの媒体上への配置状況を管理す
るテーブル(ファイルアロケーションテーブル)および
実際のデータ領域により管理している。2. Description of the Related Art Conventionally, in this type of disk medium management method, a catalog (directory) storing information about files such as file names, file creation dates, and file sizes existing on the disk medium, and the use of file data areas are used. It is managed by a table (file allocation table) that manages the status and the allocation status of the file on the medium and the actual data area.
【0003】図3は従来のディスク媒体管理方式の一例
のファイル構成図である。図3において、データ領域4
はディスク媒体上の数セクタ〜数十セクタを単位として
一固まり(クラスタ)を成す。ファイルアロケーション
テーブル3はデータ領域4と1対1の対応を成す。ディ
レクトリ2には使用するファイルアロケーションテーブ
ル3の先頭へのポインタが含まれている。FIG. 3 is a file configuration diagram of an example of a conventional disk medium management system. In FIG. 3, the data area 4
Is a unit of several sectors to several tens of sectors on the disk medium and forms a cluster. The file allocation table 3 has a one-to-one correspondence with the data area 4. The directory 2 contains a pointer to the beginning of the file allocation table 3 to be used.
【0004】次に本従来例の動作について説明する。デ
ィレクトリ2上に存在する任意のファイルを読み取る場
合には、まずディレクトリ2上のポインタから、対応す
るファイルアロケーションテーブル3が導き出される。
そしてこのファイルアロケーションテーブル3に対応す
るデータ領域4の1クラスタが導き出されてファイルを
読み取る。ファイルのデータ領域4が1クラスタ内で納
まらないときは、ファイルアロケーションテーブル3が
連鎖を成し、複数クラスタのデータ領域4を使用するこ
とが可能となる。また、この種のディスク媒体管理方式
では、削除されたファイルおよび使用されないクラスタ
に対応するフアィルアロケーションテーブルは、この連
鎖から外され、同時にディレクトリからのポインタも存
在しない。これらのデータ領域群は空き領域と見なされ
る。Next, the operation of this conventional example will be described. When reading an arbitrary file existing in the directory 2, first, the corresponding file allocation table 3 is derived from the pointer in the directory 2.
Then, one cluster of the data area 4 corresponding to the file allocation table 3 is derived and the file is read. When the data area 4 of a file cannot fit in one cluster, the file allocation table 3 forms a chain, and the data areas 4 of a plurality of clusters can be used. Further, in this type of disk medium management system, the file allocation tables corresponding to deleted files and unused clusters are removed from this chain, and at the same time there is no pointer from the directory. These data area groups are regarded as free areas.
【0005】[0005]
【発明が解決しようとする課題】上述した従来のディス
ク媒体管理方式では、新たにファイルを作成しようとす
る場合、通常は最初に出現した空きクラスタから連鎖を
成して作成する。しかし、複数の連続したクラスタによ
りファイルを作成しようとしたときには、要求されたク
ラスタ数分以上の空き領域が見つかるまでファイルアロ
ケーションテーブルを検索する必要がある。これに要す
る時間は、ディスク媒体が大きくなる程ファイルアロケ
ーションテーブルも大きくなるため多くなる。また従来
のディスク媒体管理方式では、上記の動作においても最
初に見つけた空きクラスタを占有してそこから連鎖を成
すため、他に丁度良い大きさの空き領域が存在してもそ
こまで検索しない可能性も高くなり、データ領域の使用
効率も良くない。In the above-mentioned conventional disk medium management method, when a new file is to be created, it is usually created by forming a chain from the first free cluster that appears. However, when attempting to create a file with a plurality of consecutive clusters, it is necessary to search the file allocation table until a free area equal to or more than the requested number of clusters is found. The time required for this increases as the disk medium becomes larger and the file allocation table also becomes larger. Also, in the conventional disk medium management method, even in the above operation, the first found free cluster is occupied and a chain is formed from it, so it is not possible to search even if there is another free space of just the right size. And the efficiency of using the data area is not good.
【0006】[0006]
【課題を解決するための手段】本発明のディスク媒体管
理方式は、1枚のディスク媒体上のデータ領域の使用状
況やファイルの媒体上への配置状況をテーブル形式で管
理するディスク媒体管理方式において、前記1枚のディ
スク媒体はその使用状況を表すビットマップ領域を備え
ている。DISCLOSURE OF THE INVENTION The disk medium management system of the present invention is a disk medium management system for managing the usage status of a data area on one disk medium and the allocation status of files on the medium in a table format. The one disk medium is provided with a bit map area indicating its usage.
【0007】[0007]
【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明のディスク媒体管理方式の一実施例を
示すブロック図、図2は図1におけるビットマップ領域
の一例の構成図である。ビットマップ領域5はディスク
媒体1の使用状況をディスク媒体1の先頭クラスタから
最終クラスタまでクラスタ単位に、「使用」ならばビッ
ト1を置き、「未使用」ならばビット0を置いて管理す
る領域である。このビットマップ領域5はディスク媒体
1の使用状況を縮小イメージで表現しており、ファイル
作成,ファイル削除などのファイル操作の際にデバイス
ドライバ6により同時に更新される。なお、ビットマッ
プ領域5は図2に示すようにブート領域7,ディレクト
リ・ファイルアロケーションテーブル領域8およびデー
タ領域9とから成る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a disk medium management system of the present invention, and FIG. 2 is a block diagram of an example of a bitmap area in FIG. The bitmap area 5 is an area for managing the usage status of the disk medium 1 in cluster units from the first cluster to the last cluster of the disk medium 1, placing bit 1 if "used" and placing bit 0 if "unused". Is. The bitmap area 5 expresses the usage status of the disk medium 1 as a reduced image, and is simultaneously updated by the device driver 6 when a file operation such as file creation or file deletion is performed. The bitmap area 5 comprises a boot area 7, a directory / file allocation table area 8 and a data area 9 as shown in FIG.
【0008】続いて本実施例の動作について説明する。
本実施例のディスク媒体管理方式では、ファイル操作を
ディレクトリ2,ファイルアロケーションテーブル3お
よびビットマップ領域5の管理により行う。ビットマッ
プ領域5はファイル操作の際に「使用」ならばビット1
が,「未使用」ならばビット0が書かれて更新される。
複数の連続したクラスタによりファイルを作成しようと
するときには、デバイスドライバ6はビットマップ領域
5を参照し、指定されたクラスタ数分以上が「未使用」
を表すビット0が連続している領域を検索する。検索結
果の内、最も要求されたクラスタ数と空きクラスタ数と
の差が少ない結果を決定値としてこの領域にファイルを
作成する。Next, the operation of this embodiment will be described.
In the disk medium management system of this embodiment, file operations are performed by managing the directory 2, file allocation table 3 and bitmap area 5. Bitmap area 5 is bit 1 if "used" during file operation
However, if it is "unused", bit 0 is written and updated.
When attempting to create a file with a plurality of consecutive clusters, the device driver 6 refers to the bitmap area 5 and the specified number of clusters or more is "unused".
An area in which bits 0 representing 0 are consecutive is searched. A file is created in this area with the result of which the difference between the most requested cluster number and the number of free clusters is the smallest among the search results.
【0009】この結果、前述したファイルアロケーショ
ンテーブル3の全領域を検索する従来例と比較して、フ
ァイルアロケーションテーブル3も包含するディスク媒
体1の使用状況を縮小イメージで表現しているビットマ
ップ領域5を参照する本実施例によれば、空き領域の検
索時間の大幅な短縮およびデータ領域使用の効率化を図
ることが可能となる。As a result, as compared with the conventional example in which the entire area of the file allocation table 3 is searched for, the bit map area 5 expressing the usage status of the disk medium 1 including the file allocation table 3 in a reduced image. According to the present embodiment, which is referred to in (1), it is possible to significantly reduce the search time for a free area and improve the efficiency of data area use.
【0010】[0010]
【発明の効果】以上説明したように本発明は、1枚のデ
ィスク媒体の使用状況を表すビットマップ領域を設けた
ので、ディスク媒体の空き領域の検索時間の短縮および
データ領域使用の効率化を可能とする効果を有する。As described above, according to the present invention, since the bit map area indicating the use status of one disk medium is provided, the search time for the free area of the disk medium can be shortened and the data area can be used efficiently. Has the effect of enabling.
【図1】本発明のディスク媒体管理方式の一実施例を示
すブロック図である。FIG. 1 is a block diagram showing an embodiment of a disk medium management system of the present invention.
【図2】図1におけるビットマップ領域の一例の構成図
である。FIG. 2 is a configuration diagram of an example of a bitmap area in FIG.
【図3】従来のディスク媒体管理方式の一例のファイル
構成図である。FIG. 3 is a file configuration diagram of an example of a conventional disk medium management method.
【符号の説明】 1 ディスク媒体 2 ディレクトリ 3 ファイルアロケーションテーブル 4 データ領域 5 ビットマップ領域 6 デバイスドライバ 7 ブート領域 8 ディレクトリ・ファイルアロケーションテーブル
領域 9 データ領域[Explanation of symbols] 1 disk medium 2 directory 3 file allocation table 4 data area 5 bitmap area 6 device driver 7 boot area 8 directory / file allocation table area 9 data area
Claims (1)
用状況やファイルの媒体上への配置状況をテーブル形式
で管理するディスク媒体管理方式において、前記1枚の
ディスク媒体はその使用状況を表すビットマップ領域を
備えることを特徴とするディスク媒体管理方式。Claim: What is claimed is: 1. A disk medium management system for managing the usage status of a data area on one disk medium and the allocation status of files on the medium in a table format. Is a disk medium management system characterized by having a bitmap area indicating its usage.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3161195A JPH0512080A (en) | 1991-07-02 | 1991-07-02 | Disk media control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3161195A JPH0512080A (en) | 1991-07-02 | 1991-07-02 | Disk media control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0512080A true JPH0512080A (en) | 1993-01-22 |
Family
ID=15730395
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3161195A Pending JPH0512080A (en) | 1991-07-02 | 1991-07-02 | Disk media control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0512080A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1213652A4 (en) * | 1999-07-28 | 2003-05-02 | Sharp Kk | MEDIA MANAGEMENT METHOD ON DISK |
-
1991
- 1991-07-02 JP JP3161195A patent/JPH0512080A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1213652A4 (en) * | 1999-07-28 | 2003-05-02 | Sharp Kk | MEDIA MANAGEMENT METHOD ON DISK |
| US7406491B1 (en) | 1999-07-28 | 2008-07-29 | Sharp Kabushiki Kaisha | Disk medium managing method having recording areas predefined on the disk medium as directories |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6823417B2 (en) | Memory controller for memory card manages file allocation table | |
| US8392685B2 (en) | Arrangements for managing metadata of an integrated logical unit including differing types of storage media | |
| US5579516A (en) | Method for storing data files on a multiple volume media set | |
| US20050231765A1 (en) | Information recording medium, data processing apparatus and data processing method | |
| JP2804115B2 (en) | Disk file system | |
| CN104065906B (en) | Video recording method and device of digital video recording equipment | |
| CN106709014A (en) | File system conversion method and apparatus | |
| JPH0756788A (en) | How to store file data on disk | |
| US7415572B2 (en) | File system, file recording method, and file reading method | |
| EP0694831A2 (en) | Computer system having storage unit provided with data compression function andmethod of management of storage area thereof | |
| JP4221959B2 (en) | Bridge file system, computer system, data management method and recording medium using bridge file system | |
| US7062603B2 (en) | External storage device for selectively storing data between first and second recording media | |
| JP2001265628A (en) | File recording management system | |
| CN108304144A (en) | Data writing-in and reading method and system, and data reading-writing system | |
| US6574704B1 (en) | Information storage management device and method, control device and method | |
| JPH0512080A (en) | Disk media control system | |
| US20050226600A1 (en) | Data processing method, device thereof and program | |
| JP2001056774A (en) | File area managing method | |
| JPH04289931A (en) | Variable length file managing system | |
| JPH01319820A (en) | Memory medium control system | |
| JPH06348572A (en) | Multi-mechanism disk system | |
| JPH0528202A (en) | Picture data retrieval system | |
| JP2000148550A (en) | Area management method and free area management method for file | |
| JPH05151716A (en) | Data backup method of magnetic tape | |
| JP2008134777A (en) | Caching method of file allocation table |