JPH0254327A - Control system for disk data - Google Patents
Control system for disk dataInfo
- Publication number
- JPH0254327A JPH0254327A JP20688788A JP20688788A JPH0254327A JP H0254327 A JPH0254327 A JP H0254327A JP 20688788 A JP20688788 A JP 20688788A JP 20688788 A JP20688788 A JP 20688788A JP H0254327 A JPH0254327 A JP H0254327A
- Authority
- JP
- Japan
- Prior art keywords
- sector
- area
- fat
- pointer
- file
- 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
- 230000002441 reversible effect Effects 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 24
- 238000013523 data management Methods 0.000 claims description 6
- 239000000470 constituent Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 21
- 230000003287 optical effect Effects 0.000 description 11
- 238000007726 management method Methods 0.000 description 9
- 238000007796 conventional method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、ディスクデータの管理方式に係り、特に近年
その大容量性、アクセススピード、データ転送速度の速
さなどからプログラムソフトなどのコンピュータデータ
だけでなく、画像データや音楽データ等各種データの記
録媒体として注目されている追記型(Write 10
nce以下W10と称す)ディスクに好適なディスクデ
ータの管理方式に関す゛る。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a disk data management system, and in particular, in recent years, computer data such as program software has become increasingly popular due to its large capacity, access speed, and data transfer speed. In addition, write-once type (Write 10) is attracting attention as a recording medium for various data such as image data and music data.
This invention relates to a disk data management method suitable for disks (hereinafter referred to as W10).
(従来の技術)
従来よりコンピュータプログラム等のディジタルデータ
を記録するための記録媒体(メディア)として、例えば
フロッピーディスク、ハードディスク等のディスクが広
く用いられている。これらディスクは、コンピュータに
装備されているオペレーティング・システム(O8)に
よってその記録様式が興なり、異なったO8同志の間で
は互換性がないのが普通であるが、いずれのO8でも外
部記憶装置はデータの消去、再書き込みが可能なことを
前提としており、ス、ディスクの記憶領域を記録データ
を記録するファイル領域とそのデータに間する情報を記
録するディレクトリ領域とが明確に分割され、予じめフ
ォーマツティングされている。(Prior Art) Conventionally, disks such as floppy disks and hard disks have been widely used as recording media for recording digital data such as computer programs. The recording format of these disks is determined by the operating system (O8) installed in the computer, and different O8s are usually not compatible, but any O8 can support external storage devices. It is assumed that data can be erased and rewritten, and the storage area of the disk is clearly divided into a file area for recording data and a directory area for recording information between that data. formatted.
第10図は例えばフロッピーディスク等のフレキシブル
ディスク上の記録領域の概略を示しており、例えば同図
の上部がフレキシブルディスクの外周部に対応し、下部
が内周部に対応する。予約〈備)領域1はシステムが必
要なデータを記録する領域であり、ユーザーは使用出来
ない、2はFAT (File A11ocatio
n Table)であり、この2はファイルの配置に関
するデータを記録する領域である。3はディレクトリ(
DIR)領域であり、この3にはファイル領域4に記録
されたデータファイルの日付、ファイル名などが記録さ
れる。FIG. 10 schematically shows a recording area on a flexible disk such as a floppy disk, for example, the upper part of the figure corresponds to the outer circumference of the flexible disk, and the lower part corresponds to the inner circumference. Reserved area 1 is an area for recording data necessary for the system and cannot be used by the user. Area 2 is a FAT (File A11ocatio)
n Table), and this 2 is an area for recording data regarding the file arrangement. 3 is the directory (
DIR) area, in which the date, file name, etc. of the data file recorded in the file area 4 are recorded.
以下具体的な実施例につき第10図、第11図を参照し
て説明する。Specific examples will be described below with reference to FIGS. 10 and 11.
まず、実際にデータを格納するファイル領域4を便宜上
複数のブロックに分け、そのブロックに2以降順次番号
を付す。First, for convenience, the file area 4 in which data is actually stored is divided into a plurality of blocks, and the blocks are sequentially numbered from 2 onwards.
次にFAT領域2として、例えば1ブロツクを12ビツ
トで表わす場合には(ブロックの個数+2)x12ビッ
トのデータ容量を確保し、DIR領域3として1フアイ
ルにつき32バイトの固定領域を確保する。ここで各領
域の容量は、セクタサイズの倍数になる。Next, as the FAT area 2, if one block is represented by 12 bits, for example, a data capacity of (number of blocks + 2) x 12 bits is secured, and as the DIR area 3, a fixed area of 32 bytes per file is secured. Here, the capacity of each area is a multiple of the sector size.
1フアイルを作成する手順としては、まずファイル名と
データが格納されるファイル領域4における最初のブロ
ック番号を固定長のDIR領域3に記録し、次にデータ
をファイル領域4の所定ブロックに格納し、データが複
数ブロックにまたがる時はそのチェーン情報をFAT領
域2に記録する。The procedure for creating one file is to first record the file name and the first block number in the file area 4 where data is stored in the fixed length DIR area 3, and then store the data in a predetermined block in the file area 4. , When data spans multiple blocks, the chain information is recorded in the FAT area 2.
このように汎用のO8はFAT、ディレクトリ(DIR
)という領域をディスク上及びメインRAM上に持ち、
データのリード(Read) /ライト(14ritθ
)時には、その領域を追加更新することによってファイ
ルの管理を行っている。なお、ディスク上のデータのリ
ード/ライトはセクタと呼ばれる固定長を一単位として
行なう。この管理方法は、自由にリード/ライト可能な
メディアを想定して行なわれているため、(FATとデ
ィレクトリエリアを頻繁に書き換える)1度しか書き込
めない追記型光ディスクにはそのままでは用いることは
できない。In this way, general-purpose O8 uses FAT, directory (DIR)
) on the disk and main RAM,
Data read/write (14ritθ
) Sometimes files are managed by adding and updating their areas. Note that data on the disk is read/written in fixed length units called sectors. Since this management method is performed assuming a freely readable/writable medium, it cannot be used as is for write-once optical discs that can be written only once (FAT and directory areas are frequently rewritten).
第11図は、リバーシブル型のディスク内部でのFAT
及びディレクトリ領域の構造を示すものであり、この図
より明らかな如<FAT2a2b及びディレクトリ領域
3aは、それぞれ複数のセクタより構成されていること
がわかる。例えば、この図ではFAT領域が3セクタ(
第1セクタ〜第3セクタ)、ディレクトリ領域が4セク
タ(第1セクタ〜第4セクタ)から成っている。この場
合、FAT領域は重要なファイルのチェーン情報を扱う
ので信頼性をあげるため、同じ内容を2回書き込む、(
第1FAT(2a)と第2FAT(2b)が存在する。Figure 11 shows the FAT inside a reversible disk.
It is clear from this figure that the FAT2a2b and the directory area 3a each consist of a plurality of sectors. For example, in this figure, the FAT area has three sectors (
The directory area consists of four sectors (first sector to fourth sector). In this case, the FAT area handles important file chain information, so to increase reliability, the same content is written twice (
There is a first FAT (2a) and a second FAT (2b).
)なお、以下の説明において、FATやディレクトリの
各セクタをFAT第1セクタ、FAT第2セクタと呼ぶ
ことがある。) In the following description, each sector of the FAT or directory may be referred to as a FAT first sector or a FAT second sector.
ところで、追記型の光ディスクは大容量性、操作の容易
さなどからその応用範囲も広がりつつあり、この追記型
光ディスクはデータを所定のセクタ及びブロックを単位
として例えば内周部から外周部へ向って記録する。By the way, the range of applications of write-once optical discs is expanding due to their large capacity and ease of operation.These write-once optical discs store data in units of predetermined sectors and blocks, for example, from the inner circumference to the outer circumference. Record.
(発明が解決しようとする課題)
しかしながら、追記型光ディスクは開発されてからの期
間が短かいこともあり、データの記録様式は必ずしも統
一されてはいなく、いくつかのメーカでは独自のファイ
ル管理方法を採用しているというのが現状である。(Problem to be solved by the invention) However, because write-once optical discs have been developed for a short period of time, the data recording format is not necessarily standardized, and some manufacturers have their own file management methods. The current situation is that .
この追記型光ディスクに対して前記フレキシブルディス
クと同様な管理方法を用いて管理しようとすると、ファ
イル領域以外の領域(例えばディレクトリ領域)はO8
によって予しめ定められており、消去不能な追記型光デ
ィスクでは書き換えが出来ないためファイルの管理がで
きなくなる。If you try to manage this write-once optical disk using the same management method as the flexible disk, the area other than the file area (for example, the directory area) will be
This is predetermined by the following rules, and files cannot be managed on non-erasable write-once optical discs because they cannot be rewritten.
例えばディレクトリ領域3.3aなどは1回でフルとな
る。すなわち、従来のO8では対応できない、このため
ファイル領域4に未記録の領域があっても不要なディレ
クトリ領域3,3aを消去できないことによってファイ
ル領域4にもそれ以上ファイルすることができなくなる
。For example, the directory area 3.3a becomes full once. That is, the conventional O8 cannot handle this, and therefore, even if there is an unrecorded area in the file area 4, unnecessary directory areas 3 and 3a cannot be erased, making it impossible to write any more files in the file area 4.
本発明は上記の点に鑑みなされたものであり、■追記型
光ディスクを含むフレキシブルディスク以外のディスク
状記録媒体のファイル領域を効率的に利用し得ること及
び■汎用O8に対し追記型光ディスクを透明化するため
のディスクデータの管理方式を提供することを目的とす
る。The present invention has been made in view of the above-mentioned points, and has the following features: (1) to efficiently utilize the file area of a disk-shaped recording medium other than a flexible disk including a write-once optical disk, and (2) to make a write-once optical disk transparent for general-purpose O8. The purpose is to provide a disk data management method for data management.
(課題を解決するための手段)
本発明は追記型のメディアを用いて、汎用のオペレーテ
ィングシステムからリバーシブルなメディアと同じディ
スクデータの管理を行なわせるために、FAT及びディ
レクトリの全領域をセクタ単位で更新し、各構成セクタ
の最終情報を加算して領域全体を参照するようにしたデ
ィスクデータの管理方式を提供するものである。(Means for Solving the Problems) The present invention uses write-once media to allow a general-purpose operating system to manage disk data in the same manner as reversible media. This provides a disk data management method in which the entire area is referenced by updating and adding the final information of each constituent sector.
(実施例)
第1図は、本発明方式で得られた追記型ディスクの領域
の割りっけを示す概略図、第2図は、従来のディスクと
本発明方式で得られた追記型ディスクの割りつけ後のデ
ィスク領域の対応を示す概略図であり、これは追記型の
メディアにおいて、汎用O8からリバーシブルなメディ
アと同じファイル管理を行なわせるために頻繁に書き換
えを行なう回数分子備の領域をディスク上に確保するこ
とによって実現したものである。(Example) Fig. 1 is a schematic diagram showing the area allocation of a write-once disk obtained by the method of the present invention, and Fig. 2 is a schematic diagram showing the area allocation of a write-once disk obtained by the method of the present invention. This is a schematic diagram showing the correspondence of disk areas after allocation. This is a schematic diagram showing the correspondence of disk areas after allocation. This is a diagram that shows how many write-once areas are allocated to write-once media. This was achieved by securing the above.
なお、本発明においてディスク上のデータのリード/ラ
イトはセクタと呼ばれる固定長を一単位として行なうこ
とは従来通りである。Note that, in the present invention, reading/writing of data on a disk is performed in units of a fixed length called a sector, as is conventional.
第1図、第2図において、FATIO及びディレクトリ
領域11は前述した如くファイルのリード/ライトが行
なわれる毎に追加更新される領域である。In FIGS. 1 and 2, the FATIO and directory areas 11 are areas that are additionally updated each time a file is read/written, as described above.
本発明は追記型のメディアに対応するためにこれらの領
域の書き換えを行なうのに十分な容量を連続して固定的
にディスクの隣接領域に確保したものである。In order to accommodate write-once media, the present invention continuously and fixedly secures sufficient capacity to rewrite these areas in adjacent areas of the disk.
以下第1図、第2図を用いて各領域ごとにその説明をす
る。まず、メディアの全領域の割りっけにおいてディレ
クトリ領域11より説明を始める。Each region will be explained below using FIGS. 1 and 2. First, we will start with the directory area 11 in the allocation of all areas of the media.
ディレクトリ領域11は、ファイル名を格納する領域で
1フアイルの登録につき固定長く32バイト)ずつデー
タが追加更新されるものとして管理するファイルの個数
分書き換えられるように領域が確保しである。よってデ
ィレクトリ第1セクタがフルになる迄の書き換え回数は
(1セクタ長/32バイト)回となる。従って、ディス
ク上には(ディレクトリ1セクタの書き換え回数Xディ
レクトリセクタの数)セクタ分の領域をとり、これを従
来方式の各セクタ毎に対応させている。しかしながら、
実際に汎用O8からファイルを登録するときなどはファ
イルのオープン時及びクローズ時において2回ディレク
トリ領域の書き込みを行っている。この書き込みを順次
行なうと1回のファイル作成につき2セクタ分の書き換
え領域が必要となり膨大な予備エリアが必要とされる。The directory area 11 is an area for storing file names, and an area is reserved so that data can be added and updated at a fixed length of 32 bytes per registration of one file, and can be rewritten for the number of files managed. Therefore, the number of rewrites until the first sector of the directory becomes full is (1 sector length/32 bytes). Therefore, an area for (number of rewrites of one directory sector x number of directory sectors) sectors is taken on the disk, and this is made to correspond to each sector in the conventional method. however,
When actually registering a file from the general-purpose O8, the directory area is written twice, once when the file is opened and when the file is closed. If this writing is performed sequentially, a rewriting area of two sectors is required for each file creation, and a huge amount of spare area is required.
(第3図参照)そこで以下のようにDIR領域の書き込
み制御を行なう、すなわち、汎用O8から1つのファイ
ルを登録する時次のような手j頃でその処理を実行する
。(See FIG. 3) Therefore, write control of the DIR area is performed as follows, that is, when registering one file from the general-purpose O8, the process is executed in the following manner.
FAT領域のリード(Read) −D I R領域の
リード→DIR領域のライト(Write)→ファイル
領域のライト−+FATFATライト−ファイル領域最
終セクタのライト→DIR領域のライト最初のファイル
オープン時のDIR領域の書き込みにおいてはファイル
名、ファイル作成日時の情報をディスク上の領域に格納
し、クローズ時のD I RfJl域の書き込みにおい
てはファイルの総容量を追加更新している。Read the FAT area - Read the DIR area → Write the DIR area → Write the file area - + Write the FATFAT - Write the last sector of the file area → Write the DIR area DIR area when the first file is opened When writing, the file name, file creation date and time information is stored in the area on the disk, and when writing to the DIRfJl area when closing, the total capacity of the file is added and updated.
従って、ディスク上に残すデーとしては最終的なりIR
内容のみでよく、また1回目と2回目の間にDIR領域
の参照も行なわれていないので1回目の情報は必ずしも
記録する必要がない、(第4図参照)、そこで、クロー
ズ時のみDIRの情報をディスクに書き込むように第5
図に示したようにフラグを用いて制御した。すなわち論
理セクタ判定部としてFAT■、DIR■、■、FIL
E■の4つの領域を設定し、
領域■としては FAT−FILEフラグ=1領域■と
しては DIRかつFILEフラグ=φ−Write
=O(書き込み省略)
→FILEフラグ=φ
(FILEフラグリセット)
領域■としては DIRかつFILEフラグ=1→訂+
te=1<書き込み)
→FILEフラグ=φ
(FILEフラグリセット)
領域■としては F I LEフラグ=1とした。これ
によって、ディスク上にDIR領域として確保する領域
が半減しディスクスペースの有効活用が可能になった。Therefore, the final data to be left on the disk is the IR.
Only the contents are required, and since the DIR area is not referenced between the first and second times, it is not necessary to record the first information (see Figure 4). Fifth to write information to disk
Control was performed using flags as shown in the figure. In other words, FAT■, DIR■, ■, FIL are used as logical sector determination units.
Set four areas of E■, and as area ■, FAT-FILE flag = 1 area as ■, DIR and FILE flag = φ-Write.
=O (write omitted) → FILE flag = φ (FILE flag reset) Area ■ is DIR and FILE flag = 1 → Correction +
te=1<write) →FILE flag=φ (FILE flag reset) FILE flag=1 is set as area (■). As a result, the area reserved as a DIR area on the disk is halved, making it possible to effectively utilize disk space.
なお、ディレクトリ領域11とファイル領域12との間
には例えばディスクの5トラック分に相当する空白セク
タ部13を設けた。これは、ディレクトリ領域11とフ
ァイル領域12の境界の検出時間を短縮するために設け
たものである。Note that a blank sector portion 13 corresponding to, for example, five tracks of the disk is provided between the directory area 11 and the file area 12. This is provided to shorten the time required to detect the boundary between the directory area 11 and file area 12.
次にFAT領域10について第1図、第2図を参照して
説明する。FATはデータの保存ブロックのチェーン情
報を格納する領域であり、書き込みデータのサイズ(容
量)にしたがって情報量が可変長に増加する。よって、
FAT第1セクタの最大書き換え回数は全ファイルのデ
ータ容量が1プロ・yり以内であったと仮定し、FAT
のデータを12ビツトとすることにより(1セクタ長/
12ビツト)回となる。ディスク上には従来方式の各セ
クタ毎にこの最大書き換え回数骨のセクタプラス5トラ
ック分の空白セクタ部13が必要になる。空白セクタ部
13の用途についてはディレクトリ領域11の場合と同
様である。Next, the FAT area 10 will be explained with reference to FIGS. 1 and 2. FAT is an area for storing chain information of data storage blocks, and the amount of information increases in variable length according to the size (capacity) of write data. Therefore,
The maximum number of times the first sector of FAT can be rewritten is based on the assumption that the data capacity of all files is within 1 program.
By setting the data to 12 bits (1 sector length/
12 bits) times. On the disk, a blank sector portion 13 corresponding to the maximum number of rewrites plus five tracks is required for each sector in the conventional method. The purpose of the blank sector section 13 is the same as that of the directory area 11.
一方、1フアイルを登録する毎にFATを1回更新する
とすれば、FAT領域全体の書き換え回数はO8が管理
できるファイルの数と等しくなる。On the other hand, if the FAT is updated once every time one file is registered, the number of times the entire FAT area is rewritten will be equal to the number of files that the O8 can manage.
従って、FATIJi域全体に必要な最小セクタ数は(
登録可能ファイル数)+(空白セクタ)Xnとなる。Therefore, the minimum number of sectors required for the entire FATIJi area is (
Number of registrable files)+(blank sectors)Xn.
本発明方式によれば、FAT領域全体の容量を最小とす
るために、第2〜第nの各FATセクタの開始アドレス
を固定的にとらず以下の方法を採った。すなわち、FA
Tは1回の更新で可変長にデータが追加されるため、何
回更新すれば1セクタの情報量が超過してFATの第2
セクタに記録されるかがわからない、そこで、FAT第
1セクタの情報量が1セクタ長を超過し、それ以降のデ
ータはFAT第2セクタ以降に記録されるようになった
時点で始めてFAT第1セクタの最終アドレスに5トラ
ック分のセクタ数を追加した値をFAT第2セクタの開
始アドレスとして登録する。According to the method of the present invention, in order to minimize the capacity of the entire FAT area, the starting address of each of the second to nth FAT sectors is not fixed, but the following method is adopted. That is, F.A.
Since data is added to the variable length T with one update, how many times should it be updated before the amount of information in one sector exceeds the FAT second
Therefore, when the amount of information in the FAT first sector exceeds the length of one sector and subsequent data is recorded in the FAT second sector and beyond, the FAT first sector must be recorded. The value obtained by adding the number of sectors for 5 tracks to the final address of the sector is registered as the start address of the FAT second sector.
このように、未確定な各FATセクタの書き換え回数を
FAT領域10内で次のFATセクタの開始アドレスを
自由に動かすことによって吸収した。In this way, the undefined number of rewrites for each FAT sector is absorbed by freely moving the start address of the next FAT sector within the FAT area 10.
次に、第6図及び第7図を用いてシステムの起き上げ時
に処理し、FAT及びディレクトリの全領域をセクタ単
位で更新し、各構成セクタの最終情報を加算して領域全
体を参照するようにした例について説明する。ここで第
6図はFAT領域の更新方法を示す概略図、第7図はデ
ィレクトリ領域の更新方法を示す概略図である。Next, use Figures 6 and 7 to process when the system starts up, update the entire area of the FAT and directory in sector units, and add the final information of each constituent sector to refer to the entire area. An example will be explained below. Here, FIG. 6 is a schematic diagram showing a method for updating a FAT area, and FIG. 7 is a schematic diagram showing a method for updating a directory area.
前記した如くディスク上のデータのR/W (リード/
ライト)はセクタと呼ばれる固定長さ一単位として行な
う、FAT及びDIR領域はそれぞれ複数のセクタより
構成される。As mentioned above, R/W (read/write) of data on the disk
(Write) is performed as a unit of fixed length called a sector, and the FAT and DIR areas each consist of a plurality of sectors.
FAT及びDIRの情報の更新はそれまでの情報と新規
に追加した情報を合わせたものをセクタ単位でFAT及
びDIRの既記録領域の次の新しいセクタに記録するこ
とで行なう、情報量が1セクタを超過した場合には、そ
の超過分を第2セクタとして新規に固定アドレスを設け
、その番地以下に順次書き込む、最新の更新セクタの内
容は、ポインタ部によって管理されているが一システム
起き上げ時にディスクの内容から最新セクタアドレスを
ポインタ部に格納する方法を以下のようにして実現しな
、まずFAT領域につき第6図を参照して説明する。F
ATの第1セクタの開始アドレスは予しめシステムが固
有値として設定しておく。Updating FAT and DIR information is done by recording the combination of previous information and newly added information in sector units to the new sector next to the already recorded area of FAT and DIR.The amount of information is 1 sector. If the number exceeds the number, a new fixed address is created with the excess amount as the second sector, and the contents of the latest updated sector are written sequentially below that address. The method of storing the latest sector address in the pointer section from the contents of the disk is implemented as follows. First, the FAT area will be explained with reference to FIG. 6. F
The start address of the first sector of the AT is set in advance by the system as a unique value.
システムは起き上げ時に、この固有アドレスから連続し
て記録されているセクタ数を調査し、書き込みが行なわ
れている最後のセクタを第1セクタの最新内容としてそ
のアドレスをポインタ部に格納する。When the system wakes up, it checks the number of sectors continuously recorded from this unique address, and stores the address of the last sector in which writing has been performed in the pointer section as the latest contents of the first sector.
次の第2セクタの開始アドレスを第1セクタの最終アド
レスから5トラック分のセクタ数を足した値とする。こ
れは連続記録セクタを調査する時、その検出時間を短縮
するために各セクタの境界に5トラック分の空白セクタ
を設けた為である。The start address of the next second sector is the sum of the number of sectors for five tracks from the final address of the first sector. This is because blank sectors for five tracks are provided at the boundaries of each sector in order to shorten the detection time when examining continuous recording sectors.
第2セクタ開始アドレス以降の連続記録セクタ数を調査
し、そのa後のセクタのアドレスを第2セクタの最新内
容としてポインタ部にそのアドレスを格納する。以下の
セクタについても同様である。The number of consecutive recording sectors after the second sector start address is checked, and the address of the sector a after that is stored in the pointer section as the latest content of the second sector. The same applies to the following sectors.
第2セクタ以降、連続記録セクタ数を調査してそれがφ
であった場合は、記録が行われていないセクタという意
味でポインタ部にφを代入する。After the second sector, check the number of consecutively recorded sectors and find out that it is φ
If so, φ is assigned to the pointer section to indicate that the sector is not recorded.
FAT部は第1セクタから第nセクタまで順次書き込み
が行なわれるので最初に未記録のセクタを検出すればそ
れ以降のセクタは未記録ということになり、連続記録セ
クタ数の調査の必要がなくなり、システム起き上げの大
幅な時間短縮が図れる。Since writing is performed in the FAT section sequentially from the first sector to the nth sector, if the first unrecorded sector is detected, the subsequent sectors will be unrecorded, and there is no need to check the number of consecutively recorded sectors. The time it takes to start up the system can be significantly reduced.
システムは起き上げ時にFATの各セクタの読み出しを
行なうが、このように起き上げ時の時間短縮を行なうた
めに、また、ディスクのスペースを有効に活用するため
に、各セクタの開始アドレスは固定的にとったり、その
最初のセクタを初期化する方法はとらなかった。The system reads each sector of the FAT when starting up, but in order to shorten the time during startup and to make effective use of disk space, the starting address of each sector is fixed. There was no way to initialize the first sector.
従って、システムが未記録のセクタの読み出し要求をし
た場合は(ポインタの内容がφ)実際にディスクの内容
を読まずにFATのセクタの初期化情報をシステム側に
転送している。Therefore, when the system makes a read request for an unrecorded sector (the contents of the pointer is φ), the initialization information of the FAT sector is transferred to the system side without actually reading the contents of the disk.
また、これ以外に全領域をスキャンしてセクタが一杯に
なっているデータを集める方式も可能であるが、これに
よれば書き込み回数に相当するスキャンが必要となる。In addition to this, it is also possible to scan the entire area and collect data whose sectors are full, but this would require as many scans as the number of writes.
しかしながら、記録部と未記録部の境界を検出できるモ
ードを装置に持たせてやることにより前記方法よりはる
かに短時間に必要なディレクトリ又はFATセクタは検
出できるものである。However, by equipping the device with a mode that can detect the boundary between the recorded area and the unrecorded area, the necessary directory or FAT sector can be detected in a much shorter time than with the above method.
次にDIR領域について第7図を参照して説明する。D
IRI域についても第1セクタの開始アドレスはシステ
ム固定値として設定する。Next, the DIR area will be explained with reference to FIG. D
Also for the IRI area, the start address of the first sector is set as a system fixed value.
DIR領域は、FAT領域と興なり1回の更新が固定バ
イト長く32バイト)で行なわれる。従って、1セクタ
の書き換え回数はくセクタ長、/32)回となることに
よって第mセクタまでの開始アドレスが固定できる。そ
こで、各セクタの最終アドレスを求めるのにFATのよ
うにセクタ毎に連続記録セクタ数を検出することをせず
に、DIR領域全体で連続記録セクタ数を求め第mセク
タ開始アドレスの1つ手前のアドレスを第(m−1)セ
クタの最終アドレスとして限定をする。Unlike the FAT area, the DIR area is updated once with a fixed byte length (32 bytes). Therefore, the number of times one sector is rewritten is multiplied by the sector length (/32) times, so that the starting address up to the m-th sector can be fixed. Therefore, in order to find the final address of each sector, instead of detecting the number of consecutively recorded sectors for each sector as in FAT, the number of consecutively recorded sectors is calculated in the entire DIR area and one position before the m-th sector start address. The address is defined as the final address of the (m-1)th sector.
このようにして、連続記録セクタ数の調査回数を減らす
ことによりシステム起き上げ時のスピードアップを図っ
ている。なお、第8図は起き上げ処理を行う場合のブロ
ック図であり、ポインタ制御部では連続記録セクタ数を
調査し、その結果をFAT部及びDIR部ポインタレジ
スタに格納する6すべてのレジスタに値を格納してから
それらをFAT管理部またはDIR管理部に引き渡す。In this way, by reducing the number of times the number of continuously recorded sectors is checked, the speed at system start-up is increased. Note that FIG. 8 is a block diagram when performing start-up processing, and the pointer control unit checks the number of continuous recording sectors and stores the results in the FAT and DIR unit pointer registers. After storing them, they are handed over to the FAT management section or DIR management section.
FAT等を構成する各セクタの最新情報が入っているア
ドレスは第9図のポインタ部により管理されている。Addresses containing the latest information of each sector constituting the FAT etc. are managed by the pointer section shown in FIG.
ポインタはFATを構成するセクタの数分だけ用意する
。最初に設定する固定アドレスは第1FAT領域10a
、第2FAT領域10bとも第1セクタ開始アドレスの
みであとのポインタはφで初期化する。ライト(Wri
te)時には既記縁セクタの次の新セクタに情報を記録
し、このポインタの内容(最新情報のセクタアドレス)
を1つ増加する。書き込む情報がFAT第1セクタを超
過し、FAT第2セクタに追加記録する場合は、FAT
第1セクタの最新アドレスに5トラック分のセクタ数を
足した値をFAT第2セクタの開始アドレスとしてポイ
ンタ部に登録する。ここで、セクタの境界に5トラック
分のブランクセクタを挿入するのはセクタの区切りを検
出する時間を短縮させるためである。また、データのリ
ード時には各セクタのポインタを参照することにより実
際の最新セクタのアドレスを読み込む。Pointers are prepared for the number of sectors that make up the FAT. The first fixed address to be set is the first FAT area 10a.
, and the second FAT area 10b, only the first sector start address and the remaining pointers are initialized to φ. Light (Wri)
te) At times, information is recorded in the new sector following the existing edge sector, and the contents of this pointer (sector address of the latest information)
Increase by one. If the information to be written exceeds the FAT first sector and is additionally recorded in the FAT second sector, the FAT
The value obtained by adding the number of sectors for 5 tracks to the latest address of the first sector is registered in the pointer section as the start address of the FAT second sector. Here, blank sectors for five tracks are inserted at sector boundaries in order to shorten the time for detecting sector breaks. Furthermore, when reading data, the actual address of the latest sector is read by referring to the pointer of each sector.
ただし、ポインタの内容がφである時は、実際にそのセ
クタについて書き込みが行なわれていないので、システ
ム側にはFATのそのセクタの初期化情報を転送してい
る。これは余分な初期化情報をディスクに記録しないで
も済むためのものである。また、各セクタの開始アドレ
スを固定でなく柔軟性を持たせられるので、FATil
域全体容量の大幅な省力化につながる。However, when the content of the pointer is φ, no writing has actually been performed on that sector, so the initialization information for that sector in the FAT is transferred to the system side. This is done so that unnecessary initialization information does not need to be recorded on the disk. In addition, since the start address of each sector is not fixed and can be made flexible, FATil
This will lead to significant labor savings in the overall capacity of the area.
以下、その点を第9図を用いて詳細に説明する。This point will be explained in detail below using FIG. 9.
第9図は、リード(Read)/ライト(Write)
時のポインタ管理を示すブロック図である。Figure 9 shows read/write
FIG. 2 is a block diagram showing time pointer management.
ここでFAT部10の起き上げ時の処理は前記している
のでその説明を省略する。Here, the process when the FAT unit 10 is started up has been described above, so its explanation will be omitted.
(1) まずFAT部10のリード時より説明する。(1) First, reading from the FAT section 10 will be explained.
FAT部において各セクタ毎のポインタより論理セクタ
番地の読み込みを行なう9次に、ポインタの参照を行な
い、ポインタがφ(論理セクタ番地がφ)、即ちデータ
の書き込みが行なわれていない場合は、システムに初期
化情報の転送を行なう。In the FAT section, the logical sector address is read from the pointer for each sector.Next, the pointer is referenced, and if the pointer is φ (the logical sector address is φ), that is, no data has been written, the system The initialization information is transferred to
この場合、実際に書き込みがされていないデータを、あ
たかも光ディスクから読み込んだようにしてシステム側
(データ要求側)にデータ転送する。In this case, data that has not actually been written is transferred to the system side (data requesting side) as if it were read from an optical disk.
(2次に、上記において、ポインタがφ以外の場合には
、光ディスクのデータの読み込みが行なわれる。即ち、
ポインタの内容がφ以外の時は、光デイスク上にデータ
が格納されており、ポインタはその論理アドレスをさす
。(Secondly, in the above, if the pointer is other than φ, data on the optical disk is read. That is,
When the content of the pointer is other than φ, data is stored on the optical disk, and the pointer points to its logical address.
そして、この論理アドレスを物理アドレスに変換してか
らデータを読み込む。Then, this logical address is converted into a physical address before data is read.
(3次にFAT部10のライト時につき説明する。(Thirdly, the write operation of the FAT section 10 will be explained.
FAT部において各セクタ毎のポインタより論理セクタ
番地の書き込みを行なう0次に、ポインタの参照を行な
いポインタがφの場合は新規に書き込みアドレスを設定
する。即ち、書き込み時のポインタがφということは、
そのセクタに対して最初に書き込みを行なう時であり、
その場合は、1つ前のセクタの最初のアドレスを参照論
理セクタ番地として算出しく例えば、FAT第2セクタ
の時はFAT第1セクタの最終アドレスを参照する)そ
のアドレスに5トラック分の空白セクタ数を加えたアド
レスを開始アドレスとしてそのデータをポインタ部に書
き込む。In the FAT section, a logical sector address is written using a pointer for each sector.Next, the pointer is referenced, and if the pointer is φ, a new write address is set. In other words, the pointer at the time of writing is φ,
This is the first time to write to that sector,
In that case, calculate the first address of the previous sector as the reference logical sector address (for example, if it is the FAT second sector, refer to the final address of the FAT first sector). The data is written to the pointer section using the address obtained by adding the number as the start address.
(4)次に、上記においてポインタがφ以外の場合には
ポインタ内容の更新を行なう、即ち、ポインタの内容が
φ以外の時は、今までに書き込みが行なわれているので
、新らしい領域にデータを書き込むと同時に、ポインタ
の内容を更新する。(4) Next, in the above case, if the pointer is other than φ, the contents of the pointer are updated. In other words, if the contents of the pointer are other than φ, it means that writing has been done so far, so the new area is Update the contents of the pointer at the same time as writing the data.
次に、ディレクトリ領域11の更新方法にっき第7図を
参照して説明する。Next, a method for updating the directory area 11 will be explained with reference to FIG.
ディレクトリ領域の更新方法も基本的にはFATと同様
で現在までの情報に新たに格納すべき情報を追加したも
のをセクタ単位で既記録セクタの次の新規セクタに記録
する。情報量の1セクタ超過分を第2セクタとして記録
するのも同様で各セクタ毎にポインタを設け、各セクタ
の最新情報アドレスを前記した第8図のポインタによっ
て管理する。ただし、ディレクトリはFATと異なり1
回に更新する情報は32バイトと固定であるため、各セ
クタの更新回数はセクタ長より決定される。すなわち、
(1セクタ長/32バイト)回となる。従って、ディレ
クトリ領域においては、ディレクトリ第1セクタの開始
アドレスを設定すると必然的に第mアドレスまでスター
トアドレスが決定できる。よって、FAT領域のように
セクタの境界ごとに次ディレクトリセクタ開始アドレス
検出のための空白セクタを挿入する必要がなくディスク
スペースが有効に活用できる。ただし、ディレクトリ領
域とファイル領域の境界には境界検出のための空白セク
タ部13が挿入されている。The method of updating the directory area is basically the same as that of FAT, in which new information to be stored is added to the existing information and is recorded in a sector unit in a new sector next to an already recorded sector. Similarly, the amount of information exceeding one sector is recorded as the second sector, and a pointer is provided for each sector, and the latest information address of each sector is managed by the pointer shown in FIG. 8 described above. However, unlike FAT, the directory is 1
Since the information updated each time is fixed at 32 bytes, the number of times each sector is updated is determined by the sector length. That is,
(1 sector length/32 bytes) times. Therefore, in the directory area, if the start address of the first sector of the directory is set, the start addresses up to the m-th address can naturally be determined. Therefore, unlike the FAT area, there is no need to insert a blank sector for detecting the next directory sector start address at each sector boundary, and the disk space can be used effectively. However, a blank sector section 13 is inserted at the boundary between the directory area and the file area for boundary detection.
データのライト(Write)時にはポインタの内容を
1つ増加し次のセクタへ新規情報を書き込む。When writing data, the contents of the pointer are incremented by one and new information is written to the next sector.
リード(Read )時には、各ポインタの内容を参照
することにより、最新のディレクトリ情報セクタの内容
を読み込む、ポインタの内容がφである時は、実際にそ
のセクタについての書き込みが行なわれていないので、
システム側にはディレクトリの初期化情報を転送する。When reading, the contents of the latest directory information sector are read by referring to the contents of each pointer. When the contents of the pointer are φ, no writing has actually been done to that sector.
The directory initialization information is transferred to the system side.
これにより余分な初期化情報をディスクに記録せずに済
み、各セクタの開始アドレスの検出効率が高まる。This eliminates the need to record extra initialization information on the disk and increases the efficiency of detecting the start address of each sector.
(発明の効果)
上述の如く本発明によれば、追記型のディスクを従来の
フロッピーディスクやハードディスク等のメディアと同
様に汎用O8の管理下におくことができるので汎用O8
で用意されているコマンドやシステムコール(ソフトウ
ェア割り込み)が行なえデバイス内のファイルの管理を
O8に任せることができ、また、汎用O8のもとで動く
各種のソフトウェアを追記型ディスク丘で動かすことが
でき、更に、ユーザ(メーカ)が新規に作成したデバイ
スであってもO8の管理下におくことによって汎用性が
得られる等の特長を有する。(Effects of the Invention) As described above, according to the present invention, write-once disks can be placed under the control of the general-purpose O8 in the same way as conventional media such as floppy disks and hard disks.
You can use the commands and system calls (software interrupts) provided by O8, leave the management of files in the device to O8, and run various software that runs on general-purpose O8 on a write-once disk. Furthermore, even a device newly created by a user (manufacturer) can be placed under the management of O8 to provide versatility.
第1図は本発明方式で得られた追記型ディスクの領域の
割りっけを示す概略図、第2図は従来のディスクと本発
明方式で得られた追記型ディスクの割りつけ後のディス
ク領域の対応を示す概略図、第3図は書き込み制御を行
なわない場合のDIR領域の概略図、第4図は書き込み
制御を行った場合のDIR領域の概略図、第5図は書込
みフラグのセットを示すブロック図、第6図は本発明方
式で得られた追記型ディスクにおけるFAT領域の更新
方法を示す概略図、第7図は同DIR領域の更新方法を
示す概略図、第8図はシステムの起き上げ処理のブロッ
ク図、第9図はリードライト時のポインタ管理を示すブ
ロック図、第10図は従来のブロックデバイスの内部構
造を示す概略図、第11図は従来のディスクの内部構造
を示す概略図である。
10・・・FAT領域、
12・・・ファイル領域、Fig. 1 is a schematic diagram showing the area allocation of the write-once disk obtained by the method of the present invention, and Fig. 2 is a schematic diagram showing the area allocation of the conventional disk and the write-once disk obtained by the method of the present invention. Fig. 3 is a schematic diagram of the DIR area when write control is not performed, Fig. 4 is a schematic diagram of the DIR area when write control is performed, and Fig. 5 is a schematic diagram of the DIR area when write control is performed. 6 is a schematic diagram showing a method for updating the FAT area on a write-once disk obtained by the method of the present invention, FIG. 7 is a schematic diagram showing a method for updating the DIR area, and FIG. 8 is a schematic diagram showing a method for updating the DIR area. FIG. 9 is a block diagram showing pointer management during reading and writing; FIG. 10 is a schematic diagram showing the internal structure of a conventional block device; FIG. 11 is a diagram showing the internal structure of a conventional disk. It is a schematic diagram. 10... FAT area, 12... File area,
Claims (1)
システムからリバーシブルなメディアと同じディスクデ
ータの管理を行なわせるために、FAT及びディレクト
リの全領域をセクタ単位で更新し、各構成セクタの最終
情報を加算して領域全体を参照するようにしたことを特
徴とするディスクデータの管理方式。In order to use write-once media and have a general-purpose operating system manage disk data in the same way as reversible media, the entire area of the FAT and directory is updated sector by sector, and the final information of each constituent sector is added. A disk data management method characterized by referencing the entire area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20688788A JPH0254327A (en) | 1988-08-19 | 1988-08-19 | Control system for disk data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20688788A JPH0254327A (en) | 1988-08-19 | 1988-08-19 | Control system for disk data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0254327A true JPH0254327A (en) | 1990-02-23 |
Family
ID=16530695
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20688788A Pending JPH0254327A (en) | 1988-08-19 | 1988-08-19 | Control system for disk data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0254327A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007505431A (en) * | 2003-09-08 | 2007-03-08 | エルジー エレクトロニクス インコーポレーテッド | Write-once optical disc and method for recording management information thereon |
| US7573792B2 (en) | 2003-07-15 | 2009-08-11 | Lg Electronics Inc. | Write-once optical disc, and method and apparatus for recording management information thereon |
| US7668054B2 (en) | 2002-12-11 | 2010-02-23 | Lg Electronics Inc. | Method of managing overwrite and method of recording management information on an optical disc write once |
| JP2011144772A (en) * | 2010-01-15 | 2011-07-28 | Mitsubishi Electric Corp | Power source control device of electric supercharger |
-
1988
- 1988-08-19 JP JP20688788A patent/JPH0254327A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7668054B2 (en) | 2002-12-11 | 2010-02-23 | Lg Electronics Inc. | Method of managing overwrite and method of recording management information on an optical disc write once |
| US7936649B2 (en) | 2002-12-11 | 2011-05-03 | Lg Electronics Inc. | Method of managing overwrite and method of recording management information on an optical disc write once |
| US7573792B2 (en) | 2003-07-15 | 2009-08-11 | Lg Electronics Inc. | Write-once optical disc, and method and apparatus for recording management information thereon |
| JP2007505431A (en) * | 2003-09-08 | 2007-03-08 | エルジー エレクトロニクス インコーポレーテッド | Write-once optical disc and method for recording management information thereon |
| JP2011144772A (en) * | 2010-01-15 | 2011-07-28 | Mitsubishi Electric Corp | Power source control device of electric supercharger |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2888958B2 (en) | File management method for partially rewritable storage media | |
| JP3005645B2 (en) | How to read and write files on non-erasable storage media | |
| US5481519A (en) | Method for recording, reproducing and managing file data on a recording medium | |
| US5040110A (en) | Write once read many optical disc storage system having directory for storing virtual address and corresponding up-to-date sector address | |
| CN1774761B (en) | Drive device and method for reading from or writing in the recording carrier | |
| KR100854954B1 (en) | Method and apparatus for storing and reading data on storage media and storage media | |
| JPH10188481A (en) | CD-ROM creation method and creation system | |
| JPH04186447A (en) | information processing equipment | |
| US20050286377A1 (en) | Record carrier having a main file system area and a virtual file system area | |
| KR100491193B1 (en) | Information recording medium, information recording method, information recording apparatus, information reproducing method, and information reproducing apparatus | |
| JP2831369B2 (en) | Information recording / reproducing method and system | |
| JP3511052B2 (en) | Optical medium capable of rewriting bootable fixed packets | |
| JP2001117806A (en) | How to read and write data on compact disk media | |
| JPH0254327A (en) | Control system for disk data | |
| JPH0256021A (en) | Managing system for disk data | |
| JP2007528086A (en) | Flexible formatting for universal storage | |
| JPH0254326A (en) | Control system for disk data | |
| WO2004109691A1 (en) | Information recording method, information recording system, drive control unit, and semiconductor integrated circuit | |
| JPH10289144A (en) | Memory control method | |
| JP2612589B2 (en) | Directory search method | |
| WO1989001663A1 (en) | System for accessing information stored as a link-list with back-pointers on an optical disk by using the back-pointers to generate a directory | |
| JP2006323462A (en) | File copying apparatus and file copying method | |
| JPH0357037A (en) | File management device | |
| JP3170503B1 (en) | Information recording medium, information recording method, information recording device, information reproducing method, and information reproducing device | |
| JPH09293007A (en) | Program install device |