JP2005050383A - File data storage control method, file data storage device, program for executing process for storing file data, and storage medium - Google Patents

File data storage control method, file data storage device, program for executing process for storing file data, and storage medium Download PDF

Info

Publication number
JP2005050383A
JP2005050383A JP2004322082A JP2004322082A JP2005050383A JP 2005050383 A JP2005050383 A JP 2005050383A JP 2004322082 A JP2004322082 A JP 2004322082A JP 2004322082 A JP2004322082 A JP 2004322082A JP 2005050383 A JP2005050383 A JP 2005050383A
Authority
JP
Japan
Prior art keywords
unit
data
file data
stored
real
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.)
Granted
Application number
JP2004322082A
Other languages
Japanese (ja)
Other versions
JP3717922B2 (en
Inventor
Yuichi Kanai
雄一 金井
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2004322082A priority Critical patent/JP3717922B2/en
Publication of JP2005050383A publication Critical patent/JP2005050383A/en
Application granted granted Critical
Publication of JP3717922B2 publication Critical patent/JP3717922B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently execute storage of real-time file data having large capacity while restraining fragmentation generated by repeating storage and erasure of file data having small capacity. <P>SOLUTION: A unit is composed of a plurality of continuous blocks other than blocks depending on a physical storage unit. The unit is set at capacity with real-time processing assured. Real-time file data such as image data are stored by unit. Data are stored by block for data processed in non-real time. A unit control table for controlling a unit is arranged, and whether the unit is usable or not in recording it is determined based on the unit management table. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、ファイルデータ記憶管理方法、ファイルデータ記憶装置、ファイルデータを記憶するための処理を実行するプログラムおよび記憶媒体に関し、特に、リアルタイムファイルデータと非リアルタイムファイルデータを効率的に記憶し得るものである。   The present invention relates to a file data storage management method, a file data storage device, a program for executing processing for storing file data, and a storage medium, and in particular, can efficiently store real-time file data and non-real-time file data. It is.

一つのファイルを構成するデータ(以下、ファイルデータという)を記憶媒体に記憶する場合、記憶媒体の記憶領域を所定の同一容量に分割したブロックに対してファイルデータを割り当てる方法がとられる。このファイル記憶方法では、ブロック管理テーブルによって、各ブロックの使用/未使用が管理されている。   When data constituting one file (hereinafter referred to as file data) is stored in a storage medium, a method of assigning file data to a block obtained by dividing the storage area of the storage medium into a predetermined same capacity is employed. In this file storage method, use / unuse of each block is managed by a block management table.

ファイルデータの記憶は、このブロック管理テーブルを参照して未使用ブロックを検索し、ファイルデータの容量に従って複数の未使用ブロックをデータ記憶用として割り当てることにより行われる。この際、どのブロックを用いてファイル情報を記憶したかを示すファイル構成テーブルが作成される。このファイル構成テーブルとしては、例えば、FAT(File Allocation Table)などが用いられる。FATはファイルを構成するブロックの物理的な繋がりを規定するものである。具体的には、ブロックに付されたユニークなブロック番号を用いて、記憶領域の全てのブロックに対し、そのブロック番号とそのブロックと論理的に続くブロックの番号とを対応づけるテーブルが作成される。
特開2001−265628号公報 特開平8−101783号公報
File data is stored by searching for unused blocks with reference to this block management table and allocating a plurality of unused blocks for data storage in accordance with the capacity of the file data. At this time, a file configuration table indicating which block is used to store the file information is created. As this file configuration table, for example, a FAT (File Allocation Table) is used. FAT defines the physical connection of blocks constituting a file. Specifically, using a unique block number assigned to a block, a table is created that associates the block number with the number of a logically succeeding block for every block in the storage area. .
JP 2001-265628 A JP-A-8-101783

ブロック長以上の容量を持つファイルデータ、例えば映像やオーディオなどの記憶容量の大きいデータを記憶する場合には、複数のブロックに跨ってファイルデータが格納されることとなる。ここで、記憶媒体上の物理的に非連続な領域に飛び飛びにデータが記憶されると、これらのデータをリアルタイム処理して読出す場合に、ドライブヘッドの移動時間によって、アクセスをスムーズに行なうことができず、連続的なデータ処理が困難になってしまう可能性がある。したがって、このようなリアルタイム処理される大容量データの記憶を考慮すると、一つのブロックの容量を大きく設定し、物理的に連続した領域を少しでも大きく確保
するようにするのが望ましい。
When storing file data having a capacity larger than the block length, for example, data having a large storage capacity such as video and audio, the file data is stored across a plurality of blocks. Here, if data is stored in a physically discontinuous area on the storage medium, when the data is read out in real time, it can be accessed smoothly depending on the movement time of the drive head. Cannot be performed, and continuous data processing may become difficult. Therefore, in consideration of storage of such a large amount of data to be processed in real time, it is desirable to set a large capacity for one block so as to secure a physically continuous area as much as possible.

一方、ファイルのデータ容量は、ファイルの種類によってさまざまであり、ごく小さな文書ファイル等のように、非常にデータ容量の小さいファイルも存在する。   On the other hand, the data capacity of a file varies depending on the type of file, and there is a file with a very small data capacity such as a very small document file.

しかしながら、現状のファイル記憶方法においては、ファイルデータの記憶はブロック単位で実行されるため、1つのブロックに2つ以上のファイルデータを記憶することはできない。したがって、ブロックの容量を大きく取りすぎると、各ブロック内に、実際のデータは記憶されていないが他のファイルのデータを記憶することが不可能な空き領域が増加してしまい、その結果、記憶領域の使用効率が著しく低下してしまうという問題が生じる。   However, in the current file storage method, since file data is stored in units of blocks, two or more file data cannot be stored in one block. Therefore, if the block capacity is too large, there will be an increase in free space in each block where actual data is not stored but data of other files cannot be stored. There arises a problem that the efficiency of use of the region is significantly reduced.

反対に、ブロックの容量を小さくしすぎると、大容量のファイルデータを記録する場合に、リンクされるブロックの数が非常に大きくなり、これらのデータを読出す際のアクセス性能の低下が懸念される。   On the other hand, if the block capacity is too small, the number of linked blocks becomes very large when recording a large amount of file data, and there is a concern that the access performance when reading these data will deteriorate. The

また、データを頻繁に入出力することによって、データの記憶・消去が繰り返されると、物理的に連続した空き領域を確保することが困難となり、いわゆるフラグメンテーション(断片化)が生じるという問題点も起こり得る。   In addition, when data is repeatedly stored and erased by frequently inputting and outputting data, it becomes difficult to secure a physically continuous free space, and so-called fragmentation occurs. obtain.

図14に、記憶媒体に対するファイルデータの割り当ての一例と、その際のブロック管理テーブルおよび各ブロックの使用状態を示す。同図のブロック管理テーブル中、1はそのブロックが使用されている状態、0はそのブロックが未使用の状態を示す。また、図中のハッチ部30xが使用ブロック、無地部30yが未使用の空きブロックである。図14では、空ブロックが点在しており、フラグメンテーションが発生している。   FIG. 14 shows an example of file data allocation to a storage medium, and a block management table and a usage state of each block at that time. In the block management table of FIG. 1, 1 indicates that the block is used, and 0 indicates that the block is not used. In the figure, hatched portions 30x are used blocks, and plain portions 30y are unused empty blocks. In FIG. 14, empty blocks are scattered and fragmentation occurs.

これに対し、例えば図15に示すように、4つのブロックを一つのブロックとみなすように管理テーブルを構成することもできる。このようにブロック管理テーブルで扱うデータ容量を大きくすることで、前述のフラグメンテーションの問題をある程度解決することができる。しかしこのようにすると、前述したように、記憶領域の使用効率が著しく低下することとなる。   On the other hand, as shown in FIG. 15, for example, the management table can be configured so that four blocks are regarded as one block. Thus, by increasing the data capacity handled in the block management table, the above-mentioned fragmentation problem can be solved to some extent. However, in this case, as described above, the use efficiency of the storage area is significantly reduced.

そこで、本発明は、かかる問題を解消し、リアルタイムファイルの記憶再生に適したファイルデータの割り当てを行いながら、同時に、フラグメンテーションの発生を抑制することにより、容量の小さいファイルデータをも効率的に記憶再生し得るデータ記憶方法を提供することを目的としている。   Accordingly, the present invention solves such a problem and efficiently stores even small file data by suppressing the occurrence of fragmentation while allocating file data suitable for storage and reproduction of real-time files. An object of the present invention is to provide a reproducible data storage method.

本発明は、連続した複数のブロックからユニットを構成し、このユニットの属性をユニット属性テーブルによって管理するものである。このユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含んでいる。   In the present invention, a unit is composed of a plurality of continuous blocks, and attributes of the unit are managed by a unit attribute table. This unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored.

記憶されるファイルデータがリアルタイムデータである場合、前記ユニット属性テーブルを参照して、リアルタイムデータが記憶可能な未使用のユニットを検索し、検索されたユニットに含まれる前記ブロックにこのファイルデータが記憶される。また、記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを検索し、この検索により獲得されたユニットに含まれる未使用のブロックを前記ブロック管理テーブルを参照して検索し、この検索により獲得されたブロックにこのファイルデータを記憶される。   When the stored file data is real-time data, the unit attribute table is referenced to search for an unused unit capable of storing real-time data, and this file data is stored in the block included in the searched unit. Is done. If the stored file data is non-real time data, the unit attribute table is referred to search for a unit in which the non-real time data is already stored in some blocks in the unit. An unused block included in the acquired unit is searched with reference to the block management table, and the file data is stored in the block acquired by this search.

このように、記憶されるファイルデータがリアルタイムデータであるか非リアルタイムデータによって、記録処理を変更することにより、未使用のユニット数を増加させることができ、よって、効率的にリアルタイムデータの記憶を行うことができるようになる。   In this way, the number of unused units can be increased by changing the recording process depending on whether the stored file data is real-time data or non-real-time data, so that real-time data can be efficiently stored. Will be able to do.

本発明の一つの局面は、たとえば、ブロックにデータが記憶されているか否かを管理するブロック管理テーブルと、連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルと、前記ユニット属性テーブルに基づいてファイルデータを記憶するデータ記憶処理とを含むファイルデータ記憶方法として把握することができる。   One aspect of the present invention is, for example, a block management table for managing whether or not data is stored in a block, a unit attribute table for managing attributes of a unit composed of a plurality of consecutive blocks, and the unit It can be understood as a file data storage method including data storage processing for storing file data based on the attribute table.

ここで、ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含むものである。また、データ記憶処理は、記憶されるファイルデータがリアルタイムデータである場合、前記ユニット属性テーブルを参照して、リアルタイムデータが記憶可能な未使用のユニットを検索し、検索されたユニットに含まれる前記ブロックにこのファイルデータを記憶し、記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを検索し、この検索により獲得されたユニットに含まれる未使用のブロックを前記ブロック管理テーブルを参照して検索し、この検索により獲得されたブロックにこのファイルデータを記憶する処理を含む。   Here, the unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored. In the data storage process, when the stored file data is real-time data, the unit attribute table is referenced to search for an unused unit that can store real-time data, and the unit included in the searched unit When this file data is stored in a block, and the stored file data is non-real time data, the unit attribute table is referred to and the non-real time data is already stored in some blocks in the unit And searching for unused blocks included in the unit acquired by this search with reference to the block management table, and storing the file data in the block acquired by this search.

本発明の他の局面は、たとえば、ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成するための手段と、連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルを生成するための手段と、前記ユニット属性テーブルに基づいてファイルデータを記憶する処理を実行するための手段とを含むファイルデータ記憶装置として把握することができる。   Another aspect of the present invention is, for example, a unit for generating a block management table for managing whether or not data is stored in a block, and a unit for managing attributes of a unit composed of a plurality of consecutive blocks It can be understood as a file data storage device including means for generating an attribute table and means for executing processing for storing file data based on the unit attribute table.

本発明のさらに他の局面は、たとえば、ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成する処理と、連続した複数の前記ブロックからユニットを構成し、且つ、各ユニットの属性を管理するユニット属性テーブルを生成する処理と、前記ユニット属性テーブルに基づいてファイルデータを記憶するデータ記憶処理を含む処理を実行するためのプログラムとして把握することもできる。   Still another aspect of the present invention provides, for example, a process of generating a block management table for managing whether or not data is stored in a block, a unit composed of a plurality of consecutive blocks, and each unit It can also be grasped as a program for executing processing including processing for generating a unit attribute table for managing attributes and data storage processing for storing file data based on the unit attribute table.

本発明のさらに他の局面は、たとえば、主データの他に、少なくとも、前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルと、連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルが記憶された記憶媒体として把握することもできる。   Still another aspect of the present invention is, for example, in addition to main data, at least a block management table for managing whether or not data is stored in the block, and an attribute of a unit composed of a plurality of consecutive blocks Can be grasped as a storage medium storing a unit attribute table for managing

本発明の前記ならびにその他の目的と新規な特徴は、以下に示す実施の形態の説明を添付図面と照らし合わせて読むと、より完全に明らかとなるであろう。   The above and other objects and novel features of the present invention will become more fully apparent when the following description of the embodiments is read in conjunction with the accompanying drawings.

本発明の請求項における「ブロック」は、実施形態においては、「ブロック」に相当する。また、本発明の請求項における「ユニット」は、実施形態においては、「ユニット」に相当する。 また、本発明の請求項における「ブロック管理テーブル」は、実施形態においては、「ブロック管理テーブル210」に相当する。また、本発明の請求項における「ユニット属性テーブル」は、実施形態においては、「ユニット管理テーブル211」に相当する。また、本発明の請求項における「記憶媒体」は、実施形態においては、「ハードディスクドライブ118
(これに内蔵されたハードディスク)」に相当する。
The “block” in the claims of the present invention corresponds to the “block” in the embodiment. Further, “unit” in the claims of the present invention corresponds to “unit” in the embodiment. The “block management table” in the claims of the present invention corresponds to the “block management table 210” in the embodiment. The “unit attribute table” in the claims of the present invention corresponds to the “unit management table 211” in the embodiment. The “storage medium” in the claims of the present invention is “hard disk drive 118” in the embodiment.
(Hard disk built in it).

ただし、以下の実施の形態は、あくまでも、本発明の一つの実施形態であって、本発明ないし各構成要件の用語の意義は、以下の実施の形態に記載されたものに制限されるものではない。   However, the following embodiment is merely one embodiment of the present invention, and the meaning of the term of the present invention or each constituent element is not limited to that described in the following embodiment. Absent.

本発明のファイル記録管理方法によれば、リアルタイムファイルの再生に適したファイルアロケーションを行い、かつ、サイズの小さいデータによる記憶領域のフラグメンテーションの発生を抑制することができ、記憶領域の使用効率を向上させることができる。   According to the file recording management method of the present invention, file allocation suitable for reproduction of a real-time file can be performed, and occurrence of fragmentation of the storage area due to small-sized data can be suppressed, and the use efficiency of the storage area is improved. Can be made.

以下、本発明の実施の形態について図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の一実施形態におけるデジタル記録再生装置の全体構成を示すブロック図である。なお、図1において、太線で示した信号線は、映像および/または音声データの流れを表わす信号線であり、細線で示した信号線は、制御信号の流れを表わす信号線である。   FIG. 1 is a block diagram showing the overall configuration of a digital recording / reproducing apparatus according to an embodiment of the present invention. In FIG. 1, signal lines indicated by bold lines are signal lines representing the flow of video and / or audio data, and signal lines indicated by thin lines are signal lines representing the flow of control signals.

デジタル記録再生装置は、アンテナ100、外部入力端子101、チューナ102および103、セレクタ104、A/Dコンバータ105および106、MPEG2ビデオエンコーダ107および108、オーディオエンコーダ109および110、マルチプレクサ/デマルチプレクサ111、MPEG2ビデオデコーダ112、オーディオデコーダ113、D/Aコンバータ114、バッファメモリ115および116、ハードディスクドライブコントローラモジュール117、ハードディスクドライブ118、システムコントローラ119、メモリ120、ユーザインタフェース121、グラフィックコントローラ122、テレビジ
ョンモニタ123、リアルタイムクロックモジュール124、デジタルインプット125、デジタルアウトプット126、LED127から構成されている。
The digital recording / reproducing apparatus includes an antenna 100, an external input terminal 101, tuners 102 and 103, a selector 104, A / D converters 105 and 106, MPEG2 video encoders 107 and 108, audio encoders 109 and 110, a multiplexer / demultiplexer 111, and MPEG2. Video decoder 112, audio decoder 113, D / A converter 114, buffer memories 115 and 116, hard disk drive controller module 117, hard disk drive 118, system controller 119, memory 120, user interface 121, graphic controller 122, television monitor 123, Real-time clock module 124, digital input 125, digital input And a Toputto 126, LED 127.

図1を参照して、アンテナ100で受信した、例えばテレビジョン放送の信号電波は、チューナ102および103に同時に与えられる。   Referring to FIG. 1, for example, a television broadcast signal wave received by antenna 100 is simultaneously applied to tuners 102 and 103.

チューナ102は、アンテナ100で受信した信号電波から、ユーザによって指定された1つのチャネルの信号電波を選択し、映像信号と音声信号とからなるアナログのテレビジョン信号に復調してセレクタ104の一方入力に与える。セレクタ104の他方入力には、ビデオテープレコーダ(VTR)、カムコーダ等の各種の外部テレビジョン信号源が接続可能な外部入力端子101が接続される。   The tuner 102 selects the signal radio wave of one channel designated by the user from the signal radio wave received by the antenna 100, demodulates it into an analog television signal composed of a video signal and an audio signal, and inputs one of the selectors 104. To give. The other input of the selector 104 is connected to an external input terminal 101 to which various external television signal sources such as a video tape recorder (VTR) and a camcorder can be connected.

セレクタ104は、チューナ102からの出力または外部入力端子101からの入力のいずれかを選択してA/Dコンバータ105に与えるとともに、グラフィックコントローラ122の1つの入力に与える。一般に、セレクタ104は、外部入力端子101に何らかの外部信号源が接続されている場合には、外部入力端子101からの入力を選択し、接続されていない場合にはチューナ102の出力を選択する。   The selector 104 selects either the output from the tuner 102 or the input from the external input terminal 101 and supplies it to the A / D converter 105 and also supplies it to one input of the graphic controller 122. Generally, the selector 104 selects an input from the external input terminal 101 when any external signal source is connected to the external input terminal 101, and selects an output of the tuner 102 when not connected.

A/Dコンバータ105は、セレクタ104から出力されるアナログのテレビジョン信号の映像信号および音声信号をそれぞれデジタル信号に変換し、デジタル映像信号をMPEG2ビデオエンコーダ107に与えるとともに、デジタル音声信号をオーディオエンコーダ109に与える。   The A / D converter 105 converts the video signal and audio signal of the analog television signal output from the selector 104 into digital signals, respectively, and supplies the digital video signal to the MPEG2 video encoder 107, and also converts the digital audio signal into an audio encoder. 109.

MPEG2ビデオエンコーダ107は、与えられたデジタル映像信号を圧縮してマルチプレクサ/デマルチプレクサ111に与え、オーディオエンコーダ109は、与えられたデジタル音声信号を圧縮してマルチプレクサ/デマルチプレクサ111に与える。マルチプレクサ/デマルチプレクサ111は、与えられた映像信号のストリームと音声信号のストリームとをマルチプレクスし、MPEG2のシステムストリームに変換する。   The MPEG2 video encoder 107 compresses the supplied digital video signal and supplies it to the multiplexer / demultiplexer 111, and the audio encoder 109 compresses the supplied digital audio signal and supplies it to the multiplexer / demultiplexer 111. The multiplexer / demultiplexer 111 multiplexes the supplied video signal stream and audio signal stream, and converts them into an MPEG2 system stream.

一方、チューナ103は、アンテナ100で受信した信号電波から、ユーザによって指定された1つのチャネルの信号電波を選択し、映像信号と音声信号とからなるアナログのテレビジョン信号に復調してA/Dコンバータ106に与えるとともに、グラフィックコントローラ122のもう1つの入力に与える。   On the other hand, the tuner 103 selects the signal radio wave of one channel designated by the user from the signal radio wave received by the antenna 100, demodulates it to an analog television signal composed of a video signal and an audio signal, and performs A / D. It is provided to the converter 106 and to the other input of the graphic controller 122.

A/Dコンバータ106は、チューナ103から出力されるアナログのテレビジョン信号の映像信号および音声信号をそれぞれデジタル信号に変換し、デジタル映像信号をMPEG2ビデオエンコーダ108に与えるとともに、デジタル音声信号をオーディオエンコーダ110に与える。   The A / D converter 106 converts a video signal and an audio signal of an analog television signal output from the tuner 103 into digital signals, respectively, and supplies the digital video signal to the MPEG2 video encoder 108, and also converts the digital audio signal into an audio encoder. 110.

MPEG2ビデオエンコーダ108は、与えられたデジタル映像信号を圧縮してマルチプレクサ/デマルチプレクサ111に与え、オーディオエンコーダ110は、与えられたデジタル音声信号を圧縮してマルチプレクサ/デマルチプレクサ111に与える。マルチプレクサ/デマルチプレクサ111は、与えられた映像信号のストリームと音声信号のストリームとをマルチプレクスし、MPEG2のシステムストリームに変換する。   The MPEG2 video encoder 108 compresses the supplied digital video signal and applies it to the multiplexer / demultiplexer 111, and the audio encoder 110 compresses the supplied digital audio signal and supplies it to the multiplexer / demultiplexer 111. The multiplexer / demultiplexer 111 multiplexes the supplied video signal stream and audio signal stream, and converts them into an MPEG2 system stream.

このデジタル記録再生装置には、ランダムアクセス可能な記憶媒体の一例としてのハードディスクを内蔵するハードディスクドライブ(以下、HDD)118が、取外し可能に装着される。以下の説明においては、便宜上この単体のHDD118そのものを書き込み読み出し可能な記憶媒体と見なすことにする。このHDD118へのデータの書込、およびHDD118からのデータの読出は、後述するようにHDDコントローラモジュール117によって実行される。   A hard disk drive (hereinafter referred to as HDD) 118 having a built-in hard disk as an example of a randomly accessible storage medium is detachably mounted on the digital recording / reproducing apparatus. In the following description, this single HDD 118 itself is regarded as a writable / readable storage medium for convenience. The writing of data to the HDD 118 and the reading of data from the HDD 118 are executed by the HDD controller module 117 as described later.

上述のマルチプレクサ/デマルチプレクサ111と、このHDDコントローラモジュール117との間には、バッファメモリ115を途中に含む第1のデータバスと、バッファメモリ116を途中に含む第2のデータバスとからなる2系統のデータチャネルが設けられている。   Between the above-described multiplexer / demultiplexer 111 and the HDD controller module 117, there are a first data bus that includes the buffer memory 115 and a second data bus that includes the buffer memory 116. A system data channel is provided.

さらに、デジタルインプット125を介して外部接続された他の装置からのデジタルデータがバッファメモリ115に入力可能であり、一方バッファメモリ116のデジタルデータは、デジタルアウトプット126を介して外部接続された他の装置へ出力可能である。   Further, digital data from other devices externally connected via the digital input 125 can be input to the buffer memory 115, while the digital data in the buffer memory 116 can be externally connected via the digital output 126. Can be output to other devices.

したがって、後述するように、バッファメモリ115および116を介して、マルチプレクサ/デマルチプレクサ111と、HDDコントローラモジュール117と、デジタルインプット125およびデジタルアウトプット126との間で、MPEG2のシステムストリームデータのやり取りが行なわれることになる。   Therefore, as described later, MPEG2 system stream data is exchanged between the multiplexer / demultiplexer 111, the HDD controller module 117, the digital input 125, and the digital output 126 via the buffer memories 115 and 116. Will be done.

マルチプレクサ/デマルチプレクサ111は、バッファメモリ115および116から受取ったMPEG2のシステムストリームを、映像信号のストリームと音声信号のストリームとにデマルチプレクスし、前者をMPEG2ビデオデコーダ112に、後者をオーディオデコーダ113に与える。   The multiplexer / demultiplexer 111 demultiplexes the MPEG2 system stream received from the buffer memories 115 and 116 into a video signal stream and an audio signal stream, the former being the MPEG2 video decoder 112 and the latter being the audio decoder 113. To give.

MPEG2ビデオデコーダ112は、与えられた映像信号のストリームをデコードしてD/Aコンバータ114に与え、オーディオデコーダ113は、与えられた音声信号のストリームをデコードしてD/Aコンバータ114に与える。D/Aコンバータ114は、与えられた信号をそれぞれアナログ信号に変換し、映像信号と音声信号とからなるアナログのテレビジョン信号をグラフィックコントローラ122のさらにもう1つの入力に与える。   The MPEG2 video decoder 112 decodes the supplied video signal stream and supplies it to the D / A converter 114, and the audio decoder 113 decodes the supplied audio signal stream and supplies it to the D / A converter 114. The D / A converter 114 converts the applied signals into analog signals, and provides an analog television signal composed of a video signal and an audio signal to yet another input of the graphic controller 122.

グラフィックコントローラ122は、セレクタ104と、チューナ103と、D/Aコンバータ114とからそれぞれ与えられたアナログのテレビジョン信号のいずれかを選択して、デジタル記録再生装置の外部に接続されたテレビジョンモニタ123に与える。   The graphic controller 122 selects any one of analog television signals given from the selector 104, the tuner 103, and the D / A converter 114, and is connected to the outside of the digital recording / reproducing apparatus. 123.

マルチプレクサ/デマルチプレクサ111およびグラフィックコントローラ122の動作は、システムコントローラ120から与えられる制御信号によって制御される。   The operations of the multiplexer / demultiplexer 111 and the graphic controller 122 are controlled by a control signal supplied from the system controller 120.

また、このデジタル記録再生装置がデジタルインプット125およびデジタルアウトプット126を介して外部の他の装置と接続されたときに、システムコントローラ119からの制御信号はデジタルインプット125を介して(細線)他の装置のシステムコントローラ(図示せず)に与えられ、そのシステムコントローラからの制御信号は、デジタルアウトプット126を介して(細線)、このデジタル記録再生装置のシステムコントローラ119に与えられる。   When this digital recording / reproducing apparatus is connected to another external device via the digital input 125 and the digital output 126, the control signal from the system controller 119 is sent to the other via the digital input 125 (thin line). A control signal from the system controller (not shown) of the apparatus is supplied to the system controller 119 of the digital recording / reproducing apparatus via a digital output 126 (thin line).

システムコントローラ119には、ユーザインタフェース121と、メモリ120と、リアルタイムクロックモジュール124とが接続される。   A user interface 121, a memory 120, and a real time clock module 124 are connected to the system controller 119.

図1に示したこの発明に係る上記デジタル記録再生装置の記憶、再生、消去等の基本動作原理については、ハードディスクドライブ118に対するファイル記憶方法との関係において後で詳細に説明する。   The basic operation principles such as storage, reproduction, and erasure of the digital recording / reproducing apparatus according to the present invention shown in FIG. 1 will be described in detail later in relation to the file storage method for the hard disk drive 118.

次に、本実施の形態における記憶媒体であるハードディスクに記憶される情報について説明する。   Next, information stored in the hard disk, which is a storage medium in the present embodiment, will be described.

図2に示すように、記憶媒体であるハードディスクにデータをファイルとして記憶する場合、映像や音声などの記憶されるべきデータ自体(以下主データ20という)と、主データ20がファイルとして構成されるために必要な管理情報(以下メタデータ21という)がハードディスクに記憶される。   As shown in FIG. 2, when data is stored as a file on a hard disk as a storage medium, data itself (hereinafter referred to as main data 20) to be stored, such as video and audio, and main data 20 are configured as files. Management information (hereinafter referred to as metadata 21) necessary for this is stored in the hard disk.

メタデータ21は、ブロック管理テーブル210、ユニット管理テーブル211、ファイル管理情報212の3つの情報からなり、本デジタル記録再生装置において、記憶媒体の初期設定時に生成され、データが記録あるいは消去されるごとに更新される。   The metadata 21 includes three pieces of information, that is, a block management table 210, a unit management table 211, and file management information 212. The metadata 21 is generated at the time of initial setting of a storage medium in the digital recording / reproducing apparatus, and is recorded or deleted every time data is recorded. Updated to

以下に、図3を用いて、上記各管理情報について説明する。   Hereinafter, each management information will be described with reference to FIG.

図3は、ユニット管理テーブルを用いた記録方法を模式的に説明する図である。   FIG. 3 is a diagram schematically illustrating a recording method using the unit management table.

<ブロック管理テーブル>
ブロック管理テーブル210は各ブロックの使用状況を管理するものである。当該ブロック管理テーブル210を構成するエントリ210a、210b、210c、210d、…は記憶領域30a、30b、30c、30d、…のブロックに対応しており、ブロックの使用状況に応じ、使用中のブロックの場合は“1”、未使用のブロックの場合は“0”を示す。
<Block management table>
The block management table 210 manages the usage status of each block. The entries 210a, 210b, 210c, 210d,... Constituting the block management table 210 correspond to the blocks of the storage areas 30a, 30b, 30c, 30d,. "1" for the case, and "0" for the unused block.

<ユニット管理テーブル>
ユニット管理テーブル211は、HDD118の記憶領域をユニット単位のアドレス空間とみなしてユニット番号を順に付けたときに、それぞれのユニットの使用状態を管理する。
<Unit management table>
The unit management table 211 manages the usage status of each unit when the storage area of the HDD 118 is regarded as an address space for each unit and unit numbers are assigned in order.

ユニットは、エントリ211a、211b、…から構成され、例えば、エントリ211aは、ブロック管理テーブル210上のエントリ210a、210b、210c、210dに対応したユニットのエントリである。ユニット管理テーブル211は、そのユニットについて、リアルタイムファイルを記憶できるか否かを示すユニット状態情報と、ユニットの使用状況を示すユニット使用状況情報を示す。   The unit includes entries 211a, 211b,..., For example, the entry 211a is an entry of a unit corresponding to the entries 210a, 210b, 210c, and 210d on the block management table 210. The unit management table 211 shows unit status information indicating whether or not a real-time file can be stored for the unit, and unit usage status information indicating the usage status of the unit.

ここで、ユニットにリアルタイムファイルを記憶できるか否かは、例えば、後述の実施例2の形態における判別と同様、リード/ライトを実行するための特殊コマンドによる記憶・再生動作をモニタし、リアルタイムにて記憶・再生が保証されるかを判別することによってなされる。   Here, whether or not the real-time file can be stored in the unit is determined by monitoring the storage / reproduction operation by a special command for executing read / write, for example, in the same way as the determination in the embodiment 2 described later. This is done by determining whether storage / reproduction is guaranteed.

各ユニットのユニット状態情報とユニット使用状況情報は、図2に示す如く区分されている。ユニット使用状況情報において、“未使用”とは、ユニットを構成しているブロック全てが記憶可能である状態をいう。また、“RT全使用”とは、ユニットを構成しているブロック全てを連続してリアルタイムファイルの記憶に使用している状態をいう。また、“NRT一部使用”とは、ユニットを構成しているブロックの一部を非リアルタイムファイルの記憶に使用している状態をいう。また、“NRT全使用”とは、ユニットを構成しているブロック全てを非リアルタイムファイルの記憶に使用している状態をいう。   Unit status information and unit usage status information of each unit are divided as shown in FIG. In the unit usage status information, “unused” refers to a state in which all the blocks constituting the unit can be stored. Further, “RT all used” means a state where all the blocks constituting the unit are continuously used for storing the real-time file. “NRT partial use” refers to a state in which a part of the blocks constituting the unit is used for storing a non-real-time file. “NRT full use” refers to a state in which all the blocks constituting the unit are used for storing non-real time files.

ユニットは、リアルタイム処理をするために必要なサイズであるため、リアルタイムファイルにより一部使用されている状態は存在しない。また、ユニット内にリアルタイムファイルとノンリアルタイムファイルの両方が存在することはない。したがって、ユニットが“NRT一部使用”の場合、残りのブロックには非リアルタイムファイルのみ記憶可能である。   Since the unit is a size necessary for real-time processing, there is no state in which the unit is partially used by the real-time file. Also, there is no real-time file and non-real-time file in the unit. Therefore, when the unit is “partially using NRT”, only the non-real time file can be stored in the remaining blocks.

<ファイル管理情報>
図2に戻り、ファイル管理情報212は、主データ20がファイルとして認識されるための管理情報である。
<File management information>
Returning to FIG. 2, the file management information 212 is management information for recognizing the main data 20 as a file.

主データ20に対応したファイルのファイル管理情報212には、主データ20を構成するブロックのリンク情報が記録されている。具体的には、主データ20に関する属性情報(図中非表示)と、ブロックの開始アドレス情報が参照順に記憶されている。   In the file management information 212 of the file corresponding to the main data 20, link information of the blocks constituting the main data 20 is recorded. Specifically, attribute information (not shown in the figure) related to the main data 20 and block start address information are stored in the order of reference.

上記属性情報は、主データ20が、リアルタイムに処理されるデータか否かを示す情報を含む。   The attribute information includes information indicating whether the main data 20 is data processed in real time.

リアルタイムファイル201(図3参照)には、上記マルチプレクサ/デマルチプレクサ111によって作成されたMPEG2のシステムストリームなど、リアルタイムに処理される主データ20が、上述のユニット単位のデータとして格納される。   In the real-time file 201 (see FIG. 3), main data 20 processed in real time, such as an MPEG2 system stream created by the multiplexer / demultiplexer 111, is stored as the unit data described above.

したがって、リアルタイムファイル201の全体の容量は、必ずユニット単位容量の整数倍である。また、ブロック単位で記録を行なっているHDD118においても、リアルタイムファイル201の開始アドレスは、ユニットの境界にあたるアドレスでなくてはならない。これは、ユニット管理テーブル211において、記憶空間をユニット単位のアドレス空間とみなすためである。   Therefore, the entire capacity of the real-time file 201 is always an integer multiple of the unit unit capacity. Also in the HDD 118 that records in block units, the start address of the real-time file 201 must be an address that corresponds to the boundary of the units. This is because the unit management table 211 regards the storage space as an address space for each unit.

このリアルタイムファイル201のファイル構成を示すファイル管理情報212には、このリアルタイムファイル201が割り当てられているユニットに対応したブロックのリンク情報が記憶される。   The file management information 212 indicating the file structure of the real-time file 201 stores link information of a block corresponding to the unit to which the real-time file 201 is allocated.

非リアルタイムファイル202の場合、リアルタイムに処理される必要がない主データ20が、ブロック単位のデータとして格納されるため、この非リアルタイムファイル201の全体の容量は、ブロック単位容量の整数倍となる。   In the case of the non-real-time file 202, the main data 20 that does not need to be processed in real time is stored as block-unit data. Therefore, the entire capacity of the non-real-time file 201 is an integral multiple of the block-unit capacity.

また、非リアルタイムファイル202のファイル構成を示すファイル管理情報212には、リアルタイムファイルと同様に、この非リアルタイムファイル202が割り当てられているブロックのリンク情報が記憶される。   Further, the file management information 212 indicating the file configuration of the non-real-time file 202 stores the link information of the block to which the non-real-time file 202 is allocated, as with the real-time file.

<ユニットの容量>
次に、本デジタル記録再生装置において、複数のストリームデータをリアルタイムで同時に扱うために必要なユニットの容量について説明する。
<Unit capacity>
Next, the capacity of a unit necessary for simultaneously handling a plurality of stream data in real time in the digital recording / reproducing apparatus will be described.

まず、バッファメモリ115、116の容量Cと、書き込み/読み出しの単位ブロック長Lと、HDDコントローラモジュール117とHDD118との間のワーストケースのデータ転送レートBhddと、MPEG2システムストリームのレートBsysと、HDD118のシーク時間のワースト値Twとの関係について説明する。   First, the capacity C of the buffer memories 115 and 116, the unit block length L for writing / reading, the worst-case data transfer rate Bhdd between the HDD controller module 117 and the HDD 118, the rate Bsys of the MPEG2 system stream, and the HDD 118 The relationship between the seek time and the worst value Tw will be described.

ただし、シーク時間のワースト値Twは、単なるヘッドのシークのみに要する時間ではなく、シークを開始してから実際にデータの書き込み/読み出しが始まるまでにかかる、シーク時間、回転待ち時間、ヘッド切換時間、ECC/EDC等の誤り訂正に要する時間、等の群遅延のワースト値をすべて考慮した時間である。   However, the worst value Tw of the seek time is not just the time required for only the head seek, but the seek time, rotation waiting time, and head switching time required from the start of the seek until the actual writing / reading of data starts. , Time required for error correction such as ECC / EDC, and the like, taking into account all worst group delay values.

同時に処理するストリーム数をNとした場合、すべてのストリームのリアルタイム性を保持するためには、以下の式を満たす必要がある。   If the number of streams to be processed simultaneously is N, the following formula must be satisfied in order to maintain the real-time property of all streams.

Bhdd×Ts>N×(Tw+Ts)×Bsys …(1)
ただし、Tsは、HDD118に対して、書き込み/読み出しの単位ブロック長Lを書き込み/読み出しするのに要する時間であり、Ts=L/Bhddで表わされる。
Bhdd × Ts> N × (Tw + Ts) × Bsys (1)
However, Ts is the time required to write / read the unit block length L for writing / reading to / from the HDD 118, and is represented by Ts = L / Bhdd.

上記の式(1)は、データの読み出しの場合は、あるストリームにおいて単位ブロックで読み出しを行なったデータ量が、N本のストリームを処理するのにかかるN回のシーク時間とN回のデータ書き込み/読み出し時間との和の時間内で消費し尽くさないように設計する必要があることを意味している。   In the above equation (1), in the case of data reading, the amount of data read in a unit block in a certain stream is N times of seek time and N times of data writing required to process N streams. This means that it is necessary to design so that it will not be consumed within the sum of the readout time.

さらに、データの書き込みの場合は、N本のストリームを処理するのにかかる時間中に、バッファメモリ115、116に蓄積されるデータ量は最悪のケースで、N×(Tw+Ts)×Bsysであることを意味している。   Further, in the case of data writing, the amount of data stored in the buffer memories 115 and 116 during the time required to process N streams is N × (Tw + Ts) × Bsys in the worst case. Means.

したがって、バッファメモリ115、116の容量Cは、以下の式を満たす必要がある。   Therefore, the capacity C of the buffer memories 115 and 116 needs to satisfy the following expression.

C>N×(Tw+Ts)×Bsys …(2)
上記の式(1)および(2)を満たすような設計を行なうことにより、N本のストリームを同時にリアルタイムで処理することが可能となる。ただし、Bhdd>N×Bsysを満たす範囲内でNを設定しなければならない。
C> N × (Tw + Ts) × Bsys (2)
By designing so as to satisfy the above equations (1) and (2), N streams can be simultaneously processed in real time. However, N must be set within a range satisfying Bhdd> N × Bsys.

なお、HDD118からリアルタイムファイルのデータをバッファメモリ115、116に転送する場合、ユニット単位で読み出すと最も効率良く処理することができる。このとき、ユニット容量Usizeは次式で表わすことができる。   When transferring real-time file data from the HDD 118 to the buffer memories 115 and 116, the data can be most efficiently processed when read in units. At this time, the unit capacity Usize can be expressed by the following equation.

Usize = L …(3)
ここで、上記の通り、Ts=L/Bhddだから、この関係式と(3)式とを上記(1)式に代入することにより、Usize容量の条件式として、下式を得ることができる。
Use size = L (3)
Here, since Ts = L / Bhdd as described above, the following expression can be obtained as a conditional expression for the Usize capacity by substituting this relational expression and the expression (3) into the above expression (1).

Usize>N×(Tw+(Usize/Bhdd))×Bsys …(4)
この容量のユニットに、一定時間の映像データと音声データとを格納する。なおこの実施形態の装置においては、MPEG2でエンコードされた映像データ(Group of Pictures:以下、GOP)とそれに対応する音声データとをマルチプレクサ/デマルチプレクサ111によってマルチプレクスしてシステムストリームとしている。
Usize> N × (Tw + (Usize / Bhdd)) × Bsys (4)
Video data and audio data for a certain period of time are stored in this capacity unit. In the apparatus of this embodiment, video data (Group of Pictures: hereinafter referred to as GOP) encoded by MPEG2 and audio data corresponding thereto are multiplexed by a multiplexer / demultiplexer 111 to form a system stream.

また、1GOPのピクチャ数を15とすると、1ユニットの再生時間は次のようになる。   If the number of pictures in 1 GOP is 15, the playback time of 1 unit is as follows.

5*(15/30)=2.5秒
ここで、これらのパラメータについて、ユニット単位での再生が保証されているかどうかの検証を行なう。
5 * (15/30) = 2.5 seconds Here, with respect to these parameters, it is verified whether or not reproduction in units is guaranteed.

前述の定義より、書き込み/読み出しの単位ユニット長をL=2752512バイトとすると、MPEG2のシステムストリームのレートBsysは、
Bsys=L/2.5=1101004バイト/秒
となる。
From the above definition, if the unit length of writing / reading is L = 2752512 bytes, the rate Bsys of the MPEG2 system stream is
Bsys = L / 2.5 = 11101004 bytes / second.

本デジタル記録再生装置において、ストリームの本数をN=2とし、シーク時間のワースト値をTw=50ms、HDDコントローラモジュール118とHDD119との間のワーストケースのデータ転送レートをBhdd=5MB/秒とすると、
Ts=L/Bhdd=550ms
が成り立つ。したがって、式(1)の左辺Bhdd*Tsは、
Bhdd*Ts=5×106*550×10-3=2.7×106
式(1)の右辺N*(Tw+Ts)*Bsysは、
N*(Tw+Ts)*Bsys=2*(50+550)×10-3*1101004=1.32×106
となり、上述の式(1)を満たすことになる。したがって、定義されたこれらのパラメータにおいてユニット単位でのデータの再生が保証される。
In this digital recording / reproducing apparatus, when the number of streams is N = 2, the worst value of seek time is Tw = 50 ms, and the worst case data transfer rate between the HDD controller module 118 and the HDD 119 is Bhdd = 5 MB / second. ,
Ts = L / Bhdd = 550 ms
Holds. Therefore, the left side Bhdd * Ts of equation (1) is
Bhdd * Ts = 5 × 10 6 * 550 × 10 −3 = 2.7 × 10 6
The right side N * (Tw + Ts) * Bsys of the equation (1) is
N * (Tw + Ts) * Bsys = 2 * (50 + 550) × 10 −3 * 1101004 = 1.32 × 10 6
Thus, the above equation (1) is satisfied. Therefore, reproduction of data in units is guaranteed in these defined parameters.

次に、フローチャートを用いて、ファイルのリード(読み出し)およびライト(書き込み)動作を説明する。   Next, file read (read) and write (write) operations will be described using a flowchart.

図4は、ファイルデータのリード動作を説明するフローチャートである。   FIG. 4 is a flowchart for explaining a file data read operation.

まず、ファイルがアプリケーションによってオープンされると(ステップS1)、当該ファイルのファイル管理情報が読み出され、このファイル管理情報中のリンク情報が参照される。上記の如く、リンク情報は、当該ファイル情報を記憶する各ブロックの開始アドレスを参照順に規定するものである。ファイル情報の読み出しは、このリンク情報を先頭から順番に参照して各ブロックの開始アドレスを取得し、取得した開始アドレスが示す記憶領域上のブロックからデータを順番に読み出すことによって行われる。ここで、リンク情報の参照位置は、ポインタによって管理される。   First, when a file is opened by an application (step S1), the file management information of the file is read and the link information in the file management information is referred to. As described above, the link information defines the start address of each block storing the file information in the order of reference. The file information is read by referring to the link information in order from the beginning, obtaining the start address of each block, and reading the data in order from the block on the storage area indicated by the obtained start address. Here, the reference position of the link information is managed by a pointer.

まず、このリンク情報の先頭にポインタがセットされ(ステップS2)、ファイル情報を記憶する最初ブロックの開始アドレスが取得される。そして、この開始アドレスが示す記憶領域上のブロックからデータが読み出される(ステップS3)。   First, a pointer is set at the head of this link information (step S2), and the start address of the first block storing file information is acquired. Then, data is read from the block on the storage area indicated by the start address (step S3).

次に、このブロックがファイルを構成する論理的なブロックの最後か否かが判断され(ステップS4)、最後である場合は、ファイルをクローズして(ステップS5)、リード動作が終了される。他方、ブロックがファイルを構成する論理的なブロックの最後でなく続くブロックが存在する場合は、リンク情報の参照位置を示すポインタが1つ進められ(ステップS2)、ファイル情報を記憶する次のブロックの開始アドレスが取得される。そして、このブロック開始アドレスが示す記憶領域上のブロックからデータが読み出される(ステップS3)。   Next, it is determined whether or not this block is the last logical block constituting the file (step S4). If it is the last, the file is closed (step S5), and the read operation is terminated. On the other hand, if there is a block following the logical block constituting the file, not the last block, the pointer indicating the link information reference position is advanced by one (step S2), and the next block storing the file information The start address of is obtained. Then, data is read from the block on the storage area indicated by the block start address (step S3).

以上のデータ読み出しは、ステップS4にて、ポインタが示すブロックが最後のブロックであると判断されるまで繰り返される。これにより、当該ファイル情報が全て記憶媒体から読み出される。   The above data reading is repeated until it is determined in step S4 that the block indicated by the pointer is the last block. Thereby, all the file information is read from the storage medium.

図5は、リアルタイムファイルのライト動作を説明するフローチャートである。   FIG. 5 is a flowchart for explaining a real-time file write operation.

アプリケーションがリアルタイムファイルをオープンすると(ステップS11)、まず、ユニット管理テーブル211を参照して、未使用ユニットが検索される(ステップS12)。   When the application opens a real-time file (step S11), first, an unused unit is searched with reference to the unit management table 211 (step S12).

検索の結果得られた未使用ユニットは新たにファイルを記憶するためのユニットに割り当てられ、記憶すべき主データ20がそのユニットに対応する一連のブロックに順次記憶される。この際、記憶に使用したユニットに対応するユニット管理テーブル211のユニット使用状況情報が“未使用”から“RT全使用”に変更される。また、記憶に使用されたブロックのフラグを“1”に変更するよう、ブロック管理テーブル211が更新される。さらに、ファイル管理情報212に、記録に使用された各ブロックのリンク情報が追加される(ステップS13)。   The unused unit obtained as a result of the search is assigned to a unit for storing a new file, and main data 20 to be stored is sequentially stored in a series of blocks corresponding to the unit. At this time, the unit usage status information in the unit management table 211 corresponding to the unit used for storage is changed from “unused” to “RT all used”. Further, the block management table 211 is updated so that the flag of the block used for storage is changed to “1”. Further, link information of each block used for recording is added to the file management information 212 (step S13).

次に、記憶すべきデータが残っているか否かが判断され(ステップS14)、記憶すべきデータが残っていない場合は、ファイルをクローズし(ステップS15)、処理を終了する。他方、記憶すべきデータが残っている場合は、さらに、未使用ユニットが検索され(ステップS12)。そして、検索により得られたユニットにデータが記憶される(ステップS13)。以上のデータ記憶の処理は、ステップS14にて、記憶すべきデータが残っていないと判断されるまで繰り返される。   Next, it is determined whether or not data to be stored remains (step S14). If there is no data to be stored, the file is closed (step S15), and the process is terminated. On the other hand, if there remains data to be stored, an unused unit is further searched (step S12). Data is stored in the unit obtained by the search (step S13). The above data storage process is repeated until it is determined in step S14 that there is no data to be stored.

図6は、非リアルタイムファイルのライト動作を説明するフローチャートである。   FIG. 6 is a flowchart for explaining a non-real-time file write operation.

アプリケーションが非リアルタイムファイルをオープンすると(ステップS21)、まず、ユニット管理テーブル211を参照して、NRT一部使用ユニットが存在するか否かが検索される(ステップS22)。検索の結果、NRT一部使用ユニットが存在しない場合、再びユニット管理テーブル211を参照して、未使用ユニットが検索される(ステップS24)。そして、得られた未使用ユニットに対応するブロックが、主データ20を記憶するためのブロックとして割り当てられる。   When the application opens the non-real-time file (step S21), first, it is searched with reference to the unit management table 211 whether an NRT partial use unit exists (step S22). As a result of the search, if there is no NRT partially used unit, the unused unit is searched with reference to the unit management table 211 again (step S24). Then, a block corresponding to the obtained unused unit is assigned as a block for storing the main data 20.

また、記憶のために使用されたユニットに対応するユニット管理テーブル211のユニット使用状況情報が“未使用”から“NRT一部使用”に変更される(ステップS25)。   Further, the unit usage status information of the unit management table 211 corresponding to the unit used for storage is changed from “unused” to “NRT partially used” (step S25).

一方、ステップS22における検索の結果、NRT一部使用ユニットが存在する場合、得られたNRT一部使用ユニット中の未使用ブロックが、主データ20を記憶するためのブロックとして割り当てられる(ステップS23)。ここで、NRT一部使用ユニット中の未使用ブロックが記憶により全て使用される場合、このユニットのユニット使用状況情報が“NRT一部使用”から“NRT全使用”に変更される。   On the other hand, if there is an NRT partial use unit as a result of the search in step S22, an unused block in the obtained NRT partial use unit is assigned as a block for storing the main data 20 (step S23). . Here, when all unused blocks in the NRT partial use unit are used by storage, the unit usage status information of this unit is changed from “NRT partial use” to “NRT full use”.

そして、ステップS23またはS24にて割り当てられた未使用ブロックに主データ20が記憶されると共に、記憶に使用されたブロックのフラグを“1”に変更するよう、ブロック管理テーブル210が更新される。また、ファイル管理情報212に記憶に使用されたブロックのリンク情報が追加される(ステップS26)。   Then, the main data 20 is stored in the unused block assigned in step S23 or S24, and the block management table 210 is updated so that the flag of the block used for storage is changed to “1”. Further, the link information of the block used for storage is added to the file management information 212 (step S26).

次に、記憶すべきデータが残っているか否かが判断され(ステップS27)、記憶すべきデータが残っていない場合は、ファイルをクローズし(ステップS28)、処理が終了される。他方、記憶すべきデータが残っている場合は、さらに、未使用ユニットおよび未使用ブロックが検索され、検索により得られたブロックにデータを記憶する処理(ステップS22〜S26)が繰り返される。   Next, it is determined whether or not data to be stored remains (step S27). If there is no data to be stored, the file is closed (step S28), and the process is terminated. On the other hand, when data to be stored remains, unused units and unused blocks are searched, and the process of storing data in the blocks obtained by the search (steps S22 to S26) is repeated.

図7は、リアルタイムファイルの削除動作を説明するフローチャートである。   FIG. 7 is a flowchart for explaining a real-time file deletion operation.

アプリケーションが削除するリアルタイムファイルを選択すると(ステップS31)、選択したリアルタイムファイルを記憶するブロックのうち先頭のブロックが、ファイル管理情報212のリンク情報を参照して獲得される。さらに、ユニット管理テーブル211中のユニットサイズ情報から当該ブロックに対応するユニットが算出される(ステップS32)。そして、このブロックに記憶されたデータが順次消去される。   When the application selects a real-time file to be deleted (step S31), the first block among the blocks storing the selected real-time file is acquired with reference to the link information of the file management information 212. Further, the unit corresponding to the block is calculated from the unit size information in the unit management table 211 (step S32). Then, the data stored in this block is sequentially erased.

このようにしてブロックに記憶されたデータが消去されると、このブロックの使用状況を示すブロック管理テーブル210が、使用中であることを示す“1”から未使用であることを示す“0”に変更される。さらに、一ユニット中の全てのブロックについてデータ消去がなされると、このユニットの使用状況を示すユニット管理テーブル211のユニット使用状況情報が“RT全使用”から“未使用”に変更される(ステップS33)。   When the data stored in the block is erased in this way, the block management table 210 indicating the use status of this block changes from “1” indicating that the block is in use to “0” indicating that it is not used. Changed to Further, when the data is erased for all the blocks in one unit, the unit usage status information in the unit management table 211 indicating the usage status of this unit is changed from “RT all used” to “not used” (step). S33).

そして、削除すべきデータが残っているか否かが判断され(ステップS34)、削除すべきデータが残っていない場合は、ファイル管理情報212からこのファイルの管理情報が削除され(ステップS35)、処理が終了される。   Then, it is determined whether or not data to be deleted remains (step S34). If there is no data to be deleted, the management information of this file is deleted from the file management information 212 (step S35), and the processing is performed. Is terminated.

他方、削除すべきデータが残っている場合は、ファイル管理情報212のリンク情報を指すポインタが1つ進められ、次のブロックが獲得され、ユニット管理テーブル211中のユニットサイズ情報からブロックに対応したユニットが算出される(ステップS32)。そして、上記と同様にして、ブロック管理テーブル210およびユニット管理テーブル211が更新される(ステップS33)。この更新処理(ステップS32、S33)は、ステップS34にて、削除すべきデータが残っていないと判断されるまで繰り返される。   On the other hand, when there is data to be deleted, the pointer pointing to the link information of the file management information 212 is advanced by one, the next block is acquired, and the block corresponding to the block is obtained from the unit size information in the unit management table 211. A unit is calculated (step S32). Then, similarly to the above, the block management table 210 and the unit management table 211 are updated (step S33). This update process (steps S32 and S33) is repeated until it is determined in step S34 that there is no data to be deleted.

