JP2007042089A - File recording method, file recording apparatus and program - Google Patents

File recording method, file recording apparatus and program Download PDF

Info

Publication number
JP2007042089A
JP2007042089A JP2006184617A JP2006184617A JP2007042089A JP 2007042089 A JP2007042089 A JP 2007042089A JP 2006184617 A JP2006184617 A JP 2006184617A JP 2006184617 A JP2006184617 A JP 2006184617A JP 2007042089 A JP2007042089 A JP 2007042089A
Authority
JP
Japan
Prior art keywords
file
recording
area
reserved area
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006184617A
Other languages
Japanese (ja)
Inventor
Hideaki Kobayashi
秀明 小林
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2006184617A priority Critical patent/JP2007042089A/en
Publication of JP2007042089A publication Critical patent/JP2007042089A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To extend the life of an information medium by avoiding concentration of rewriting of management information of a file system on a storage area while maintaining compatibility with an existing file system regardless of hardware configuration or software configuration of the file system of the information medium. <P>SOLUTION: In the file recording method on the information medium 100 including at least both a specific area 102 and a data area 103, a reserved area 134 is allocated previously as a part of a recording file, from a current recording location of the recording file 130 under recording on the data area, at the same time, management information of the recording file 130 including the reserved area 134 is recorded on the specific area 102 and when recording data additionally on the recording file 130, the data are recorded on the reserved area from the recording location 131. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、情報媒体に対するファイル記録方法、ファイル記録装置およびプログラムに関し、より詳細には、ファイルシステムを使用したファイル記録時における情報媒体の長寿命化の手法に関する。   The present invention relates to a file recording method, a file recording apparatus, and a program for an information medium, and more particularly to a technique for extending the life of an information medium during file recording using a file system.

ハードディスクや光ディスク、フラッシュメモリといった情報媒体に情報を記録する記録装置では、情報媒体上の記録領域に情報を記録し、あるいはその情報が不要になれば削除することによって、当該領域を他の情報を記録するための領域として再利用できる。このような記録装置では、情報の管理を容易とするために、ファイルシステムを利用することが一般的である。ファイルシステムを利用することによって、記録した情報をファイルとして管理し、ディレクトリ階層を構築できる。ファイルシステムには、パソコン等で用いられているFAT(File Allocation Table)や、DVD(Digital Versatile Disk)等で用いられているUDF(Universal Disk Format)などがある。ファイルシステムを導入すると、情報媒体に記録する実データの他に、実データにアクセスし易くするための位置情報などの管理情報も情報媒体に記録される。   In a recording apparatus that records information on an information medium such as a hard disk, an optical disk, or a flash memory, the information is recorded in a recording area on the information medium, or the information is deleted when the information is no longer needed, so that the other information is stored in the area. It can be reused as an area for recording. In such a recording apparatus, a file system is generally used to facilitate management of information. By using the file system, the recorded information can be managed as a file and a directory hierarchy can be constructed. File systems include FAT (File Allocation Table) used in personal computers and UDF (Universal Disk Format) used in DVD (Digital Versatile Disk) and the like. When the file system is introduced, management information such as position information for making it easy to access the actual data is recorded on the information medium in addition to the actual data recorded on the information medium.

ここで、ファイルシステムにおける管理情報は、情報媒体の特定の箇所に集中していることが多い。例えばFATの管理情報は、情報媒体の論理アドレス上の先頭部分付近に記録されている。ファイルシステムを搭載した機器としては、パーソナルコンピューターが有名であるが、近年ではビデオカメラなどの映像機器などにも搭載されてきている。   Here, the management information in the file system is often concentrated in a specific part of the information medium. For example, FAT management information is recorded in the vicinity of the top portion on the logical address of the information medium. Personal computers are well known as devices equipped with file systems, but in recent years they have also been installed in video devices such as video cameras.

以下、従来のファイル記録装置について説明する。   A conventional file recording apparatus will be described below.

ファイル記録装置が搭載された機器として、車載用カメラシステムを一例に挙げて説明する。車載用カメラシステムは、大別してカメラユニットと、カメラユニットで撮影された映像信号をメモリーカードなどの情報媒体に記録可能な本体ユニットとから構成され、両者をケーブルなどで接続して使用される。ファイル記録装置は本体ユニットに組み込まれる。一般的に車載用カメラシステムは、数時間の連続記録が可能なシステムである。したがって、情報媒体に対するアクセス回数が非常に多い。   An in-vehicle camera system will be described as an example of a device equipped with a file recording device. The in-vehicle camera system is roughly composed of a camera unit and a main unit that can record a video signal photographed by the camera unit on an information medium such as a memory card, which are used by connecting them with a cable or the like. The file recording device is incorporated in the main unit. In general, an in-vehicle camera system is a system capable of continuous recording for several hours. Therefore, the number of accesses to the information medium is very large.

図12は、従来のファイル記録装置のハードウェア構成を示すブロック図である。   FIG. 12 is a block diagram showing a hardware configuration of a conventional file recording apparatus.

図12において、ファイル記録装置40は、制御部41、メディアコントローラー45、エンコーダー46、アナログ−デジタル変換部(以下、AD変換部と称する)47、インターフェース48を備えている。制御部41、メディアコントローラー45、エンコーダー46は、バスに接続されている。ファイル記録装置40には、カメラ20が接続され、撮影された映像や音声がファイル記録装置40に入力されている。また、ファイル記録装置40には、情報媒体100を着脱することができる。   12, the file recording apparatus 40 includes a control unit 41, a media controller 45, an encoder 46, an analog-digital conversion unit (hereinafter referred to as an AD conversion unit) 47, and an interface 48. The control unit 41, the media controller 45, and the encoder 46 are connected to the bus. The camera 20 is connected to the file recording device 40, and captured video and audio are input to the file recording device 40. Further, the information medium 100 can be attached to and detached from the file recording apparatus 40.

制御部41は、信号処理を行う中央演算処理部(以下、CPUと称する)42と、CPU42において信号処理が行われる際に一時的に作業データが保存されるメモリ43と、プログラムが格納されるプログラム格納部44とを備えている。CPU42とプログラム格納部44は、バスに接続されている。プログラム格納部44には、オペレーティングシステムなどのプログラムが格納されている。   The control unit 41 stores a central processing unit (hereinafter referred to as a CPU) 42 that performs signal processing, a memory 43 that temporarily stores work data when the CPU 42 performs signal processing, and a program. And a program storage unit 44. The CPU 42 and the program storage unit 44 are connected to a bus. The program storage unit 44 stores a program such as an operating system.

メディアコントローラー45は、ファイル記録装置40に着脱可能な情報媒体100との間でデータや信号の授受を行うことができるものである。例えば、情報媒体100がメモリーカードで構成されている場合は、メモリーカードに搭載されている電気接点と電気的に接続されるコネクタや、メモリーカードに対するデータなどの記録再生制御を行う制御回路などを備えている。   The media controller 45 can exchange data and signals with the information medium 100 that can be attached to and detached from the file recording apparatus 40. For example, when the information medium 100 is composed of a memory card, a connector that is electrically connected to an electrical contact mounted on the memory card, a control circuit that performs recording / reproduction control of data on the memory card, etc. I have.

インターフェース48には、カメラユニット20が接続され、カメラユニット20から出力される映像信号をファイル記録装置40に入力するものである。   The camera unit 20 is connected to the interface 48, and a video signal output from the camera unit 20 is input to the file recording device 40.

AD変換部47は、インターフェース48を介して入力される映像信号(アナログ信号)をデジタル映像信号に変換する。   The AD converter 47 converts a video signal (analog signal) input via the interface 48 into a digital video signal.

エンコーダー46は、AD変換部47から出力されるデジタル映像信号を、所定の信号圧縮方法で圧縮する。圧縮方式は、例えば動画像を高圧縮可能なMPEG4規格(MPEG: Moving Picture Experts Group)に準拠したものがあるが、他の圧縮方式であってもよい。   The encoder 46 compresses the digital video signal output from the AD conversion unit 47 by a predetermined signal compression method. For example, the compression method is based on the MPEG4 standard (MPEG: Moving Picture Experts Group) capable of highly compressing moving images, but other compression methods may be used.

また、カメラユニット20は、CCDイメージセンサーなどの撮像素子やレンズなどが内蔵され、入射される光学画像を電気信号に変換して出力している。なお、カメラユニット20は、ファイル記録装置40によって動作制御される。   The camera unit 20 incorporates an image pickup device such as a CCD image sensor, a lens, and the like, and converts an incident optical image into an electrical signal and outputs it. The operation of the camera unit 20 is controlled by the file recording device 40.

図12において、カメラユニット20で撮影された光学画像は、アナログ映像信号に変換されて出力されている。出力されるアナログ映像信号は、インターフェース48を介して、AD変換部47に入力される。AD変換部47は、入力されるアナログ映像信号をデジタル映像信号に変換し、エンコーダー46へ出力している。エンコーダー46は、入力されるデジタル映像信号を、所定の圧縮形式にて画像圧縮を行い、出力している。デジタル映像信号は、プログラム格納部44に格納されているOSなどに基づいて、CPU42及びメモリ43で信号処理される。具体的には、所定のファイルシステムに準じ、管理情報とファイルが生成される。生成された管理情報とファイルは、メディアコントローラー45を介して情報媒体100へ記録される。   In FIG. 12, an optical image taken by the camera unit 20 is converted into an analog video signal and output. The output analog video signal is input to the AD conversion unit 47 via the interface 48. The AD conversion unit 47 converts the input analog video signal into a digital video signal and outputs the digital video signal to the encoder 46. The encoder 46 compresses and outputs the input digital video signal in a predetermined compression format. The digital video signal is signal-processed by the CPU 42 and the memory 43 based on the OS stored in the program storage unit 44. Specifically, management information and a file are generated according to a predetermined file system. The generated management information and file are recorded on the information medium 100 via the media controller 45.

図13は、従来のファイル記録装置のソフトウェア構成を示すブロック図である。図13に示す構成は、図12における制御部41に組み込まれている。図13に示すように、エンコーダー46(図12参照)から出力される画像データに基づきファイルを生成するファイル生成部144と、ファイル生成部144で生成されたファイルに関連した管理情報を生成する管理情報生成部145とを備えている。   FIG. 13 is a block diagram showing a software configuration of a conventional file recording apparatus. The configuration shown in FIG. 13 is incorporated in the control unit 41 in FIG. As illustrated in FIG. 13, a file generation unit 144 that generates a file based on image data output from the encoder 46 (see FIG. 12), and a management that generates management information related to the file generated by the file generation unit 144. An information generation unit 145.

図14は、ファイルシステムを導入した従来のファイル記録方法によってファイルを記録された情報媒体の記録内容を示す図である。図14において、情報媒体100は、論理先頭アドレス101から順に、特定領域102、データ領域103とを備えている。特定領域102は、導入したファイルシステムでの管理情報などが記録される領域である。データ領域103は、導入したファイルシステムでの実データが記録される領域である。   FIG. 14 is a diagram showing recorded contents of an information medium on which a file is recorded by a conventional file recording method in which a file system is introduced. In FIG. 14, the information medium 100 includes a specific area 102 and a data area 103 in order from the logical head address 101. The specific area 102 is an area in which management information in the introduced file system is recorded. The data area 103 is an area where actual data in the introduced file system is recorded.

データ領域103には、例えば画像データで構成されている記録ファイル130が記録されている。データ領域103において、記録ファイルが記録されていない部分には、空き領域132及び133が存在する。   In the data area 103, for example, a recording file 130 composed of image data is recorded. In the data area 103, empty areas 132 and 133 exist in a portion where no recording file is recorded.

特定領域102には、管理領域120が存在する。管理領域120には、管理情報などが記録されている。管理情報は、例えば情報媒体100において、記録ファイル130によって確保されている領域の位置情報等を含む情報である。特定領域102において管理領域120が存在しない部分には、空き領域121が存在する。   A management area 120 exists in the specific area 102. In the management area 120, management information and the like are recorded. The management information is information including position information of an area secured by the recording file 130 in the information medium 100, for example. A free area 121 exists in a part where the management area 120 does not exist in the specific area 102.

矢印122は、記録ファイル130の終端位置に対応して管理領域120の更新が行われる相関関係を示す。   An arrow 122 indicates a correlation in which the management area 120 is updated corresponding to the end position of the recording file 130.

図15A〜図15Cは、従来のファイル記録方法による情報媒体の内容変化を示す図である。図15A〜図15Cにおいて、情報媒体100a、100b、100cは、図14の情報媒体100に対するファイル記録中において、情報媒体100の記録状態の一例を時系列順に並べたものである。   FIG. 15A to FIG. 15C are diagrams showing changes in information medium contents by a conventional file recording method. 15A to 15C, information media 100a, 100b, and 100c are examples in which recording states of the information medium 100 are arranged in time series during file recording on the information medium 100 in FIG.

図15Aにおいて、図示のように記録されている記録ファイル130aにデータが追加記録される場合、記録位置131aは、図15Bの記録位置131b、図15Cの記録位置131cのように移動する。すなわち、記録ファイル130の終端位置はファイルのサイズが増加する方向に移動する。すると、相関関係矢印122a,122b,122cに従って、管理情報生成部145により管理領域120における管理情報の更新が必ず行われる。すなわち、情報媒体100上では、ファイルシステム143によって、管理領域120への書換えが集中することが多い。   In FIG. 15A, when data is additionally recorded in the recording file 130a recorded as shown in the drawing, the recording position 131a moves to a recording position 131b in FIG. 15B and a recording position 131c in FIG. 15C. That is, the end position of the recording file 130 moves in the direction in which the file size increases. Then, the management information in the management area 120 is always updated by the management information generation unit 145 in accordance with the correlation arrows 122a, 122b, and 122c. That is, on the information medium 100, rewriting to the management area 120 is often concentrated by the file system 143.

このような場合、データの書換え回数に物理的な上限のある情報媒体(例えば、光ディスクやフラッシュメモリなど)では、管理領域120への書換えが集中することで、局所的な劣化が発生し、情報媒体の寿命が短くなってしまうという問題ある。このような問題を、情報媒体のハードウェア構成によって回避する方法がある。例えばフラッシュメモリでは、書換え回数の平均化を行うためのウェア・レベリング機能が知られている。他には、情報媒体のソフトウェア構成によって実現する方法がある。例えばファイルシステムの管理情報の記憶領域に、管理情報のサイズよりも大きなサイズを予め予約領域として確保し、管理情報の書換え回数を予約領域内で平均化する方法がある(特許文献1参照)。
特開2004−79125号公報
In such a case, in an information medium (for example, an optical disk or a flash memory) having a physical upper limit on the number of data rewrites, local deterioration occurs due to concentration of rewrites to the management area 120, and information There is a problem that the life of the medium is shortened. There is a method for avoiding such a problem by the hardware configuration of the information medium. For example, in a flash memory, a wear leveling function for averaging the number of rewrites is known. Another method is realized by the software configuration of the information medium. For example, there is a method in which a size larger than the size of the management information is secured in advance in the storage area of the management information of the file system, and the number of management information rewrites is averaged in the reserved area (see Patent Document 1).
JP 2004-79125 A

しかしながら、上記のようなハードウェア構成による実現方法では、使用する情報媒体の規格、素材、構成などの理由で書換え回数の平均化が全く実現できない、あるいは部分的にしか実現できないという課題がある。例えば、全体領域が複数のブロックに分割され、平均化は各ブロック単位内に制限されている情報媒体の場合、各ブロック内での書換え回数は平均化されるが、各ブロック間の書換え回数は平均化されない。すなわち、管理領域を含んだ特定のブロックのみ書換え回数が多くなる可能性がある。   However, the above-described realization method using the hardware configuration has a problem that the average number of rewrites cannot be realized at all or only partially due to the standard, material, and configuration of the information medium to be used. For example, in the case of an information medium in which the entire area is divided into a plurality of blocks and the averaging is limited within each block unit, the number of rewrites within each block is averaged, but the number of rewrites between each block is Not averaged. That is, there is a possibility that the number of times of rewriting increases only for a specific block including the management area.

また、上記のようなソフトウェア構成による実現方法では、特殊な記録方法及び管理方法を取るために、広く一般に使用されている既存のファイルシステムとの互換性が保てなくなるという課題がある。   In addition, the above-described implementation method based on the software configuration has a problem that compatibility with an existing file system that is widely used in general cannot be maintained because of a special recording method and management method.

本発明は、上記のような課題を解消するためになされたもので、情報媒体のハードウェア構成や、情報媒体のファイルシステムのソフトウェア構成とは関係無く、既存のファイルシステムとの互換性を保ちながら、ファイルシステムの管理情報の記憶領域への書換えの集中を回避し、情報媒体の長寿命化を実現するファイル記録装置を提供することを目的とする。また、そのようなファイル記録装置に適したファイル記録方法を提供することを目的とする。また、そのようなファイル記録方法を実現できるプログラムを提供することを目的とする。   The present invention has been made to solve the above-described problems, and maintains compatibility with an existing file system regardless of the hardware configuration of the information medium and the software configuration of the file system of the information medium. However, an object of the present invention is to provide a file recording apparatus that avoids the concentration of rewriting of management information of a file system in a storage area and realizes a long life of an information medium. It is another object of the present invention to provide a file recording method suitable for such a file recording apparatus. It is another object of the present invention to provide a program that can realize such a file recording method.

上記課題を解決するために本発明のファイル記録方法の第1の方法は、管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録方法であって、前記データ領域に記録中のファイルの現在の記録位置から連続した所定のサイズの予約領域を、前記ファイルの一部に確保し、前記予約領域を含む前記ファイルの管理情報を、前記特定領域に記録し、前記ファイルにデータを追加記録するときには、前記記録位置から記録を開始し、前記予約領域に前記データを記録するものである。   In order to solve the above-mentioned problem, a first method of the file recording method of the present invention is the information recording medium including at least a specific area in which management information can be recorded and a data area in which a file can be recorded. A file recording method capable of recording a file, wherein a reserved area having a predetermined size continuous from a current recording position of a file being recorded in the data area is secured in a part of the file, and the reserved area is When the management information of the file is recorded in the specific area and data is additionally recorded in the file, the recording is started from the recording position and the data is recorded in the reserved area.

また、本発明のファイル記録方法の第2の方法は、管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録方法であって、前記データ領域に記録中のファイルにおける、現在の記録位置から連続した所定のサイズの予約領域を前記ファイルの一部に確保した場合の前記管理情報を、前記特定領域に記録することで、前記記録位置から連続した前記所定サイズの仮想予約領域を確保し、前記ファイルにデータを追加記録するときは、前記記録位置から前記仮想予約領域に対して前記データを記録するものである。   Further, the second method of the file recording method of the present invention is capable of recording the management information and the file on an information medium including at least a specific area where the management information can be recorded and a data area where the file can be recorded. In the file recording method, the management information when a reserved area having a predetermined size continuous from the current recording position in a file being recorded in the data area is secured in a part of the file is stored in the specific area. By recording the data, the virtual reserved area of the predetermined size continuous from the recording position is secured, and when data is additionally recorded in the file, the data is recorded from the recording position to the virtual reserved area. Is.

また、本発明のファイル記録装置の第1の構成は、管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録装置であって、外部から入力されるデータから前記管理情報と前記ファイルとを生成する制御部と、前記制御部から出力される前記管理情報と前記ファイルとを、前記情報媒体へ記録する記録制御部とを備え、前記制御部は、前記情報媒体の前記データ領域に記録するファイルを生成するファイル生成部と、前記ファイル生成部において生成された前記ファイルに関連する管理情報を生成する管理情報生成部と、前記ファイルの現在の記録位置から連続したデータで構成される予約領域を確保する予約領域確保部と、前記予約領域確保部が確保する前記予約領域のサイズを算出するサイズ算出部とを備えたものである。   The first configuration of the file recording apparatus of the present invention is capable of recording the management information and the file on an information medium including at least a specific area where the management information can be recorded and a data area where the file can be recorded. A file recording apparatus that generates the management information and the file from data input from the outside, and records the management information and the file output from the control unit on the information medium. A recording control unit that generates a file to be recorded in the data area of the information medium, and generates management information related to the file generated by the file generation unit. A management information generating unit, a reserved area securing unit for securing a reserved area composed of continuous data from the current recording position of the file, and the reserved area Those having a size calculating unit that calculates the size of the reserved area coercive portion is ensured.

また、本発明のファイル記録装置の第2の構成は、管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録装置であって、外部から入力されるデータから前記管理情報と前記ファイルとを生成する制御部と、前記制御部から出力される前記管理情報と前記ファイルとを、前記情報媒体へ記録する記録制御部とを備え、前記制御部は、前記情報媒体の前記データ領域に記録するファイルを生成するファイル生成部と、前記ファイル生成部において生成された前記ファイルに関連する管理情報を生成する管理情報生成部と、前記データ領域に記録中のファイルにおける、現在の記録位置から連続した所定のサイズの予約領域を前記ファイルの一部に確保した場合の前記管理情報を、前記特定領域に記録することで、前記記録位置から連続した前記所定サイズの仮想予約領域を確保する予約領域確保部と、前記仮想予約領域のサイズを算出するサイズ算出部とを備えたものである。   In addition, the second configuration of the file recording apparatus of the present invention can record the management information and the file on an information medium including at least a specific area where the management information can be recorded and a data area where the file can be recorded. A file recording apparatus that generates the management information and the file from data input from the outside, and records the management information and the file output from the control unit on the information medium. A recording control unit that generates a file to be recorded in the data area of the information medium, and generates management information related to the file generated by the file generation unit. A management information generating unit, and a reserved area of a predetermined size continuous from a current recording position in a file being recorded in the data area; Recording the management information in the case of securing in a specific area, recording the reserved area securing unit that secures the virtual reserved area of the predetermined size continuous from the recording position, and calculating the size of the virtual reserved area A size calculating unit.

本発明のファイル記録方法によれば、ファイルシステムの管理情報の記憶領域への書換えの集中を回避し、情報媒体の長寿命化を実現することが可能となる。   According to the file recording method of the present invention, it is possible to avoid the concentration of rewriting of the management information of the file system in the storage area and to extend the life of the information medium.

また、予約領域または仮想予約領域を確保する処理は、ファイルシステムへの一般的なアクセス方法によって行われるため、既存のファイルシステムとの互換性を保つことができる。   In addition, since the process for securing the reserved area or the virtual reserved area is performed by a general access method to the file system, compatibility with the existing file system can be maintained.

本発明のファイル記録方法は、前記予約領域または前記仮想予約領域の確保タイミングは、記録中の前記ファイルの全体サイズ、前記情報媒体上の前記データ領域の空きサイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記ファイルの記録位置が前記情報媒体の一つあるいは複数の論理アドレス境界に到達するタイミングのうち、少なくともいずれかひとつに基づいて決定される方法としてもよい。   In the file recording method of the present invention, the reservation timing of the reserved area or the virtual reserved area is determined based on the overall size of the file being recorded, the free size of the data area on the information medium, the reserved area or the virtual reserved area. Is determined based on at least one of the remaining size, the time from the start of recording of the file being recorded, and the timing at which the recording position of the file reaches one or more logical address boundaries of the information medium. It is good also as a method.

また、本発明のファイル記録方法は、前記予約領域または前記仮想予約領域の確保サイズは、記録中の前記ファイルの全体サイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記情報媒体上の前記データ領域の空きサイズ、前記情報媒体の一つあるいは複数の論理アドレス境界、前記ファイルのファイル名、及び前記ファイルのデータ帯域幅のうち、少なくともいずれかひとつに相関する方法としてもよい。   Further, in the file recording method of the present invention, the reserved size of the reserved area or the virtual reserved area is the total size of the file being recorded, the remaining size of the reserved area or the virtual reserved area, the size of the file being recorded At least one of the time from the start of recording, the free size of the data area on the information medium, one or more logical address boundaries of the information medium, the file name of the file, and the data bandwidth of the file A method that correlates to one may be used.

また、本発明のファイル記録方法は、前記予約領域または前記仮想予約領域が、前記ファイルの記録終了時に削除される方法としてもよい。   The file recording method of the present invention may be a method in which the reserved area or the virtual reserved area is deleted at the end of recording of the file.

また、本発明のファイル記録装置は、前記予約領域確保部における前記予約領域または前記仮想予約領域の確保タイミングは、記録中の前記ファイルの全体サイズ、前記情報媒体上の前記データ領域の空きサイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、及び前記ファイルの記録位置が前記情報媒体の一つあるいは複数の論理アドレス境界に到達するタイミングのうち、少なくともいずれかひとつに基づいて決定される構成としてもよい。   Further, in the file recording apparatus of the present invention, the reserved area or the virtual reserved area securing timing in the reserved area securing unit is the total size of the file being recorded, the free size of the data area on the information medium, Among the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, and the timing at which the recording position of the file reaches one or more logical address boundaries of the information medium, It is good also as a structure determined based on at least any one.

また、本発明のファイル記録装置は、前記サイズ算出部は、記録中の前記ファイルの全体サイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記情報媒体上の前記データ領域の空きサイズ、前記情報媒体の一つあるいは複数の論理アドレス境界、前記ファイルのファイル名、及び前記ファイルのデータ帯域幅のうち、少なくともいずれかひとつに基づいて前記予約領域または前記仮想予約領域の確保サイズを算出する構成としてもよい。   Further, in the file recording apparatus of the present invention, the size calculation unit includes the entire size of the file being recorded, the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, The reserved area based on at least one of the free size of the data area on the information medium, one or more logical address boundaries of the information medium, the file name of the file, and the data bandwidth of the file Or it is good also as a structure which calculates the reservation size of the said virtual reservation area | region.

(実施の形態1)
ファイル記録装置は、入力されるデジタルデータをファイル形式に変換して、情報媒体に記録する装置であり、パーソナルコンピューターや、ビデオカメラなどの映像機器などにも搭載されている。本実施の形態では、ファイル記録装置が搭載された機器として、車載用カメラシステムを一例に挙げて説明する。勿論、本発明は車載用カメラシステムに限定されるものではない。
(Embodiment 1)
A file recording device is a device that converts input digital data into a file format and records the data on an information medium, and is also mounted on a personal computer, video equipment such as a video camera, and the like. In the present embodiment, an in-vehicle camera system will be described as an example of a device equipped with a file recording device. Of course, the present invention is not limited to the in-vehicle camera system.

車載用カメラシステムは、自動車の車内に搭載され進行方向前方の景色を撮影可能なカメラユニットと、カメラユニットで撮影された映像を情報媒体に記録可能な本体ユニットとから構成される。カメラユニットと本体ユニットとは、互いにケーブルや無線通信で接続され、信号やデータの送受信を行うことができる。ファイル記録装置は、本体ユニットに組み込まれる。一般的に車載用カメラシステムは、数時間の連続撮影が行われることが多いシステムであるため、情報媒体に対するアクセス回数が非常に多い。   The in-vehicle camera system is composed of a camera unit that is mounted in a car and can capture a scene ahead of the traveling direction, and a main unit that can record an image captured by the camera unit on an information medium. The camera unit and the main unit are connected to each other via a cable or wireless communication, and can transmit and receive signals and data. The file recording device is incorporated in the main unit. In general, an in-vehicle camera system is a system in which continuous shooting for several hours is often performed, and thus the number of accesses to an information medium is very large.

図1は、実施の形態1におけるファイル記録装置のハードウェア構成を示すブロック図である。   FIG. 1 is a block diagram illustrating a hardware configuration of the file recording apparatus according to the first embodiment.

図1において、ファイル記録装置10は、制御部11、メディアコントローラー15、エンコーダー16、アナログ−デジタル変換部(以下、AD変換部と称する)17、インターフェース18を備えている。制御部11、メディアコントローラー15、エンコーダー16は、バスに接続されている。ファイル記録装置10には、カメラ20が接続され、撮影された映像や音声がファイル記録装置10に入力されている。また、ファイル記録装置10には、情報媒体100を着脱することができる。   In FIG. 1, the file recording apparatus 10 includes a control unit 11, a media controller 15, an encoder 16, an analog-digital conversion unit (hereinafter referred to as an AD conversion unit) 17, and an interface 18. The control unit 11, the media controller 15, and the encoder 16 are connected to the bus. A camera 20 is connected to the file recording apparatus 10, and captured video and audio are input to the file recording apparatus 10. Further, the information medium 100 can be attached to and detached from the file recording apparatus 10.

制御部11は、信号処理を行う中央演算処理部(以下、CPUと称する)12と、CPU12において信号処理が行われる際に一時的に作業データが保存されるメモリー13と、プログラムが格納されるプログラム格納部14とを備えている。CPU12とプログラム格納部14は、バスに接続されている。プログラム格納部14は、例えばフラッシュメモリーで構成され、オペレーティングシステム(OS)などのプログラムが格納されている。   The control unit 11 stores a central processing unit (hereinafter referred to as a CPU) 12 that performs signal processing, a memory 13 that temporarily stores work data when the CPU 12 performs signal processing, and a program. And a program storage unit 14. The CPU 12 and the program storage unit 14 are connected to a bus. The program storage unit 14 is configured by a flash memory, for example, and stores a program such as an operating system (OS).

メディアコントローラー15は、ファイル記録装置10に着脱可能な情報媒体100との間でデータや信号の授受を行うことができるものである。例えば、情報媒体100がメモリーカードで構成されている場合は、メモリーカードに搭載されている電気接点と電気的に接続されるコネクタや、メモリーカードに対するデータなどの記録再生制御を行う制御回路などを備えている。   The media controller 15 can exchange data and signals with the information medium 100 that can be attached to and detached from the file recording apparatus 10. For example, when the information medium 100 is composed of a memory card, a connector that is electrically connected to an electrical contact mounted on the memory card, a control circuit that performs recording / reproduction control of data on the memory card, etc. I have.

インターフェース18には、カメラユニット20が接続され、カメラユニット20から出力される映像信号をファイル記録装置10に入力するものである。   A camera unit 20 is connected to the interface 18, and a video signal output from the camera unit 20 is input to the file recording apparatus 10.

AD変換部17は、インターフェース18を介して入力されるアナログ信号をデジタル映像信号に変換する。入力されるアナログ信号は、例えばコンポジット映像信号である。   The AD converter 17 converts an analog signal input via the interface 18 into a digital video signal. The input analog signal is, for example, a composite video signal.

エンコーダー16は、AD変換部17から出力されるデジタル映像信号を、所定の信号圧縮方法で圧縮する。圧縮方式は、例えば動画像圧縮が可能なMPEG4(MPEG: Moving Picture Experts Group)規格に準拠したものがあるが、他の圧縮方式であってもよい。   The encoder 16 compresses the digital video signal output from the AD conversion unit 17 by a predetermined signal compression method. For example, there is a compression method that conforms to the MPEG4 (MPEG: Moving Picture Experts Group) standard capable of moving image compression, but other compression methods may be used.

また、カメラユニット20は、CCDイメージセンサーなどの撮像素子やレンズなどが内蔵され、入射される光学画像を電気信号に変換して出力している。なお、カメラユニット20は、ファイル記録装置10によって動作制御される。   The camera unit 20 incorporates an image pickup device such as a CCD image sensor, a lens, and the like, and converts an incident optical image into an electrical signal and outputs it. The operation of the camera unit 20 is controlled by the file recording apparatus 10.

情報媒体100は、ファイル記録装置10に着脱可能なものであり、各種データをファイル形式で記録されるものである。情報媒体100は、本実施の形態ではフラッシュメモリーなどの半導体メモリーが内蔵されているメモリーカードで構成したが、光ディスクやハードディスクなどの媒体であってもよく、少なくともFATやUDFなどのファイルシステムに対応した媒体であればよい。また、情報媒体100は、ファイル記録装置10に着脱可能な媒体としたが、装置内に固定される媒体であってもよい。   The information medium 100 is detachable from the file recording device 10 and records various data in a file format. In this embodiment, the information medium 100 is configured by a memory card in which a semiconductor memory such as a flash memory is built. However, the information medium 100 may be a medium such as an optical disk or a hard disk, and corresponds to at least a file system such as FAT or UDF. Any medium may be used. Further, although the information medium 100 is a medium that can be attached to and detached from the file recording apparatus 10, it may be a medium that is fixed in the apparatus.

図1において、カメラユニット20で撮影された光学画像は、アナログ映像信号に変換されて出力されている。出力されるアナログ映像信号は、インターフェース18を介して、AD変換部17に入力される。AD変換部17は、入力されるアナログ映像信号をデジタル映像信号に変換し、エンコーダー16へ出力している。エンコーダー16は、入力されるデジタル映像信号を、所定の圧縮形式にて圧縮処理を行う。圧縮されたデジタル映像信号は、プログラム格納部14に格納されているオペレーティングシステムなどに基づいて、CPU12及びメモリー13で信号処理される。具体的には、所定のファイルシステムに準じ、管理情報とファイルが生成される。生成された管理情報とファイルは、メディアコントローラー15を介して情報媒体100へ記録される。   In FIG. 1, an optical image taken by the camera unit 20 is converted into an analog video signal and output. The output analog video signal is input to the AD conversion unit 17 via the interface 18. The AD converter 17 converts the input analog video signal into a digital video signal and outputs the digital video signal to the encoder 16. The encoder 16 performs a compression process on the input digital video signal in a predetermined compression format. The compressed digital video signal is signal-processed by the CPU 12 and the memory 13 based on an operating system or the like stored in the program storage unit 14. Specifically, management information and a file are generated according to a predetermined file system. The generated management information and file are recorded on the information medium 100 via the media controller 15.

なお、上記説明では、映像のみを記録する構成としているが、音声のみを記録する構成や、映像と音声の両方を記録する構成であってもよい。   In the above description, only video is recorded. However, only audio may be recorded, or both video and audio may be recorded.

図2は、実施の形態1におけるファイル記録装置のソフトウェア構成を示すブロック図である。図2に示す構成は、図1における制御部11に組み込まれている。図3は、情報媒体の記録内容(論理構造)を示す模式図である。   FIG. 2 is a block diagram illustrating a software configuration of the file recording apparatus according to the first embodiment. The configuration shown in FIG. 2 is incorporated in the control unit 11 in FIG. FIG. 3 is a schematic diagram showing recorded contents (logical structure) of the information medium.

図2に示すように、制御部11は、サイズ算出部141、予約領域確保部142、ファイル生成部144、管理情報生成部145を備えている。   As illustrated in FIG. 2, the control unit 11 includes a size calculation unit 141, a reserved area securing unit 142, a file generation unit 144, and a management information generation unit 145.

サイズ算出部141は、データ領域103に確保する予約領域134(図3参照)のサイズを算出するものである。予約領域134のサイズは、記録中の記録ファイル130の全体サイズ、予約領域の残りサイズ、記録中の記録ファイル130の記録開始からの時間、情報媒体100上のデータ領域103の空きサイズ、情報媒体100の一つあるいは複数の論理アドレス境界、記録ファイル130のファイル名、及び記録ファイル130のデータ帯域幅のうち、少なくともいずれかひとつに相関するように算出される。   The size calculation unit 141 calculates the size of the reserved area 134 (see FIG. 3) reserved in the data area 103. The size of the reserved area 134 is the total size of the recording file 130 being recorded, the remaining size of the reserved area, the time from the start of recording of the recording file 130 being recorded, the free size of the data area 103 on the information medium 100, the information medium One or more logical address boundaries of 100, the file name of the recording file 130, and the data bandwidth of the recording file 130 are calculated so as to correlate with at least one of them.

予約領域確保部142は、サイズ算出部141で算出されたサイズの予約領域134を、所望の頻度で繰り返し確保するものであり、具体的には、予約領域134の開始アドレスと終了アドレスを指定するものである。なお、予約領域134の確保タイミングは、記録中の記録ファイル130の全体サイズ、情報媒体100上のデータ領域103の空きサイズ、予約領域134の残りサイズ、記録中の記録ファイル130の記録開始からの時間、及び記録ファイル130の記録位置が情報媒体100の一つあるいは複数の論理アドレス境界に到達するタイミングのうち、少なくともいずれかひとつに基づいて決定される。   The reserved area securing unit 142 repeatedly secures the reserved area 134 having the size calculated by the size calculating unit 141 at a desired frequency. Specifically, the reserved area securing unit 142 designates the start address and the end address of the reserved area 134. Is. The reserved area 134 is secured from the recording file 130 being recorded, the total size of the data area 103 on the information medium 100, the remaining size of the reserved area 134, and the recording start of the recording file 130 being recorded. It is determined based on at least one of the time and the timing at which the recording position of the recording file 130 reaches one or more logical address boundaries of the information medium 100.

ファイル生成部144は、エンコーダー16(図1参照)から出力されるデータに基づきファイルを生成する。生成されたファイルは、メディアコントローラー15を介して、情報媒体100のデータ領域103へ書き込まれる。   The file generation unit 144 generates a file based on data output from the encoder 16 (see FIG. 1). The generated file is written into the data area 103 of the information medium 100 via the media controller 15.

管理情報生成部145は、ファイル生成部144で生成されたファイルに関連した管理情報を生成する。生成された管理情報は、メディアコントローラー15を介して情報媒体100の特定領域102へ書き込まれる。   The management information generation unit 145 generates management information related to the file generated by the file generation unit 144. The generated management information is written into the specific area 102 of the information medium 100 via the media controller 15.

次に、情報媒体100における論理構造について説明する。   Next, a logical structure in the information medium 100 will be described.

図3は、実施の形態1におけるファイル記録方法によってファイルが記録された情報媒体の論理構造を示す図である。   FIG. 3 is a diagram showing a logical structure of an information medium on which a file is recorded by the file recording method according to the first embodiment.

図3において、情報媒体100には、論理先頭アドレス101から順に、特定領域102とデータ領域103とを備えている。   In FIG. 3, the information medium 100 includes a specific area 102 and a data area 103 in order from the logical head address 101.

特定領域102は、ファイルシステムによって、管理情報などが記録される領域である。特定領域102には、管理情報が記録されている管理領域120が設けられている。管理情報には、データ領域103上に確保されている、記録ファイル130の領域の位置情報が含まれている。空き領域121は、特定領域102のうち、管理領域120が記録されていない部分である。   The specific area 102 is an area where management information and the like are recorded by the file system. In the specific area 102, a management area 120 in which management information is recorded is provided. The management information includes position information of the area of the recording file 130 secured on the data area 103. The free area 121 is a part of the specific area 102 where the management area 120 is not recorded.

データ領域103は、ファイルシステムによって、実データ(例えば映像データ)が記録される領域である。データ領域103は、記録ファイル130、空き領域132及び133、予約領域134を備えている。データ領域103に記録されている記録ファイル130は、映像データなどの実データが含まれている。   The data area 103 is an area where actual data (for example, video data) is recorded by the file system. The data area 103 includes a recording file 130, empty areas 132 and 133, and a reserved area 134. The recording file 130 recorded in the data area 103 includes actual data such as video data.

矢印で示している記録位置131は、記録ファイル130における現在の記録位置である。記録位置131は、記録ファイル130が記録されたり、記録ファイル130にデータが追記されたり、記録ファイル130が削除されたりすると、その位置は変動する。   A recording position 131 indicated by an arrow is the current recording position in the recording file 130. The recording position 131 fluctuates when the recording file 130 is recorded, when data is added to the recording file 130 or when the recording file 130 is deleted.

空き領域132、133は、データ領域103において、記録ファイル130が記録されていない領域である。   The empty areas 132 and 133 are areas in the data area 103 where the recording file 130 is not recorded.

予約領域134は、記録ファイル130において、実データがまだ書き込まれていないが、書き込み領域を予め確保するための予約データが書き込まれている領域である。本実施の形態では、予約データは、ダミーデータで構成されている。   The reserved area 134 is an area where, in the recording file 130, actual data has not yet been written, but reserved data for securing a write area in advance is written. In the present embodiment, the reservation data is composed of dummy data.

データ領域103において、情報媒体100にファイルが記録されたり、既に記録されているファイルが削除されたりすると、記録ファイル130、空き領域132及び133の大きさは増減する。   In the data area 103, when a file is recorded on the information medium 100 or an already recorded file is deleted, the sizes of the recording file 130 and the free areas 132 and 133 increase or decrease.

相関関係矢印122は、記録ファイル130の終端位置の移動に対応して、管理領域120の更新が行われることを示している矢印である。   The correlation arrow 122 is an arrow indicating that the management area 120 is updated in accordance with the movement of the end position of the recording file 130.

図4A〜図4Cは、実施の形態1におけるファイル記録方法による情報媒体の内容変化を示す図であり、情報媒体100にファイルを記録する際に図4A、図4B、図4Cの順で変化する様子を示している。図4A〜図4Cにおいて、情報媒体100a、100b、100cは図3の情報媒体100に対応している。特定領域102a、102b、102cは図3の特定領域102に対応している。データ領域103a、103b、103cは図3のデータ領域103に対応している。管理領域120a、12b、120cは図3の管理領域120に対応している。空き領域121a、121b、121cは図3の空き領域121に対応している。記録ファイル130a、130b、130cは図3の記録ファイル130に対応している。空き領域132a、132b、132cは図3の空き領域132に対応している。空き領域133a、133b、133cは図3の空き領域133に対応している。予約領域134a、134b、134cは図3の予約領域134に対応している。   4A to 4C are diagrams showing changes in the contents of the information medium by the file recording method according to the first embodiment. When a file is recorded on the information medium 100, the information medium changes in the order of FIGS. 4A, 4B, and 4C. It shows a state. 4A to 4C, information media 100a, 100b, and 100c correspond to the information medium 100 in FIG. The specific areas 102a, 102b, and 102c correspond to the specific area 102 in FIG. The data areas 103a, 103b, and 103c correspond to the data area 103 in FIG. The management areas 120a, 12b, and 120c correspond to the management area 120 in FIG. The empty areas 121a, 121b, and 121c correspond to the empty area 121 in FIG. The recording files 130a, 130b, and 130c correspond to the recording file 130 in FIG. The empty areas 132a, 132b, and 132c correspond to the empty area 132 in FIG. The empty areas 133a, 133b, and 133c correspond to the empty area 133 in FIG. The reserved areas 134a, 134b, and 134c correspond to the reserved area 134 in FIG.

図5は、実施の形態1におけるファイル記録処理手順を示すフローチャートである。   FIG. 5 is a flowchart showing a file recording processing procedure in the first embodiment.

図5において、ステップ200は、通常のファイルシステムの機能(open)を実行させ、記録ファイルを書き込みモードで新規作成オープンする処理である。   In FIG. 5, step 200 is a process of executing a normal file system function (open) and newly creating and opening a recording file in the write mode.

ステップ201は、ステップ200で記録ファイルが新規作成されたことによる、管理領域120の更新処理である。   Step 201 is a process for updating the management area 120 when a new recording file is created in Step 200.

ステップ210は、データの書き込み処理を行う前に予約領域134の残量をチェックし、新たな予約領域の確保が必要か否かを判断する処理である。ファイルオープン直後は、予約領域134におけるデータ残量は0である(予約領域134には実データが記録されていない)。ステップ210において、予約領域の確保が必要であれば、予約領域の確保のためステップ211へ進む。予約領域の確保が不要であれば、ステップ202へ進む。   Step 210 is a process of checking the remaining amount of the reserved area 134 before performing the data writing process and determining whether it is necessary to secure a new reserved area. Immediately after the file is opened, the remaining amount of data in the reserved area 134 is 0 (no actual data is recorded in the reserved area 134). If it is necessary to secure a reserved area in step 210, the process proceeds to step 211 to secure a reserved area. If it is not necessary to secure a reserved area, the process proceeds to step 202.

ステップ211からステップ215は、ステップ210において、新たな予約領域の確保が必要であると判断された場合の処理である。ステップ211は、現在のファイルの記録開始位置を記憶する処理である。ステップ212は、新たに確保する予約領域のサイズを計算する処理である。ステップ213は、通常のファイルシステムの機能であるwrite処理を実行させ、記録ファイル130に対して新たな予約領域のサイズ分、ダミーのデータ(例えば、全て「00」で構成されるデータや、全て「FF」で構成されるデータなど)を記録する処理である。ステップ214は、新たな予約領域が記録されたことによる、管理領域120の更新処理である。ステップ215は、通常のファイルシステムの機能であるseek処理を実行させ、記録ファイル130の書き込み位置を、ステップ211で記憶した記録開始位置へ戻す処理である。   Steps 211 to 215 are processes performed when it is determined in step 210 that a new reserved area needs to be secured. Step 211 is a process of storing the recording start position of the current file. Step 212 is a process for calculating the size of a reserved area to be newly secured. In step 213, a write process, which is a function of a normal file system, is executed, and dummy data (for example, data consisting of all “00”, all For example, data composed of “FF”. Step 214 is a process for updating the management area 120 when a new reserved area is recorded. Step 215 is processing for executing the seek process, which is a function of a normal file system, and returning the writing position of the recording file 130 to the recording start position stored in step 211.

ステップ202は、通常のファイルシステムの機能であるwrite処理を実行させ、本来のデータを記録する処理である。ステップ204は、ステップ202の処理によってファイルシステムが、自動的にデータの記録開始位置を移動する処理である。ステップ205は、データの記録が終了したか否かを判断する処理である。ステップ205において、記録終了でなければステップ210へ戻り、記録終了であればステップ206へ進む。ステップ206は、記録ファイルの書き込みが終了したことによる、管理領域(ディレクトリーエントリーなど)の更新処理である。ステップ207は、通常のファイルシステムの機能であるclose処理を実行させ、記録ファイルをクローズする処理である。   Step 202 is a process for recording the original data by executing a write process which is a function of a normal file system. Step 204 is a process in which the file system automatically moves the data recording start position by the process of Step 202. Step 205 is a process for determining whether or not the data recording is completed. If it is determined in step 205 that recording is not completed, the process returns to step 210. Step 206 is a process for updating a management area (such as a directory entry) due to the completion of writing of the recording file. Step 207 is a process for executing a close process, which is a function of a normal file system, and closing the recording file.

以下、図1から図4を参照して動作を説明する。   The operation will be described below with reference to FIGS.

まず、図1において、カメラユニット20からデータ記録装置10に入力されるデータは、リアルタイムの映像や音声がサンプリングされ、デジタルデータ化された映像データ及び音声データのうち少なくともいずれかを含むデータを想定している。このようなデータの記録においては一般に、一定のデータ帯域幅の転送が長時間継続する、という特徴を持つ。   First, in FIG. 1, the data input from the camera unit 20 to the data recording apparatus 10 is assumed to be data including at least one of video data and audio data obtained by sampling real-time video and audio and digitizing the data. is doing. In general, such data recording has a feature that transfer of a certain data bandwidth continues for a long time.

情報媒体100は、ファイルシステムによってフォーマットされ、セクタ単位で管理される。図3に示すように、ファイルシステムは、情報媒体100上に管理領域120を局所的に設けて情報媒体100を管理する。情報媒体100の具体例としては、光ディスクやフラッシュメモリが挙げられる。これらの情報媒体100は一般的に、ファイル記録装置10から取外し可能なものが多く、データの可搬性、保存性等が優れている。一方、これらの情報媒体の多くには、書換え寿命が存在する。情報媒体100が書換え寿命に到達すれば、その情報媒体は使用不可能となり、新たな情報媒体に交換する必要があるため、ランニングコストが高くなる。また、上記のようにリアルタイムのデータの記録に失敗すると、復旧は通常困難である。   The information medium 100 is formatted by a file system and managed in units of sectors. As shown in FIG. 3, the file system manages the information medium 100 by locally providing a management area 120 on the information medium 100. Specific examples of the information medium 100 include an optical disk and a flash memory. Many of these information media 100 are generally removable from the file recording apparatus 10 and are excellent in data portability and storage. On the other hand, many of these information media have a rewritable life. When the information medium 100 reaches the rewrite life, the information medium becomes unusable and needs to be replaced with a new information medium, resulting in an increase in running cost. Also, if real-time data recording fails as described above, recovery is usually difficult.

ファイル記録装置10では、データを情報媒体100のデータ領域103上の記録ファイル130として記録する際に、予約領域確保部142(図2参照)が、記録ファイル130の終端に予約領域134を確保する(図3参照)。   In the file recording apparatus 10, when recording data as the recording file 130 on the data area 103 of the information medium 100, the reserved area securing unit 142 (see FIG. 2) secures the reserved area 134 at the end of the recording file 130. (See FIG. 3).

ここで、記録ファイル130にデータが追加記録される場合、すなわち、情報媒体100の記録内容が、図4Aに示す内容から図4Bに示す内容へ変化する場合ついて説明する。   Here, a case where data is additionally recorded in the recording file 130, that is, a case where the recording content of the information medium 100 changes from the content shown in FIG. 4A to the content shown in FIG. 4B will be described.

図2に示すファイル生成部144が、記録ファイル130aに対してデータの追加記録(図5のステップ202)を行う場合、ファイル生成部144は、通常のファイルシステムの機能であるwrite処理を実行させる。すると、追加記録されるデータは、図4Aに示す現在の記録位置131aを先頭にして、予約領域134a上に記録される。この結果、記録ファイル130aの記録位置131aは、図4Bに示すように記録位置131bに示す位置に移動し、その分、予約領域134は減少する(図5のステップ204)。このとき、追加されたデータに相当するサイズ分、記録ファイル130aの予約領域134aが、図4Bに示す予約領域134bのように減少するが、図4Aに示す予約領域134aを含む記録ファイル130aの終端位置と、図4Bに示す予約領域134bを含む記録ファイル130bの終端位置とは、一定のまま保たれ、ファイル130に対する新たなセクタ割当てが発生しない。従って、管理領域120bの更新を行う必要が無くなる。   When the file generation unit 144 shown in FIG. 2 performs additional recording of data on the recording file 130a (step 202 in FIG. 5), the file generation unit 144 executes a write process that is a function of a normal file system. . Then, the additionally recorded data is recorded on the reserved area 134a with the current recording position 131a shown in FIG. 4A as the head. As a result, the recording position 131a of the recording file 130a moves to the position indicated by the recording position 131b as shown in FIG. 4B, and the reserved area 134 decreases accordingly (step 204 in FIG. 5). At this time, the reserved area 134a of the recording file 130a is reduced by a size corresponding to the added data as shown in the reserved area 134b shown in FIG. 4B, but the end of the recording file 130a including the reserved area 134a shown in FIG. 4A. The position and the end position of the recording file 130b including the reserved area 134b shown in FIG. 4B are kept constant, and no new sector allocation to the file 130 occurs. Therefore, it is not necessary to update the management area 120b.

次に、情報媒体100の内容が、図4Bに示す内容から図4Cに示す内容へ変化する場合について説明する。   Next, the case where the content of the information medium 100 changes from the content shown in FIG. 4B to the content shown in FIG. 4C will be described.

ファイル生成部144によるデータの追加記録(図5のステップ202)によって、図4Bに示す記録ファイル130bの記録位置131bは、図4Cに示す記録ファイル130cの記録位置131cに移動する(図5のステップ204)。   Due to the additional recording of data by the file generation unit 144 (step 202 in FIG. 5), the recording position 131b of the recording file 130b shown in FIG. 4B is moved to the recording position 131c of the recording file 130c shown in FIG. 4C (step in FIG. 5). 204).

その際、予約領域134bを使い切ってしまい、追加記録しようとしているデータに相当するサイズに対して不足が発生する(図5のステップ210において、予約領域の残りサイズが0であると判断された場合)。この場合、図2に示すサイズ算出部141によって算出されたサイズに基づき、予約領域確保部142が新たな予約領域134cを確保する(図5のステップ211からステップ213)。   At this time, the reserved area 134b is used up, and a shortage occurs with respect to the size corresponding to the data to be additionally recorded (when it is determined in step 210 in FIG. 5 that the remaining size of the reserved area is 0). ). In this case, the reserved area securing unit 142 secures a new reserved area 134c based on the size calculated by the size calculating unit 141 shown in FIG. 2 (from step 211 to step 213 in FIG. 5).

具体的には、ステップ211で、予約領域確保部142が現在のファイル書き込み開始位置131cを記憶しておく。次に、ステップ212で、サイズ算出部141が、新たに確保する予約領域のサイズを計算する。次に、ステップ213で、予約領域確保部142が、通常のファイルシステムの機能であるwrite処理を実行させ、記録ファイル130に対して現在の記録位置131cから新たな予約領域134cのサイズ分、ダミーのデータ(例えば、全て「00」のデータや、全て「FF」のデータなど)を記録する。   Specifically, in step 211, the reserved area securing unit 142 stores the current file write start position 131c. Next, in step 212, the size calculation unit 141 calculates the size of the reserved area to be newly secured. Next, in step 213, the reserved area securing unit 142 executes a write process that is a function of a normal file system, and the recording file 130 is dummy-sized by the size of the new reserved area 134c from the current recording position 131c. Data (for example, all “00” data, all “FF” data, etc.) are recorded.

このようにして、予約領域134cを新たに確保することで、予約領域134bを含む記録ファイル130bの終端位置と、予約領域134cを含む記録ファイル130cの終端位置は、変化することになる。この時、管理情報生成部145は、特定領域102内の管理領域120cの更新を行う(図5のステップ214)。この時点で、現在の記録位置は予約領域134cの直後となっているため、通常のファイルシステムの機能であるseek処理を実行させ、記録ファイルの書き込み位置をステップ211で記憶した記録位置131c(本来の記録データの記録開始位置)へ戻す(図5のステップ215)。このように、ステップ211〜215の処理を実行させることで、現在の記録位置は変更せずに、現在の記録位置131cから連続した所定のサイズの予約領域134を、記録ファイル130の一部に確保することができる。   Thus, by newly securing the reserved area 134c, the end position of the recording file 130b including the reserved area 134b and the end position of the recording file 130c including the reserved area 134c are changed. At this time, the management information generation unit 145 updates the management area 120c in the specific area 102 (step 214 in FIG. 5). At this time, since the current recording position is immediately after the reserved area 134c, a seek process, which is a function of a normal file system, is executed, and the writing position of the recording file is recorded at the recording position 131c (originally stored in step 211). To the recording start position of the recording data (step 215 in FIG. 5). In this way, by executing the processing of steps 211 to 215, the reserved area 134 of a predetermined size continuous from the current recording position 131c is made a part of the recording file 130 without changing the current recording position. Can be secured.

以降、新たに確保した予約領域134cを再び使いきるまでは、データの追加記録による管理領域120cの更新を抑制できる。   Thereafter, the update of the management area 120c due to the additional recording of data can be suppressed until the newly reserved reservation area 134c is used up again.

なお、図2におけるサイズ算出部141は、一度に確保する予約領域のサイズをデータのデータ帯域幅と、予約領域を確保する頻度(間隔)とから、算出することができる。ここで、データ帯域幅は、全ての記録データで常に一定であり、サイズ算出部141が予め管理しているものとする。また、予約領域を確保する頻度は、情報媒体100が確保する必要のある書換え寿命に基づき計算される。このとき、例えば、データのデータ帯域幅が1メガビット/秒、予約領域134を確保する間隔(すなわち予約領域確保間隔)を40秒とした場合、1メガビット/秒で40秒間データを記録するとそのデータサイズは、
1×40/8=5メガバイト
である。よって、サイズ算出部141で算出される予約領域134のサイズは、5メガバイトである。
The size calculation unit 141 in FIG. 2 can calculate the size of the reserved area to be secured at once from the data bandwidth of the data and the frequency (interval) of securing the reserved area. Here, it is assumed that the data bandwidth is always constant for all recording data, and is managed in advance by the size calculation unit 141. Further, the frequency of securing the reserved area is calculated based on the rewriting life that the information medium 100 needs to secure. At this time, for example, when the data bandwidth of data is 1 megabit / second and the interval for securing the reserved area 134 (that is, the reserved area securing interval) is 40 seconds, when data is recorded for 40 seconds at 1 megabit / second, the data is recorded. The size is
1 × 40/8 = 5 megabytes. Therefore, the size of the reserved area 134 calculated by the size calculator 141 is 5 megabytes.

また、記録ファイル130への予約領域134の確保は、予約領域確保部142によって、予約領域確保間隔おきに繰り返し行われる。また、このときの予約領域のサイズは、サイズ算出部141で算出されたサイズ以上のサイズである。図5のステップ210では、予約領域確保部142は、予約領域134の残量が不足するタイミングで、新たな予約領域134を確保するように動作する。例えば上記の例では、40秒毎に新たな5メガバイトの予約領域134が確保されることになる。   Further, the reservation area 134 is secured in the recording file 130 repeatedly by the reservation area reservation unit 142 at every reservation area reservation interval. In addition, the size of the reserved area at this time is not less than the size calculated by the size calculation unit 141. In step 210 of FIG. 5, the reserved area securing unit 142 operates to secure a new reserved area 134 at a timing when the remaining amount of the reserved area 134 is insufficient. For example, in the above example, a new reserved area 134 of 5 megabytes is secured every 40 seconds.

以上のように実施の形態1におけるファイル記録方法では、データの追加記録の処理単位サイズに対し、予約領域134のサイズを十分に大きく確保することで、管理領域120の更新頻度を大幅に削減することが可能となる。すなわち、管理情報が局所的に管理されるファイルシステムにおいて、管理情報の記憶領域への書換えの集中を回避し、情報媒体100の長寿命化を実現することが可能となる。   As described above, in the file recording method according to the first embodiment, the update frequency of the management area 120 is significantly reduced by ensuring a sufficiently large size of the reserved area 134 with respect to the processing unit size of additional data recording. It becomes possible. That is, in a file system in which management information is locally managed, it is possible to avoid the concentration of rewriting of the management information in the storage area and to extend the life of the information medium 100.

また、予約領域134を確保する処理は、ステップ213で示すようにファイルシステムへの一般的なアクセス方法によって行われるため、既存のファイルシステムをそのまま使用することができる。よって、互換性を確保することができる。   Further, since the process of securing the reserved area 134 is performed by a general access method to the file system as shown in step 213, the existing file system can be used as it is. Therefore, compatibility can be ensured.

なお、ファイル記録装置10では、記録ファイル130の性質に適した、予約領域134の確保サイズの決定や確保の処理が可能なので、データはテキストデータ、静止画像データ、プログラムデータ等、いかなる形式のデータであっても良い。   Since the file recording apparatus 10 can determine and secure the reserved size of the reserved area 134 suitable for the nature of the recording file 130, the data can be any data such as text data, still image data, program data, etc. It may be.

また、情報媒体100は、ファイル記録装置10に固定された形態であっても良いし、ファイル記録装置10に対して別体に分離された形態であっても良い。別体に分離されている場合は、情報媒体100とファイル記録装置10とを有線ケーブルや無線通信によって接続可能な形態や、情報媒体100をファイル記録装置10に搭載されている端子へ装着可能な形態などであっても良い。   The information medium 100 may be fixed to the file recording device 10 or may be separated from the file recording device 10. When separated separately, the information medium 100 and the file recording device 10 can be connected to each other by a wired cable or wireless communication, or the information medium 100 can be attached to a terminal mounted on the file recording device 10 It may be a form.

また、ファイル記録装置10は、既存のファイルシステムを経由して情報媒体100にアクセスすることができる。したがって、データ領域103には、記録ファイル130以外のファイルが一つあるいは複数存在しても良いし、記録ファイル130と同様に本実施の形態による記録方法で記録中のファイルが同時に一つあるいは複数存在しても良い。   Further, the file recording apparatus 10 can access the information medium 100 via an existing file system. Accordingly, one or more files other than the recording file 130 may exist in the data area 103, and one or more files being recorded by the recording method according to the present embodiment at the same time as the recording file 130. May exist.

また、記録ファイル130は、ファイルシステム上で連続性を保持していれば良く、データ領域103上での物理的な配置は分断状態であっても良い。   Further, the recording file 130 only needs to maintain continuity on the file system, and the physical arrangement on the data area 103 may be in a divided state.

また、記録位置131は、ファイルシステム上で、記録ファイル130が増加する方向へ移動すれば良く、情報媒体100上での物理的な位置の移動方向は前後しても良い。   Further, the recording position 131 may be moved in the direction in which the recording file 130 increases on the file system, and the movement direction of the physical position on the information medium 100 may be changed.

また、新たな予約領域134の確保の繰り返しタイミングは、予約領域確保部142が直接あるいは間接的にファイルシステム143から記録ファイル130のその時点での記録済みサイズを取得し、そのサイズに相関させても良い。例えば、記録ファイル130の記録済みサイズが1メガバイト未満の場合は、予約領域134の確保を行わず、1メガバイト以上になると5メガバイトの予約領域134を確保する。以降、記録ファイル130の記録済みサイズが5メガバイト増加する毎に、5メガバイトの予約領域134を確保するよう、予約領域確保部142に相関させる。この場合、サイズが常時小さいファイルに対して、不要な予約領域の確保を回避できる効果がある。   The reserving timing of securing the new reserved area 134 is determined by the reserved area securing unit 142 acquiring the recorded size of the recording file 130 at that time directly or indirectly from the file system 143 and correlating it with the size. Also good. For example, if the recorded size of the recording file 130 is less than 1 megabyte, the reserved area 134 is not secured, and if the recorded size exceeds 1 megabyte, the reserved area 134 of 5 megabytes is secured. Thereafter, every time the recorded size of the recording file 130 increases by 5 megabytes, the reserved area is correlated with the reserved area securing unit 142 so that the reserved area 134 of 5 megabytes is secured. In this case, it is possible to avoid securing an unnecessary reserved area for a file that is always small in size.

また、新たな予約領域134の確保の繰り返しタイミングは、予約領域確保部142が直接あるいは間接的に記録開始からの時間をカウントし、その時間に相関させても良い。例えば、複数の記録ファイル130を同時に記録開始する場合、それぞれの記録ファイルにおける予約領域134の確保の発生タイミングが時間的にずれるよう、予約領域確保部142に相関させる。この場合、複数の記録ファイル130におけるそれぞれの予約領域134の確保が一度に集中することを回避し、処理の負荷を分散できる効果がある。   Further, the reservation timing of securing the new reserved area 134 may be correlated with the time when the reserved area securing unit 142 counts the time from the start of recording directly or indirectly. For example, when recording of a plurality of recording files 130 is started at the same time, correlation is made to the reserved area securing unit 142 so that the timing of securing reserved areas 134 in the respective recording files is shifted in time. In this case, there is an effect that the reservation of the reserved areas 134 in the plurality of recording files 130 can be avoided from being concentrated at one time, and the processing load can be distributed.

また、新たな予約領域134の確保の繰り返しタイミングは、予約領域確保部142が直接あるいは間接的にファイルシステム143から記録ファイルの終端位置と現在書き込み位置を取得し、その差分となる予約領域134の残りサイズに相関させても良い。例えば、可変レートで映像圧縮した映像データを記録ファイル130として記録する場合、映像の内容により単位時間当たりのデータ量が変化するため、記録ファイル130への1回の書き込みサイズが毎回変化することがある。このとき、変化の最大サイズ幅が1メガバイトと仮定すると、予約領域134の残りサイズが1メガバイト以下になるたびに新たな予約領域134の確保を行うよう、予約領域確保部142に相関させる。この場合、1回の書き込みサイズのデータ単位を分断して、新たな予約領域の確保を不要にすることができ、確保処理の効率を高める効果がある。   In addition, the reserving timing of securing the new reserved area 134 is such that the reserved area securing unit 142 acquires the end position of the recording file and the current writing position from the file system 143 directly or indirectly, It may be correlated with the remaining size. For example, when video data compressed at a variable rate is recorded as the recording file 130, the amount of data per unit time varies depending on the content of the video, so the size of one write to the recording file 130 may vary each time. is there. At this time, assuming that the maximum size width of the change is 1 megabyte, the reservation area securing unit 142 is correlated so that a new reserved area 134 is secured every time the remaining size of the reserved area 134 becomes 1 megabyte or less. In this case, it is possible to divide the data unit of one write size and make it unnecessary to secure a new reserved area, which has the effect of increasing the efficiency of the securing process.

また、新たな予約領域134の確保の繰り返しタイミングは、予約領域確保部142が直接あるいは間接的にファイルシステム143から、データ領域103の残りサイズである空き領域132、133のサイズを取得し、その和に相関させても良い。例えば、空き領域が50メガバイト以上の間は、毎回一定のタイミングで予約領域134の確保を行い、また、空き領域が50メガバイト未満になると、予約領域134の確保を行わないよう、予約領域確保部142に相関させる。このように動作させることで、空き領域が少ないときにも予約領域が確保されてしまい、他のファイルに必要な領域が確保できなくなることを防ぐ効果がある。   In addition, the reservation area securing unit 142 obtains the size of the free areas 132 and 133 that are the remaining size of the data area 103 directly or indirectly from the file system 143, and repeats the securing timing of the new reserved area 134. It may be correlated with the sum. For example, the reserved area reservation unit secures the reserved area 134 at a fixed timing every time when the free area is 50 megabytes or more, and prevents the reserved area 134 from being reserved when the free area becomes less than 50 megabytes. 142. By operating in this way, there is an effect that a reserved area is secured even when the free area is small, and an area required for another file cannot be secured.

あるいは、新たな予約領域134の確保の繰り返しタイミングは、予約領域確保部142が直接あるいは間接的に記録ファイル130の記録位置131を取得し、その位置が一定時間経過後に情報媒体100の一つあるいは複数の論理アドレス境界に到達したときであっても良い。例えばファイルシステムの場合、ファイル130は複数のセクタの集合から構成されるブロック単位あるいはクラスター単位で管理されるため、それらの論理アドレス境界に相関させて情報媒体100にアクセスする場合、アクセス速度の向上を期待できるという効果がある。   Alternatively, the reserving timing of securing the new reserved area 134 is such that the reserved area securing unit 142 acquires the recording position 131 of the recording file 130 directly or indirectly, and that position is one of the information media 100 after a certain time has elapsed. It may be when a plurality of logical address boundaries are reached. For example, in the case of a file system, the file 130 is managed in units of blocks or clusters each consisting of a set of a plurality of sectors. Therefore, when accessing the information medium 100 in correlation with the logical address boundary, the access speed is improved. There is an effect that can be expected.

つまり、一つあるいは複数の、何らかの周期的あるいは定期的に繰り返し発生しうる事象に、相関させていれば良い。   That is, it is only necessary to correlate with one or a plurality of events that can be repeated periodically or periodically.

また、新たに確保される予約領域134のサイズは、常に一定サイズであっても良い。   Further, the size of the newly reserved area 134 may always be a constant size.

また、新たに確保される予約領域134のサイズは、サイズ算出部141が直接あるいは間接的に、ファイルシステム143から、記録中の記録ファイル130の記録済みサイズを取得し、そのサイズに相関させても良い。例えば、記録ファイル130の記録済みサイズが1メガバイト未満の場合は、予約領域134の確保サイズは0とする。また、1メガバイト以上5メガバイト未満の場合は、予約領域134の確保サイズは1メガバイトとする。また、5メガバイト以上の場合は、予約領域134の確保サイズは5メガバイトとする。このように、予約領域134のサイズを、サイズ算出部141に相関させる。この場合、記録ファイル130のサイズが常時小さいファイルの場合は、予約領域134の確保を行わず、記録ファイル130のサイズが比較的緩やかに増加するファイルには、最大5メガバイトの予約領域134の確保を行うなど、各種記録ファイルの特性に合わせた予約領域の確保ができる効果がある。   Further, the size of the reserved area 134 to be newly secured is obtained by the size calculation unit 141 directly or indirectly acquiring the recorded size of the recording file 130 being recorded from the file system 143 and correlating it with the size. Also good. For example, when the recorded size of the recording file 130 is less than 1 megabyte, the reserved size of the reserved area 134 is set to zero. In the case of 1 megabyte or more and less than 5 megabytes, the reserved area 134 has a reserved size of 1 megabyte. In the case of 5 megabytes or more, the reserved size of the reserved area 134 is 5 megabytes. In this way, the size of the reserved area 134 is correlated with the size calculation unit 141. In this case, if the size of the recording file 130 is always small, the reserved area 134 is not secured, and the reserved area 134 of up to 5 megabytes is secured for a file whose recording file 130 size increases relatively slowly. For example, the reserved area can be secured according to the characteristics of various recording files.

また、新たに確保される予約領域134のサイズは、サイズ算出部141が直接あるいは間接的に記録開始からの時間をカウントし、その時間に相関させても良い。例えば、記録ファイル130の記録開始からの時間が10秒未満の場合は、予約領域134の確保サイズは0とする。また、10秒以上5分未満の場合は、予約領域134の確保サイズは1メガバイトとする。また、5分以上の場合は、予約領域134の確保サイズは5メガバイトとする。このように、予約領域134のサイズを、サイズ算出部141に相関させる。この場合、記録ファイル130の記録時間が常時短いファイルの場合は、予約領域134の確保を行わず、記録ファイル130の記録が長時間継続されるファイルの場合は、最大5メガバイトの予約領域134の確保を行うなど、各種記録ファイルの特性に合わせた予約領域の確保ができる効果がある。   Further, the size of the newly reserved area 134 may be correlated with the size calculation unit 141 by counting the time from the start of recording directly or indirectly. For example, when the time from the start of recording of the recording file 130 is less than 10 seconds, the reserved size of the reserved area 134 is set to zero. In the case of 10 seconds or more and less than 5 minutes, the reserved area 134 is secured to 1 megabyte. In the case of 5 minutes or more, the reserved size of the reserved area 134 is 5 megabytes. In this way, the size of the reserved area 134 is correlated with the size calculation unit 141. In this case, when the recording time of the recording file 130 is always short, the reserved area 134 is not secured, and when the recording of the recording file 130 is continued for a long time, the reserved area 134 of up to 5 megabytes is stored. For example, the reserved area can be secured according to the characteristics of various recording files.

また、新たに確保される予約領域134のサイズは、サイズ算出部141が、直接あるいは間接的にデータ帯域幅を取得および予約領域134を確保する頻度(間隔)を算出して、それらに相関させても良い。例えば、可変レートで映像圧縮した映像データを記録ファイル130として記録する場合、アプリケーションソフトウェアからサイズ算出部141に対し、可変レートのデータ帯域幅および予約領域を確保する頻度を、パラメータで動的に指定可能とし、それらに相関させる。この場合、指定された可変レートに適したサイズを動的に確保できる効果がある。   In addition, the size of the newly reserved area 134 is correlated with the size calculation unit 141 by directly or indirectly acquiring the data bandwidth and calculating the frequency (interval) at which the reserved area 134 is reserved. May be. For example, when recording video data compressed at a variable rate as the recording file 130, the application software dynamically specifies the frequency of securing the variable rate data bandwidth and the reserved area to the size calculation unit 141 using parameters. Enable and correlate to them. In this case, there is an effect that a size suitable for the designated variable rate can be dynamically secured.

また、新たに確保される予約領域134のサイズは、サイズ算出部141が、直接あるいは間接的にファイルシステム143から記録ファイルの終端位置と現在書き込み位置を取得し、その差分となる予約領域134の残りサイズに相関させても良い。例えば、可変レートで映像圧縮した映像データを記録ファイル130として記録する場合、映像の内容により単位時間当たりのデータ量が変化するため、記録ファイル130への1回の書き込みサイズが毎回変化することがある。このとき、予約領域134を新たに確保するタイミングを一定間隔で行うために、予約領域134の残りサイズとの差分から、新たに確保直後の予約領域134の残りサイズが常に一定サイズとなるよう、サイズ算出部141に相関させる。この場合、予約領域134を新たに確保するタイミングを一定間隔とすることができるので、処理の周期的な設計や、処理の負荷分散が容易となる効果がある。   In addition, the size of the reserved area 134 to be newly secured is obtained by the size calculation unit 141 directly or indirectly acquiring the end position of the recording file and the current writing position from the file system 143, and the difference of the reserved area 134 that is the difference between them. It may be correlated with the remaining size. For example, when video data compressed at a variable rate is recorded as the recording file 130, the amount of data per unit time varies depending on the content of the video, so the size of one write to the recording file 130 may vary each time. is there. At this time, in order to perform the timing for newly securing the reserved area 134 at regular intervals, the remaining size of the reserved area 134 immediately after the newly secured is always a constant size based on the difference from the remaining size of the reserved area 134. Correlate with the size calculator 141. In this case, since the timing for newly securing the reserved area 134 can be set at a constant interval, there is an effect that periodic design of processing and load distribution of processing are facilitated.

また、新たに確保される予約領域134のサイズは、サイズ算出部141が、直接あるいは間接的に予約領域134を含む記録ファイル130の終端位置を取得し、その位置が一定サイズ超過後に情報媒体100の論理アドレス境界となるよう行われても良い。例えば、ファイルシステムの場合、ファイル130は複数のセクタの集合から構成されるブロック単位、あるいはクラスター単位で管理されるため、それらの論理アドレス境界に相関させて情報媒体100にアクセスする場合、アクセス速度の向上を期待できるという効果がある。   The size of the reserved area 134 to be newly secured is obtained by the size calculation unit 141 acquiring the end position of the recording file 130 including the reserved area 134 directly or indirectly, and the information medium 100 after the position exceeds a certain size. It may be performed so as to be a logical address boundary. For example, in the case of a file system, since the file 130 is managed in block units or cluster units composed of a set of a plurality of sectors, when accessing the information medium 100 in correlation with the logical address boundaries, the access speed There is an effect that the improvement of can be expected.

あるいは、新たに確保される予約領域134のサイズは、サイズ算出部141が、直接あるいは間接的に記録ファイル130のファイル名やファイル名の拡張子を取得し、それらによって決定されても良い。例えば、映像データや音声データの記録ファイルのファイル名の拡張子として「.AV」を使用し、テキストファイルの拡張子として「.TXT」を使用する場合、予約領域134の新たに確保されるサイズを、記録ファイル130のファイル名の拡張子が「.AV」の場合は5メガバイトと決定し、「.TXT」の場合は1メガバイトと決定する。この場合、各種記録ファイルに適したサイズの予約領域の確保ができるという効果がある。   Alternatively, the size of the reserved area 134 to be newly secured may be determined by the size calculation unit 141 acquiring the file name or the file name extension of the recording file 130 directly or indirectly. For example, when “.AV” is used as the extension of the file name of the recording file of video data or audio data and “.TXT” is used as the extension of the text file, the newly secured size of the reserved area 134 Is determined to be 5 megabytes when the file name extension of the recording file 130 is “.AV”, and is determined to be 1 megabyte when it is “.TXT”. In this case, there is an effect that a reserved area having a size suitable for various recording files can be secured.

つまり、一つあるいは複数の何らかの事象の現在状態に、相関させていれば良い。   In other words, it may be correlated with the current state of one or a plurality of events.

また、データのデータ帯域幅は、サイズ算出部141が予め管理していても良いし、データ150に含まれるデータ帯域情報をパラメータとしてファイル生成部144がサイズ算出部141に与えるようにしても良い。   In addition, the data bandwidth of the data may be managed in advance by the size calculation unit 141, or the file generation unit 144 may provide the size calculation unit 141 with the data bandwidth information included in the data 150 as a parameter. .

(実施の形態2)
実施の形態2におけるファイル記録方法において、実施の形態1のファイル記録方法と異なる点は、データ記録終了時に、不要な予約領域を削除するようにした点であり、その他の部分については実施の形態1と同様である。実施の形態2のファイル記録装置の構成は、実施の形態1と同様、すなわち図1、図2に示す通りである。
(Embodiment 2)
The file recording method according to the second embodiment is different from the file recording method according to the first embodiment in that unnecessary reserved areas are deleted at the end of data recording. Same as 1. The configuration of the file recording apparatus of the second embodiment is the same as that of the first embodiment, that is, as shown in FIGS.

図6A、図6B、図6Cは、実施の形態2におけるファイル記録方法による情報媒体100の内容変化を示す図である。図6Aは、初期状態を示している。図6Bは、記録ファイル130にデータが追記された状態を示している。図6Cは、予約領域134が削除された状態を示している。   6A, 6B, and 6C are diagrams illustrating changes in the content of the information medium 100 by the file recording method according to the second embodiment. FIG. 6A shows an initial state. FIG. 6B shows a state in which data is added to the recording file 130. FIG. 6C shows a state in which the reserved area 134 has been deleted.

図6A〜図6Cにおいて、情報媒体100a、100b、100cは、情報媒体100へのファイル記録中からファイル記録終了への記録内容の一例を時系列順に並べたものである。情報媒体100aは、データの記録を行っている途中の内容を示している。情報媒体100bは、最後のデータを記録した直後の内容を示している。情報媒体100cは、ファイル記録終了の処理完了後の内容である。その他の符号は図3と同様に対応する。   6A to 6C, information media 100a, 100b, and 100c are arranged in chronological order as an example of recorded contents from when a file is recorded on the information medium 100 to when the file recording ends. The information medium 100a shows the contents in the middle of data recording. The information medium 100b shows the content immediately after the last data is recorded. The information medium 100c has contents after completion of the file recording end process. Other reference numerals correspond to those in FIG.

図7は、実施の形態2におけるファイル記録処理手順を示すフローチャートである。図7において、図5のフローチャートと異なるのはステップ219を追加した点である。ステップ219は、通常のファイルシステムの機能であるtruncate処理を実行させ、記録ファイルの現在位置より後のデータを破棄して、切り詰める処理である。   FIG. 7 is a flowchart showing a file recording processing procedure in the second embodiment. 7 is different from the flowchart of FIG. 5 in that step 219 is added. Step 219 is a process of executing a truncate process that is a function of a normal file system, discarding data after the current position of the recording file, and truncating the data.

以下、動作を説明する。   The operation will be described below.

まず、図6Aに示す情報媒体100aから、図6Bに示す情報媒体100bへの記録内容の変化は、実施の形態1におけるファイル記録中の内容変化の場合と同様であるため、説明は省略する。   First, the change in the recording content from the information medium 100a shown in FIG. 6A to the information medium 100b shown in FIG. 6B is the same as the case of the content change during file recording in the first embodiment, and thus the description thereof is omitted.

次に、図6Bに示す情報媒体100bから、図6Cに示す情報媒体100cへの記録内容の変化について説明する。図6Bにおいて、最後のデータの記録を完了することにより、記録ファイル130bの記録位置(現在位置131b)の移動は停止する。この場合、記録ファイル130bの現在位置131bより後は予約領域134bであり、ファイル記録が完了すると、この予約領域134bは不要である。そこで、ファイル生成部144は、truncate処理を実行させ、記録ファイルの現在位置131bより後の予約領域134bのデータを破棄して切り詰める(図7のステップ219)。   Next, a change in the recording contents from the information medium 100b shown in FIG. 6B to the information medium 100c shown in FIG. 6C will be described. In FIG. 6B, the movement of the recording position (current position 131b) of the recording file 130b is stopped by completing the recording of the last data. In this case, there is a reserved area 134b after the current position 131b of the recording file 130b, and when the file recording is completed, the reserved area 134b is unnecessary. Therefore, the file generation unit 144 executes the truncate process, discards and truncates the data in the reserved area 134b after the current position 131b of the recording file (step 219 in FIG. 7).

ここで、予約領域134bを削除することで、予約領域134bを含む記録ファイル130bの終端位置(図6B)は、図6Cの記録ファイル130cの終端位置に示すように、変化することになる。よって、管理領域120cに対する相関関係矢印122cに示すように、管理領域120cにおける管理情報の更新を行う(図7のステップ206)。   Here, by deleting the reserved area 134b, the end position (FIG. 6B) of the recording file 130b including the reserved area 134b changes as shown in the end position of the recording file 130c in FIG. 6C. Therefore, the management information in the management area 120c is updated as indicated by the correlation arrow 122c for the management area 120c (step 206 in FIG. 7).

以上のように実施の形態2におけるファイル記録方法では、ファイル記録終了後のファイル状態(図6C参照)は、本発明におけるファイル記録方法を使用しない場合のファイル状態と同様となる。   As described above, in the file recording method in the second embodiment, the file state after the file recording (see FIG. 6C) is the same as the file state when the file recording method in the present invention is not used.

また、予約領域134を確保する処理は、ステップ213で示すようにファイルシステムへの一般的なアクセス方法によって行われるため、既存のファイルシステムをそのまま使用することができる。よって、互換性を確保することができる。   Further, since the process of securing the reserved area 134 is performed by a general access method to the file system as shown in step 213, the existing file system can be used as it is. Therefore, compatibility can be ensured.

(実施の形態3)
実施の形態3におけるファイル記録方法において、実施の形態1のファイル記録方法と異なる点は、情報媒体100の残容量が少ない場合に、確保する予約領域のサイズを調整するようにした点である。その他の部分については、実施の形態1と同様である。実施の形態3のファイル記録装置の構成は、実施の形態1と同様で図1、図2に示す通りである。
(Embodiment 3)
The file recording method in the third embodiment is different from the file recording method in the first embodiment in that the size of the reserved area to be secured is adjusted when the remaining capacity of the information medium 100 is small. Other parts are the same as those in the first embodiment. The configuration of the file recording apparatus of the third embodiment is the same as that of the first embodiment and is as shown in FIGS.

図8A、図8B、図8Cは、実施の形態3における情報媒体100の内容変化を示す図である。図8Aは、初期状態を示している。図8Bは、予約領域134にデータが記録された状態を示している。図8Cは、予約領域134が追加された状態を示している。   8A, 8B, and 8C are diagrams illustrating changes in the content of the information medium 100 according to the third embodiment. FIG. 8A shows an initial state. FIG. 8B shows a state where data is recorded in the reserved area 134. FIG. 8C shows a state where the reserved area 134 is added.

図8A〜図8Cにおいて、情報媒体100a、100b、100cは、情報媒体100の残容量が極僅かな状態での、ファイル記録中の記録内容の一例を時系列順に並べたものである。また、記録済み領域135a、135b、135cは、それぞれデータ領域103a、103b、103cにおいて、それぞれ記録ファイル130a、130b、130c以外の記録ファイルが記録されている領域であって、新たに予約領域として使用することができない領域である。その他の符号は図3と同様に対応するため、説明は省略する。   8A to 8C, information media 100a, 100b, and 100c are arranged in chronological order as an example of recorded contents during file recording when the remaining capacity of the information medium 100 is very small. The recorded areas 135a, 135b, and 135c are areas where recording files other than the recording files 130a, 130b, and 130c are recorded in the data areas 103a, 103b, and 103c, respectively, and are newly used as reserved areas. It is an area that cannot be done. Other reference numerals correspond to those in FIG.

実施の形態3におけるファイル記録処理は、図5に示す実施の形態1におけるファイル記録処理と同様に実現されるが、ステップ212の内容が実施の形態1と異なる。   The file recording process in the third embodiment is realized in the same manner as the file recording process in the first embodiment shown in FIG. 5, but the contents of step 212 are different from those in the first embodiment.

以下、動作を説明する。   The operation will be described below.

まず、図8Aに示す情報媒体100aから、図8Bに示す情報媒体100bへの内容変化は、実施の形態1におけるファイル記録中の内容変化の場合と同様であるため、説明は省略する。   First, the content change from the information medium 100a shown in FIG. 8A to the information medium 100b shown in FIG. 8B is the same as the case of the content change during file recording in the first embodiment, and a description thereof will be omitted.

次に、図8Bに示す情報媒体100bから、図8Cに示す情報媒体100cへの内容変化について説明する。図8Bにおいて、データの追加記録によって、記録ファイル130bの記録位置131bは、図8Cに示す記録ファイル130cの記録位置131cのように移動する。   Next, the content change from the information medium 100b shown in FIG. 8B to the information medium 100c shown in FIG. 8C will be described. In FIG. 8B, due to the additional recording of data, the recording position 131b of the recording file 130b moves like the recording position 131c of the recording file 130c shown in FIG. 8C.

その際、予約領域134bを使い切ってしまい、追加記録しようとするデータのサイズに対して、予約領域の不足が発生する可能性がある。この場合、新たな予約領域を確保するが、図8Bに示すように空き領域133bが極僅かなため、十分なサイズの予約領域を確保することができない場合がある。また、空き領域133bに相当するサイズ分の予約領域を確保すると、データ領域103c内に空き領域133cが無くなり、記録ファイル130c以外の一切のファイルを記録することができなくなる場合がある。   At this time, the reserved area 134b is used up, and there is a possibility that the reserved area is insufficient for the size of data to be additionally recorded. In this case, a new reserved area is secured. However, as shown in FIG. 8B, there is a case where a sufficiently large reserved area cannot be secured because the free area 133b is very small. Further, if a reserved area corresponding to the size corresponding to the free area 133b is secured, the free area 133c disappears in the data area 103c, and it may be impossible to record any file other than the recording file 130c.

ここで、図8Bに示すように空き領域133bが極僅かな状況において、予約領域134cを新たに確保する際に、確保するサイズを調整し、図8Cに示すように空き領域133cが残るように、予約領域134cのサイズを決定する(図5のステップ212)。この時のサイズ決定の一例としては、空き領域133bの半分のサイズを予約領域134cのサイズとする方法等が考えられる。すると、予約領域134cを新たに確保することで、予約領域134bを含む記録ファイル130bの終端位置と、予約領域134cを含む記録ファイル130cの終端位置は変化することになる。この時、管理領域120cの更新を行う(図5のステップ214)。   Here, when the reserved area 134c is newly secured in a situation where the free area 133b is very small as shown in FIG. 8B, the size to be secured is adjusted so that the free area 133c remains as shown in FIG. 8C. Then, the size of the reserved area 134c is determined (step 212 in FIG. 5). As an example of the size determination at this time, a method of setting half the size of the free area 133b to the size of the reserved area 134c, etc. can be considered. Then, by newly securing the reserved area 134c, the end position of the recording file 130b including the reserved area 134b and the end position of the recording file 130c including the reserved area 134c change. At this time, the management area 120c is updated (step 214 in FIG. 5).

以上のように実施の形態3におけるファイル記録方法では、データ領域103の空き領域133のサイズに相関させて、予約領域134のサイズを決定して確保することで、他のファイルの記録への影響を抑えることが可能となる。   As described above, in the file recording method according to the third embodiment, the size of the reserved area 134 is determined and secured in correlation with the size of the free area 133 of the data area 103, thereby affecting the recording of other files. Can be suppressed.

また、サイズが調整された予約領域を確保する処理として、ファイルシステムへの一般的なアクセス方法を用いるため、既存のファイルシステムをそのまま使用することができる。よって、互換性を確保することができる。   In addition, since the general access method to the file system is used as a process for securing the reserved area whose size is adjusted, the existing file system can be used as it is. Therefore, compatibility can be ensured.

なお、空き領域133bが極僅かな状況において、実施の形態における情報媒体100の長寿命化効果を最大限に適用するために、予約領域134cの新たな確保サイズを空き領域133cが残らないように決定しても良い。また、予約領域の確保処理を簡素化するために、予約領域134cの新たな確保サイズを0にしても良い。   Note that, in a situation where the free space 133b is very small, in order to apply the effect of extending the life of the information medium 100 in the embodiment to the maximum, the free space 133c does not leave a new reserved size of the reserved region 134c. You may decide. In order to simplify the reservation area reservation process, the new reservation size of the reservation area 134c may be set to zero.

(実施の形態4)
実施の形態4におけるファイル記録方法において、実施の形態1から実施の形態3におけるファイル記録方法と異なる点は、データ領域にデータを書き込むことで予約領域を確保する代わりに、管理領域上でのみ予約領域を確保するようにした点である。すなわち、予約領域(記録ファイルの現在の記録位置から連続した、所定サイズの予約領域)を記録ファイルの一部に確保すると仮定したときの、管理情報を特定領域に記録することで、仮想的に予約領域を確保するものである。その他の部分については、実施の形態1から実施の形態3と同様であるため、説明は省略する。
(Embodiment 4)
The file recording method according to the fourth embodiment differs from the file recording method according to the first to third embodiments in that a reservation is made only in the management area instead of securing a reserved area by writing data in the data area. This is a point where an area is secured. That is, when it is assumed that a reserved area (a reserved area of a predetermined size continuous from the current recording position of the recording file) is secured in a part of the recording file, the management information is virtually recorded in the specific area, This reserves a reserved area. Since other parts are the same as those in the first to third embodiments, the description thereof is omitted.

図9は、実施の形態4におけるファイル記録方法によって、ファイルが記録された情報媒体の記録内容を示す図である。図9において、仮想予約領域136は、記録ファイル130において実データがまだ書き込まれていない領域であって、書き込み領域を確保するために、管理領域120上でのみ記録ファイル130に領域が割り当てられた領域である。その他の符号は、図3と同様であるため説明は省略する。   FIG. 9 is a diagram showing recorded contents of an information medium on which a file is recorded by the file recording method according to the fourth embodiment. In FIG. 9, a virtual reserved area 136 is an area where actual data has not yet been written in the recording file 130, and an area is allocated to the recording file 130 only on the management area 120 in order to secure a writing area. It is an area. Other reference numerals are the same as those in FIG.

図10は、実施の形態4におけるファイル記録装置のソフトウェア構成を示す図である。図10において、サイズ算出部148は、新たに確保する仮想予約領域136のサイズを算出するものである。予約領域確保部147は、サイズ算出部148で算出されたサイズの仮想予約領域を、所望の頻度で繰り返し確保させるものである。ファイル生成部144は、データを情報媒体100のデータ領域103上にファイルとして記録する。管理情報生成部145は、予約領域確保部147によって仮想予約領域が確保された際、およびファイル生成部144がファイルを記録する際に、ファイルシステムの管理情報を管理領域120に記録するものである。   FIG. 10 is a diagram illustrating a software configuration of the file recording apparatus according to the fourth embodiment. In FIG. 10, a size calculation unit 148 calculates the size of a newly reserved virtual reserved area 136. The reserved area securing unit 147 repeatedly secures a virtual reserved area having the size calculated by the size calculating unit 148 at a desired frequency. The file generation unit 144 records data as a file on the data area 103 of the information medium 100. The management information generation unit 145 records file system management information in the management area 120 when a virtual reserved area is reserved by the reserved area reservation unit 147 and when the file generation unit 144 records a file. .

図11は、実施の形態4におけるファイル記録処理手順を示すフローチャートである。図11において、図7に示すフローチャートと異なる点について説明する。図11において、ステップ216からステップ218は、ステップ210で新たな仮想予約領域の確保が必要と判断された場合の処理である。ステップ216は、新たに確保する仮想予約領域のサイズを計算する処理である。ステップ217は、truncate処理を実行させ、記録ファイルの現在位置に計算した仮想予約領域サイズを加えた位置まで記録ファイルの全体サイズを増加させる処理である。ステップ218は、新たな仮想予約領域を確保後の管理領域の更新処理である。   FIG. 11 is a flowchart showing a file recording processing procedure in the fourth embodiment. In FIG. 11, differences from the flowchart shown in FIG. 7 will be described. In FIG. 11, steps 216 to 218 are processing performed when it is determined in step 210 that a new virtual reserved area needs to be secured. Step 216 is a process of calculating the size of a newly reserved virtual reserved area. Step 217 is a process for executing the truncate process and increasing the entire size of the recording file to a position obtained by adding the calculated virtual reserved area size to the current position of the recording file. Step 218 is a management area update process after securing a new virtual reserved area.

なお、ファイルシステムのtruncate機能は、記録ファイルの現在位置よりも後の位置を指定した場合、記録ファイルの全体サイズのみを増加することとし、増加した領域を埋めるためのデータ(全て「00」のデータや、全て「FF」のデータなど)を書き込まないものとする。   Note that the truncate function of the file system increases only the entire size of the recording file when a position after the current position of the recording file is specified, and data for filling the increased area (all of “00”). Data, all “FF” data, etc.) are not written.

以下、動作を説明する。なお、実施の形態1から実施の形態3と異なる部分を中心に説明する。   The operation will be described below. The description will focus on the differences from the first to third embodiments.

ファイル記録装置10では、データを情報媒体100のデータ領域103上の記録ファイル130として記録する際に、予約領域確保部147が、管理領域120上に、サイズ算出部148で算出されたサイズを確保する。具体的には、ステップ217において、予約領域確保部147がtruncateコマンドを発行し、現在の記録位置131から仮想予約領域サイズ分だけ後の位置に、ファイルサイズを増加させる。この時、実際にデータを情報媒体100に書き込むことはしないため、現在の記録位置131は移動しない。また、ファイルサイズが増加するため、ステップ218において、管理情報生成部145がそのサイズに合わせて管理領域120を更新する。これにより、記録ファイル130の終端、すなわち現在の記録位置131から所定サイズの仮想的な仮想予約領域136が確保されたことになる。   In the file recording apparatus 10, when recording data as the recording file 130 on the data area 103 of the information medium 100, the reserved area securing unit 147 secures the size calculated by the size calculating unit 148 on the management area 120. To do. Specifically, in step 217, the reserved area securing unit 147 issues a truncate command to increase the file size to a position after the current recording position 131 by the virtual reserved area size. At this time, since the data is not actually written to the information medium 100, the current recording position 131 does not move. In addition, since the file size increases, in step 218, the management information generation unit 145 updates the management area 120 according to the size. As a result, a virtual virtual reserved area 136 having a predetermined size is secured from the end of the recording file 130, that is, from the current recording position 131.

ここで、記録ファイル130にデータが追加記録される場合、ファイル生成部144によるデータの追加記録(図11のステップ202)によって、記録ファイル130の記録位置131が移動すると(図11のステップ204)、追加されたデータに相当するサイズ分、記録ファイル130の仮想予約領域136が減少する。しかし、仮想予約領域136を含む記録ファイル130の終端位置は一定のまま保たれ、ファイル130に対する新たな仮想的なセクタ割当てが発生しない。従って、管理領域120の更新を行う必要が無くなる。   Here, when data is additionally recorded in the recording file 130, the recording position 131 of the recording file 130 is moved by the additional data recording (step 202 in FIG. 11) by the file generation unit 144 (step 204 in FIG. 11). The virtual reserved area 136 of the recording file 130 is reduced by the size corresponding to the added data. However, the end position of the recording file 130 including the virtual reserved area 136 is kept constant, and a new virtual sector allocation to the file 130 does not occur. Therefore, it is not necessary to update the management area 120.

さらに、記録ファイル130にデータが追加記録される場合、仮想予約領域136を使い切ってしまい、追加記録しようとするデータに相当するサイズに対して不足分が発生する(図11のステップ210)。この場合、予約領域確保部147が、管理領域120上に、サイズ算出部148で新たに算出されたサイズを確保する(図11のステップ216、ステップ217およびステップ218)。これにより、記録ファイル130の終端に、新たに仮想的な仮想予約領域136が確保されたことになる。   Furthermore, when data is additionally recorded in the recording file 130, the virtual reserved area 136 is used up, and a shortage occurs with respect to the size corresponding to the data to be additionally recorded (step 210 in FIG. 11). In this case, the reserved area securing unit 147 secures the size newly calculated by the size calculating unit 148 on the management area 120 (steps 216, 217, and 218 in FIG. 11). As a result, a new virtual reserved area 136 is secured at the end of the recording file 130.

以上のように実施の形態4におけるファイル記録方法では、予約領域の確保を管理領域120上でのみ仮想的に行うため、データ領域103の記録ファイル130上に実際にデータを書き込むことで予約領域を確保するという処理を削減できる。   As described above, in the file recording method according to the fourth embodiment, the reserved area is virtually reserved only on the management area 120. Therefore, the reserved area is created by actually writing data on the recording file 130 in the data area 103. The process of securing can be reduced.

また、記録後のファイルは、ステップ219によって通常のアクセス方法で記録したファイルと全く同様となるため、記録後のファイルへのアクセスは、既存のファイルシステムをそのまま使用することができる。よって、互換性を確保することができる。   Since the recorded file is exactly the same as the file recorded by the normal access method in step 219, the existing file system can be used as it is for accessing the recorded file. Therefore, compatibility can be ensured.

なお、仮想予約領域の確保サイズの算出は、実施の形態1から実施の形態3における予約領域の確保サイズの算出と同様に行うことができる。   Note that the calculation of the reserved size of the virtual reserved area can be performed in the same manner as the calculation of the reserved size of the reserved area in the first to third embodiments.

本発明は、ファイルシステムの管理情報の記憶領域への書換えの集中を回避し、情報媒体の長寿命化を実現することが可能となる。また、予約領域を確保する処理として、ファイルシステムへの一般的なアクセス方法を用いるため、既存のファイルシステムをそのまま使用することができる。よって、光ディスクやフラッシュメモリなどを情報媒体として用いる映像記録装置、音声記録装置、その他データ記録装置等に有用である。   According to the present invention, it is possible to avoid the concentration of rewriting of the management information of the file system in the storage area and to extend the life of the information medium. Further, since a general access method to the file system is used as the process for securing the reserved area, the existing file system can be used as it is. Therefore, it is useful for a video recording device, an audio recording device, other data recording devices, etc. that use an optical disk, a flash memory, or the like as an information medium.

実施の形態1におけるファイル記録装置のハードウェア構成を示すブロック図1 is a block diagram showing a hardware configuration of a file recording apparatus according to Embodiment 1; 実施の形態1におけるファイル記録装置のソフトウェア構成を示すブロック図FIG. 3 is a block diagram showing a software configuration of the file recording apparatus in the first embodiment. 実施の形態1におけるファイル記録方法による情報媒体の構成を示す模式図Schematic diagram showing the configuration of an information medium according to the file recording method in the first embodiment A〜Cは、実施の形態1におけるファイル記録方法による情報媒体の内容変化を示す図FIGS. 8A to 8C are diagrams showing changes in the contents of an information medium according to the file recording method in the first embodiment. 実施の形態1におけるファイル記録処理を示すフローチャートFlowchart showing file recording processing in the first embodiment A〜Cは、実施の形態2におけるファイル記録方法による情報媒体の内容変化を示す図FIGS. 8A to 8C are diagrams showing changes in contents of an information medium according to a file recording method in Embodiment 2. FIGS. 実施の形態2におけるファイル記録処理を示すフローチャートFlowchart showing file recording processing in the second embodiment A〜Cは、実施の形態3におけるファイル記録方法による情報媒体の内容変化を示す図FIGS. 8A to 8C are diagrams showing changes in the contents of an information medium according to the file recording method in Embodiment 3. FIGS. 実施の形態4におけるファイル記録方法による情報媒体の構成を示す模式図Schematic diagram showing the configuration of an information medium according to a file recording method in Embodiment 4 実施の形態4におけるファイル記録装置のソフトウェア構成を示すブロック図Block diagram showing the software configuration of the file recording apparatus in the fourth embodiment 実施の形態4におけるファイル記録処理を示すフローチャートFlowchart showing file recording processing in the fourth embodiment 従来のファイル記録装置のハードウェア構成を示すブロック図Block diagram showing the hardware configuration of a conventional file recording apparatus 従来のファイル記録装置のソフトウェア構成を示すブロック図Block diagram showing the software configuration of a conventional file recording device 従来のファイル記録方法による情報媒体の構成を示す模式図Schematic diagram showing the configuration of an information medium according to a conventional file recording method A〜Cは、従来のファイル記録方法による情報媒体の内容変化を示す模式図FIGS. 8A to 8C are schematic diagrams showing changes in contents of an information medium by a conventional file recording method. FIGS.

符号の説明Explanation of symbols

10 ファイル記録装置
11 制御部
12 CPU
13 メモリー
14 プログラム格納部
15 メディアコントローラー
16 エンコーダー
17 AD変換部
18 インターフェース
100 情報媒体
101 論理先頭アドレス
102 特定領域
103 データ領域
120 管理領域
121 空き領域(管理領域以外の領域)
130 記録ファイル
131 記録位置
132 空き領域(論理先頭アドレス側)
133 空き領域(論理後尾アドレス側)
134 予約領域
141、146 サイズ算出部
142、147 予約領域確保部
144 ファイル生成部
145 管理情報生成部
10 File Recording Device 11 Control Unit 12 CPU
13 Memory 14 Program storage unit 15 Media controller 16 Encoder 17 AD conversion unit 18 Interface 100 Information medium 101 Logical head address 102 Specific area 103 Data area 120 Management area 121 Free area (area other than management area)
130 Recording file 131 Recording position 132 Empty area (logical start address side)
133 Free space (logical tail address side)
134 Reserved area 141, 146 Size calculating unit 142, 147 Reserved area securing unit 144 File generating unit 145 Management information generating unit

Claims (10)

管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録方法であって、
前記データ領域に記録中のファイルの現在の記録位置から連続した所定のサイズの予約領域を、前記ファイルの一部に確保し、
前記予約領域を含む前記ファイルの管理情報を、前記特定領域に記録し、
前記ファイルにデータを追加記録するときには、前記記録位置から記録を開始し、前記予約領域に前記データを記録することを特徴とするファイル記録方法。
A file recording method capable of recording the management information and the file on an information medium including at least a specific area where the management information can be recorded and a data area where the file can be recorded,
Reserve a reserved area of a predetermined size continuous from the current recording position of the file being recorded in the data area in a part of the file,
Management information of the file including the reserved area is recorded in the specific area,
When data is additionally recorded in the file, recording is started from the recording position, and the data is recorded in the reserved area.
管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録方法であって、
前記データ領域に記録中のファイルにおける、現在の記録位置から連続した所定のサイズの予約領域を前記ファイルの一部に確保した場合の前記管理情報を、前記特定領域に記録することで、前記記録位置から連続した前記所定サイズの仮想予約領域を確保し、
前記ファイルにデータを追加記録するときは、前記記録位置から前記仮想予約領域に対して前記データを記録することを特徴とするファイル記録方法。
A file recording method capable of recording the management information and the file on an information medium including at least a specific area where the management information can be recorded and a data area where the file can be recorded,
In the file being recorded in the data area, the management information when a reserved area having a predetermined size continuous from the current recording position is secured in a part of the file is recorded in the specific area, thereby recording the recording area. Secure a virtual reserved area of the predetermined size continuous from the position,
A file recording method, wherein when data is additionally recorded in the file, the data is recorded from the recording position to the virtual reserved area.
前記予約領域または前記仮想予約領域の確保タイミングは、
記録中の前記ファイルの全体サイズ、前記情報媒体上の前記データ領域の空きサイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記ファイルの記録位置が前記情報媒体の一つあるいは複数の論理アドレス境界に到達するタイミングのうち、少なくともいずれかひとつに基づいて決定される請求項1または2記載のファイル記録方法。
The reservation timing of the reserved area or the virtual reserved area is as follows:
The total size of the file being recorded, the free size of the data area on the information medium, the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, the recording position of the file 3. The file recording method according to claim 1 or 2, wherein the file recording method is determined based on at least one of timings at which one or more logical address boundaries of the information medium are reached.
前記予約領域または前記仮想予約領域の確保サイズは、
記録中の前記ファイルの全体サイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記情報媒体上の前記データ領域の空きサイズ、前記情報媒体の一つあるいは複数の論理アドレス境界、前記ファイルのファイル名、及び前記ファイルのデータ帯域幅のうち、少なくともいずれかひとつに相関する請求項1乃至3のいずれかに記載のファイル記録方法。
The reserved area or the reserved size of the virtual reserved area is:
The total size of the file being recorded, the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, the free size of the data area on the information medium, one of the information media The file recording method according to claim 1, wherein the file recording method correlates with at least one of one or a plurality of logical address boundaries, a file name of the file, and a data bandwidth of the file.
前記予約領域または前記仮想予約領域が、前記ファイルの記録終了時に削除される請求項1乃至4のいずれかに記載のファイル記録方法。   5. The file recording method according to claim 1, wherein the reserved area or the virtual reserved area is deleted at the end of recording of the file. 請求項1乃至5のいずれかに記載のファイル記録方法を、コンピュータにより実行させるためのプログラム。   A program for causing a computer to execute the file recording method according to any one of claims 1 to 5. 管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録装置であって、
外部から入力されるデータから前記管理情報と前記ファイルとを生成する制御部と、
前記制御部から出力される前記管理情報と前記ファイルとを、前記情報媒体へ記録する記録制御部とを備え、
前記制御部は、
前記情報媒体の前記データ領域に記録するファイルを生成するファイル生成部と、
前記ファイル生成部において生成された前記ファイルに関連する管理情報を生成する管理情報生成部と、
前記ファイルの現在の記録位置から連続したデータで構成される予約領域を確保する予約領域確保部と、
前記予約領域確保部が確保する前記予約領域のサイズを算出するサイズ算出部とを備えたことを特徴とするファイル記録装置。
A file recording apparatus capable of recording the management information and the file on an information medium including at least a specific area capable of recording management information and a data area capable of recording a file,
A control unit that generates the management information and the file from externally input data;
A recording control unit for recording the management information and the file output from the control unit on the information medium;
The controller is
A file generator for generating a file to be recorded in the data area of the information medium;
A management information generating unit that generates management information related to the file generated in the file generating unit;
A reserved area securing unit for securing a reserved area composed of continuous data from the current recording position of the file;
A file recording apparatus comprising: a size calculating unit that calculates a size of the reserved area secured by the reserved area securing unit.
管理情報を記録可能な特定領域と、ファイルを記録可能なデータ領域とを少なくとも含む情報媒体に、前記管理情報と前記ファイルとを記録可能なファイル記録装置であって、
外部から入力されるデータから前記管理情報と前記ファイルとを生成する制御部と、
前記制御部から出力される前記管理情報と前記ファイルとを、前記情報媒体へ記録する記録制御部とを備え、
前記制御部は、
前記情報媒体の前記データ領域に記録するファイルを生成するファイル生成部と、
前記ファイル生成部において生成された前記ファイルに関連する管理情報を生成する管理情報生成部と、
前記データ領域に記録中のファイルにおける、現在の記録位置から連続した所定のサイズの予約領域を前記ファイルの一部に確保した場合の前記管理情報を、前記特定領域に記録することで、前記記録位置から連続した前記所定サイズの仮想予約領域を確保する予約領域確保部と、
前記仮想予約領域のサイズを算出するサイズ算出部とを備えたことを特徴とするファイル記録装置。
A file recording apparatus capable of recording the management information and the file on an information medium including at least a specific area capable of recording management information and a data area capable of recording a file,
A control unit that generates the management information and the file from externally input data;
A recording control unit for recording the management information and the file output from the control unit on the information medium;
The controller is
A file generator for generating a file to be recorded in the data area of the information medium;
A management information generating unit that generates management information related to the file generated in the file generating unit;
In the file being recorded in the data area, the management information when a reserved area having a predetermined size continuous from the current recording position is secured in a part of the file is recorded in the specific area, thereby recording the recording area. A reserved area securing unit that secures the virtual reserved area of the predetermined size continuous from the position;
A file recording apparatus comprising: a size calculating unit that calculates a size of the virtual reserved area.
前記予約領域確保部における前記予約領域または前記仮想予約領域の確保タイミングは、
記録中の前記ファイルの全体サイズ、前記情報媒体上の前記データ領域の空きサイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、及び前記ファイルの記録位置が前記情報媒体の一つあるいは複数の論理アドレス境界に到達するタイミングのうち、少なくともいずれかひとつに基づいて決定される請求項7または8記載のファイル記録装置。
The reservation timing of the reserved area or the virtual reserved area in the reserved area securing unit is as follows:
The total size of the file being recorded, the free size of the data area on the information medium, the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, and the recording of the file 9. The file recording apparatus according to claim 7, wherein the position is determined based on at least one of timings at which the position reaches one or a plurality of logical address boundaries of the information medium.
前記サイズ算出部は、
記録中の前記ファイルの全体サイズ、前記予約領域または前記仮想予約領域の残りサイズ、記録中の前記ファイルの記録開始からの時間、前記情報媒体上の前記データ領域の空きサイズ、前記情報媒体の一つあるいは複数の論理アドレス境界、前記ファイルのファイル名、及び前記ファイルのデータ帯域幅のうち、少なくともいずれかひとつに基づいて前記予約領域または前記仮想予約領域の確保サイズを算出する請求項7または8記載のファイル記録装置。
The size calculator is
The total size of the file being recorded, the remaining size of the reserved area or the virtual reserved area, the time from the start of recording of the file being recorded, the free size of the data area on the information medium, one of the information media 9. The reserved size of the reserved area or the virtual reserved area is calculated based on at least one of one or a plurality of logical address boundaries, the file name of the file, and the data bandwidth of the file. The file recording device described.
JP2006184617A 2005-07-08 2006-07-04 File recording method, file recording apparatus and program Withdrawn JP2007042089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006184617A JP2007042089A (en) 2005-07-08 2006-07-04 File recording method, file recording apparatus and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2005199655 2005-07-08
JP2006184617A JP2007042089A (en) 2005-07-08 2006-07-04 File recording method, file recording apparatus and program

Publications (1)

Publication Number Publication Date
JP2007042089A true JP2007042089A (en) 2007-02-15

Family

ID=37799965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006184617A Withdrawn JP2007042089A (en) 2005-07-08 2006-07-04 File recording method, file recording apparatus and program

Country Status (1)

Country Link
JP (1) JP2007042089A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217357A (en) * 2008-03-07 2009-09-24 Nec Corp File space addition system, file space addition method and file space addition program
JP2011165012A (en) * 2010-02-10 2011-08-25 Sony Corp Recording device, imaging and recording device, recording method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009217357A (en) * 2008-03-07 2009-09-24 Nec Corp File space addition system, file space addition method and file space addition program
JP2011165012A (en) * 2010-02-10 2011-08-25 Sony Corp Recording device, imaging and recording device, recording method, and program
US8929723B2 (en) 2010-02-10 2015-01-06 Sony Corporation Recording apparatus, imaging and recording apparatus, recording method, and program

Similar Documents

Publication Publication Date Title
US7840616B2 (en) File recording method, file recording apparatus, and program
JP5235541B2 (en) Recording apparatus and method
JP2010198407A (en) Information processor, data recording control method, and program
US20090067819A1 (en) Information processing apparatus, recording method, and computer program
JP6784626B2 (en) Recording device, control method, and program
JP5634057B2 (en) Recording apparatus and recording method
JP4241839B2 (en) Data and file system information recording apparatus and recording method
JP2007042089A (en) File recording method, file recording apparatus and program
US8301862B2 (en) Formatting device
JP5523128B2 (en) Recording apparatus and control method thereof
JP5178355B2 (en) Recording device
US7890553B2 (en) Information recording apparatus and information recording method
JP4577050B2 (en) Recording apparatus and method, and program
US8929723B2 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
US8452158B2 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
JP2007279873A (en) Data recorder
US8509597B2 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
JP2013118510A (en) Image processing apparatus and image processing method
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
US20200150902A1 (en) Recording apparatus that records data using file system, control method therefor, and storage medium storing control program therefor
JP2016015057A (en) Recording device
JP2010009205A (en) Recording control device
KR20090027103A (en) Method to devide and merge the file using file allocation table
JP2007265010A (en) File reproduction apparatus, file reproduction method, and program
JP2016009411A (en) Recording device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20091006