JPH0256021A - Managing system for disk data - Google Patents

Managing system for disk data

Info

Publication number
JPH0256021A
JPH0256021A JP20688888A JP20688888A JPH0256021A JP H0256021 A JPH0256021 A JP H0256021A JP 20688888 A JP20688888 A JP 20688888A JP 20688888 A JP20688888 A JP 20688888A JP H0256021 A JPH0256021 A JP H0256021A
Authority
JP
Japan
Prior art keywords
area
file
sector
fat
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20688888A
Other languages
Japanese (ja)
Inventor
Kuniko Kitamura
北村 公仁子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP20688888A priority Critical patent/JPH0256021A/en
Publication of JPH0256021A publication Critical patent/JPH0256021A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

PURPOSE:To efficiently utilize a file area by eliminating the write of an unnecessary part by using a DRAW (Direct Read After Write) type medium and updating a necessary area only once at the time of registering one file. CONSTITUTION:An FAT 10 and a directory area 11 are areas which are added and updated whenever read/write of a file are executed, and in order to correspond to the DRAW type medium, the capacity being sufficient for executing rewrite of these areas is secured continuously and fixedly in an adjacent area of a disk. Also, this area 11 is an area for storing a file name and its piece number portion is secured by 32 bytes each for registering one file. In this regard, between the directory area 11 and a file area 12, a blanch sector part 13 of a 5-track portion is provided, and a detection time of a boundary is shortened. Moreover, the FAT area 10 stores chain information of a saving block of data. In such a manner, by only updating the area 11 only once at the time of registering one file, a DRAW type disk can be placed under the management of a general purpose OS.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディスクデータの管理方式に係り、特に近年
その大容量性、アクセススピード、データ転送速度の速
ざなどから10グラムソフトなどのコンピュータデータ
だけでなく、画像データや音楽データ等各種データの記
録媒体として注目されている追記型(Writ1310
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, due to the large capacity, access speed, and data transfer speed of computers such as 10g software, the present invention relates to a disk data management system. Write-once type (Writ1310) is attracting attention as a recording medium for not only data but also 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 differs depending on the operating system (O8) installed in the computer, and different O8s are usually not compatible, but with any O8, the external storage device can store data. 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 related to that data, and formatting is performed in advance. It has been done.

第10図は例えばフロッピーディスク等のフレキシブル
ディスク上の記録領域の概略を示しており、例えば同図
の上部がフレキシブルディスクの外周部に対応し、下部
が内周部に対応する。予約(備)領域1はシステムが必
要なデータを記録する領域であり、ユーザーは使用出来
ない、2はFAT (File  A11ocatio
n Table)であり、この2はファイルの配置に間
するデータを記録する領域である。3はディレクトリ(
DIR)11域であり、この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 where the system records necessary data and cannot be used by the user. 2 is a FAT (File A11ocatio)
2 is an area for recording data related to file arrangement. 3 is the directory (
DIR) 11 area, and in this area 3, 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バイトの固定領域を確保する。ここで各領
域の容量は、セクタサイズの倍数になる4 1フアイルを作成する手順としては、まずファイル名と
データが格納されるファイル領域4における最初のブロ
ック番号を固定長のDIR領域3に記録し、次にデータ
をファイル領域4の所定ブロックに格納し、データが複
数ブロックにまたがる時はそのチェーン情報をFAT領
域2に記録する。
Next, as the FAT area 2, for example, when one block is represented by 12 bits, a data capacity of 12 bits (number of blocks + 2) 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.4 The procedure for creating one file is to first record the first block number in file area 4, where the file name and data will be stored, in fixed-length DIR area 3. Then, the data is stored in a predetermined block in the file area 4, and when the data spans multiple blocks, its chain information is recorded in the FAT area 2.

このように汎用のO8はFAT、ディレクトリ(DIR
)という領域をディスク上及びメインRAM上に持ち、
データのリード(Read)/ライト(Write)時
には、その領域を追加更新することによってファイルの
管理を行っている。なお、ディスク上のデータのり−ド
/ライトはセクタと呼ばれる固定長を一単位として行な
う、この管理方法は、自由にリード/ライト可能なメデ
ィアを想定して行なわれているため、(FATとディレ
クトリエリアをWIsに書き換える)1度しか書き込め
ない追記型光ディスクにはそのままでは用いることはで
きない。
In this way, general-purpose O8 uses FAT, directory (DIR)
) on the disk and main RAM,
When reading/writing data, the file is managed by adding and updating the area. Note that data is written/written on a disk in units of a fixed length called a sector. This management method assumes a freely readable/writable medium (FAT and directories). (Rewriting the area to WIs) It cannot be used as is for write-once optical discs that can only be written once.

第11図は、リバーシブル型のディスク内部でのFAT
及びディレクトリ領域の構造を示すものであり、この図
より明らかな如(FAT2a。
Figure 11 shows the FAT inside a reversible disk.
and the structure of the directory area, as is clear from this figure (FAT2a.

2b及びディレクトリ領域3aは、それぞれ複数のセク
タより構成されていることがわかる4例えば、この図で
はFAT1i域が3セクタ(第1セクタ〜第3セクタ)
、ディレクトリ領域が4セクタ(第1セクタ〜第4セク
タ)から成っている。この場合、’FAT領域は重要な
ファイルのチェーン情報を扱うので信顆性をあげるため
、同じ内容を2回書き込む、(第1FAT(2a)と第
2FAT(2b)が存在する。)なお、以下の説明にお
いて、FATやディレクトリの各セクタをFAT第1セ
クタ、FAT第2セクタと呼ぶことがある。
It can be seen that the directory area 2b and the directory area 3a are each composed of a plurality of sectors4.For example, in this figure, the FAT1i area has three sectors (first sector to third sector).
, the directory area consists of four sectors (first sector to fourth sector). In this case, the 'FAT area handles important file chain information, so in order to increase reliability, the same content is written twice (the first FAT (2a) and the second FAT (2b) exist). In the 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.

(発明が解決しようとする課l!り しかしながら、追記型光ディスクは開発されてからの期
間が短かいこともあり、データの記録様式は必ずしも統
一されてはいなく、いくつかのメーカでは独自のファイ
ル管理方法を採用しているというのが現状である。
(Issues that the invention aims to solve!) 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 use their own unique file formats. The current situation is that a management method is being adopted.

この追記型光ディスクに対して前記フレキシブルディス
クと同様な管理方法を用いて管理しようとすると、ファ
イル領域以外の領域(例えばディレクトリ領域)は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, the unnecessary directory area 3.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.

(課題を解決するための手段) 本発明は追記型のメディアを用いて、汎用のオペレーテ
ィングシステムからリバーシブルなメディアと同じディ
スクデータの管理を行なわせるために、不必要な部分の
書き込みは除き一つのファイル登録時に1回だけ所定の
領域を更新するようにしたことを特徴とするディスクデ
ータの管理方式を提供するものである。
(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 way as reversible media. This invention provides a disk data management method characterized in that a predetermined area is updated only once at the time of file registration.

(実施例) 第1図は、本方式で得られた追記型ディスクの領域の割
りっけを示す概略図、第2図は、従来のディスクと本方
式で得られた追記型ディスクの割りつけ後のディスク領
域の対応を示す概略図であり、これは追記型のメディア
において、汎用oSからリバーシブルなメディアと同じ
ファイル管理を行なわせるために頻繁に書き換えを行な
う回数分子備の領域をディスク上に確保することによっ
て実現したものである。
(Example) Fig. 1 is a schematic diagram showing the area allocation of a write-once disk obtained by this method, and Fig. 2 is a schematic diagram showing the allocation of areas of a conventional disk and a write-once disk obtained by this method. This is a schematic diagram showing the correspondence of later disk areas.This is a schematic diagram showing how to write once on a write-once type of media, so that a general-purpose OS can perform the same file management as reversible media. This was achieved by ensuring that

なお、本発明においてディスク上のデータのリード/ラ
イトはセクタと呼ばれる固定長を一単位として行なうこ
とは従来通りである。
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, the explanation will begin with the directory area 11, which is the gist of the present invention in allocating the entire area of the medium.

ディレクトリ領域11は、ファイル名を格納する領域で
1フアイルの登録につき固定長(32バイト)ずつデー
タが追加更新されるものとして管理するファイルの個数
分書き換えられるように領域が確保しである。よってデ
ィレクトリ第1セクタがフルになる迄の書き換え回数は
(1セクタ長/32バイト)回となる。従って、ディス
ク上には(ディレクトリ1セクタの書き換え回数×ディ
レクトリセクタの数)セ、クタ分の領域をとり、これを
従来方式の各セクタ毎に対応させている。しかしながら
、実際に汎用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 by a fixed length (32 bytes) each time one file is registered, and can be rewritten for the number of managed files. 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 system. 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図参照)そこで、本発明方式では以下のようにD
IR領域の書き込み制御を行なうことにより所期の目的
を達成したものである。すなわち、汎用O8から1つの
ファイルを登録する時次のような手順でその処理を実行
する。
(See Figure 3) Therefore, in the method of the present invention, D
The intended purpose was achieved by controlling writing in the IR area. That is, when registering one file from the general-purpose O8, the process is executed according to the following procedure.

FAT領域のリード(Read) −D I R領域の
り−ド→DIR領域のライト(14rite)→ファイ
ル領域のライト→FAT領域のライト−ファイル領域最
終セクタのライト→DIR領域のライト最初のファイル
オープン時のDIR領域の書き込みにおいてはファイル
名、ファイル作成日時の情報をディスク上の領域に格納
し、クローズ時のDIR領域の書き込みにおいてはファ
イルの総容量を追加更新している。
Read the FAT area - Read the DIR area → Write the DIR area (14rite) → Write the file area → Write the FAT area - Write the last sector of the file area → Write the DIR area When the first file is opened When writing to the DIR area, the file name and file creation date and time information are stored in the area on the disk, and when writing to the DIR area when closing, the total capacity of the file is added and updated.

従って、ディスク上に残すデーとしては最終的なりIR
内容のみでよく、また1回目と2回目の間にDIR1i
域の参照も行なわれていないので1回目の情報は必ずし
も記録する必要がない、(第4図参照)、そこで、クロ
ーズ時のみDIRの情報をディスクに書き込むように第
5図に示したようにフラグを用いて制御した。すなわち
論理セクタ判定部としてFAT■、DIR■、■、FI
L、E■の4つの領域を設定し、 領域■としては FAT→FILEフラグ=1領域■と
しては DIRかつFILEフラグ=φ−*Write
 =0 (書き込み省略)→F I LEフラグ=φ (FILEフラグリセット) 領域■としては DIRかつF I LEフラグ=1−
Write = 1 (書き込み) →F I LEフラグ;φ (F I LEフラグリセット) 領域■としては FILEフラグ=1 とした。これによって、ディスク上にDIR領域として
確保する領域が半減しディスクスペースの有効活用が可
能になった。
Therefore, the final data to be left on the disk is the IR.
Only the content is sufficient, and DIR1i is required between the first and second time.
Since the DIR area is not referenced, it is not necessarily necessary to record the first information (see Figure 4).Therefore, as shown in Figure 5, the DIR information is written to the disk only when closing. Controlled using flags. In other words, FAT■, DIR■, ■, FI as a logical sector determination unit.
Set four areas L and E■, and as area ■, FAT → FILE flag = 1 as area ■, DIR and FILE flag = φ-*Write
= 0 (writing omitted) → FILE flag = φ (FILE flag reset) As area ■, DIR and FILE flag = 1-
Write = 1 (Write) → FILE flag; φ (FILE flag reset) FILE flag = 1 for 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ブロック以内であったと仮定し、FATの
データを12ビツトとすることにより(1セクタ長/1
2ビツト)回となる。ディスク上には従来方式の各セク
タ毎にこの最大書き換え回数分のセクタプラス5トラッ
ク分の空白セクタ部13が必要になる。空白セクタ部1
3の用途についてはディレクトリ領域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 determined by assuming that the data capacity of all files is within one block, and by setting the FAT data to 12 bits (1 sector length/1 block).
2 bits) times. On the disk, a blank sector portion 13 for each sector in the conventional system is required for the maximum number of rewrites plus five tracks. Blank sector part 1
The purpose of 3 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.

従って、FAT領域全体に必要な最小セクタ数はく登録
可能ファイル数)+(空白セクタ)Xnとなる。
Therefore, the minimum number of sectors required for the entire FAT area is (number of registrable files)+(blank sectors)Xn.

本方式によれば、FAT領域全体の容量を最小とするた
めに、第2〜第nの各FATセクタの開始アドレスを固
定的にとらず以下の方法を採った。
According to this method, 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.

すなわち、FATは1回の更新で可変長にデータが追加
されるため、何回更新すれば1セクタの情報量が超過し
てFATの第2セクタに記録されるかがわからない、そ
こで、FAT第1セクタの情報量が1セクタ長を超過し
、それ以降のデータはFAT第2セクタ以降に記録され
るようになった時点で始めてFAT第1セクタの最終ア
ドレスに5トラック分のセクタ数を追加した値をFAT
第2セクタの開始アドレスとして登録する。
In other words, since FAT data is added to a variable length with a single update, it is not known how many times the amount of information in one sector will be exceeded and recorded in the second sector of the FAT. When the amount of information in one sector exceeds the length of one sector and subsequent data is recorded from the second FAT sector onward, the number of sectors for five tracks is added to the final address of the FAT first sector. The value is FAT
Register as the start address of the 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図はディレクトリ領域の更新方法を示
す概略図、第8図は追記型光ディスクに対するR(リー
ド)/W(ライト)制御図である。
Next, with reference to FIGS. 6 and 7, an example will be described in which the entire area of the FAT and directory is updated sector by sector, and the final information of each constituent sector is added to refer to the entire area. Here, Fig. 6 is a schematic diagram showing a method for updating the FAT area, Fig. 7 is a schematic diagram showing a method for updating a directory area, and Fig. 8 is a diagram showing R (read)/W (write) control for a write-once optical disc. be.

前記した如くディスク上のデータのR/W (リード/
ライト)はセクタと呼ばれる固定長さを一単位として行
なう、FAT及びDIR領域はそれぞれ複数のセクタよ
り構成される。
As mentioned above, R/W (read/write) of data on the disk
Writes are performed using a fixed length unit called a sector, and the FAT and DIR areas each consist of a plurality of sectors.

FAT及びDIRの情報の更新はそれまでの情報と新規
に追加した情報を合わせたものをセクタ単位でFAT及
びDIRの既記録領域の次の新しいセクタに記録するこ
とで行なう、情報量が1セクタを超過した場合には、そ
の超過分を第2セクタとして新規に固定アドレスを設け
、その番地以下に順次書き込む、FAT等を構成する各
セクタの最新情報が入っているアドレスは第9図のポイ
ンタ部により管理されている。
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 amount exceeds the number, a new fixed address is created with the excess amount as the second sector, and the addresses below that address are written sequentially.The addresses that contain the latest information of each sector that makes up the FAT, etc. are indicated by the pointer in Figure 9. It is managed by the department.

ポインタはFATを構成するセクタの数分だけ用意する
。最初に設定する固定アドレスは第1FAT領域10a
、第2FAT領域10bとも第1セクタ開始アドレスの
みであとのポインタはφで初期化する。ライト(Wri
te)時には既記録セクタの次の新セクタに情報を記録
し、このポインタの内容(最新情報のセクタアドレス)
を1つ増加する。
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 already recorded sector, and the contents of this pointer (sector address of the latest information)
Increase by one.

書き込む情報がFAT第1セクタを超過し、FAT第2
セクタに追加記録する場合は、FAT第1セクタの最新
アドレスに5トラック分のセクタ数を足した値をFAT
第2セクタの開始アドレスとしてポインタ部に登録する
。ここで、セクタの境界に5トラック分のブランクセク
タを挿入するのはセクタの区切りを検出する時間を短縮
させるためである。また、データのリード時には各セク
タのポインタを参照することにより実際の最新セクタの
アドレスを読み込む。
The information to be written exceeds the FAT first sector and is written to the FAT second sector.
When additional recording is to be made to a sector, add the value obtained by adding the number of sectors for 5 tracks to the latest address of the FAT first sector.
Register it in the pointer section as the start address of the 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のそのセクタの初期化情報を転送してい
る。これは余分な初期化情報をディスクに記録しないで
も済むためのものである。また、各セクタの開始アドレ
スを固定でなく柔軟性を持たせられるので、FAT領域
全体容量の大幅な省力化につながる。
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. Furthermore, since the start address of each sector is not fixed but can be made flexible, the overall capacity of the FAT area can be significantly reduced.

以下、その点を第9図を用いて前線に説明する。This point will be explained below using FIG. 9.

第9図は、リード(Read)/ライト(44rite
)時のポインタ管理を示すブロック図である。
Figure 9 shows read/write (44rite)
) is a block diagram illustrating pointer management at the time.

ここで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部において各セクタ毎のポインタより論理セクタ
番地の読み込みを行なう6次に、ポインタの参照を行な
い、ポインタがφ(論理セクタ番地がφ)、即ちデータ
の書き込みが行なわれていない場合は、システムに初期
化情報の転送を行なう。
In the FAT section, the logical sector address is read from the pointer for each sector.6 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部において各セクタ毎のポインタより論理セクタ
番地の書き込みを行なう1次に、ポインタの参照を行な
いポインタがφの場合は新規に書き込みアドレスを設定
する。即ち、書き込み時のポインタがφということは、
そのセクタに対して最初に書き込みを行なう時であり、
その場合は、1つ前のセクタの最初のアドレスを参照論
理セクタ番地を算出しく例えば、FAT第2セクタの時
はFAT第1セクタの最終アドレスを参照する)。
In the FAT section, a logical sector address is written using a pointer for each sector.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, the logical sector address is calculated by referring to the first address of the previous sector (for example, in the case of the FAT second sector, the final address of the FAT first sector is referred to).

そのアドレスに5トラック分の空白セクタ数を加えたア
ドレスを開始アドレスとしてそのデータをポインタ部に
書き込む。
The data is written into the pointer section using the address plus the number of blank sectors for 5 tracks as the starting 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 FAT, in which information to be newly stored is added to the existing information and recorded in a new sector next to the already recorded sector in sector units. 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 above. However, unlike FAT, the directory is 1
Since the information updated per 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, there is no need to insert a blank sector for detecting the start address of the next directory sector at each sector boundary unlike in the FAT area, and the disk space can be used effectively. However, a blank sector 13 is inserted at the boundary between the directory area and the file area for boundary detection.

データのライト(14rite)時にはポインタの内容
を1つ増加し次のセクタへ新規情報を書き込む。
When data is written (14write), the contents of the pointer are incremented by one and new information is written to the next sector.

リード(Read >時には、各ポインタの内容を参照
することにより、最新のディレクトリ情報セクタの内容
を読み込む、ポインタの内容がφである時は、実際にそ
のセクタについての書き込みが行なわれていないので、
システム側にはディレクトリの初期化情報を転送する。
Read > Sometimes, 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, so
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.

(発明の効果) 上述の如ぐ本発明によれば、1つのファイル登録時に1
回だけ所定の領域(DIR領域)を更新させるのみで追
記型のディスクを従来のフロッピーディスクやハードデ
ィスク等のメディアと同様に汎用O8の管理下におくこ
とができるので汎用O8で用意されているコマンドやシ
ステムコール(ソフトウェア割り込み)が行なえデバイ
ス内のファイルの管理をO8に任せることができ、また
、汎用O8のらとで動く各種のソフトウェアを追記型デ
ィスク上で動かすことができ、更に、ユーザ(メーカ)
が新規に作成したデバイスであってもO8の管理下にお
くことによって汎用性が得られる等の特長を有する。
(Effect of the invention) According to the present invention as described above, when one file is registered, one
By simply updating a predetermined area (DIR area) once, write-once disks can be placed under the control of general-purpose O8 in the same way as conventional media such as floppy disks and hard disks. and system calls (software interrupts), the management of files in the device can be left to O8, and various software that runs on general-purpose O8 can be run on write-once disks. Manufacturer)
Even if a device is newly created, it has the advantage of providing versatility by placing it under the management of O8.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本方式で得られた追記型ディスクの領域の割り
っけを示す概略図、第2図は従来のディスクと本方式で
得られた追記型ディスクの割りつけ後のディスク領域の
対応を示す概略図、第3図は書き込み制御を行なわない
場合のDIR領域の概略図、第4図は書き込み制御を行
った場合のDIR領域の概略図、第5図は本発明方式に
用いられる書込みフラグのセットを示すブロック図、第
6図は本方式で得られた追記型ディスクにおけるFAT
領域の更新方法を示す概略図、第7図は同DIR領域の
更新方法を示す概略図、第8図は追記型光ディスクに対
するリードライト制御図、第9図はリードライト時のポ
インタ管理を示すブロック図、第10図は従来のブロッ
クデバイスの内部構造を示す概略図、第11図は従来の
ディスクの内部構造を示す概略図である9 10・・・FAT領域、11・・・DIR領域、12・
・・ファイル領域、13・・・空白セクタ部。 特許出願人  日本ビクター株式会社 代表者 垣本邦夫 0表 O簑 第 図 第 図 手続補正書
Figure 1 is a schematic diagram showing the area allocation of the write-once disk obtained using this method, and Figure 2 is the correspondence between the disk areas after allocation of the conventional disk and the write-once disk obtained using this method. 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. A block diagram showing the setting of flags, Figure 6 shows the FAT on a write-once disk obtained using this method.
FIG. 7 is a schematic diagram showing how to update the DIR area, FIG. 8 is a read/write control diagram for a write-once optical disc, and FIG. 9 is a block diagram showing pointer management during read/write. 10 is a schematic diagram showing the internal structure of a conventional block device, and FIG. 11 is a schematic diagram showing the internal structure of a conventional disk. 9 10...FAT area, 11...DIR area, 12・
...File area, 13...Blank sector part. Patent applicant: Japan Victor Co., Ltd. Representative: Kunio Kakimoto

Claims (1)

【特許請求の範囲】[Claims] 追記型のメディアを用いて、汎用のオペレーティングシ
ステムからリバーシブルなメディアと同じディスクデー
タの管理を行なわせるために、不必要な部分の書き込み
は除き一つのファイル登録時に1回だけ所定の領域を更
新するようにしたことを特徴とするディスクデータの管
理方式。
In order to use write-once media and have a general-purpose operating system manage disk data in the same way as reversible media, write in unnecessary parts and update a specified area only once when registering one file. A disk data management method characterized by:
JP20688888A 1988-08-19 1988-08-19 Managing system for disk data Pending JPH0256021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20688888A JPH0256021A (en) 1988-08-19 1988-08-19 Managing system for disk data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20688888A JPH0256021A (en) 1988-08-19 1988-08-19 Managing system for disk data

Publications (1)

Publication Number Publication Date
JPH0256021A true JPH0256021A (en) 1990-02-26

Family

ID=16530712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20688888A Pending JPH0256021A (en) 1988-08-19 1988-08-19 Managing system for disk data

Country Status (1)

Country Link
JP (1) JPH0256021A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997017657A1 (en) * 1995-11-10 1997-05-15 Sony Corporation Information processing apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997017657A1 (en) * 1995-11-10 1997-05-15 Sony Corporation Information processing apparatus and method
US5978812A (en) * 1995-11-10 1999-11-02 Sony Corporation Information processor and method of information processing

Similar Documents

Publication Publication Date Title
US5481519A (en) Method for recording, reproducing and managing file data on a recording medium
US4953122A (en) Pseudo-erasable and rewritable write-once optical disk memory system
JP2888958B2 (en) File management method for partially rewritable storage media
JP3005645B2 (en) How to read and write files on non-erasable storage media
US5666531A (en) Recordable CDROM accessing system
JP4801314B2 (en) Method and apparatus for storing data in or reading data from a storage medium, and storage medium
JPH05313980A (en) Information recording method
JPH10188481A (en) Method and system for producing cd-rom
JPH04186447A (en) Directory management system
JP5128130B2 (en) Data pseudo-rewrite for write-once discs
JP2831369B2 (en) Information recording / reproducing method and system
JP2001117806A (en) Method for reading and writing data of compact disk media
JP2004030232A (en) Bridge file system and recording medium
JPH0256021A (en) Managing system for disk data
JPH0254327A (en) Control system for disk data
JP2622418B2 (en) Information recording / reproducing method
JP2581003B2 (en) Recording disk controller
CN100573693C (en) Pseudo-overwriting data on write-once discs
JPH0254326A (en) Control system for disk data
JP2007528086A (en) Flexible formatting for universal storage
JPH01116819A (en) Optical disk management system by hierarchical directory
JP2612589B2 (en) Directory search method
JPH02132516A (en) System and method for write enable type optical disk controlling
JP2784650B2 (en) Optical disk storage management method
JPH0254490A (en) Optical card