図8は、非リアルタイムファイルの削除動作を説明するフローチャートである。   FIG. 8 is a flowchart for explaining a non-real-time file deletion operation.

アプリケーションが削除する非リアルタイムファイルを選択すると(ステップS41)、選択した非リアルタイムファイルを記憶するブロックのうち先頭のブロックが、ファイル管理情報212のリンク情報を参照して獲得される。   When the application selects a non-real-time file to be deleted (step S41), the first block among the blocks storing the selected non-real-time file is acquired with reference to the link information of the file management information 212.

次に、このブロックの使用状況を示すブロック管理テーブル210が、使用中であることを示す“1”から未使用であることを示す“0”に変更される(ステップS43)。さらに、このブロックに対応するユニットが含む他のブロックの使用状況が調べられ(ステップS44)、ユニットを構成する全てのブロックが未使用となった場合には、このユニットの使用状況を示すユニット管理テーブル211のユニット使用状況情報が“未使用”に変更される(ステップS46)。   Next, the block management table 210 indicating the use status of this block is changed from “1” indicating that it is in use to “0” indicating that it is not used (step S43). Further, the usage status of other blocks included in the unit corresponding to this block is checked (step S44), and when all the blocks constituting the unit are unused, unit management indicating the usage status of this unit. The unit usage status information in the table 211 is changed to “unused” (step S46).

また、ユニットを構成するブロックの一部が使用されている状態となった場合には、このユニットの使用状況を示すユニット管理テーブル211のユニット使用状況情報が“NRT一部使用”に変更される(ステップS45)。   When a part of the blocks constituting the unit is used, the unit usage status information of the unit management table 211 indicating the usage status of this unit is changed to “NRT partial usage”. (Step S45).

次に、削除すべきデータが残っているか否かが判断され(ステップS47)、判断の結果、削除すべきデータが残っていない場合は、ファイル管理情報212からこのファイルの管理情報が削除され(ステップS48)、処理が終了される。他方、削除すべきデータが残っている場合は、ファイル管理情報212のリンク情報を指すポインタが1つ進められ、次のブロックが獲得される(ステップS42)。そして、上記と同様にして、ブロック管理テーブル210およびユニット管理テーブル211が更新される(ステップS43〜S46)。この更新処理(ステップS42〜S46)は、ステップS47にて、削除すべきデータが残っていないと判断されるまで繰り返される。   Next, it is determined whether or not there is data to be deleted (step S47). If there is no data to be deleted as a result of the determination, the management information of this file is deleted from the file management information 212 ( Step S48), the process is terminated. On the other hand, if there remains data to be deleted, the pointer pointing to the link information of the file management information 212 is advanced by 1, and the next block is acquired (step S42). Then, similarly to the above, the block management table 210 and the unit management table 211 are updated (steps S43 to S46). This update process (steps S42 to S46) is repeated until it is determined in step S47 that there is no data to be deleted.

図9は、記憶媒体の初期化動作を説明するフローチャートである。   FIG. 9 is a flowchart for explaining the initialization operation of the storage medium.

本装置で記憶媒体を初めて使用する時、その記憶媒体が本装置で使用できるように、記憶領域の管理に使用される管理データ、具体的には、メタデータ21中のブロック管理テーブル210、ユニット管理テーブル211が生成され、初期設定がなされる。   When the storage medium is used for the first time in this apparatus, the management data used for managing the storage area, specifically, the block management table 210 in the metadata 21 and the unit so that the storage medium can be used in this apparatus A management table 211 is generated and initialized.

ユニットの容量およびユニット数については、アプリケーションが規定し、これに従いユニット管理テーブル211が初期設定される(ステップS51)。   The unit capacity and the number of units are defined by the application, and the unit management table 211 is initialized according to this (step S51).

ブロック管理テーブル210には、全ブロックについて、その使用状況が未使用である“0”が設定される(ステップS52)。   In the block management table 210, “0”, which is not used for all blocks, is set (step S52).

ユニット管理テーブル211には、全ユニットについて、その状態情報として、リアルタイムファイルが記憶可能であることを示す”RT使用可能ユニット”が設定され、また、ユニットの使用状況として、ユニットを構成するブロック全てが記憶可能であることを示す“未使用”が設定される(ステップS52)。   In the unit management table 211, “RT usable unit” indicating that a real-time file can be stored is set as the status information for all units, and all the blocks constituting the unit are used as the unit usage status. Is set to “unused” indicating that it can be stored (step S52).

以上のように、本実施の形態では、主データの記憶媒体における記憶場所を管理する時、従来のファイル記憶方法で用いてきた物理的な記憶単位に依存したブロックの他に、リアルタイムに処理されるデータを記憶するのに適した記録単位であるユニットが用いられる。   As described above, in this embodiment, when managing the storage location of the main data storage medium, in addition to the blocks depending on the physical storage unit used in the conventional file storage method, it is processed in real time. A unit which is a recording unit suitable for storing data to be stored is used.

このユニットは、リアルタイム処理が保証された容量に設定され、連続した複数のブロックで構成され、ユニットとブロックは、ユニット管理テーブルのユニットサイズ情報を用いた演算により一意に対応付けられるため、ユニット単位で記憶した映像データなどのリアルタイムファイルをユニット単位で記憶した場合でも、ユニット管理テーブル211を必須とせず、ブロック管理テーブル210のみを用いて、ブロック単位でファイルデータを読み出すことが可能となる。   This unit is set to a capacity that guarantees real-time processing and is composed of a plurality of continuous blocks. Units and blocks are uniquely associated by calculation using unit size information in the unit management table. Even when real-time files such as video data stored in the above are stored in units, it is possible to read out file data in units of blocks using only the block management table 210 without requiring the unit management table 211.

また、非リアルタイムに処理されるデータに対しては、従来と同様に、ブロック単位でデータが記憶されるが、このときのブロックの使用状況に対応して、ユニット管理テーブルも更新される。   In addition, for data processed in non-real time, data is stored in units of blocks as in the past, but the unit management table is also updated in accordance with the block usage status at this time.

このように、データの属性によって、記憶単位を換えることにより、記憶媒体を効率よく使用することが可能となり、ひいては、記憶領域のフラグメンテーションの発生を抑制することもできる。   As described above, by changing the storage unit according to the data attribute, the storage medium can be used efficiently, and the occurrence of fragmentation of the storage area can also be suppressed.

ところで、上記実施の形態においては、ユニット管理テーブルは、ユニットの使用・未使用に応じて、「RT使用可能ユニット」と「RT使用不可能ユニット」の2種類のユニットのみ規定するものであった。しかしながら、データの記録・消去を繰り返すうちに、エラー訂正では補償し得ない欠陥領域が発生する。これにより、ユニットが未使用であっても、そのユニットをリアルタイムファイルの記憶・再生用に使用できない場合が生じ得る。   Incidentally, in the above embodiment, the unit management table defines only two types of units, “RT usable unit” and “RT unusable unit”, depending on whether the unit is used or not used. . However, as data recording / erasing is repeated, defective areas that cannot be compensated by error correction occur. As a result, even if the unit is unused, there may occur a case where the unit cannot be used for storage / reproduction of the real-time file.

すなわち、ハードディスク等の記憶媒体には、欠陥領域の発生に対応するために、通常代替領域が準備されている。欠陥領域が生じた場合には、代替領域に対してデータの割り当てが行われる。   That is, in a storage medium such as a hard disk, an alternative area is usually prepared in order to cope with the occurrence of a defective area. When a defective area occurs, data is assigned to the alternative area.

しかし、代替領域は通常、一連の記憶領域とは物理的に離間して配されている。したがって、代替領域にデータを記憶する場合には、記憶、再生時に、シークや回転まち等の余分な時間が掛かってしまう。よって、ユニットが未使用状況となっていても、そのユニットに欠陥領域が存在する場合には、リアルタイムファイルの記憶・再生に必要な書き込み/読み出しレートを保証できない場合が起こり得る。かかる理由により、ユニットが未使用であっても、欠陥領域が発生すると、そのユニットを、RT使用可能ユニットとしてそのまま使用することはできない場合が起こり得る。   However, the alternative area is usually physically separated from the series of storage areas. Therefore, when data is stored in the alternative area, extra time such as seek or rotation is required during storage and reproduction. Therefore, even if the unit is not in use, if there is a defective area in the unit, the writing / reading rate necessary for storing / reproducing the real-time file may not be guaranteed. For this reason, even if the unit is not used, if a defective area occurs, the unit may not be used as an RT usable unit as it is.

他方、たとえばデジタル放送においては、HD(High Definition)放送の場合のビットレートは約24Mbpsで、SD(Standard Definition)放送の場合のビットレートは約8Mbpsである。したがって、所定のユニットに欠陥領域が発生した場合、そのユニットをHD放送用に使用できなくても、よりレートの低いSD放送用として使用可能な場合もあり得る。かかる理由から、欠陥領域の発生によってユニットの書き込み/読み出しレートが低下したとしても、一律にそのユニットを「RT使用不可能」とするのは適当でない。   On the other hand, in digital broadcasting, for example, the bit rate for HD (High Definition) broadcasting is about 24 Mbps, and the bit rate for SD (Standard Definition) broadcasting is about 8 Mbps. Therefore, when a defective area occurs in a predetermined unit, it may be possible to use the unit for SD broadcasting at a lower rate even if the unit cannot be used for HD broadcasting. For this reason, even if the writing / reading rate of a unit decreases due to the occurrence of a defective area, it is not appropriate to make the unit “RT unusable” uniformly.

そこで、本実施の形態においては、書き込み/読み出しレートのランク区分をユニット毎に付し、このランク区分を上記ユニット管理テーブルに含めておく。そして、リアルタイムファイルの書き込み時には、かかるランク区分を参照して、そのファイルの転送レートを保証し得るユニットを対象ユニットとして選択するようにする。   Therefore, in the present embodiment, the rank division of the write / read rate is assigned to each unit, and this rank division is included in the unit management table. When writing a real-time file, the rank classification is referred to and a unit that can guarantee the transfer rate of the file is selected as the target unit.

各ユニットは、初期状態においては、最上位のレートのランク区分とされている。そして、その後の書き込み/読み出し時に、リアルタイムファイルの転送レートを保証し得たかが判別され、ここで保証し得なかった場合には、そのファイルの転送レートよりも低いランク区分に変更される。   In the initial state, each unit is set to the rank category of the highest rate. Then, at the time of subsequent writing / reading, it is determined whether or not the real-time file transfer rate can be guaranteed. If the real-time file transfer rate cannot be guaranteed, the rank classification is changed to a rank lower than the file transfer rate.

リアルタイムファイルの転送レートを保証し得たか否かは、たとえば、HDD(ハードディスクドライブ)をAVデータ記憶用途に使用する場合に用いられる特殊コマンドを使用して判別される。このコマンドは、リアルタイム性重視のコマンドで、時間制限付きリードおよびライトを実行するコマンドである。   Whether or not the transfer rate of the real-time file can be guaranteed is determined using, for example, a special command used when an HDD (hard disk drive) is used for AV data storage. This command is a command that emphasizes real-time characteristics, and is a command that executes read and write with time restrictions.

<時間制限付リード・ライトコマンド>
ここでの時間の定義は、指定した時間内にHDDがホスト側に必ず応答を返すことである。これらのコマンドを使用した場合、HDD側の処理の優先度は、以下の通りである。
<Read / write command with time limit>
The definition of the time here is that the HDD always returns a response to the host side within the specified time. When these commands are used, the processing priority on the HDD side is as follows.

1.指定時間内に正常にデータの入出力を終えホストに通知する。   1. Notifies the host after completing the data input / output normally within the specified time.

2.途中にエラーが発生して、リトライや代替処理が必要な場合;
指定時間内に処理可能な場合は、それを実行する。指定時間を超える場合は、エラーを無視し、指定時間内に指定セクタ数の入出力処理を終了させて、ホストに通知する。この場合、ホストに対し、「エラーが発生したが入出力完了」という形で通知し、エラー情報はログに残しておく。
2. When an error occurs in the middle and retry or alternative processing is required;
If it can be processed within the specified time, it is executed. If the specified time is exceeded, the error is ignored, the input / output processing for the specified number of sectors is terminated within the specified time, and the host is notified. In this case, the host is notified in the form of “an error has occurred but I / O has been completed”, and the error information is left in the log.

3.発生したエラーを無視しても入出力処理が終了しない場合;
指定時間以内に処理を中断し、「タイムアウトエラー」という形でホストに通知する。本来、指定時間内に応答を返すことが前提であるが、例外として、少なくとも1度はリード・ライトを行ない、この時点で既に指定時間をオーバーしている時のみ、指定時間内に応答しなくてよいものとする。但し、「指定時間オーバー」であることをホストに知らせる必要がある。
3. I / O processing is not completed even if the error that occurred is ignored;
The processing is interrupted within the specified time and notified to the host in the form of a “timeout error”. Originally, it is assumed that a response is returned within the specified time. However, as an exception, at least one read / write is performed, and no response is made within the specified time only when the specified time has already been exceeded. Be good. However, it is necessary to inform the host that the specified time is over.

以上の通り、記憶媒体であるHDDのメディア上の前記ユニットに欠陥があった場合、その部分のデータアクセスにおけるリアルタイム性は低下する。そこで、ユニット毎の前記ユニット状態情報として、ユニットが保証できるビットレートのランク区分を備えておけば、これを参照して、さまざまなビットレートのデータをそれぞれ適したユニットに配することにより、リアルタイム性を保証し、かつ、記憶媒体を有効に利用した記憶が実現できる。   As described above, when there is a defect in the unit on the HDD medium as a storage medium, the real-time property in the data access of that part is lowered. Therefore, if the unit status information for each unit is provided with a rank classification of the bit rate that can be guaranteed by the unit, by referring to this, the data of various bit rates are allocated to each appropriate unit, so that the real time And storage using the storage medium effectively can be realized.

以下、かかる実施の形態のより具体的な構成および制御について説明する。   Hereinafter, a more specific configuration and control of the embodiment will be described.

<メディアの代替>
記憶媒体であるHDDのメディア上に欠陥があった場合、通常代替ブロックが割り当てられる。
<Media alternative>
When there is a defect on the HDD medium as a storage medium, a substitute block is usually assigned.

光ディスクなどの場合は、代替ブロックの位置、数等が規格として決められているがHDDの場合には、コマンドインタフェースのみが規定されており、内部構造は、ドライブベンダー毎に相違する。従って、代替処理シーケンス、代替ブロック位置、代替ブロックをリード及びライトする場合のオーバーヘッド時間等は規定されていない。これはリアルタイム処理する場合に問題となり、以下に説明する。   In the case of an optical disk or the like, the position and number of alternative blocks are determined as standards, but in the case of an HDD, only the command interface is defined, and the internal structure differs for each drive vendor. Therefore, an alternative processing sequence, an alternative block position, an overhead time for reading and writing an alternative block, etc. are not defined. This is a problem when performing real-time processing, and will be described below.

<物理アドレス、論理アドレスの関係とフラグメンテーション>
図13に、メディア上の物理アドレス、論理アドレス、欠陥ブロック管理リストの関係を示す。以下、欠陥ブロックの処理手順とそれに伴うフラグメンテーションに関して説明する。
<Relationship between physical address and logical address and fragmentation>
FIG. 13 shows the relationship between the physical address, logical address, and defective block management list on the medium. Hereinafter, the processing procedure of the defective block and the fragmentation associated therewith will be described.

ハードディスクを例に取った場合、通常、使用開始時においては、ホストからアクセスされる論理アドレスの連続性は、メディア上の物理アドレスの連続性を持っていると考えて良い。本来、製品出荷時にすでにある欠陥セクタは出荷時に代替処理されるが、ここでは簡略化のため省略する。   Taking a hard disk as an example, normally, at the start of use, the continuity of logical addresses accessed from the host may be considered to be the continuity of physical addresses on the medium. Originally, defective sectors already existing at the time of product shipment are replaced at the time of shipment, but are omitted here for simplicity.

ディスク上には、後発的な欠陥ブロックのための代替ブロックが準備されている。ハードディスクの場合、その数や物理的位置に関しては、規定されておらず、例えば、ディスクの最内周にまとめて代替ブロック領域が配置される。この領域に対しては、当然論理アドレスへのマッピングはない。   An alternative block for a later defective block is prepared on the disk. In the case of a hard disk, the number and physical position are not defined, and for example, alternative block areas are arranged collectively on the innermost periphery of the disk. Of course, there is no mapping to logical addresses for this area.

図13に示すように、例えば、論理ブロックAが欠陥ブロックと判断された場合、ドライブは、その論理ブロックAに対応する物理ブロックAを代替ブロックB+1にマッピングしなおす。その情報は、欠陥リストに登録される。   As shown in FIG. 13, for example, when the logical block A is determined to be a defective block, the drive remaps the physical block A corresponding to the logical block A to the alternative block B + 1. The information is registered in the defect list.

このように、欠陥ブロックの代替処理が行われると、その代替処理が行われたブロックに対応するユニットでは、論理的アドレスは連続していても、実は論理ブロックAで物理的には非連続な状態となり、そのブロックの前後でシークが発生する。これがリアルタイム処理にとって致命的になる原因である。   As described above, when the replacement process of the defective block is performed, in the unit corresponding to the block for which the replacement process has been performed, although the logical addresses are continuous, the logical block A is actually not physically continuous. A state occurs and a seek occurs before and after the block. This is a cause that becomes fatal to real-time processing.

<AVストリームの実時間保証と代替処理との相関関係>
以下に、AVストリームの実時間処理例を示す。
<Correlation between AV stream real-time guarantee and alternative processing>
The following is an example of real-time processing of an AV stream.

ワーストケースの転送レートa(MB/s)、ワーストケースの(シーク時間+回転待ち時間)b(sec)、ユニットサイズc(MB)、AVストリームのビットレートd(MB/s)とすると、
ワーストケースのユニットへのアクセス(読み出し/書き込み)時間は、
y=c/a(sec)、
ユニット単位のAVストリームの再生時間は、
z=c/d(sec)
となる。
1つのAVストリームのリアルタイム処理における関係は、次式となる。
If the worst case transfer rate a (MB / s), worst case (seek time + rotation waiting time) b (sec), unit size c (MB), and AV stream bit rate d (MB / s),
The access (read / write) time to the worst case unit is
y = c / a (sec),
The playback time of AV stream in units is
z = c / d (sec)
It becomes.
The relationship in real time processing of one AV stream is as follows.

y+b<z すなわち、y<z−b
2つのAVストリームのリアルタイム処理における関係は、次式となる。
y + b <z i.e. y <z-b
The relationship in real time processing of two AV streams is as follows.

2*(y+b)<z すなわち、y<z/2−b
1つのAVストリームでユニットのn個所が代替ブロックに配置されている場合のリアルタイム処理における関係は、次式となる。
2 * (y + b) <z That is, y <z / 2−b
The relationship in real-time processing when n locations of units are arranged in an alternative block in one AV stream is as follows.

y+(n+1)b<z すなわち、y<z−(n+1)b
2つのAVストリームで交互にアクセスされるユニットにおいて、連続してアクセスされる任意の2つのユニットに、合計n個所が代替ブロックに配置されている場合のリアルタイム処理における関係は、次式となる。
y + (n + 1) b <z That is, y <z- (n + 1) b
In units that are alternately accessed by two AV streams, the relationship in real-time processing in the case where a total of n locations are arranged in alternative blocks in any two units that are accessed successively is as follows.

2y+(n+2)b<z すなわち、y<z/2−(n+2)b/2
このように、代替処理が多ければ多いほど、ユニットのアクセス時間が長くなる。そして、ある閾値を超えるとリアルタイム性が破綻する。
2y + (n + 2) b <z That is, y <z / 2− (n + 2) b / 2
Thus, the more alternative processing, the longer the unit access time. And if a certain threshold is exceeded, real-time property will break down.

したがって、代替ブロックが増えたある地点でユニットを使用不可にすることが必要となる。   Therefore, it becomes necessary to disable the unit at a point where the number of alternative blocks increases.

<ユニット管理テーブル>
ユニット管理テーブル211は、HDD118の記憶領域をユニット単位のアドレス空間とみなしてユニット番号を順に付けたときに、それぞれのユニットの使用状態を管理する。
<Unit management table>
The unit management table 211 manages the usage status of each unit when the storage area of the HDD 118 is regarded as an address space for each unit and unit numbers are assigned in order.

ユニットは、図3に示す如く、エントリ211a、211b、…から構成され、例えば、エントリ211aは、ブロック管理テーブル210上のエントリ210a、210b、210c、210dに対応したユニットのエントリである。ユニット管理テーブル211は、そのユニットについて、リアルタイムファイルを記憶できるか否かを示すユニット状態情報と、ユニットの使用状況を示すユニット使用状況情報を規定する。   As shown in FIG. 3, the unit is composed of entries 211a, 211b,..., For example, the entry 211a is an entry of a unit corresponding to the entries 210a, 210b, 210c, 210d on the block management table 210. The unit management table 211 defines unit status information indicating whether or not a real-time file can be stored for the unit and unit usage status information indicating the usage status of the unit.

各ユニットのユニット状態情報とユニット使用状況情報は、図10に示す如く
区分されている。
Unit state information and unit usage status information of each unit are divided as shown in FIG.

ユニット使用状況情報は、実施例1の形態と同様、“RT全使用”、“未使用”、“NRT一部使用”、“NRT全使用”の4つの状況を示す。   The unit usage status information indicates four statuses of “RT full use”, “Not used”, “NRT partial use”, and “NRT full use”, as in the first embodiment.

ユニット状態情報には、“RT使用可能ユニット”もしくは“RT使用不可能ユニット”のどちらかが示される。ここで、“RT使用可能ユニット”とは、リアルタイム情報が記録可能である状態をいう。また、“RT使用不可能ユニット”とは、リアルタイム情報が記録不可能である状態をいう。   The unit status information indicates either “RT usable unit” or “RT unavailable unit”. Here, “RT usable unit” refers to a state in which real-time information can be recorded. The “RT unusable unit” refers to a state where real-time information cannot be recorded.

上記“RT使用可能ユニット”は、さらにリアルタイムストリームのビットレートによって、例えば、“30MbpsまでのRTストリームで使用可能ユニット”、“15MbpsまでのRTストリームで使用可能ユニット”、“5MbpsまでのRTストリームで使用可能ユニット”の3段階に区分けされる。   The above-mentioned “RT usable unit” further depends on the bit rate of the real-time stream, for example, “unit usable with RT stream up to 30 Mbps”, “unit usable with RT stream up to 15 Mbps”, and “RT stream up to 5 Mbps”. It is divided into three stages of “usable units”.

上記の通り、例えば、デジタル放送において、HD放送の場合のビットレートは、約24Mbpsで、SD放送のビットレートは約8Mbpsである。この場合、HD放送番組の記憶に使用できなくなったユニットでも、SD放送番組の記憶に使用可能となる場合がある。また、アナログ放送を記録する場合、例えば、10Mbpsの高画質録画モード、6Mbpsの標準録画モード、3Mbpsの長時間録画モードの異なる3つのビットレートが想定される。この場合も、高画質録画モードで使用できなくなったユニットが標準録画モードもしくは、長時間録画モードで使用可能となる場合もある。   As described above, for example, in digital broadcasting, the bit rate for HD broadcasting is about 24 Mbps, and the bit rate for SD broadcasting is about 8 Mbps. In this case, even a unit that can no longer be used for storing HD broadcast programs may be usable for storing SD broadcast programs. When recording an analog broadcast, for example, three different bit rates are assumed: a high-quality recording mode of 10 Mbps, a standard recording mode of 6 Mbps, and a long-time recording mode of 3 Mbps. Also in this case, a unit that cannot be used in the high-quality recording mode may be usable in the standard recording mode or the long-time recording mode.

ユニットは、物理メディアに連続して記録できる領域であるが、欠陥ブロックが発見された場合には、代替領域にそのブロックが再割当てされる。この場合、論理的には、連続であっても物理的には、そこに境界が発生しシーク、回転待ち時間がかかる。これは、場合によってはリアルタイム処理に致命的となる。   The unit is an area that can be continuously recorded on the physical medium, but when a defective block is found, the block is reassigned to the replacement area. In this case, logically, even if it is continuous, a boundary is generated there and a seek and rotation waiting time are required. This can be fatal to real-time processing in some cases.

したがって、初期状態においては、ユニットはリアルタイム処理として、最も高いビットレートランクで使用可能であるが、使用を続けていくにつれて、ユニットが対応可能なビットレートは変化するため、システム側が使用可能か否かをチェックし、使用不可能と判断した場合は、リアルタイム情報記録不可能とすることが必要となる。   Therefore, in the initial state, the unit can be used at the highest bit rate rank as real-time processing, but the bit rate that can be supported by the unit changes as the unit continues to be used. If it is determined that it cannot be used, it is necessary to make it impossible to record real-time information.

このシステム側のチェックは、例えば、ユニット単位のリードあるいはライトを前述の時間制限をつけた時間制限付きコマンドを用いて行うことにより実行することができる。この時間制限のパラメータは、ビットレートに応じてリアルタイム処理が破綻しない限界の時間である。   This check on the system side can be executed, for example, by performing a unit-unit read or write using the time-limited command with the time limit described above. The time limit parameter is a limit time at which real-time processing does not fail depending on the bit rate.

このコマンドを使用して、時間制限オーバーしたユニットは、そのビットレートでは使用不可能ということで、ビットレートのランクをコマンドのビットレートより低いランクとする。   By using this command, the unit that has exceeded the time limit cannot be used at that bit rate, so that the bit rate rank is lower than the command bit rate.

ここで、コマンドのビットレートとは、コマンドがリードおよびライト動作の対象とするデータサイズを、制限時間で割ったものである。最低のビットレートでも使用不可能になったユニットは、リアルタイム情報記録不可能ユニットとされる。   Here, the bit rate of the command is obtained by dividing the data size to be read and written by the command by the time limit. A unit that cannot be used even at the lowest bit rate is a unit that cannot record real-time information.

図11は、実施例2の形態におけるファイルのリード動作を説明するフローチャートである。   FIG. 11 is a flowchart for explaining a file read operation according to the second embodiment.

まず、ファイルがアプリケーションによってオープンされると(ステップS61)、ファイルのファイル管理情報212に記憶されたリンク情報が参照される。このとき、ポインタを用いてリンク情報の参照位置が管理される。このポインタが指す位置のリンク情報からブロック開始アドレスが得られ、このブロック開始アドレスが示す記憶領域上のブロックからデータが時間制限つきAVコマンドで読み出される(ステップS62)。   First, when a file is opened by an application (step S61), the link information stored in the file management information 212 of the file is referred to. At this time, the reference position of the link information is managed using the pointer. A block start address is obtained from the link information at the position pointed to by the pointer, and data is read from the block in the storage area indicated by the block start address by an AV command with time limit (step S62).

次に、上記時間制限付リードコマンドにより、「指定時間オーバー」が発生したか否かが判断される(ステップS63)。その結果、「指定時間オーバー」エラーが発生した場合は、使用したユニットに対応するユニット管理テーブル211のユニット状態情報における対応可能なビットレートランクが、このコマンドのビットレートよりも低いランクに変更される(ステップS64)。   Next, it is determined whether or not “specified time over” has occurred by the read command with time limit (step S63). As a result, when a “specified time over” error occurs, the bit rate rank that can be supported in the unit status information of the unit management table 211 corresponding to the used unit is changed to a rank lower than the bit rate of this command. (Step S64).

そして、読み出し中のブロックがファイルを構成する論理的なブロックの最後か否かが判断され(ステップS65)、最後である場合は、ファイルがクローズされ(ステップS66)、リード動作が終了される。   Then, it is determined whether or not the block being read is the last logical block constituting the file (step S65). If it is the last, the file is closed (step S66), and the read operation is terminated.

読み出し中のブロックがファイルを構成する論理的なブロックの最後でなく続くブロックが存在する場合は、リンク情報の参照位置を示すポインタを1進め、次のリンク情報からブロック開始アドレスが得られ、このブロック開始アドレスが示す記憶領域上のブロックからデータが読み出される(ステップS62)。この読み出し処理(ステップS62〜S64)は、ステップS65にて、読み出し中のブロックが最後であると判別されるまで繰り返される。   If there is a block that is not the last of the logical blocks that make up the file, the block that is being read advances the pointer that indicates the link information reference position, and the block start address is obtained from the next link information. Data is read from the block on the storage area indicated by the block start address (step S62). This reading process (steps S62 to S64) is repeated until it is determined in step S65 that the block being read is the last.

図12は、実施例2の形態におけるリアルタイムファイルのライト動作を説明するフローチャートである。   FIG. 12 is a flowchart for explaining a real-time file write operation according to the second embodiment.

アプリケーションがリアルタイムファイルをオープンすると(ステップS71)、まず、ユニット管理テーブル211を参照して、未使用であり、かつ、書き込みビットレートで使用可能なユニットが検索される。(ステップS72)。   When the application opens the real-time file (step S71), first, referring to the unit management table 211, an unused unit and a usable unit at the write bit rate are searched. (Step S72).

検索の結果得られたユニットが新たにファイルを記憶するためのユニットに割り当てられ、記憶すべき主データ20がそのユニットに対応する一連のブロックに、時間制限付ライトコマンドで記憶される。この際、記憶に使用されたユニットに対応するユニット管理テーブル211のユニット使用状況情報が“未使用”から“RT全使用”に変更される。また、記憶に使用されたブロックのフラグを“1”に変更するよう、ブロック管理テーブル211が更新される。さらに、ファイル管理情報212に、記録に使用された各ブロックのリンク情報が追加される(ステップS73)。   The unit obtained as a result of the search is assigned to a unit for storing a new file, and the main data 20 to be stored is stored in a series of blocks corresponding to the unit by a time-limited write command. At this time, the unit usage status information of the unit management table 211 corresponding to the unit used for storage is changed from “unused” to “RT all used”. Further, the block management table 211 is updated so that the flag of the block used for storage is changed to “1”. Further, link information of each block used for recording is added to the file management information 212 (step S73).

次に、ステップS73での時間制限付ライトコマンドにより、「指定時間オーバー」が発生したか否かが判断される(ステップS74)。その結果、「指定時間オーバー」エラーが発生した場合は、使用したユニットに対応するユニット管理テーブル211のユニット状態情報における対応可能なビットレートランクが、コマンドのビットレートよりも低いランクに変更される(ステップS75)。   Next, it is determined whether or not “specified time over” has occurred by the time-limited write command in step S73 (step S74). As a result, when the “specified time over” error occurs, the bit rate rank that can be supported in the unit status information of the unit management table 211 corresponding to the used unit is changed to a rank lower than the bit rate of the command ( Step S75).

次に、記憶すべきデータが残っているか否かが判断され(ステップS76)、記憶すべきデータが残っていない場合は、ファイルをクローズし(ステップS77)、処理が終了される。他方、記憶すべきデータが残っている場合は、さらに、ステップS72からの処理が繰り返される。   Next, it is determined whether or not data to be stored remains (step S76). If there is no data to be stored, the file is closed (step S77), and the process ends. On the other hand, when data to be stored remains, the processing from step S72 is further repeated.

リード動作およびライト動作において、各々読みこみエラーおよび書きこみエラーがないと想定すると、時間制限つきコマンドで「指定時間オーバー」エラーが発生する場合は、ブロックが既にフラグメント状態にあると判断することができる。したがって、この場合には、ユニットの状態情報における対応可能なビットレートランクをコマンドのビットレートより低いランクとする。   Assuming that there are no read and write errors in the read and write operations, if a “specified time over” error occurs in a command with a time limit, it may be determined that the block is already in a fragmented state. it can. Therefore, in this case, the bit rate rank that can be handled in the unit state information is set to a rank lower than the bit rate of the command.

尚、実施例2の形態による記憶媒体の初期化動作は、実施例1の形態における記憶媒体の初期化動作(図9)と同様になされる。ここで、ステップS52においては、その状態情報として、ビットレートが最も高いリアルタイムファイルを記憶できることを示す“RT使用可能ユニット(ビットレートaMbpsまで)”がさらに設定される。   Note that the initialization operation of the storage medium according to the second embodiment is the same as the initialization operation (FIG. 9) of the storage medium according to the first embodiment. Here, in step S52, “RT usable unit (up to bit rate a Mbps)” indicating that the real-time file having the highest bit rate can be stored is further set as the state information.

以上、本実施の形態によれば、上記第1の実施の形態と同様、リアルタイムファイルと非リアルタイムファイルのライト処理を、円滑且つ効率的に行うことができるとのメリットに加え、さらに要求されるビットレートが相違する種々のリアルタイムファイルデータを、同一のHDD上に効率的に振り分けて記録することができ、よって、HDDの使用効率をより向上させることができるとのメリットを奏することができる。   As described above, according to the present embodiment, in addition to the merit that the write processing of the real-time file and the non-real-time file can be performed smoothly and efficiently as in the first embodiment, it is further required. Various real-time file data having different bit rates can be efficiently distributed and recorded on the same HDD, and thus the use efficiency of the HDD can be further improved.

なお、本発明は上記実施の形態に限定されるものではないことは言うまでもない。上記実施の形態では、MPEGデータを記録再生するデジタル記録再生装置を例に挙げて説明したが、その他、オーディオデータのみを記録再生するデジタル記録再生装置や、インターネット経由で入手したデータを記録再生する記録再生装置にも広く利用できる。   Needless to say, the present invention is not limited to the above embodiment. In the above embodiment, the digital recording / reproducing apparatus for recording / reproducing MPEG data has been described as an example. However, the digital recording / reproducing apparatus for recording / reproducing only audio data, and the data obtained via the Internet are recorded / reproduced. It can be widely used for recording / reproducing apparatuses.

また、図2、図10に示す各種管理テーブルの生成処理や、図4から図9、図11、図12に示す処理を実行するためのプログラムは、HDDコントロールモジュール117にプリインストールする形態の他、CD−ROM等の記憶媒体からのダウンロード、あるいはインターネットを経由したアプリケーションサーバからのダウンロードによっても実現できる。   2 and 10 and the programs for executing the processes shown in FIGS. 4 to 9, 11, and 12 are preinstalled in the HDD control module 117. It can also be realized by downloading from a storage medium such as a CD-ROM, or downloading from an application server via the Internet.

その他、メタデータの更新タイミングや、メタデータファイルの構成タイミング等についても適宜変更可能である。   In addition, metadata update timing, metadata file configuration timing, and the like can be changed as appropriate.

実施例1の形態に係る記録再生装置の全体構成図1 is a diagram illustrating the overall configuration of a recording / reproducing apparatus according to a first embodiment. 実施例1の形態に係る記録情報の構造を示す図The figure which shows the structure of the recording information which concerns on the form of Example 1 実施例1の形態に係る記録方法を模式的に示す図The figure which shows typically the recording method which concerns on the form of Example 1. FIG. 実施例1の形態に係るリード動作のフローチャートFlowchart of read operation according to embodiment 1 実施例1の形態に係るライト動作のフローチャートFlowchart of write operation according to embodiment 1 実施例1の形態に係るライト動作のフローチャートFlowchart of write operation according to embodiment 1 実施例1の形態に係る削除動作のフローチャートFlowchart of deletion operation according to embodiment 1 実施例1の形態に係る削除動作のフローチャートFlowchart of deletion operation according to embodiment 1 実施例1の形態に係る記憶媒体の初期化動作のフローチャートFlow chart of initialization operation of storage medium according to embodiment 1 実施例2の形態に係る記録情報の構造を示す図The figure which shows the structure of the recording information which concerns on the form of Example 2. 実施例2の形態に係るリード動作のフローチャートFlowchart of read operation according to embodiment 2 実施例2の形態に係るライト動作のフローチャートFlowchart of write operation according to embodiment 2 メディア上の物理アドレスと論理アドレスと欠陥セクタリストの関係を示す図Diagram showing the relationship between physical address and logical address on media and defective sector list 従来のファイル記録方法におけるファイルの構成を示す図The figure which shows the structure of the file in the conventional file recording method 従来のファイル記録方法におけるファイルの構成を示す図The figure which shows the structure of the file in the conventional file recording method

符号の説明Explanation of symbols

30、30a〜30d ブロック
201 リアルタイムファイル1
202 非リアルタイムファイル2
210 ブロック管理テーブル
210a〜210d ブロック管理テーブルのエントリ
211 ユニット管理テーブル
211a、211b ユニット管理テーブルのエントリ

30, 30a-30d Block 201 Real-time file 1
202 Non-real-time file 2
210 Block management table 210a to 210d Block management table entry 211 Unit management table 211a, 211b Unit management table entry

Claims (17)

複数のブロックに分割された記憶領域にファイルデータを記憶するファイルデータ記憶管理方法であって、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを設定する処理と、
連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルを設定する処理と、
前記ユニット属性テーブルに基づいてファイルデータを記憶する処理とを備え、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
前記データ記憶処理は、
記憶されるファイルデータがリアルタイムデータである場合、前記ユニット属性テーブルを参照して、リアルタイムデータが記憶可能な未使用のユニットを検索し、検索されたユニットに含まれる前記ブロックにこのファイルデータを記憶する処理を含む、
ことを特徴とするファイルデータ記憶管理方法。
A file data storage management method for storing file data in a storage area divided into a plurality of blocks,
Processing for setting a block management table for managing whether data is stored in the block;
A process for setting a unit attribute table for managing attributes of units composed of a plurality of consecutive blocks;
Storing file data based on the unit attribute table,
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
The data storage process includes:
When the file data to be stored is real-time data, the unit attribute table is referenced to search for an unused unit capable of storing real-time data, and the file data is stored in the block included in the searched unit. Including processing to
And a file data storage management method.
複数のブロックに分割された記憶領域にファイルデータを記憶するファイルデータ記憶管理方法であって、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを設定する処理と、
連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルを設定する処理と、
前記ユニット属性テーブルに基づいてファイルデータを記憶する処理とを備え、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
前記データ記憶処理は、
記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを検索し、この検索により獲得されたユニットに含まれる未使用のブロックを前記ブロック管理テーブルを参照して検索し、この検索により獲得されたブロックにこのファイルデータを記憶する処理を含む、
ことを特徴とするファイルデータ記憶管理方法。
A file data storage management method for storing file data in a storage area divided into a plurality of blocks,
Processing for setting a block management table for managing whether data is stored in the block;
A process for setting a unit attribute table for managing attributes of units composed of a plurality of consecutive blocks;
Storing file data based on the unit attribute table,
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
The data storage process includes:
If the stored file data is non-real-time data, the unit attribute table is referenced to search for a unit in which non-real-time data is already stored in some blocks in the unit. A process of searching for an unused block included in each unit with reference to the block management table and storing the file data in the block acquired by the search.
And a file data storage management method.
請求項2において、
前記データ記憶処理は、記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを獲得できないとき、前記ユニット属性テーブルを参照して、未使用のユニットを検索し、この検索により獲得されたユニットに含まれる前記ブロックにこのファイルデータを記憶する処理を含むことを特徴とするファイルデータ記憶管理方法。
In claim 2,
When the file data to be stored is non-real-time data, the data storage process cannot acquire a unit in which non-real-time data is already stored in some blocks in the unit with reference to the unit attribute table A file data storage management including a process of searching for an unused unit with reference to the unit attribute table and storing the file data in the block included in the unit obtained by the search Method.
請求項1から3の何れかにおいて、
ファイルデータの記憶に使用されたブロックのリンクをファイルデータ毎に規定するリンクテーブルを、更に含むことを特徴とするファイルデータ記憶管理方法。
In any one of Claim 1 to 3,
A file data storage management method, further comprising a link table that defines a link of blocks used for storing file data for each file data.
請求項1から4の何れかにおいて、
前記ユニットの容量Usizeは、
Usize>N×(Tw+(Usize/Bhdd))×Bsys、
(但し、記憶装置手段との間のデータ転送最低レートBhdd、データストリームのビットレートBsys、前記記憶手段におけるシーク時間のワースト値Tw、同時に処理するストリーム数をNとする)を満たすことを特徴とするファイルデータ記憶管理方法。
In any one of Claims 1-4,
The capacity Usize of the unit is
Usize> N × (Tw + (Usize / Bhdd)) × Bsys,
(However, the minimum data transfer rate Bhdd with the storage unit, the bit rate Bsys of the data stream, the worst value Tw of the seek time in the storage unit, and the number of streams to be processed simultaneously is N). File data storage management method.
複数のブロックに分割された記憶領域にファイルデータを記憶するファイルデータ記憶装置であって、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成するための手段と、
連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルを生成するための手段と、
前記ユニット属性テーブルに基づいてファイルデータを記憶するための手段とを備え、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
前記データを記憶するための手段は、
記憶されるファイルデータがリアルタイムデータである場合、前記ユニット属性テーブルを参照して、リアルタイムデータが記憶可能な未使用のユニットを検索し、検索されたユニットに含まれる前記ブロックにこのファイルデータを記憶することを特徴とするファイルデータ記憶装置。
A file data storage device for storing file data in a storage area divided into a plurality of blocks,
Means for generating a block management table for managing whether or not data is stored in the block;
Means for generating a unit attribute table for managing attributes of units composed of a plurality of consecutive blocks;
Means for storing file data based on the unit attribute table;
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
Means for storing the data are:
When the file data to be stored is real-time data, the unit attribute table is referenced to search for an unused unit capable of storing real-time data, and the file data is stored in the block included in the searched unit. A file data storage device.
複数のブロックに分割された記憶領域にファイルデータを記憶するファイルデータ記憶装置であって、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成するための手段と、
連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルを生成するための手段と、
前記ユニット属性テーブルに基づいてファイルデータを記憶するための手段とを備え、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
前記データを記憶するための手段は、
記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを検索し、この検索により獲得されたユニットに含まれる未使用のブロックにこのファイルデータを記憶することを特徴とするファイルデータ記憶装置。
A file data storage device for storing file data in a storage area divided into a plurality of blocks,
Means for generating a block management table for managing whether or not data is stored in the block;
Means for generating a unit attribute table for managing attributes of units composed of a plurality of consecutive blocks;
Means for storing file data based on the unit attribute table;
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
Means for storing the data are:
If the stored file data is non-real-time data, the unit attribute table is referenced to search for a unit in which non-real-time data is already stored in some blocks in the unit. A file data storage device for storing the file data in an unused block included in the unit.
請求項7において、
前記データを記憶するための手段は、記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを獲得できないとき、前記ユニット属性テーブルを参照して、未使用のユニットを検索し、この検索により獲得されたユニットに含まれる前記ブロックを前記ブロック管理テーブルを参照して検索し、この検索により獲得されたブロックにこのファイルデータを記憶することを特徴とするファイルデータ記憶装置。
In claim 7,
When the file data to be stored is non-real time data, the means for storing the data refers to the unit attribute table, and the non-real time data is already stored in some blocks in the unit. When a unit cannot be acquired, an unused unit is searched with reference to the unit attribute table, and the block included in the unit acquired by this search is searched with reference to the block management table. A file data storage device for storing the file data in an acquired block.
請求項6から8の何れかにおいて、
ファイルデータの記憶に使用されたブロックのリンクをファイルデータ毎に規定するリンクテーブル生成するための手段を、更に含むことを特徴とするファイルデータ記憶装置。
In any of claims 6 to 8,
A file data storage device further comprising means for generating a link table for defining a link of blocks used for storing file data for each file data.
請求項6から9の何れかにおいて、
前記ユニットの容量Usizeは、
Usize>N×(Tw+(Usize/Bhdd))×Bsys、
(但し、記憶装置手段との間のデータ転送最低レートBhdd、データストリームのビットレートBsys、前記記憶手段におけるシーク時間のワースト値Tw、同時に処理するストリーム数をNとする)を満たすことを特徴とするファイルデータ記憶装置。
In any of claims 6 to 9,
The capacity Usize of the unit is
Usize> N × (Tw + (Usize / Bhdd)) × Bsys,
(However, the minimum data transfer rate Bhdd with the storage unit, the bit rate Bsys of the data stream, the worst value Tw of the seek time in the storage unit, and the number of streams to be processed simultaneously is N). File data storage device.
複数のブロックに分割された記憶領域にファイルデータを記憶するための処理を実行するプログラムであって、
連続した複数の前記ブロックからユニットを構成し、各ユニットの属性を管理するユニット属性テーブルを生成するステップと、
前記ユニット属性テーブルに基づいてファイルデータを記憶するデータ記憶ステップと、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成するステップとを含み、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
前記データ記憶ステップは、
記憶されるファイルデータがリアルタイムデータである場合、前記ユニット属性テーブルを参照して、リアルタイムデータが記憶可能な未使用のユニットを検索し、検索されたユニットに含まれる前記ブロックにこのファイルデータを記憶するステップを含むことを特徴とするプログラム。
A program for executing processing for storing file data in a storage area divided into a plurality of blocks,
Constructing a unit from a plurality of consecutive blocks, and generating a unit attribute table for managing attributes of each unit;
A data storage step for storing file data based on the unit attribute table;
Generating a block management table for managing whether or not data is stored in the block,
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
The data storing step includes
When the file data to be stored is real-time data, the unit attribute table is referenced to search for an unused unit capable of storing real-time data, and the file data is stored in the block included in the searched unit. A program comprising the steps of:
複数のブロックに分割された記憶領域にファイルデータを記憶するための処理を実行するプログラムであって、
連続した複数の前記ブロックからユニットを構成し、各ユニットの属性を管理するユニット属性テーブルを生成するステップと、
前記ユニット属性テーブルに基づいてファイルデータを記憶するデータ記憶ステップと、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルを生成するステップとを含み、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含み、
記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを検索し、この検索により獲得されたユニットに含まれる未使用のブロックにこのファイルデータを記憶するステップを含むことを特徴とするプログラム。
A program for executing processing for storing file data in a storage area divided into a plurality of blocks,
Constructing a unit from a plurality of consecutive blocks, and generating a unit attribute table for managing attributes of each unit;
A data storage step for storing file data based on the unit attribute table;
Generating a block management table for managing whether or not data is stored in the block,
The unit attribute table includes information defining the usage status of each unit and information defining whether real-time data can be stored,
If the stored file data is non-real-time data, the unit attribute table is referenced to search for a unit in which non-real-time data is already stored in some blocks in the unit. And storing the file data in an unused block included in the unit.
請求項12において、
前記データ記憶ステップは、記憶されるファイルデータが非リアルタイムデータである場合、前記ユニット属性テーブルを参照して、そのユニット中の一部のブロックに既に非リアルタイムデータが記憶されているユニットを獲得できないとき、前記ユニット属性テーブルを参照して、未使用のユニットを検索し、この検索により獲得されたユニットに含まれる前記ブロックを前記ブロック管理テーブルを参照して検索し、この検索により獲得されたブロックにこのファイルデータを記憶するステップを含むことを特徴とするプログラム。
In claim 12,
In the data storage step, when the file data to be stored is non-real-time data, the unit attribute table is referred to and a unit in which non-real-time data is already stored in some blocks in the unit cannot be acquired. The unit attribute table is referenced to search for an unused unit, the block included in the unit acquired by this search is searched for by referring to the block management table, and the block acquired by this search A program for storing the file data.
請求項11から13の何れかにおいて、
ファイルデータの記憶に使用されたブロックのリンクをファイルデータ毎に規定するリンクテーブルを生成するステップを、更に含むことを特徴とするプログラム。
In any of claims 11 to 13,
A program further comprising a step of generating a link table that defines, for each file data, a link of blocks used for storing file data.
請求項11から14の何れかにおいて、
前記ユニットの容量Usizeは、
Usize>N×(Tw+(Usize/Bhdd))×Bsys、
(但し、記憶装置手段との間のデータ転送最低レートBhdd、データストリームのビットレートBsys、前記記憶手段におけるシーク時間のワースト値Tw、同時に処理するストリーム数をNとする)を満たすことを特徴とするプログラム。
In any of claims 11 to 14,
The capacity Usize of the unit is
Usize> N × (Tw + (Usize / Bhdd)) × Bsys,
(However, the minimum data transfer rate Bhdd with the storage unit, the bit rate Bsys of the data stream, the worst value Tw of the seek time in the storage unit, and the number of streams to be processed simultaneously is N). Program to do.
複数のブロックに分割された記憶領域にファイルデータが記憶される記憶媒体であって、
前記ブロックにデータが記憶されているか否かを管理するブロック管理テーブルと、
連続した複数の前記ブロックから構成したユニットの属性を管理するユニット属性テーブルとが記憶されており、
前記ユニット属性テーブルは、各ユニットの使用状況を規定する情報と、リアルタイムデータを記憶可能か否かを規定する情報を含むことを含むことを特徴とする記憶媒体。
A storage medium in which file data is stored in a storage area divided into a plurality of blocks,
A block management table for managing whether or not data is stored in the block;
A unit attribute table for managing attributes of a unit composed of a plurality of consecutive blocks is stored;
The unit attribute table includes information defining usage status of each unit and information defining whether real-time data can be stored.
請求項16において、
前記記憶媒体は、ファイルデータの記憶に使用されたブロックのリンクをファイルデータ毎に規定するリンクテーブルが更に記憶されていることを特徴とする記憶媒体。
In claim 16,
The storage medium further stores a link table for defining a link of blocks used for storing file data for each file data.
JP2004322082A 2002-02-08 2004-11-05 File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium Expired - Fee Related JP3717922B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004322082A JP3717922B2 (en) 2002-02-08 2004-11-05 File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002031793 2002-02-08
JP2002088273 2002-03-27
JP2004322082A JP3717922B2 (en) 2002-02-08 2004-11-05 File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003030411A Division JP3631234B2 (en) 2002-02-08 2003-02-07 File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium

Publications (2)

Publication Number Publication Date
JP2005050383A true JP2005050383A (en) 2005-02-24
JP3717922B2 JP3717922B2 (en) 2005-11-16

Family

ID=34279437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004322082A Expired - Fee Related JP3717922B2 (en) 2002-02-08 2004-11-05 File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium

Country Status (1)

Country Link
JP (1) JP3717922B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058327A (en) * 2005-08-22 2007-03-08 Hitachi Ltd Storage device, data restoration method and data access method
WO2007034706A1 (en) * 2005-09-22 2007-03-29 Matsushita Electric Industrial Co., Ltd. Information recording medium access apparatus, and data recording method
JP2009110287A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Access control device and access control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058327A (en) * 2005-08-22 2007-03-08 Hitachi Ltd Storage device, data restoration method and data access method
WO2007034706A1 (en) * 2005-09-22 2007-03-29 Matsushita Electric Industrial Co., Ltd. Information recording medium access apparatus, and data recording method
US7984231B2 (en) 2005-09-22 2011-07-19 Panasonic Corporation Information recording medium access device, and data recording method
JP4859837B2 (en) * 2005-09-22 2012-01-25 パナソニック株式会社 Information recording medium access device and data recording method
JP2009110287A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Access control device and access control method

Also Published As

Publication number Publication date
JP3717922B2 (en) 2005-11-16

Similar Documents

Publication Publication Date Title
US6285827B1 (en) Optical disc recording apparatus, computer-readable recording medium recording a file management program, and optical disc
JP4242966B2 (en) Recording medium for storing real-time recording / reproduction information
US7647470B2 (en) Memory device and controlling method for elongating the life of nonvolatile memory
US20110122759A1 (en) Data Recording Apparatus and System Having Sustained High Transfer Rates
US6370325B2 (en) Optical disc recording apparatus, computer-readable recording medium recording a file management program, and optical disc
US7058770B2 (en) Method and apparatus for controlling the recording of digital information, by using unit management table
US7197238B2 (en) File system, storage area managing method, and storage medium thereof
US7509342B2 (en) File data storage management method, file data storage device, program executing processing for storing file data, and storage medium
JP4241839B2 (en) Data and file system information recording apparatus and recording method
JP4251219B2 (en) Editing apparatus and editing method
JP3631234B2 (en) File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium
JP3717922B2 (en) File data storage management method, file data storage device, program for executing processing for storing file data, and storage medium
JP5555489B2 (en) Formatting device, formatting method and program
US20050259542A1 (en) Reproduction device and method, recording medium, and program
JP2000267904A (en) Data recorder and its method
US8565584B2 (en) Editing apparatus and editing method
JP4274783B2 (en) Recording device
EP2256648A1 (en) Method for storing data files, method for reading data content, and data store
JP2007072839A (en) Recording control device and method, and program
JP3698630B2 (en) Information recording medium, recording method and reproducing method thereof, system control unit thereof, information recording apparatus and information reproducing apparatus thereof
JP2001043622A (en) Information processor
US20040184784A1 (en) Information recording apparatus and information recording method
RU2300148C2 (en) Data carrier for storing information about recording/reproduction in real time scale, method and device for recording and reproduction in real time scale, and method for processing files using these
KR20080066277A (en) Apparatus and method for managing data
JP2006236534A (en) Information recording and reproducing method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041116

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20041124

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20041208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050728

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050823

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050831

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090909

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100909

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100909

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110909

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110909

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120909

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120909

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130909

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees