Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3477800B2 - Disk drive device - Google Patents
[go: Go Back, main page]

JP3477800B2 - Disk drive device - Google Patents

Disk drive device

Info

Publication number
JP3477800B2
JP3477800B2 JP04421694A JP4421694A JP3477800B2 JP 3477800 B2 JP3477800 B2 JP 3477800B2 JP 04421694 A JP04421694 A JP 04421694A JP 4421694 A JP4421694 A JP 4421694A JP 3477800 B2 JP3477800 B2 JP 3477800B2
Authority
JP
Japan
Prior art keywords
data
disk
compression
host computer
recorded
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.)
Expired - Fee Related
Application number
JP04421694A
Other languages
Japanese (ja)
Other versions
JPH07254228A (en
Inventor
武 船橋
哲司 川嶌
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP04421694A priority Critical patent/JP3477800B2/en
Publication of JPH07254228A publication Critical patent/JPH07254228A/en
Application granted granted Critical
Publication of JP3477800B2 publication Critical patent/JP3477800B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えば、ハードディ
スクドライブ又は書き込み可能な光ディスクを有する光
ディスクドライブに適用して好適なディスクドライブ装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is suitable for, for example, a hard disk drive or an optical disk drive having a writable optical disk.
About the location.

【0002】[0002]

【従来の技術】圧縮したデータを伸長した時に完全に元
に戻る可逆符号化圧縮技術(エントロピーコーディング
又はロスレスコーディングともいわれる。)は、光ディ
スクドライブ等の外部記憶装置のデータ記録容量を見か
け上大きくできるので注目されている技術である。
2. Description of the Related Art A lossless coding compression technique (also called entropy coding or lossless coding) that completely restores compressed data when decompressed can increase the apparent data recording capacity of an external storage device such as an optical disk drive. So it is a technology that is drawing attention.

【0003】従来、このデータ圧縮の機能はホストコン
ピュータに内蔵されている。しかし、ホストコンピュー
タに、複数台のディスクドライブ(以下、単に、ドライ
ブともいう。)が接続されているシステムにおいて、ホ
ストコンピュータからそれら複数台のドライブに異なる
データを転送する際に、データ圧縮のための膨大な計算
時間が必要なことから、全てのドライブにデータの転送
を終了するまでに相当の時間を必要とする。
Conventionally, this data compression function is built in the host computer. However, in a system in which multiple disk drives (hereinafter also simply referred to as drives) are connected to the host computer, when different data is transferred from the host computer to these multiple drives, data compression is performed. Since a huge amount of calculation time is required, it takes a considerable amount of time to finish the data transfer to all the drives.

【0004】言い換えれば、複数台のドライブに異なる
データを転送する際に、ホストコンピュータはデータ圧
縮の処理に専有されてしまい、その他の処理を行うこと
ができないという不便さがあった。また、当然のことで
あるが、データ圧縮機能を有するホストコンピュータに
接続されたドライブのみしか見かけ上のデータ記録容量
を大きくすることができない。また、圧縮データの記録
されたディスクを有するドライブは伸長機能を有するホ
ストコンピュータでしか再生することができないという
不便さもあった。
In other words, when different data are transferred to a plurality of drives, the host computer is dedicated to the data compression process, and other processes cannot be performed. Further, as a matter of course, only the drive connected to the host computer having the data compression function can increase the apparent data recording capacity. Further, there is an inconvenience that a drive having a disc on which compressed data is recorded can be reproduced only by a host computer having a decompression function.

【0005】外部記憶装置としてのドライブにデータを
記録するに際し、まず、ホストコンピュータはそのドラ
イブ中のディスクにどの程度のデータ記録容量(データ
記憶容量、データ記録サイズ又はデータ記憶サイズとも
いう。)が残っているかを知っている必要がある。これ
から記録しようとするデータのサイズが本当に記録でき
るかどうかを予め確認しておくためである。このような
場合、例えば、SCSI(Small Computer Systenr Int
erface)を介在するホストコンピュータとドライブとの
間では、イニシエータとしてのホストコンピュータから
ターゲットとしてのドライブに対してリードキャパシテ
ィコマンドを発行する。
When recording data in a drive as an external storage device, first, the host computer has a data recording capacity (also referred to as a data storage capacity, a data recording size or a data storage size) on a disk in the drive. You need to know what remains. This is to confirm in advance whether or not the size of the data to be recorded can be actually recorded. In such a case, for example, SCSI (Small Computer Systenr Int
erface) between the host computer and the drive, the host computer as the initiator issues a read capacity command to the drive as the target.

【0006】ドライブにデータ圧縮機能が搭載(内蔵)
されていると仮定した場合、実際にこのドライブ内で物
理的に残っているデータの記録容量は圧縮後のデータに
対するデータ記録容量である。これに対して、ホストコ
ンピュータが知りたいのは圧縮前のデータをどの程度記
録することができるかということである。この場合、デ
ータ圧縮率がいつも一定であれば、これらの容量の関係
は1次比例的な関係でいつも同じであるので、このデー
タ圧縮率n、例えば、n=2に残りの物理的なデータ記
録容量をかけたデータ記録容量を残りのデータ記録容量
としてホストコンピュータに報告すればよいので簡単で
ある。
The drive has a data compression function (built-in)
Assuming that the data is actually recorded, the recording capacity of the data physically remaining in this drive is the data recording capacity for the compressed data. On the other hand, what the host computer wants to know is how much uncompressed data can be recorded. In this case, if the data compression rate is always constant, the relationship of these capacities is always the same in a linearly proportional relationship, so that the data compression rate n, for example, n = 2, is the remaining physical data. It is simple because the data recording capacity multiplied by the recording capacity may be reported to the host computer as the remaining data recording capacity.

【0007】しかし、アナログ信号を変換したオーディ
オデータや画像データ等のデジタルデータの場合に採用
される場合のある損失のある圧縮技術、例えば、周知の
離散コサイン変換技術を利用した圧縮技術ではなく、確
実に入力データと同じデータに伸長する必要のデータを
取り扱うための可逆符号化データ圧縮技術、例えば、周
知のハフマン符号化技術又はLempel-Ziv(LZ=レンペ
ル・チブ)符号化技術では、圧縮率が供給されるデータ
の内容(例えば、そのデータ中に同じ用語、同じ表現等
がどの程度使用されているかというようなこと)によっ
て異なり一定ではない。
However, this is not a compression technique with a loss that may be adopted in the case of digital data such as audio data or image data obtained by converting an analog signal, for example, a compression technique using a well-known discrete cosine transform technique. A lossless coded data compression technique for reliably processing data that needs to be expanded to the same data as the input data, for example, the well-known Huffman coding technique or Lempel-Ziv (LZ = Lempel-Tiv) coding technique, Varies depending on the content of the supplied data (for example, how much the same term, the same expression, etc. are used in the data) and is not constant.

【0008】したがって、可逆符号化の圧縮技術が搭載
されたドライブでは、圧縮率を予想し、この予想圧縮率
と物理的に残っているデータ記録容量に基づいて、圧縮
前のデータをどの程度記録することができるかをホスト
コンピュータに報告することになる。
Therefore, in a drive equipped with a reversible encoding compression technique, the compression rate is predicted, and based on the estimated compression rate and the physically remaining data recording capacity, how much data before compression is recorded. It will report to the host computer what can be done.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、実績の
圧縮率が予想圧縮率より小さかった(悪かった)場合、
記録しようとするデータをすべて記録できずに、そのデ
ータが失われてしまう可能性がある。すなわち、ホスト
コンピュータがドライブから報告された見かけのデータ
記録容量を信じてデータをホストコンピュータ中のバッ
ファに保存することなくドライブに転送した場合には、
既にドライブに転送されたデータが失われてしまう可能
性がある。
However, when the actual compression rate is smaller than the expected compression rate (bad),
There is a possibility that all the data to be recorded cannot be recorded and the data will be lost. That is, if the host computer believes the apparent data recording capacity reported by the drive and transfers the data to the drive without storing it in a buffer in the host computer,
Data already transferred to the drive may be lost.

【0010】また、ホストコンピュータ側では、データ
があくまで圧縮されていないものとして管理するが、実
際には、データは圧縮されてディスクに記録され、しか
もその圧縮率は一定にはならない。したがって、例え
ば、同サイズのファイルが連続して記録された場合、圧
縮がなければ、(ファイルのサイズ)×(ファイルの個
数)という(固定値)×(定数)といった簡単な計算を
利用して、例えば、ドライブに記録されているデータの
読み出しのアクセスの高速化を図ることができる。
Although the host computer manages the data as if it is not compressed, in reality, the data is compressed and recorded on the disk, and the compression rate is not constant. Therefore, for example, if files of the same size are recorded consecutively and there is no compression, use a simple calculation such as (fixed value) × (constant) of (file size) × (number of files). For example, it is possible to speed up the access for reading the data recorded in the drive.

【0011】しかしながら、圧縮がある場合には、圧縮
前のもとのファイルのサイズは圧縮後のファイルサイズ
と、通常、同一ではないので、このような簡単な計算を
利用することでアクセスの高速化を図ることが出来な
い。
However, when there is compression, the size of the original file before compression is usually not the same as the size of the file after compression. Therefore, by using such a simple calculation, high-speed access can be achieved. It cannot be realized.

【0012】この発明はこのような課題を考慮してなさ
れたものであり、圧縮率が一定でないデータの効率的な
管理を可能とし、又、圧縮率が予想より小さくなった場
合にもデータを失う可能性のほとんどないディスクドラ
イブ装置を提供することを目的とする。
The present invention has been made in consideration of such a problem, and enables efficient management of data having a non-constant compression ratio, and also when the compression ratio becomes smaller than expected. It is an object to provide a disk drive device that is unlikely to be lost.

【0013】また、この発明は、記録される圧縮データ
の効率的な管理を可能とするディスクを提供することを
目的とする。
It is another object of the present invention to provide a disc that enables efficient management of recorded compressed data.

【0014】[0014]

【課題を解決するための手段】第1のこの発明は、ホス
トコンピュータ10から供給される圧縮前データを可逆
符号化圧縮技術により圧縮データに変換するデータ圧縮
手段13を有し、この圧縮データをディスク1に記録す
るに際し、ホストコンピュータ10から受け取った圧縮
前データの論理アドレスと、ディスク1に記録される圧
縮後データの物理アドレスとを対応させた割当対応テー
ブルFATをディスク1上に記録すると共に、ディスク
ドライブ装置本体における予想圧縮率より実績圧縮率が
小さくなった場合に、圧縮後のデータのサイズが残りの
データ記録容量以上のときのみ、この圧縮後のデータを
記録するための特別の記録エリアを予めディスク上に設
けておくようにしたものである。
According to a first aspect of the present invention, there is provided data compression means 13 for converting uncompressed data supplied from a host computer 10 into compressed data by a lossless coding compression technique. upon recording on the disc 1, and the logical address of the pre-compression data received from the host computer 10, together with the corresponding is allowed allocation correspondence table FAT and a physical address of data after compression to be recorded on the disk 1 is recorded on the disk 1 ,disk
When it becomes smaller actual compression ratio than expected compression ratio in the drive apparatus main body, the size of data after compression when more remaining data recording capacity only, special recording area for recording data after compression Is previously provided on the disc.

【0015】第2のこの発明は、割当対応テーブルFA
Tの内容を非圧縮データで記録しておくようにしたもの
である。
A second aspect of the present invention is an allocation correspondence table FA
The contents of T are recorded as uncompressed data.

【0016】[0016]

【0017】 第のこの発明は、特別の記録エリアを
交替エリアとしたものである。
A third aspect of the present invention uses a special recording area as a replacement area.

【0018】 第のこの発明は、ディスクが書換可能
なディスク1であって、ホストコンピュータ10からの
アクセスがない場合に、すでにディスク1に記録されて
いる圧縮データの記録位置の整理を、割当対応テーブル
FATを利用して行うようにしたものである。
In a fourth aspect of the present invention, when the disc is a rewritable disc 1 and there is no access from the host computer 10, the arrangement of the recording positions of the compressed data already recorded on the disc 1 is assigned. The correspondence table FAT is used.

【0019】 第のこの発明は、ホストコンピュータ
10からディスク1上の残りのデータ記録容量の確認コ
マンドが発行された場合、ディスク1上の未記録データ
記録容量の減少に対応して予想圧縮率を小さくした見か
け上のデータ記録容量をホストコンピュータに報告する
ようにしたものである。
In a fifth aspect of the present invention, when a command for confirming the remaining data recording capacity on the disk 1 is issued from the host computer 10, the expected compression rate is corresponding to the decrease in the unrecorded data recording capacity on the disk 1. The apparent data recording capacity with a reduced value is reported to the host computer.

【0020】[0020]

【0021】[0021]

【作用】第1のこの発明によれば、データ圧縮手段によ
り可逆符号化圧縮された圧縮データをディスクに記録す
るに際し、ホストコンピュータ10から受け取った圧縮
前データの論理アドレスと、ディスクに記録される圧縮
後データの物理アドレスとを対応させた割当対応テーブ
ルをディスク上に記録すると共に、ディスクドライブ装
置本体における予想圧縮率より実績圧縮率が小さくなっ
た場合に、圧縮後のデータのサイズが残りのデータ記録
容量以上のときのみ、この圧縮後のデータを記録するた
めの特別の記録エリアを予めディスク上に設けておくよ
うにしているので、圧縮率が一定でない圧縮データの効
率的な管理が可能になると共に、圧縮率が予想より小さ
い場合にもデータを失う可能性がほとんどない
According to the first aspect of the present invention, when the compressed data reversibly encoded and compressed by the data compression means is recorded on the disk, it is recorded on the disk and the logical address of the uncompressed data received from the host computer 10. An allocation correspondence table that associates the physical addresses of the compressed data with each other is recorded on the disk, and the disk drive device
When it becomes smaller than expected compression rate by Ri actual compression ratio at Okimoto body, the size of data after compression when more remaining data recording capacity only, a special recording area for recording data after compression Since it is provided on the disk in advance, it enables efficient management of compressed data with a non-constant compression ratio, and the compression ratio is smaller than expected.
There is almost no chance of losing data even if it is not .

【0022】第2のこの発明によれば、割当対応テーブ
ルの内容を非圧縮データで記録しておくようにしている
ので、割当対応テーブルの内容を読み出してから伸長す
る必要がないので、割当対応テーブルの内容を短時間で
理解することができる。
According to the second aspect of the invention, since the contents of the allocation correspondence table are recorded as uncompressed data, it is not necessary to read the contents of the allocation correspondence table and then expand the contents. You can understand the contents of the table in a short time.

【0023】[0023]

【0024】 第のこの発明によれば、特別の記録エ
リアを交替エリアとしているので、ディスクを効率よく
使用することができる。
According to the third aspect of the invention, since the special recording area is used as the replacement area, the disc can be used efficiently.

【0025】 第のこの発明によれば、ホストコンピ
ュータからのアクセスがない場合に、割当対応テーブル
を利用して、書換可能なディスクに記録されている圧縮
データの記録位置の整理を行うようにしているので、こ
の後のアクセスの高速化が図れる。
According to the fourth aspect of the invention, when there is no access from the host computer, the allocation correspondence table is used to organize the recording positions of the compressed data recorded on the rewritable disc. Therefore, the subsequent access can be speeded up.

【0026】 第のこの発明によれば、ホストコンピ
ュータからディスク上の残りのデータ記録容量の確認コ
マンドが発行された場合、ディスク上の未記録データ記
録容量の減少に対応して予想圧縮率を小さくした見かけ
上のデータ記録容量をホストに報告するようにしたの
で、圧縮率が予想より小さい場合にもデータを失う可能
性がほとんどない。
According to the fifth aspect of the present invention, when the host computer issues a command for confirming the remaining data recording capacity on the disc, the expected compression ratio is set in accordance with the decrease in the unrecorded data recording capacity on the disc. Since the reduced apparent data recording capacity is reported to the host, there is almost no possibility of losing data even when the compression rate is smaller than expected.

【0027】[0027]

【0028】[0028]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。図1は、この一実施例が適用された光
ディスクドライブ装置11の構成を示す系統図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a system diagram showing the configuration of an optical disk drive device 11 to which this embodiment is applied.

【0029】この光ディスクドライブ装置11は、シス
テムコントローラであるCPU(中央処理装置)21を
有している。CPU21が接続されているバス12に
は、ホストコンピュータ10から供給された圧縮前のデ
ータを可逆符号化圧縮後のデータ(単に、圧縮データと
もいう)に変換するデータ圧縮(符号化)手段部13
と、圧縮されたデータを元にもどすデータ伸長(復号
化)手段14が接続されている。この圧縮手段13と伸
長手段14は、マイクロコンピュータ等で構成できる。
The optical disk drive device 11 has a CPU (central processing unit) 21 which is a system controller. A data compression (encoding) means unit 13 for converting the data before compression supplied from the host computer 10 into the data after lossless encoding and compression (simply referred to as compressed data) is connected to the bus 12 to which the CPU 21 is connected.
And a data decompression (decoding) means 14 for restoring the compressed data to the original. The compression means 13 and the expansion means 14 can be configured by a microcomputer or the like.

【0030】なお、可逆符号化圧縮技術自体はこの発明
とは直接関係ないので、詳しく説明しないが、圧縮手段
13及び伸長手段14では、例えば、LZ法による圧縮
技術を用いることができる。このLZ法による圧縮技術
を簡単に説明すると、入力文字(データ)列をコードに
変換する変換テーブルを利用する方式である。すなわ
ち、入力文字列を読み込み、予め辞書(以下、基本変換
テーブルともいう)に登録されている、例えば、アルフ
ァベット26文字のコードに変換する(符号化する)一
方、この基本変換テーブルに登録されていない文字列を
新たな辞書(以下、作成変換テーブルともいう)を作成
して登録していく方法であり、この作成変換テーブルを
更新しかつ利用しながら入力文字列を圧縮するととも
に、伸長の際、言い換えれば、復号化の際に、圧縮文字
列から作成変換テーブルを作成しながら圧縮文字を伸長
する方式である。
Since the reversible coding compression technique itself is not directly related to the present invention, it will not be described in detail, but the compression means 13 and the decompression means 14 can use the compression technique by the LZ method, for example. The compression technique by the LZ method will be briefly described. It is a system that uses a conversion table for converting an input character (data) string into a code. That is, the input character string is read and converted (encoded) into, for example, a 26-character code that is registered in a dictionary (hereinafter, also referred to as a basic conversion table) in advance, while being registered in this basic conversion table. This is a method of creating and registering a new dictionary (hereinafter also referred to as a creation conversion table) for a character string that does not exist. While updating and using this creation conversion table, the input character string is compressed and decompressed. In other words, it is a method of expanding a compressed character while creating a creation conversion table from the compressed character string at the time of decoding.

【0031】ROM(読み出し専用メモリ)23には、
システムコントロール用等のソフトウェアプログラムが
記録保持されている。RAM(ランダムアクセスメモ
リ)22はCPU21のワーク用RAMである。なお、
圧縮手段13及び伸長手段14のワーク用RAMとして
も使用される。
The ROM (read only memory) 23 includes
A software program for system control etc. is recorded and held. A RAM (random access memory) 22 is a work RAM of the CPU 21. In addition,
It is also used as a work RAM for the compression means 13 and the expansion means 14.

【0032】ホストコンピュータ10から発行されたコ
マンドは、SCSI等のホストインタフェース20、バ
ッファコントローラ24及びバス12を通じてCPU2
1に送られる。
The command issued from the host computer 10 is sent to the CPU 2 through the host interface 20 such as SCSI, the buffer controller 24 and the bus 12.
Sent to 1.

【0033】CPU21は、このコマンドに対応した処
理を行う。コマンドとしては、例えば、光ディスクドラ
イブ装置11中の光ディスク(以下、単にディスクとも
いう)1にどの程度の記録容量が残っているのかを確認
するためのリード・キャパシティ・コマンド・ディスク
1を初期化するためのディスク・サーティファイ・コマ
ンド、周知のリード・コマンド、ライト・コマンド、ラ
イト&(アンド)ベリファイ・コマンド等がある。
The CPU 21 performs processing corresponding to this command. As the command, for example, the read capacity command disk 1 for confirming how much recording capacity remains in the optical disk (hereinafter, also simply referred to as a disk) 1 in the optical disk drive device 11 is initialized. There are a disk certify command, a well-known read command, a write command, a write & (and) verify command, etc.

【0034】ディスク1の構成及び光ディスクドライブ
装置11の全体的な説明をするために、ホストコンピュ
ータ10からディスク・サーティファイ・コマンドが供
給された場合を例として説明する。なお、ディスク・サ
ーティファイ・コマンドによるディスクフォーマットの
際には圧縮手段13及び伸長手段14は何も動作しな
い。
In order to describe the structure of the disc 1 and the optical disc drive apparatus 11 as a whole, a case where a disc certify command is supplied from the host computer 10 will be described as an example. It should be noted that the compression unit 13 and the decompression unit 14 do not operate at the time of disk formatting by the disk certify command.

【0035】ディスク・サーティファイ・コマンドを受
け取ったCPU21は、ディスク・サーティファイ処理
を行うためのデータをROM23から読み出し、バッフ
ァコントローラ24を通じて読み出したデータをデータ
バッファ25に書き込む。
The CPU 21, which has received the disk certify command, reads the data for performing the disk certify processing from the ROM 23, and writes the read data to the data buffer 25 through the buffer controller 24.

【0036】図2は、ディスク1のディスクフォーマッ
ト例を示している。半径方向外側(最外周側)から内側
(最内周側)に向かってトラック番号(トラックアドレ
ス)「0」〜「9999」の1万個のトラックが存在し
ている。なお、以下の説明において、必要に応じてトラ
ック番号を単にトラック0〜9999またはトラックア
ドレス0〜9999と記す。
FIG. 2 shows an example of the disk format of the disk 1. There are 10,000 tracks having track numbers (track addresses) “0” to “9999” from the outer side (outermost side) in the radial direction toward the inner side (innermost side). In the following description, the track numbers will be simply referred to as tracks 0 to 9999 or track addresses 0 to 9999 as needed.

【0037】トラック0〜トラック2及びトラック99
48〜トラック9999は光ディスクドライブ装置11
のCPU21によってのみ管理されるトラックである。
その中、トラック9948〜トラック9996は後に説
明するように交替エリアAEであり、トラック0〜トラ
ック2及びトラック9997〜9999は光ディスクド
ライブ装置11が管理するという意味でドライブエリア
DEといい、残りのトラック3〜トラック9947はユ
ーザエリアUEである。
Track 0 to Track 2 and Track 99
48 to 9999 are optical disk drive devices 11
It is a track managed only by the CPU 21 of.
Among them, the tracks 9948 to 9996 are replacement areas AE, as will be described later, and the tracks 0 to 2 and the tracks 9997 to 9999 are called drive areas DE in the sense that the optical disk drive device 11 manages them, and the remaining tracks. Tracks 3 to 9947 are user areas UE.

【0038】ドライブエリアDEは、好ましくは非圧縮
のデータで記録される。後に説明するように、リード又
はライト等の処理に対するアクセスの高速化のためであ
る。なお、ユーザエリアUE及び交替エリアAEには、
圧縮手段13で圧縮された圧縮データが記録される。
The drive area DE is preferably recorded with uncompressed data. This is to speed up access to processing such as read or write, as will be described later. In addition, in the user area UE and the replacement area AE,
The compressed data compressed by the compression means 13 is recorded.

【0039】各トラックは、物理セクタ番号「0」〜
「24」のセクタ(必要に応じて物理セクタ0〜24又
は前後の関係から意味が明白な場合には単にセクタ0〜
24ともいう。またセクタアドレスともいう。)を有し
ている。1つのセクタのメモリ容量(データ記録容量)
は2048B(バイト)である。なお、この実施例で
は、ホストコンピュータ10は、100個のセクタ単位
でデータを記録し、又は読み出すようになっている。こ
の意味でこの100個のセクタ分の記録単位、データ記
録容量としては、100個×2kB=200kBをブロ
ックデータという。
Each track has a physical sector number "0" to
Sectors of “24” (Physical sectors 0 to 24 if necessary or, if the meaning is clear from the front and rear relationships, simply sectors 0 to 24)
Also called 24. Also called a sector address. )have. Memory capacity of one sector (data recording capacity)
Is 2048 B (bytes). In this embodiment, the host computer 10 is designed to record or read data in units of 100 sectors. In this sense, 100 units × 2 kB = 200 kB as the recording unit and data recording capacity for 100 sectors is called block data.

【0040】すなわち、この実施例において、ホストコ
ンピュータ10は、この100個のセクタからなる20
0kBのブロックデータ単位でデータを管理するように
なっている。この場合、ホストコンピュータ10は、ユ
ーザエリアUEのトラック3のセクタ0をブロックデー
タの先頭アドレス1番として管理し、以下、100セク
タ毎に、それぞれの先頭アドレスをセクタアドレス10
1、201、……として順に管理することになる。ただ
し、実際上、ユーザエリアUEに記録されているデータ
は圧縮データであるので、ホストコンピュータ10が管
理するブロックデータのアドレスとディスク1上のアド
レスとが一意的に対応しなくなる。この意味で、ホスト
コンピュータ10が管理するアドレスを論理アドレス
(論理セクタアドレス)、光ディスクドライブ装置11
が管理するアドレスを物理アドレス(物理セクタアドレ
ス)という。圧縮前のブロックデータの論理アドレスと
圧縮データのブロックデータの物理アドレスの対応関係
を容易に管理することができるようにすることがこの発
明の一つの目的である。
In other words, in this embodiment, the host computer 10 is composed of the 100 sectors 20.
Data is managed in units of block data of 0 kB. In this case, the host computer 10 manages the sector 0 of the track 3 of the user area UE as the start address 1 of the block data, and hereinafter, every 100 sectors, the start address of each sector is set to the sector address 10.
It will be managed in order as 1, 201, .... However, in reality, since the data recorded in the user area UE is compressed data, the address of the block data managed by the host computer 10 and the address on the disk 1 do not uniquely correspond to each other. In this sense, the address managed by the host computer 10 is a logical address (logical sector address), and the optical disk drive device 11
The address managed by is called a physical address (physical sector address). It is an object of the present invention to make it possible to easily manage the correspondence between the logical address of block data before compression and the physical address of block data of compressed data.

【0041】再び図2において、トラック0のセクタ
0、トラック1のセクタ12、トラック9997のセク
タ0及びトラック9998のセクタ12はDDS(ディ
スク・ディフィニション・ストラクチュア)セクタ#0
〜#3である。トラック0のセクタ1、トラック1のセ
クタ13、トラック9997のセクタ1及びトラック9
998のセクタ13は、ディスク・サーティファイ時に
おけるデフェクト・セクタ(欠陥セクタ又はエラーセク
タともいう。)の情報を記録しておくPDL(プライマ
リー・デフェクト・リスト)セクタ#0〜#3である。
トラック0のセクタ2、トラック1のセクタ14、トラ
ック9997のセクタ2及びトラック9998のセクタ
14は、ディスク・サーティファイ時以降における、例
えば、ライト&ベリファイ時におけるデフェクト・セク
タの情報を記録しておくSDL(セカンダリー・デフェ
クト・リスト)セクタ#0〜#3である。
Referring again to FIG. 2, sector 0 of track 0, sector 12 of track 1, sector 0 of track 9997, and sector 12 of track 9998 are DDS (disk definition structure) sector # 0.
~ # 3. Track 0 Sector 1, Track 1 Sector 13, Track 9997 Sector 1 and Track 9
Sectors 13 of 998 are PDL (Primary Defect List) sectors # 0 to # 3 in which information of defective sectors (also referred to as defective sectors or error sectors) at the time of disc certification is recorded.
The sector 2 of track 0, the sector 14 of track 1, the sector 2 of track 9997, and the sector 14 of track 9998 record the defect sector information after the disk certify, for example, at the time of write & verify, SDL. (Secondary defect list) Sectors # 0 to # 3.

【0042】そこで、ディスク・サーティファイ・コマ
ンドを受け取ったCPU21は、サーボコントローラ2
7に対して、ユーザエリアUEのトラック3のセクタ0
から一定セクタ分までの試しの書き込み指示を行うと同
時に、そのディスク・サーティファイを行うためのデー
タをデータバッファ25からバッファコントローラ24
を通じてドライブインタフェース26に送りだす指示を
行う。そして、同時にドライブインタフェース26にも
光ピックアップ29を通じてのディスク1への書き込み
指示を行う。
Then, the CPU 21 which receives the disk certify command is operated by the servo controller 2
7, the sector 0 of the track 3 of the user area UE
From the data buffer 25 to the buffer controller 24 at the same time as the trial write instruction from the
Through the drive interface 26. At the same time, the drive interface 26 is also instructed to write on the disc 1 through the optical pickup 29.

【0043】なお、一定セクタ分は、この実施例では、
ホストコンピュータ10が、100個のセクタ単位のブ
ロックデータを管理するようになっているので、この1
00個のセクタ分の記録単位を一定セクタとしてもよ
い。
In the present embodiment, the fixed sector portion is
Since the host computer 10 is designed to manage block data in units of 100 sectors, this 1
The recording unit for 00 sectors may be a fixed sector.

【0044】そして、図示しないスピンドルモータによ
り回転されるディスク1の上記対象トラック(トラック
3のセクタ0から一定セクタ分)にリニアモータ17を
通じて光ピックアップ29と図示しない磁気ヘッドを移
動させることで、レーザ光Lと磁気ヘッドからの磁界の
相互作用(周知技術)により、上記一定セクタ分に対す
る書き込みが終了する。
Then, the optical pickup 29 and a magnetic head (not shown) are moved through the linear motor 17 to the target track (a certain sector from the sector 0 of the track 3) of the disk 1 rotated by a spindle motor (not shown). Due to the interaction between the light L and the magnetic field from the magnetic head (known technique), the writing for the certain sector is completed.

【0045】その書き込みが終了した時点で、CPU2
1は、データの流れとしては逆方向になる(ディスク1
からデータバッファ25への流れ)リードコマンドをト
ラック3のセクタ0から上記一定セクタ分について、バ
ッファコントローラ24、ドライブインタフェース26
及びサーボコントローラ27に指示する。
When the writing is completed, the CPU 2
1 is the reverse direction of the data flow (disk 1
To the data buffer 25) A read command is issued from the sector 0 of the track 3 to the above-mentioned fixed sector for the buffer controller 24 and the drive interface 26
And instruct the servo controller 27.

【0046】このリードコマンドに基づくリードの結
果、それら一定セクタ分すべてが正常セクタであれば、
それら一定セクタ分の次のセクタからまた一定セクタ分
のライトとリードを行う。このようにしてリードとライ
トを繰り返し、最終セクタ(交替エリアAEのトラック
9996のセクタ24)まで行う。もし、リード/ライ
ト中、途中でリードエラーが発見された場合には、その
エラーセクタに対して代替されるセクタを交替エリアA
E中のトラック9948のセクタ0から順に割当て、そ
の割当情報をPDLセクタ#1に書き込み登録を行う。
交替エリアAEにデフェクトセクタに記録しようとした
圧縮データが記録される。そして、このディスク・サー
ティファイの後に上記エラーセクタに対するアクセスが
発生した場合には、このPDLセクタ#1を参照し、交
替セクタにアクセスするようにする。
As a result of the read based on this read command, if all of these fixed sectors are normal sectors,
Writing and reading for a certain sector are performed again from the next sector for the certain sector. In this way, reading and writing are repeated until the final sector (sector 24 of the track 9996 in the replacement area AE). If a read error is found in the middle of reading / writing, the sector to be replaced is replaced by the replacement area A.
Allocations are sequentially made from sector 0 of track 9948 in E, and the allocation information is written and registered in PDL sector # 1.
The compressed data which is to be recorded in the defective sector is recorded in the replacement area AE. When an access to the error sector occurs after the disk certify, the PDL sector # 1 is referenced to access the replacement sector.

【0047】CPU21は、ディスク1のユーザエリア
UEと交替エリアAE中の全てのセクタをチェックした
時点で、トラック0、1及びトラック9997、999
8のDDSセクタ#0〜#3、PDLセクタ#0〜#3
及びSDLセクタ#0〜#3にそれぞれ同一の情報を書
き込む(DDSセクタ#0〜#3の内容が同一、PDL
セクタ#0〜#3の内容が同一及びSDLセクタ#0〜
#3の内容が同一の意)。なお、この時点、すなわち、
ディスク・サーティファイ処理時点では、SDLセクタ
#0〜#3にはデフェクト・セクタの情報は書き込まれ
ない。
When the CPU 21 checks all the sectors in the user area UE and the replacement area AE of the disc 1, the tracks 0 and 1 and the tracks 9997 and 999 are checked.
8 DDS sectors # 0 to # 3 and PDL sectors # 0 to # 3
And SDL sectors # 0 to # 3 write the same information (DDS sectors # 0 to # 3 have the same contents, PDL
Sectors # 0 to # 3 have the same contents and SDL sectors # 0 to # 3
(The meaning of # 3 is the same). At this point, that is,
At the time of the disk certify processing, the defect sector information is not written in the SDL sectors # 0 to # 3.

【0048】このように同一のデータを4箇所に書き込
むようにしているのは、これらDDSセクタ#0〜#
3、PDLセクタ#0〜#3及びSDLセクタ#0〜#
3に記録されるデータのバックアップ〔バックアップコ
ピー:データを不慮の事故で損失しないように、同一の
ものを不揮発性メモリ(この場合、MOディスクである
ディスク1)にコピーしておくこと〕のためである。
In this way, the same data is written in four locations because of these DDS sectors # 0 to #.
3, PDL sectors # 0 to # 3 and SDL sectors # 0 to #
For backup of the data recorded in 3 (backup copy: copy the same data to a non-volatile memory (in this case, the disk 1 which is an MO disk) so that the data is not accidentally lost) Is.

【0049】以上でディスクサーティファイ動作が終了
する。
Thus, the disk certify operation is completed.

【0050】図3は、DDSセクタ内の割当内容の一部
を示している。バイト番号0、1の先頭の2バイトは、
その内容がDDSセクタのID(識別部)を示すもので
あり、その2バイトには「0A」(BCDの16進表
現)が記録されている。バイト番号2、2047等は予
備(未定義)であり、「00」が記録されている。バイ
ト番号3には、ディスク・サーティファイが行われたか
どうかが記録され、既に済んでいる場合には、「01」
が記録され、未だ行われていない場合には、「02」が
記録される。したがって、ディスク・サーティファイ動
作の終了時点で、DDSセクタのバイト番号3の記録デ
ータが、「02」から「01」に書き換えられることに
なる。
FIG. 3 shows a part of allocation contents in the DDS sector. The first 2 bytes of byte numbers 0 and 1 are
The content indicates the ID (identification part) of the DDS sector, and "0A" (hexadecimal representation of BCD) is recorded in the 2 bytes. Byte numbers 2, 2047, etc. are reserved (undefined), and "00" is recorded. Byte number 3 records whether or not a disk certify has been performed. If it has already been completed, "01"
Is recorded, and if it has not been performed yet, “02” is recorded. Therefore, the recording data of the byte number 3 of the DDS sector is rewritten from "02" to "01" at the end of the disc certify operation.

【0051】バイト番号P、P+1、……、P+Qに
は、その記録データ欄に、ホストコンピュータ10から
受け取った圧縮前データの論理アドレスと、ディスク1
のユーザエリアUE及び交替エリアAEに記録される圧
縮データの物理アドレスとを対応させて記録するための
割当対応テーブルFATが配される。この割当対応テー
ブルへのデータの記録は、上記したように非圧縮データ
で記録するようになっている。
For the byte numbers P, P + 1, ..., P + Q, the logical address of the uncompressed data received from the host computer 10 and the disk 1 are recorded in the recording data column.
An allocation correspondence table FAT for recording the user area UE and the physical area of the compressed data recorded in the replacement area AE in association with each other. The data is recorded in this allocation correspondence table as uncompressed data as described above.

【0052】次にこの実施例の要部動作について、RO
M23に記録保持されている記録手順のプログラムのフ
ローチャート、読み出し手順のフローチャート及びDD
Sセクタの割当対応テーブルFATの例をも参照して説
明する。
Next, regarding the main operation of this embodiment, RO
Program flow chart of recording procedure, flow chart of read procedure and DD recorded and held in M23
The S sector allocation correspondence table FAT will also be described with reference to an example.

【0053】図4は、記録手順の説明に供されるフロー
チャートである。図5は、読み出し手順の説明に供され
るフローチャートである。図6は、割当対応テーブルF
ATの例である。
FIG. 4 is a flow chart provided for explaining the recording procedure. FIG. 5 is a flowchart provided for explaining the reading procedure. FIG. 6 shows the allocation correspondence table F.
This is an example of AT.

【0054】図4に示す記録手順の説明において、上述
したディスクサーティファイ処理は終了しているものと
する。したがって、光ディスクドライブ装置11が電源
オンされたときに(ステップS1)、ドライブエリアD
E中のDDSセクタ#0〜#3、PDLセクタ#0〜#
3及びSDLセクタ#0〜#3の内容がRAM22に読
み込まれる(ステップS2)。これによって、以降RA
M22はこれらの読み込み内容についてのキャッシュメ
モリとして機能する。
In the description of the recording procedure shown in FIG. 4, it is assumed that the above-mentioned disc certifying process has been completed. Therefore, when the optical disk drive device 11 is powered on (step S1), the drive area D
DDS sectors # 0 to # 3 and PDL sectors # 0 to # in E
3 and the contents of SDL sectors # 0 to # 3 are read into the RAM 22 (step S2). As a result, RA
M22 functions as a cache memory for these read contents.

【0055】次に、ホストコンピュータ10から記録要
求、すなわちライトコマンドが発行される(ステップS
3)。次に、ホストコンピュータ10が管理する論理セ
クタアドレスとしてのブロックデータの先頭アドレス4
901(図6参照)からブロックデータの終了アドレス
5100までの200セクタ分の2つのブロックデータ
(圧縮前のデータ)からなる一纏まりのデータがそのホ
ストコンピュータ10から光ディスクドライブ装置11
のデータバッファ25に転送される。この一纏まりのデ
ータはこれからホストコンピュータ10がディスク1に
記録しようとするデータである。
Next, a recording request, that is, a write command is issued from the host computer 10 (step S).
3). Next, the start address 4 of the block data as a logical sector address managed by the host computer 10
A set of data consisting of two block data (data before compression) of 200 sectors from 901 (see FIG. 6) to the end address 5100 of the block data is transferred from the host computer 10 to the optical disk drive device 11.
Data buffer 25. This set of data is the data that the host computer 10 is about to record on the disc 1 from now on.

【0056】なお、この実施例で1ブロックデータの大
きさは、上述したように、100セクタ分のデータであ
るので、100セクタ×2kB=200kBである。し
たがって、FAT割当対応テーブル上のホストへのデー
タ管理情報欄のブロックデータの先頭アドレス欄(先頭
論理アドレス欄)a、cには、a=4901、c=50
01のブロックデータの先頭アドレスが書き込まれ、ブ
ロックデータの終わりアドレス欄b、dにはそれぞれb
=5000、d=5100のブロックデータの終了アド
レスが書き込まれる。なお、この時点で、この論理アド
レスは、ディスク1のDDSセクタに書き込まれるわけ
ではなく、それが読み出されているRAM22中のDD
Sセクタ中の割当対応テーブルFATに書き込まれる。
割当対応テーブルFATが記録されたRAM22はいわ
ゆるキャッシュメモリとして使用されるわけである。
In this embodiment, the size of one block data is 100 sectors × 2 kB = 200 kB since it is 100 sectors worth of data as described above. Therefore, a = 4901 and c = 50 are stored in the head address columns (head logical address column) a and c of the block data in the data management information column for the host on the FAT allocation correspondence table.
The start address of the block data of 01 is written, and b is entered in the end address columns b and d of the block data.
= 5000, d = 5100, the end address of the block data is written. At this point, this logical address is not written in the DDS sector of the disk 1, but the DD in the RAM 22 from which it is read.
It is written in the allocation correspondence table FAT in the S sector.
The RAM 22 in which the allocation correspondence table FAT is recorded is used as a so-called cache memory.

【0057】次に、この一纏まりの2つのブロックデー
タを1ブロック毎に圧縮手段13で圧縮する(ステップ
S4)。この場合、それぞれのブロックデータが圧縮比
n=2の約2倍に圧縮されたとする。
Next, this block of the two block data is compressed block by block by the compression means 13 (step S4). In this case, it is assumed that each block data is compressed to about twice the compression ratio n = 2.

【0058】このステップS2により圧縮後のデータの
大きさが特定できる。この場合は、それぞれ50セクタ
分でそれぞれ100kB分のデータであることになる。
The size of the compressed data can be specified by this step S2. In this case, 50 sectors worth of data is 100 kB worth of data.

【0059】次に、この圧縮データの記録できる現在空
いている記録エリアを割当対応テーブルFATから捜す
(ステップS5)。なお、ディスク1の使用状況(空き
情報)は割当対応テーブルFAT以外のDDSセクタ上
の他の場所で管理してもよいことはいうまでもない。こ
こでは、ディスク1上でのデータ管理情報の欄の使用状
況、すなわち、図6中、ディスク1上でのデータ管理情
報欄の記録済み物理アドレスから物理セクタ2001〜
2050までの50セクタ及び物理セクタ3561〜4
110までの50セクタが未記録領域であったものとす
る。
Next, the currently available recording area in which the compressed data can be recorded is searched from the allocation correspondence table FAT (step S5). Needless to say, the usage status (free information) of the disk 1 may be managed in another place on the DDS sector other than the allocation correspondence table FAT. Here, the usage status of the column of the data management information on the disk 1, that is, from the recorded physical address of the column of the data management information on the disk 1 in FIG.
50 sectors up to 2050 and physical sectors 3561-4
It is assumed that 50 sectors up to 110 are unrecorded areas.

【0060】そこで、圧縮後のデータをディスク1上の
ユーザエリアUE中のこれらのセクタに記録する(ステ
ップS6)。
Therefore, the compressed data is recorded in these sectors in the user area UE on the disc 1 (step S6).

【0061】この場合、RAM22上の割当テーブルF
ATの欄eと欄fに示す物理セクタ2001〜2050
及び欄hと欄iに示す物理セクタ3561〜4110ま
での100セクタのデータはもともと一纏まりのデータ
であるので、割当対応テーブルFAT内のリンク情報欄
gにセクタ2050の次のデータがセクタ3561に記
録されていることを示すリンクセクタ情報「3561」
を書き込んでおく。また、その一纏まりのデータの終わ
りを示す意味でリンクセクタ情報として「FF」をブロ
ックデータの終わりのセクタアドレス4110の次のリ
ンクセクタ情報欄jに記録しておく。このようにして、
RAM22上の割当テーブルFATが作成され又は更新
される(ステップS7)
In this case, the allocation table F on the RAM 22
Physical sectors 2001 to 2050 shown in AT columns e and f
Also, since the data of 100 sectors from physical sectors 3561 to 4110 shown in columns h and i is originally a set of data, the data next to sector 2050 is stored in sector 3561 in link information column g in the allocation correspondence table FAT. Link sector information "3561" indicating that it is recorded
Write down. In addition, “FF” is recorded in the link sector information column j next to the sector address 4110 at the end of the block data as the link sector information to indicate the end of the set of data. In this way
The allocation table FAT on the RAM 22 is created or updated (step S7).

【0062】なお、欄k〜欄oでは、ホストコンピュー
タ10の論理アドレスとして論理セクタアドレス100
01〜10100までの1ブロックデータの圧縮された
データがディスク1上の物理セクタアドレスである物理
セクタ5001〜5040までに記録されていることが
分かる。この場合、実績圧縮比anはan=2.5であ
る。
In columns k to o, the logical sector address 100 is set as the logical address of the host computer 10.
It can be seen that compressed data of one block data of 01 to 10100 is recorded in physical sectors 5001 to 5040 which are physical sector addresses on the disk 1. In this case, the actual compression ratio an is an = 2.5.

【0063】このようにして更新されたRAM22上の
割当テーブルFATの内容がディスク1のDDSセクタ
#0〜#3の割当テーブルFATの位置に記録される
(ステップS8)ことで、一連の記録手順が終了する。
The contents of the allocation table FAT on the RAM 22 thus updated are recorded at the positions of the allocation table FAT of the DDS sectors # 0 to # 3 of the disk 1 (step S8), and a series of recording procedure is performed. Ends.

【0064】なお、図6に示した状態では、論理セクタ
アドレス4901〜5100で示される一纏まりのブロ
ックデータがディスク1上では、物理セクタアドレス2
001から始まる50セクタ分のデータと物理セクタア
ドレス3561から始まる50セクタ分のデータにディ
スク1上の位置が分割されて記録されている。
In the state shown in FIG. 6, a set of block data represented by the logical sector addresses 4901 to 5100 is the physical sector address 2 on the disk 1.
Positions on the disk 1 are divided and recorded in data for 50 sectors starting from 001 and data for 50 sectors starting from a physical sector address 3561.

【0065】このようにデータがディスク1上の相互に
離れた位置に分割されて記録されていると、ディスク1
からのデータの読み出しの際にシーク時間が余分にかか
り、結果としてアクセス時間が長くなってしまう。
In this way, when the data is divided and recorded at the positions distant from each other on the disc 1, the disc 1 is recorded.
An additional seek time is required when reading data from the memory, resulting in a longer access time.

【0066】そこで、CPU21は、ホストコンピュー
タ10からのアクセスがないときに、割当対応テーブル
FATを参照して、このように、分割されて記録されて
いるブロックデータの記録位置の整理を行うようにす
る。具体的には、例えば、物理セクタアドレス2051
〜2100が空いた場合には、そのアドレスに物理セク
タアドレス3561〜4110の圧縮データを移すよう
にする。また、全く、別のデータの記録位置にその圧縮
データの100セクタ分(2001〜2050の50セ
クタ分と3561〜4110の50セクタ分の合計)を
移すようにしてもよい。このようにしておけば、割当対
応テーブルFATをCPU21が見るときでもアクセス
が容易になる。すなわち、物理セクタアドレス2001
から100セクタ分と指定すれば、論理セクタアドレス
4901〜5100に対する圧縮データの記録アドレス
を指定することができるようになるからである。
Therefore, when there is no access from the host computer 10, the CPU 21 refers to the allocation correspondence table FAT and arranges the recording positions of the block data divided and recorded in this way. To do. Specifically, for example, the physical sector address 2051
If ~ 2100 is empty, the compressed data of the physical sector addresses 3561 to 4110 is moved to that address. Alternatively, 100 sectors of the compressed data (a total of 50 sectors 2001 to 2050 and a total of 50 sectors 3561 to 4110) may be moved to another data recording position. By doing so, access becomes easy even when the CPU 21 views the allocation correspondence table FAT. That is, the physical sector address 2001
This is because if 100 sectors are designated, the recording addresses of the compressed data with respect to the logical sector addresses 4901 to 5100 can be designated.

【0067】なお、上記実施例において光ディスク1と
しては書換可能な光磁気(MO)ディスクとしている
が、磁気ディスクであるハードディスクにも適用できる
ことはもちろんである。また、追記型の1回だけ書き込
めるWORM(ライトワンスリードマルチプル)ディス
クに適用する場合には、全く別のデータの記録位置に移
す処理を行うことができるが、この処理を行うとデータ
の記録容量の残りが少なくなってしまうので、通常、こ
の処理は行わないが(行ってもよい。)、割当対応テー
ブルFATをディスク1に記録する技術は適用すること
ができる。
Although the rewritable magneto-optical (MO) disk is used as the optical disk 1 in the above embodiment, it is needless to say that the present invention can be applied to a hard disk which is a magnetic disk. When applied to a WORM (write once read multiple) disc that can be written only once, it is possible to perform a process of moving to a completely different data recording position. However, this process is not normally performed (may be performed), but the technique of recording the allocation correspondence table FAT on the disk 1 can be applied.

【0068】次に、読み出しの手順について説明する。Next, the reading procedure will be described.

【0069】光ディスクドライブ11の電源がオン状態
にされたときに(ステップS11)、DDSセクタ#0
〜#3、PDLセクタ#0〜#3及びSDLセクタ#0
〜#3がRAM22中に読み込まれる。したがって、こ
のとき、割当対応テーブルFATもRAM22中に読み
込まれることになる(ステップS12)。
When the optical disk drive 11 is powered on (step S11), the DDS sector # 0
To # 3, PDL sectors # 0 to # 3 and SDL sector # 0
~ # 3 is read into the RAM 22. Therefore, at this time, the allocation correspondence table FAT is also read into the RAM 22 (step S12).

【0070】次に、ホストコンピュータ10から読み出
し要求、すなわち、リードコマンドが発行された場合に
は(ステップS13)、RAM22内の割当対応テーブ
ルFATを参照して(ステップS14)、その割当テー
ブルFATにより読み出し要求に係る論理アドレスを物
理アドレスに変換する(ステップS15)。
Next, when a read request, that is, a read command is issued from the host computer 10 (step S13), the allocation correspondence table FAT in the RAM 22 is referred to (step S14), and the allocation table FAT is used. The logical address related to the read request is converted into a physical address (step S15).

【0071】この変換を具体的に説明する。ホストコン
ピュータ10が管理する論理セクタアドレス4901か
ら200セクタ分の一纏まりのデータのリードコマンド
が発行された場合に、CPU21はRAM22内の割当
対応テーブルFATを参照して、その論理セクタアドレ
ス4901から200セクタ分の一纏まりのデータの論
理アドレスを、ディスク1上に記録されている物理セク
タアドレス2001から50セクタ分及び物理セクタア
ドレス3561から50セクタ分を表す物理アドレスに
変換する。
This conversion will be specifically described. When a read command for a set of data for 200 sectors from the logical sector addresses 4901 managed by the host computer 10 is issued, the CPU 21 refers to the allocation correspondence table FAT in the RAM 22 and refers to the logical sector addresses 4901 to 200. A logical address of a set of data for sectors is converted into physical addresses representing 50 sectors from physical sector addresses 2001 and physical sectors addresses 3561 recorded on the disk 1 to 50 sectors.

【0072】そして、この物理アドレスに基づいて、ま
ず、ディスク1の物理セクタアドレス2001から50
セクタ分に記録されている圧縮データを光ピックアップ
29で読み出し(ステップS16)、それを伸長手段1
4により圧縮データを伸長する。伸長データ、言い換え
れば、圧縮前のデータに対応するデータを、一旦、デー
タバッファ25に格納する。次に、残りの物理セクタア
ドレス35561から50セクタ分の圧縮データを同様
に伸長してデータバッファ25に格納する(ステップS
17)。
Based on this physical address, first, physical sector addresses 2001 to 50 of the disk 1 are recorded.
The compressed data recorded in the sectors is read by the optical pickup 29 (step S16), and the decompressing means 1 reads it.
4, the compressed data is expanded. Decompressed data, in other words, data corresponding to data before compression is temporarily stored in the data buffer 25. Next, the compressed data for 50 sectors from the remaining physical sector address 35561 is similarly decompressed and stored in the data buffer 25 (step S
17).

【0073】このデータバッファ25に格納した圧縮前
データに対応するデータを一纏まりのデータとしてバッ
ファコントローラ24、ホストインタフェース20を通
じてホストコンピュータ10に転送する(ステップS1
8)。以上で読み出しの手順が終了する。
The data corresponding to the uncompressed data stored in the data buffer 25 is transferred to the host computer 10 through the buffer controller 24 and the host interface 20 as a set of data (step S1).
8). This completes the reading procedure.

【0074】次に他の実施例について説明する。Next, another embodiment will be described.

【0075】ホストコンピュータ10からディスク1上
の残りのデータ記録容量を確認するリードキャパシティ
コマンドが発行された場合、通常、CPU21は、予め
分かっているユーザエリアUEの全データ記録サイズ
〔これは、例えば、プリピットとしでディスク1上の適
当なエリアに予め記録されているデータ(ユーザエリア
UEのトラック数とトラック当たりのセクタ数)から算
出できる。〕からRAM22中の割当対応テーブルFA
Tのディスク上でのデータ管理情報欄を参照した使用済
み物理セクタアドレスを差し引くことにより、残りの、
言い換えれば、未記録の物理データ記録容量(X[k
B]とし、以下、単にXkBとする。)を算出すること
ができる。
When a read capacity command for confirming the remaining data recording capacity on the disk 1 is issued from the host computer 10, the CPU 21 normally causes the CPU 21 to know the total data recording size of the user area UE [this is: For example, it can be calculated from the data (the number of tracks in the user area UE and the number of sectors per track) that is recorded in advance in an appropriate area on the disc 1 as a prepit. ] To the allocation correspondence table FA in the RAM 22
By subtracting the used physical sector address referring to the data management information column on the disk of T, the remaining
In other words, the unrecorded physical data recording capacity (X [k
B], and hereinafter simply referred to as XkB. ) Can be calculated.

【0076】そして、予想圧縮率nf×残りの物理デー
タ記録容量X=残りの論理データ記録容量Y、の計算を
行って、計算結果の残りの論理データ記録容量YをY=
nf・XkBとしてホストコンピュータ10に知らせ
る。
Then, the expected compression rate nf × remaining physical data recording capacity X = remaining logical data recording capacity Y is calculated, and the remaining logical data recording capacity Y of the calculation result is Y =
Notify the host computer 10 as nf.XkB.

【0077】これにより、ホストコンピュータ10は、
現時点では、最大限、この残りの論理データ記録容量Y
分のデータをディスク1に記録することができると認識
できる。この実施例では、予想圧縮率nfはnf=2と
されている。
As a result, the host computer 10
At present, the maximum is the remaining logical data recording capacity Y
It can be recognized that minute data can be recorded on the disc 1. In this embodiment, the expected compression rate nf is nf = 2.

【0078】しかしながら、可逆符号化でのデータ圧縮
においては、データ圧縮率は一定ではなく、圧縮した後
でなければ正確なデータ圧縮率が判明しないため、(n
f・X=Y)でディスク1上の残りのデータ記録容量を
管理していた場合、ホストコンピュータ10が、例え
ば、残りの最大限の圧縮前のデータYと同容量(同サイ
ズ)のデータを光ディスクドライブ装置11に転送して
きた場合、このデータの実績圧縮率afが予想圧縮率n
f未満の値であった場合には、転送されてきた圧縮前の
データの全てをディスク1に記録することができなくな
るという事態が発生する。
However, in the data compression by the lossless encoding, the data compression rate is not constant and the accurate data compression rate cannot be known until after the compression.
If the remaining data recording capacity on the disk 1 is managed by f · X = Y), the host computer 10 may, for example, set the remaining maximum uncompressed data Y to the same capacity (same size) as the data Y. When the data is transferred to the optical disk drive device 11, the actual compression rate af of this data is the expected compression rate n.
If the value is less than f, there occurs a situation in which all the transferred data before compression cannot be recorded on the disc 1.

【0079】そこで、これを回避するために、予想圧縮
率nfより実績圧縮率afが小さくなった場合で、圧縮
後のデータのサイズが残りの物理的なデータ記録容量X
以上のときに、この圧縮後にあふれてしまうデータを記
録するための特別の記録エリアを予めディスク1上に設
けておく。この特別の記録エリアは、例えば、ユーザエ
リアUEの最後トラック9947のセクタ24から前に
100セクタ分もどった記録エリアとする。この100
セクタ分は、CPU1が残りの論理データ記録容量Yを
計算するときに残りの物理データ記録容量Xから差し引
いておく、ホストコンピュータ10には、隠しておく記
録エリア(容量)である。
Therefore, in order to avoid this, when the actual compression rate af becomes smaller than the expected compression rate nf, the size of the compressed data is the remaining physical data recording capacity X.
In the above case, a special recording area for recording the data overflowing after the compression is provided on the disc 1 in advance. This special recording area is, for example, a recording area 100 sectors back from the sector 24 of the last track 9947 of the user area UE. This 100
The sector portion is a recording area (capacity) to be hidden in the host computer 10, which is subtracted from the remaining physical data recording capacity X when the CPU 1 calculates the remaining logical data recording capacity Y.

【0080】なお、通常、交替エリアAEは、ユーザエ
リアUEが全て使用された場合においても、なお、十分
にエリアが残っているように設計されているので、上記
隠しておく記録エリアをこの余っている交替エリアAE
としてもよい。このようにすれば、ユーザエリアUEの
記録容量が小さくなることがなくなる。
Incidentally, since the replacement area AE is usually designed so that even when the user area UE is completely used, there is still a sufficient area remaining, so the above-mentioned recording area to be hidden is left over. Replacement area AE
May be By doing so, the recording capacity of the user area UE does not become small.

【0081】また、転送されてきた圧縮前のデータYの
全てをディスク1に記録することができなくなるという
事態を回避するための他の技術として、ホストコンピュ
ータ10からリード・キャパシティ・コマンドが発行さ
れた場合、ディスク1上の物理的な未記録データ記録容
量の減少に対応して予想圧縮率nfを小さくした見かけ
上の論理データ記録容量をホストコンピュータ10に報
告するようにしてもよい。
As another technique for avoiding a situation in which it becomes impossible to record all the transferred data Y before compression on the disk 1, a read capacity command is issued from the host computer 10. In such a case, the apparent logical data recording capacity in which the expected compression rate nf is reduced in response to the decrease in the physical unrecorded data recording capacity on the disk 1 may be reported to the host computer 10.

【0082】図7は、これを説明するために描いたもの
で、物理的な未記録データ容量Yが最大記録容量から一
定値までは予想圧縮率nfをnf=2とし、その一定値
から物理的な未記録データ容量0に向かって予想圧縮率
nfを徐々に小さくするようにしている。例えば、物理
的な未記録データ容量Yが10MB残っている場合に
は、ホストコンピュータ10に対して20MB残ってい
ると報告するが、1MBしか残っていない場合には、
1.5MB残っていると報告することが考えられる。こ
のようにすれば、ホストコンピュータ10から残りの未
記録データ容量Yの最大限のデータが送られた場合にも
圧縮後のデータが光ディスクドライブ11からあふれて
しまう確率を小さくすることができる。
FIG. 7 is drawn to explain this. When the physical unrecorded data capacity Y is from the maximum recording capacity to a constant value, the expected compression rate nf is nf = 2, and the physical compression is performed from the constant value. The expected compression rate nf is gradually reduced toward the unrecorded data capacity of 0. For example, when the physical unrecorded data capacity Y remains 10 MB, it is reported to the host computer 10 that 20 MB remains, but when only 1 MB remains,
It is possible to report that 1.5 MB remains. This makes it possible to reduce the probability that the compressed data will overflow from the optical disk drive 11 even when the maximum amount of the remaining unrecorded data capacity Y is sent from the host computer 10.

【0083】なお、予想圧縮率nfの値は、実績圧縮率
afを記憶しておいて、次回のアクセスの際にはこの記
憶しておいた実績圧縮率afに置き換えてもよいことは
勿論である。その意味で予想圧縮率nfについてもディ
スク1のDDSセクタに記録しておいてこれを更新する
ように制御してもよい。
As the value of the expected compression rate nf, the actual compression rate af may be stored and replaced with the stored actual compression rate af at the next access. is there. In that sense, the expected compression rate nf may be recorded in the DDS sector of the disk 1 and controlled so as to be updated.

【0084】なお、この発明は上記の実施例に限らずこ
の発明の要旨を逸脱することなく種々の構成を採り得る
ことはもちろんである。
The present invention is not limited to the above-mentioned embodiments, and it goes without saying that various configurations can be adopted without departing from the gist of the present invention.

【0085】[0085]

【発明の効果】以上説明したように、第1のこの発明に
よれば、データ圧縮手段により可逆符号化で圧縮された
圧縮データをディスクに記録するに際し、ホストコンピ
ュータから受け取った圧縮前データの論理アドレスと、
ディスクに記録される圧縮後データの物理アドレスとを
対応させた割当対応テーブルをディスク上に記録する
共に、ディスクドライブ装置本体における予想圧縮率よ
り実績圧縮率が小さくなった場合に、圧縮後のデータの
サイズが残りのデータ記録容量以上のときのみ、この圧
縮後のデータを記録するための特別の記録エリアを予め
ディスク上に設けておくようにしている。これにより、
ホストコンピュータからの論理アドレスを、この割当対
応テーブルの内容を参照することにより、ディスクドラ
イブ装置が管理するディスク上の物理アドレスに容易に
変換することができる。したがって、ディスクドライブ
装置上でのデータ圧縮機能が効率的に運用できるように
なり、かつデータ圧縮率が一定でない圧縮データの効率
的な管理が可能になると共に、圧縮率が予想より小さい
場合にもデータを失う可能性がほとんどないという効果
が達成される。
As described above, according to the first aspect of the present invention, when the compressed data compressed by the data compression means by the lossless encoding is recorded on the disk, the logic of the uncompressed data received from the host computer is used. Address,
If the allocation correspondence table and a physical address of data after compression to be recorded on the disc is made to correspond to recorded on the disk
Both when it becomes smaller actual compression ratio than expected compression ratio definitive in the disk drive unit main body, the size of data after compression when more remaining data recording capacity only, special for recording data after compression The recording area of is recorded on the disc in advance. This allows
The logical address from the host computer can be easily converted into the physical address on the disk managed by the disk drive device by referring to the contents of this allocation correspondence table. Therefore, the data compression on the disc drive device is able to operate efficiently, and with the data compression ratio allows for efficient management of the compressed data not constant, when the compression ratio is small Ri by expected The effect is achieved that there is almost no possibility of losing data.

【0086】第2のこの発明によれば、割当対応テーブ
ルの内容を非圧縮データで記録しておくようにしてい
る。したがって、割当対応テーブルの内容を読み出して
短時間で理解することができる。言い換えれば、アクセ
スの高速化に資することができるという効果が得られ
る。
According to the second aspect of the present invention, the contents of the allocation correspondence table are recorded as uncompressed data. Therefore, the contents of the allocation correspondence table can be read and understood in a short time. In other words, there is an effect that it can contribute to speeding up of access.

【0087】[0087]

【0088】 第のこの発明によれば、特別の記録エ
リアを交替エリアとしている。したがって、ディスクを
効率よく使用することができるという効果が達成され
る。
According to the third aspect of the invention, the special recording area is used as the replacement area. Therefore, the effect that the disc can be used efficiently is achieved.

【0089】 第のこの発明によれば、上記ホストコ
ンピュータからのアクセスがない場合に、割当対応テー
ブルを利用して、書換可能なディスクに記録されている
圧縮データの記録位置の整理を行うようにしている。こ
のようにすれば、この後のアクセスの高速化が図れると
いう効果が得られる。
According to the fourth aspect of the present invention, when there is no access from the host computer, the allocation correspondence table is used to organize the recording positions of the compressed data recorded on the rewritable disc. I have to. By doing so, it is possible to obtain the effect that the subsequent access can be speeded up.

【0090】 第のこの発明によれば、ホストコンピ
ュータからディスク上の残りのデータ記録容量の確認コ
マンドが発行された場合、ディスク上の未記録データ記
録容量の減少に対応して予想圧縮率を小さくした見かけ
上のデータ記録容量をホストに報告するようにしてい
る。したがって、圧縮率が予想より小さい場合にもデー
タを失う可能性がほとんどないという効果が得られる。
According to the fifth aspect of the present invention, when the host computer issues a confirmation command of the remaining data recording capacity on the disc, the expected compression ratio is set in accordance with the decrease in the unrecorded data recording capacity on the disc. The reduced apparent data recording capacity is reported to the host. Therefore, there is almost no possibility of losing data even when the compression rate is smaller than expected.

【0091】[0091]

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

【図1】この発明の一実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】ディスクの記録フォーマットの例を示す線図で
ある。
FIG. 2 is a diagram showing an example of a recording format of a disc.

【図3】DDSセクタの記録内容の説明に供される線図
である。
FIG. 3 is a diagram provided for explaining recorded contents of a DDS sector.

【図4】割当対応テーブルの作成の説明に供されるフロ
ーチャートである。
FIG. 4 is a flowchart used to explain the creation of an allocation correspondence table.

【図5】割当対応テーブルの使用の説明に供されるフロ
ーチャートである。
FIG. 5 is a flowchart provided for explaining the use of the allocation correspondence table.

【図6】割当対応テーブルの内容を示す線図である。FIG. 6 is a diagram showing the contents of an allocation correspondence table.

【図7】他の実施例の動作説明に供される線図である。FIG. 7 is a diagram used for explaining the operation of another embodiment.

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

1 光ディスク 10 ホストコンピュータ 11 光ディスクドライブ 13 圧縮手段 14 伸長手段 FAT 割当対応テーブル 1 optical disc 10 Host computer 11 Optical disk drive 13 compression means 14 Extension means FAT allocation correspondence table

フロントページの続き (56)参考文献 特開 平2−42685(JP,A) 特開 平5−242477(JP,A) 特開 平5−346879(JP,A) 特開 平5−122655(JP,A) (58)調査した分野(Int.Cl.7,DB名) G11B 20/10 Continuation of front page (56) Reference JP-A-2-42685 (JP, A) JP-A-5-242477 (JP, A) JP-A-5-346879 (JP, A) JP-A-5-122655 (JP , A) (58) Fields investigated (Int.Cl. 7 , DB name) G11B 20/10

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ホストコンピュータから供給される圧縮
前データを可逆符号化圧縮技術により圧縮データに変換
するデータ圧縮手段を有し、 上記圧縮データをディスクに記録するに際し、上記ホス
トコンピュータから受け取った圧縮前データの論理アド
レスと、該ディスクに記録される圧縮後データの物理ア
ドレスとを対応させた割当対応テーブルを該ディスク上
に記録すると共に、 前記ディスクドライブ装置本体における予想圧縮率より
実績圧縮率が小さくなった場合 に、圧縮後のデータのサ
イズが残りのデータ記録容量以上のときのみ、この圧縮
後のデータを記録するための特別の記録エリアを予め前
記ディスク上に設けておくことを特徴とするディスクド
ライブ装置。
1. A data compression means for converting uncompressed data supplied from a host computer into compressed data by a reversible coding compression technique, and the compression received from the host computer when the compressed data is recorded on a disk. the logical address before the data, the allocation correspondence table showing the correspondence between the physical address of the data after compression to be recorded on the disc and records on the disk, than expected compression ratio in said disk drive main body
When the actual compression rate becomes small, a special recording area for recording the compressed data is provided in advance on the disc only when the size of the compressed data is equal to or larger than the remaining data recording capacity. A disk drive device characterized in that
【請求項2】 前記割当対応テーブルの記録内容が非圧
縮データであることを特徴とする請求項記載のディス
クドライブ装置。
2. A disk drive apparatus according to claim 1, wherein the recorded contents of the allocation correspondence table is non-compressed data.
【請求項3】 前記特別の記録エリアを交替エリアとし
たことを特徴とする請求項記載のディスクドライブ装
置。
3. The disk drive device according to claim 2, wherein the special recording area is a replacement area.
【請求項4】 前記ディスクが書換可能なディスクであ
って、前記ホストコンピュータからのアクセスがない場
合に、すでに該ディスクに記録されている圧縮データの
記録位置の整理を、前記割当対応テーブルを利用して行
うようにしたことを特徴とする請求項1乃至請求項
載のいずれか1項に記載のディスクドライブ装置。
4. When the disk is a rewritable disk and there is no access from the host computer, the allocation correspondence table is used to organize the recording positions of the compressed data already recorded on the disk. The disk drive device according to any one of claims 1 to 3 , wherein the disk drive device is performed as described above.
【請求項5】 前記ホストコンピュータからディスク上
の残りのデータ記録容量の確認コマンドが発行された場
合、該ディスク上の未記録データ記録容量の減少に対応
して予想圧縮率を小さくした見かけ上のデータ記録容量
を該ホストコンピュータに報告するようにしたことを特
徴とする請求項1乃至請求項記載のいずれか1項に記
載のディスクドライブ装置。
5. When the host computer issues a command for confirming the remaining data recording capacity on the disk, the apparent compression rate is reduced in response to the decrease in the unrecorded data recording capacity on the disk. The disk drive device according to any one of claims 1 to 4 , wherein the data recording capacity is reported to the host computer.
JP04421694A 1994-03-15 1994-03-15 Disk drive device Expired - Fee Related JP3477800B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04421694A JP3477800B2 (en) 1994-03-15 1994-03-15 Disk drive device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04421694A JP3477800B2 (en) 1994-03-15 1994-03-15 Disk drive device

Publications (2)

Publication Number Publication Date
JPH07254228A JPH07254228A (en) 1995-10-03
JP3477800B2 true JP3477800B2 (en) 2003-12-10

Family

ID=12685355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04421694A Expired - Fee Related JP3477800B2 (en) 1994-03-15 1994-03-15 Disk drive device

Country Status (1)

Country Link
JP (1) JP3477800B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006115005A1 (en) * 2005-04-20 2006-11-02 Konica Minolta Photo Imaging, Inc. Control program and recording device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5303714B2 (en) * 2010-12-20 2013-10-02 日立コンシューマエレクトロニクス株式会社 Optical disc recording method and reproducing method
JP2012104218A (en) * 2011-12-26 2012-05-31 Hitachi Ltd Recording method and reproducing method of optical disk

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006115005A1 (en) * 2005-04-20 2006-11-02 Konica Minolta Photo Imaging, Inc. Control program and recording device

Also Published As

Publication number Publication date
JPH07254228A (en) 1995-10-03

Similar Documents

Publication Publication Date Title
CN100583247C (en) Method and apparatus for recording/playback of data to/from an optical recording medium
RU2228547C2 (en) Disk recording device and disk-saved data reproducing device
US20040267777A1 (en) File management method, recording apparatus, reproducing apparatus, and recording medium
WO2001065374A1 (en) File managing method and data recorder using the same, data reproducing apparatus, data recording/reproducing apparatus, and disk recorded by the file managing method
US5872955A (en) Method and apparatus for reading and writing data in a disk drive system
JP3477800B2 (en) Disk drive device
KR100659915B1 (en) Method and apparatus for transferring data
JP2009026349A (en) Video recording / reproducing method and apparatus
JPH05128734A (en) Data recording/reproducing method for magneto-optical disk device
CN100583272C (en) Recording and reproducing device and recording method
JP2001243107A (en) AV data recording apparatus and method, or disk recorded by the AV data recording apparatus and method
JP3030949B2 (en) Digital data recording / reproducing device
JP4269915B2 (en) Recording / reproducing apparatus and method, and recording / reproducing system
JP2001325135A (en) Device and method for storing/reproducing data
JP2001338484A (en) Data recording medium and data reproducing device applying the medium
CN101286347B (en) Recording method and reproduction method
JPH10289528A (en) Optical disk recording device
JP2784650B2 (en) Optical disk storage management method
JPH08249129A (en) Information recording / reproducing device
JPH08328748A (en) Disk drive device
HK1069666B (en) Method and apparatus for writing or reproducing a data to/from recording medium
HK1061299B (en) A method for writing or reproducing a data to/from an optical recording medium
JPH0554537A (en) Digital data recording and reproducing device
JPH0736626A (en) Storage controller
JPH07271515A (en) Recording / playback device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees