[go: up one dir, main page]

JP2003280960A - File management program and recording medium - Google Patents

File management program and recording medium

Info

Publication number
JP2003280960A
JP2003280960A JP2002078321A JP2002078321A JP2003280960A JP 2003280960 A JP2003280960 A JP 2003280960A JP 2002078321 A JP2002078321 A JP 2002078321A JP 2002078321 A JP2002078321 A JP 2002078321A JP 2003280960 A JP2003280960 A JP 2003280960A
Authority
JP
Japan
Prior art keywords
cluster
recorded
recording medium
file management
management program
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
JP2002078321A
Other languages
Japanese (ja)
Inventor
Masami Nasu
政巳 奈須
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2002078321A priority Critical patent/JP2003280960A/en
Publication of JP2003280960A publication Critical patent/JP2003280960A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 データを短時間で記録媒体に記録できるよう
にしたファイル管理プログラムおよび記録媒体を提供す
る。 【解決手段】 複数のクラスタに分割された記録媒体に
MS−DOS方式によって記録する情報の管理を行なわ
せるファイル管理プログラムにおいて、前記記録媒体に
記録されているFATより順次所定数のクラスタの使用
状況を読出し、読出した所定数のクラスタに新たなGク
ラスタ番号を付与し、付与したGクラスタ番号に対する
使用状況を前記読出したクラスタの使用状況に基づいて
付与してGFATを作成し、前記記録媒体への情報の記
録時には使用状況が空であるGクラスタ番号を順次サー
チし、サーチして得られた空のGクラスタ番号に対応す
る前記所定数のクラスタ番号のクラスタに連続して情報
を記録させる。
(57) [Problem] To provide a file management program and a recording medium capable of recording data on a recording medium in a short time. SOLUTION: In a file management program for managing information to be recorded on a recording medium divided into a plurality of clusters by the MS-DOS system, a usage state of a predetermined number of clusters sequentially from FAT recorded on the recording medium. And assigns a new G cluster number to a predetermined number of clusters read out, assigns a usage status for the assigned G cluster number based on the usage status of the read cluster, creates a GFAT, and writes the GFAT to the recording medium. When the information is recorded, an empty G cluster number whose use status is empty is sequentially searched, and information is continuously recorded in the cluster having the predetermined number of cluster numbers corresponding to the empty G cluster number obtained by the search.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は記録媒体にMS−D
OS方式で記録する情報の管理を行なわせるファイル管
理プログラムおよび記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a file management program and a recording medium for managing information recorded by the OS system.

【0002】[0002]

【従来の技術】従来使用されているMS−DOS方式に
よる記録媒体に情報を記録する方法を図3〜図5を参照
して説明する。
2. Description of the Related Art A conventional method of recording information on a recording medium of the MS-DOS system will be described with reference to FIGS.

【0003】図3において、8は情報を記録する記録媒
体であるメモリカードを示しており、8Aはマスタブー
トセクタ領域で、シリンダ、ヘッドトラック、セクタト
ラック等のパラメータが記録され、8Bはパーティショ
ンセクタ領域で、記録媒体の物理的な記録最小単位であ
るセクタサイズ、クラスタ当たりのセクタ数、FAT
(File Allocation Table )数等のDOSファイル管理
に必要なパラメータが記録されている。
In FIG. 3, reference numeral 8 denotes a memory card which is a recording medium for recording information, 8A is a master boot sector area in which parameters such as cylinders, head tracks and sector tracks are recorded, and 8B is a partition sector. Area, sector size, which is the minimum physical recording unit of the recording medium, number of sectors per cluster, FAT
Parameters necessary for DOS file management such as (File Allocation Table) are recorded.

【0004】8CはFATであり、クラスタの使用状況
が記録され、FAT2にはFAT1のコピーが記録さ
れ、FAT1の記録が異状の場合はFAT2に記録され
た値を使用する。
Reference numeral 8C is FAT, the usage status of the cluster is recorded, a copy of FAT1 is recorded in FAT2, and when the recording of FAT1 is abnormal, the value recorded in FAT2 is used.

【0005】8Dはルートディレクトリ領域で、図5に
示すように、8Eのデータ領域に記録されたファイルの
ファイル名、拡張子、属性、記録時刻、記録日時、開始
クラスタ番号、ファイルサイズ等が記録される。
Reference numeral 8D is a root directory area, and as shown in FIG. 5, the file name, extension, attribute, recording time, recording date, starting cluster number, file size, etc. of the file recorded in the data area 8E are recorded. To be done.

【0006】図4は8Cに示すFATの記録例を示して
いる。FAT8Cのアドレスはデータ領域8Eのクラス
タ番号に対応しており、クラスタ番号に対応するクラス
タの使用状況が記録される。
FIG. 4 shows a recording example of the FAT shown in 8C. The address of the FAT 8C corresponds to the cluster number of the data area 8E, and the usage status of the cluster corresponding to the cluster number is recorded.

【0007】図4に示すように、使用状況が「000」
は未記録、「FFF」は最終データを記録したクラスタ
を示し、「000」および「FFF」以外の記録は次に
続いて記録されているクラスタ番号が記録される。
As shown in FIG. 4, the usage status is "000".
Indicates unrecorded, “FFF” indicates the cluster in which the final data is recorded, and the records other than “000” and “FFF” record the cluster number recorded next.

【0008】そこで、図5で示した開始クラスタの番号
が「000」の場合は、このファイルのデータは、図4
で示されるように、クラスタ番号「000」〜「00
4」、「006」および「007」に記録されているこ
とを示している。また、開始クラスタ番号が「010」
のファイルはクラスタ番号「010」と「011」のク
ラスタに記録されていることを示している。
Therefore, when the number of the starting cluster shown in FIG. 5 is "000", the data of this file is shown in FIG.
, The cluster numbers “000” to “00
4 ”,“ 006 ”, and“ 007 ”. Also, the starting cluster number is "010"
File is recorded in the clusters with cluster numbers “010” and “011”.

【0009】したがって、データ領域8Eに記録されて
いるデータを読出すには、先ずルートディレクトリ領域
8Dに記録されているファイル名をサーチし、開始クラ
スタの番号を読出し、読出したクラスタ番号に対応する
データ領域8Eのクラスタより記録されているデータを
読出す。
Therefore, in order to read the data recorded in the data area 8E, first the file name recorded in the root directory area 8D is searched, the number of the starting cluster is read, and the read cluster number corresponds to the read cluster number. The recorded data is read from the cluster in the data area 8E.

【0010】クラスタよりデータの読出しが終了すると
読出したクラスタに続いてデータが記録されているか否
かをFAT8Cにアクセスして判定し、記録が「FF
F」以外の場合は記録されているクラスタ番号に対応す
るクラスタに記録されているデータの読出しを続行す
る。
When the reading of the data from the cluster is completed, it is judged by accessing the FAT8C whether or not the data is recorded following the read cluster, and the data is recorded in "FF".
In the case of other than "F", the reading of the data recorded in the cluster corresponding to the recorded cluster number is continued.

【0011】また、新たなファイルデータを記録する時
は、FAT8Cのアドレスを先頭から順次サーチし、使
用状況が「000」、すなわち未記録のクラスタを見出
し、見出したクラスタにデータを記録する。
Further, when recording new file data, the address of FAT8C is sequentially searched from the beginning, a cluster whose usage status is "000", that is, an unrecorded cluster is found, and the data is recorded in the found cluster.

【0012】したがって、図4で示される場合は、デー
タ領域8Eのクラスタ番号「005」にデータが記録さ
れ、FAT8Cの使用状況には次の未記録のクラスタ番
号「008」が記録されると共にデータ領域8Eのクラ
スタ番号「008」にファイルデータが記録される。
Therefore, in the case shown in FIG. 4, data is recorded in the cluster number "005" of the data area 8E, and the next unrecorded cluster number "008" is recorded in the usage status of the FAT 8C and the data is recorded. File data is recorded in the cluster number “008” in the area 8E.

【0013】またファイルデータの記録が終了すると最
終データが記録されたFAT8Cのクラスタ番号に対応
する使用状況を「FFF」と記録して終了する。
When the recording of the file data is completed, the usage status corresponding to the cluster number of the FAT8C in which the final data is recorded is recorded as "FFF" and the processing is completed.

【0014】[0014]

【発明が解決しようとする課題】MS−DOS方式によ
って記録媒体にデータを記録する場合は、前述したよう
に、FATより空領域であることを示す「000」を検
索し、「000」が見つかった場合は、そのクラスタ番
号より記録媒体の論理アドレスを求め、求められた論理
アドレスに対して書込みを行なう。
When data is recorded on the recording medium by the MS-DOS method, as described above, "000" indicating the empty area is searched from the FAT, and "000" is found. If so, the logical address of the recording medium is obtained from the cluster number, and writing is performed at the obtained logical address.

【0015】クラスタ番号より論理アドレスの算出は、
前述したパーティションセクタ領域8Aに記録されてい
るDOSパラメータにより行なう。したがって、1ファ
イルが複数のクラスタによって構成される場合は、空ク
ラスタの検索および論理アドレスの算出をクラスタ毎に
行なう必要があり、ファイル記録処理に長時間を要す
る。
The logical address can be calculated from the cluster number by
This is performed by the DOS parameter recorded in the partition sector area 8A described above. Therefore, when one file is composed of a plurality of clusters, it is necessary to search for an empty cluster and calculate a logical address for each cluster, which requires a long time for the file recording process.

【0016】クラスタのサイズはDOSパラメータによ
って変更可能であるが、クラスタサイズを大きくする
と、空クラスタの検索および論理アドレスの算出する回
数が少なくなってファイル記録処理時間を低減すること
ができるが、クラスタは最小記録単位であるため、必要
以上にクラスタサイズを大きくするとファイルの最終の
データが記録されるクラスタにデータが記録されない空
領域が発生し、記録媒体の使用効率を低下させる。
The size of the cluster can be changed by the DOS parameter. However, if the cluster size is increased, the number of times the empty cluster is searched and the logical address is calculated is reduced, and the file recording processing time can be reduced. Is the minimum recording unit, and if the cluster size is increased more than necessary, an empty area in which no data is recorded occurs in the cluster in which the final data of the file is recorded, and the use efficiency of the recording medium is reduced.

【0017】本発明はディジタルカメラで撮像した画像
データ等の多量のデータを短時間で記録媒体に記録でき
るようにしたファイル管理プログラムおよび記録媒体を
提供することを課題とする。
An object of the present invention is to provide a file management program and a recording medium capable of recording a large amount of data such as image data picked up by a digital camera on a recording medium in a short time.

【0018】[0018]

【課題を解決するための手段】請求項1の発明において
は、複数のクラスタに分割された記録媒体にMS−DO
S方式によって記録する情報の管理を行なわせるファイ
ル管理プログラムにおいて、前記記録媒体に記録されて
いるFATより順次所定数のクラスタの使用状況を読出
し、読出した所定数のクラスタに新たなGクラスタ番号
を付与し、付与したGクラスタ番号に対する使用状況を
前記読出したクラスタの使用状況に基づいて付与してG
FATを作成し、前記記録媒体への情報の記録時には使
用状況が空であるGクラスタ番号を順次サーチし、サー
チして得られた空のGクラスタ番号に対応する前記所定
数のクラスタ番号のクラスタに連続して情報を記録させ
る。
According to the invention of claim 1, MS-DO is provided on a recording medium divided into a plurality of clusters.
In a file management program for managing information recorded by the S method, the usage status of a predetermined number of clusters is sequentially read from the FAT recorded on the recording medium, and a new G cluster number is assigned to the read predetermined number of clusters. G and assigns the usage status for the assigned G cluster number based on the usage status of the read cluster.
A FAT is created, and when the information is recorded on the recording medium, G cluster numbers whose use status is empty are sequentially searched, and clusters of the predetermined number of cluster numbers corresponding to the empty G cluster numbers obtained by the search. To record information continuously.

【0019】請求項2の発明においては、前記GFAT
を前記記録媒体とは別のメモリに記録させる。請求項3
の発明においては、前記Gクラスタを構成する前記クラ
スタの数を、前記記録媒体に応じて変更可能にする。
In the invention of claim 2, the GFAT
Is recorded in a memory different from the recording medium. Claim 3
In the invention, the number of the clusters forming the G cluster can be changed according to the recording medium.

【0020】請求項4の発明においては、前記Gクラス
タを構成する前記クラスタの数を、前記記録媒体の総記
録容量に応じて決定する。請求項5の発明においては、
前記Gクラスタを構成する前記クラスタの数を、ディジ
タルカメラの記録する画質モードによって決定する。
In the invention of claim 4, the number of the clusters forming the G cluster is determined according to the total recording capacity of the recording medium. In the invention of claim 5,
The number of the clusters forming the G cluster is determined by the image quality mode recorded by the digital camera.

【0021】請求項6の発明においては、前記記録媒体
に記録される情報がディジタルカメラで撮像された画像
情報とする。
In the invention of claim 6, the information recorded on the recording medium is image information captured by a digital camera.

【0022】[0022]

【発明の実施の形態】本発明の実施の形態を図1〜図6
を参照して説明する。図1は本発明の実施例の構成図、
図2は同実施例の動作フローチャート、図3はメモリカ
ードの構成図、図4はFATの記録例、図5はルートデ
ィレクトリの説明図、図6はGFATの説明図である。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention is shown in FIGS.
Will be described with reference to. FIG. 1 is a block diagram of an embodiment of the present invention,
2 is an operation flowchart of the embodiment, FIG. 3 is a configuration diagram of a memory card, FIG. 4 is an example of FAT recording, FIG. 5 is an explanatory diagram of a root directory, and FIG. 6 is an explanatory diagram of GFAT.

【0023】図1は本発明をディジタルカメラに適用し
た実施例の構成図で、1は撮像部、2は撮像部1で撮像
された画像データを記録する画像メモリ、3は表示部、
4は操作部、5は本発明のファイル管理プログラム等が
記録されているプログラムメモリ、6はRAM、7は撮
像された画像データを圧縮する圧縮部、8は圧縮された
画像データを記録するメモリカード、9はインタフェー
ス(I/O)、10は処理を行なうプロセッサである。
FIG. 1 is a block diagram of an embodiment in which the present invention is applied to a digital camera. 1 is an image pickup section, 2 is an image memory for recording image data picked up by the image pickup section 1, 3 is a display section,
4 is an operation unit, 5 is a program memory in which the file management program of the present invention is recorded, 6 is a RAM, 7 is a compression unit for compressing captured image data, and 8 is a memory for recording the compressed image data. A card, 9 is an interface (I / O), and 10 is a processor for processing.

【0024】なおプログラムメモリ5には本発明のファ
イル管理プログラムおよび従来例で説明したMS−DO
S方式によるデータの記録読出を行なわせるプログラム
が記録されている。
The program memory 5 stores the file management program of the present invention and the MS-DO described in the conventional example.
A program for recording and reading data by the S method is recorded.

【0025】またメモリカード8は、図3で説明したマ
スタブートセクタ領域8Aおよびパーティションセクタ
領域8B、FAT8C、ルートディレクトリ領域8Dお
よびデータ領域8Eが設けられており、各領域には従来
例で説明したデータが記録されている。
Further, the memory card 8 is provided with the master boot sector area 8A, the partition sector area 8B, the FAT 8C, the root directory area 8D and the data area 8E described with reference to FIG. Data is recorded.

【0026】つぎに、図2を参照して、本発明の実施例
を説明する。例えば、ディジタルカメラの電源がオンに
なると動作が開始される。ステップS1では、メモリカ
ード8のFAT8Cより順次クラスタの使用状況を読出
し、G(グループ)FATをRAM6上に作成する。
Next, an embodiment of the present invention will be described with reference to FIG. For example, the operation is started when the power of the digital camera is turned on. In step S1, the usage statuses of the clusters are sequentially read from the FAT 8C of the memory card 8 and G (group) FATs are created in the RAM 6.

【0027】図6はFAT8Cと対応させて示したGF
ATを示しており、GFATのアドレスをG(グルー
プ)クラスタ番号で表わし、Gクラスタ番号はFATの
連続する4クラスタ毎に付与する。
FIG. 6 shows GF corresponding to FAT8C.
AT is shown, and the address of GFAT is represented by a G (group) cluster number, and the G cluster number is given to every four consecutive clusters of FAT.

【0028】またGFATのGクラスタ番号に対応する
使用状況は、対応するFATの4個のクラスタ番号の使
用状況が1個でも使用中のものがあれば「fff」を付
与し、4個とも未使用であれば使用可である「00x」
を付与する。なお「00x」の「x」は次の未使用のG
クラスタ番号とする。
As for the usage status corresponding to the G cluster number of GFAT, if even one usage status of the four cluster numbers of the corresponding FAT is in use, "fff" is given, and all four are not used. "00x" that can be used if used
Is given. In addition, "x" of "00x" is the next unused G
Use the cluster number.

【0029】したがって、図6で示すGFATのGクラ
スタ番号000〜002に対応する使用状況は使用中で
あるため「fff」が記録され、Gクラスタ番号003
に対応するクラスタ番号012〜015の使用状況は全
て未使用であり、また次に未使用のGクラスタ番号00
5のGクラスタがあるので、Gクラスタ番号003の使
用状況には「005」が記録される。
Therefore, since the usage status corresponding to the G cluster numbers 000 to 002 of GFAT shown in FIG. 6 is in use, "fff" is recorded and the G cluster number 003.
The usage statuses of the cluster numbers 012 to 015 corresponding to are all unused, and the next unused G cluster number 00
Since there are 5 G clusters, “005” is recorded in the usage status of the G cluster number 003.

【0030】また、次に未使用のGクラスタが無い場合
は、例えばGクラスタ番号005に示すように、「FF
F」を記録する。以上のように、ステップS1ではRA
M6上にGFATを作成して記録する。
If there is no unused G cluster next, for example, as shown in G cluster number 005, "FF
Record "F". As described above, in step S1, RA
Create and record GFAT on M6.

【0031】ステップS2では、操作部4よりメモリカ
ード8に記録する画像の記録画質モードが変更になった
か否かを判定し、判定がNOの場合はステップS3に移
り、判定がYESの場合はステップS1に移り、図6で
説明したGクラスタ番号に対応するクラスタ数を画質モ
ードに対応して変更し、再度GFATを作成する。
In step S2, it is determined whether or not the recording image quality mode of the image to be recorded on the memory card 8 has been changed by the operation unit 4. If the determination is NO, the process proceeds to step S3, and if the determination is YES. In step S1, the number of clusters corresponding to the G cluster number described in FIG. 6 is changed in accordance with the image quality mode, and GFAT is created again.

【0032】ステップS3では、操作部4のシャッタが
押下されたか否かを判定し、判定がNOの場合はステッ
プS2に移り、ステップS2およびS3が繰返され、判
定がYESの場合はステップS4に移る。
In step S3, it is determined whether or not the shutter of the operation unit 4 is pressed. If the determination is NO, the process proceeds to step S2, steps S2 and S3 are repeated, and if the determination is YES, the process proceeds to step S4. Move.

【0033】ステップS4では、圧縮部7は、撮像部1
で撮像されて画像メモリ2に記録されていた画像データ
を設定された画質モードに対応して圧縮を行なう。ステ
ップS5では、前述したRAM6に記録されているGF
ATのGクラスタ番号の使用状況を順次読出し、画像デ
ータが記録されていない未記録のGクラスタ番号を検索
する。
In step S4, the compression unit 7 causes the imaging unit 1
The image data picked up by and recorded in the image memory 2 is compressed according to the set image quality mode. In step S5, the GF recorded in the RAM 6 described above.
The usage status of the G cluster number of the AT is sequentially read, and the unrecorded G cluster number in which the image data is not recorded is searched.

【0034】ステップS5で未記録のGクラスタが検索
されなかった場合はステップS9に移り、表示部3等に
メモリカード8に記録できないことを示す容量オーバを
表示して処理を終了する。
If an unrecorded G cluster is not found in step S5, the process moves to step S9, the capacity over indicating that the memory card 8 cannot be recorded is displayed on the display unit 3 and the like, and the process ends.

【0035】またステップS5で未記録のGクラスタが
検索された場合は、ステップS6に移り、圧縮された画
像データを検索されたGクラスタに対応するクラスタに
順次記録する。
When an unrecorded G cluster is searched in step S5, the process proceeds to step S6, and the compressed image data is sequentially recorded in the cluster corresponding to the searched G cluster.

【0036】すなわち、図6で示す状態においては、先
ず最初にGクラスタ番号003が検索され、Gクラスタ
番号003に対応するクラスタ番号012〜015のク
ラスタに順次圧縮された画像データが記録される。
That is, in the state shown in FIG. 6, the G cluster number 003 is searched first, and the compressed image data is sequentially recorded in the clusters of the cluster numbers 012 to 015 corresponding to the G cluster number 003.

【0037】ステップS7では、クラスタ番号012〜
015のクラスタに画像データを記録しても未だ記録さ
れない圧縮画像データが有るか否かを判定し、判定がY
ESの場合はステップS5に移り、ステップS5〜S7
およびS9が繰返される。
In step S7, the cluster numbers 012 to
Even if the image data is recorded in the cluster of 015, it is determined whether or not there is compressed image data that is not recorded.
In the case of ES, the process proceeds to step S5 and steps S5 to S7.
And S9 are repeated.

【0038】第2回目のメモリカード8への未記録の圧
縮画像データの記録は、第1回目に検索されたGクラス
タ番号003の使用状況が「005」であるので、ステ
ップS5での空きGクラスタの検索は行なわず、Gクラ
スタ番号005に対応するクラスタ番号020〜023
のクラスタに順次圧縮画像データを記録する。
When the unrecorded compressed image data is recorded in the memory card 8 for the second time, since the usage status of the G cluster number 003 searched for the first time is "005", the empty G in step S5 is recorded. No cluster search is performed, and cluster numbers 020 to 023 corresponding to G cluster number 005
The compressed image data is sequentially recorded in the cluster.

【0039】また第2回目の記録を行なっても未記録の
圧縮画像データがある場合は、第2回目のGクラスタ番
号005の使用状況が「FFF」であるので、ステップ
S5での判定はNOと判定されてステップS9が実行さ
れて処理を終了する。
If there is unrecorded compressed image data even after the second recording, the use status of the G cluster number 005 of the second time is "FFF", so the determination in step S5 is NO. Is determined, step S9 is executed, and the process ends.

【0040】また、ステップS7での判定がNO、すな
わち圧縮画像データが全て記録された場合はステップS
8に移り、従来例で説明したMS−DOS方式により記
録した画像データに対するルートディレクトリの記録お
よびFATの記録したクラスタに対する使用状況の変更
を行なうと共にGクラスタの使用状況の変更を行なって
ステップS2に移り、ステップS2〜S9が繰返され
る。
If the determination in step S7 is NO, that is, if all the compressed image data has been recorded, step S7 is performed.
8, the root directory is recorded for the image data recorded by the MS-DOS method described in the conventional example, the usage status of the cluster in which the FAT is recorded is changed, and the usage status of the G cluster is changed. Then, steps S2 to S9 are repeated.

【0041】なお実施例では、ステップS1でのGFA
Tの作成において、Gクラスタの使用状況を、次に空き
のGクラスタが有る場合はそのGクラスタ番号を記録す
るようにしていたが、使用状況に空きであるか否かを記
録させ、ステップS5で毎回空きのGクラスタを検索さ
せるようにしてもよい。
In the embodiment, GFA in step S1
In the creation of T, the usage status of the G cluster was recorded as the G cluster number if there is a next free G cluster. However, whether or not the usage status is empty is recorded, and step S5 You may make it search for an empty G cluster every time.

【0042】また実施例では記録画質モードによってG
クラスタを構成するクラスタの数を変更するようにして
いたが、記録媒体または記録媒体の総容量に応じて変更
可能にするようにしてもよい。
In the embodiment, G is set depending on the recording image quality mode.
Although the number of clusters forming the cluster is changed, it may be changed according to the recording medium or the total capacity of the recording medium.

【0043】また実施例はディジタルカメラで撮像され
た画像データをメモリカードに記録する場合について説
明したが、一般のパーソナルコンピュータ等で記録媒体
に情報を記録させる場合に対しても適用することができ
る。
Although the embodiment has been described with respect to the case where the image data picked up by the digital camera is recorded in the memory card, it can be applied to the case where the information is recorded in the recording medium by a general personal computer or the like. .

【0044】[0044]

【発明の効果】本発明によれば、記録媒体に記録されて
いるFATより順次所定数のクラスタの使用状況を読出
し、読出した所定数のクラスタに新たなGクラスタ番号
を付与し、付与したGクラスタ番号に対する使用状況を
前記読出したクラスタの使用状況に基づいて付与してG
FATを作成し、前記記録媒体への情報の記録時には使
用状況が空であるGクラスタ番号を順次サーチし、サー
チして得られた空のGクラスタ番号に対応する前記所定
数のクラスタ番号のクラスタに連続して情報を記録させ
るようにしたので、記録媒体へデータを記録する際に空
クラスタの検索および論理アドレスの算出をクラスタ毎
に行なう必要が無くなり、短時間に多量のデータを記録
することができる。
According to the present invention, the usage status of a predetermined number of clusters is sequentially read from the FAT recorded on the recording medium, a new G cluster number is assigned to the read predetermined number of clusters, and the assigned G cluster is assigned. The usage status for the cluster number is added based on the usage status of the read cluster.
A FAT is created, and when the information is recorded on the recording medium, G cluster numbers whose use status is empty are sequentially searched, and clusters of the predetermined number of cluster numbers corresponding to the empty G cluster numbers obtained by the search. Since information is continuously recorded in the recording medium, it is not necessary to search for an empty cluster and calculate a logical address for each cluster when recording data on the recording medium, and it is possible to record a large amount of data in a short time. You can

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

【図1】本発明の実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】同実施例の動作フローチャートである。FIG. 2 is an operation flowchart of the same embodiment.

【図3】メモリカードの構成図である。FIG. 3 is a configuration diagram of a memory card.

【図4】FATの記録例を示す図である。FIG. 4 is a diagram showing an example of FAT recording.

【図5】ルートディレクトリの説明図である。FIG. 5 is an explanatory diagram of a root directory.

【図6】GFATの説明図である。FIG. 6 is an explanatory diagram of GFAT.

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

1 撮像部 2 画像メモリ 3 表示部 4 操作部 5 プログラムメモリ 6 RAM 7 圧縮部 8 メモリカード 9 インタフェース(I/O) 10 プロセッサ(CPU) 1 Imaging unit 2 image memory 3 Display 4 operation part 5 Program memory 6 RAM 7 Compressor 8 memory cards 9 Interface (I / O) 10 Processor (CPU)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数のクラスタに分割された記録媒体に
MS−DOS方式によって記録する情報の管理を行なわ
せるファイル管理プログラムにおいて、 前記記録媒体に記録されているFATより順次所定数の
クラスタの使用状況を読出し、読出した所定数のクラス
タに新たなGクラスタ番号を付与し、付与したGクラス
タ番号に対する使用状況を前記読出したクラスタの使用
状況に基づいて付与してGFATを作成し、前記記録媒
体への情報の記録時には使用状況が空であるGクラスタ
番号を順次サーチし、サーチして得られた空のGクラス
タ番号に対応する前記所定数のクラスタ番号のクラスタ
に連続して情報を記録させる、ようにしたことを特徴と
するファイル管理プログラム。
1. A file management program for managing information recorded by a MS-DOS method on a recording medium divided into a plurality of clusters, wherein a predetermined number of clusters are sequentially used from the FAT recorded on the recording medium. The situation is read, a new G cluster number is given to the read predetermined number of clusters, and the use situation for the given G cluster number is given based on the use situation of the read cluster to create GFAT, and the recording medium is recorded. At the time of recording information on the G cluster number, the G cluster number whose use condition is empty is sequentially searched, and the information is continuously recorded on the cluster of the predetermined number of cluster numbers corresponding to the empty G cluster number obtained by the search. , A file management program characterized by the above.
【請求項2】 前記GFATを前記記録媒体とは別のメ
モリに記録させるようにしたことを特徴とする請求項1
記載のファイル管理プログラム。
2. The GFAT is recorded in a memory different from the recording medium.
File management program as described.
【請求項3】 前記Gクラスタを構成する前記クラスタ
の数を、前記記録媒体に応じて変更可能であることを特
徴とする請求項1または2記載のファイル管理プログラ
ム。
3. The file management program according to claim 1, wherein the number of the clusters forming the G cluster can be changed according to the recording medium.
【請求項4】 前記Gクラスタを構成する前記クラスタ
の数を、前記記録媒体の総記録容量に応じて決定される
ことを特徴とする請求項1または2記載のファイル管理
プログラム。
4. The file management program according to claim 1, wherein the number of the clusters forming the G cluster is determined according to the total recording capacity of the recording medium.
【請求項5】 前記Gクラスタを構成する前記クラスタ
の数を、ディジタルカメラの記録する画質モードによっ
て決定されることを特徴とする請求項1または2記載の
ファイル管理プログラム。
5. The file management program according to claim 1, wherein the number of the clusters forming the G cluster is determined by an image quality mode recorded by a digital camera.
【請求項6】 前記記録媒体に記録される情報がディジ
タルカメラで撮像された画像情報であることを特徴とす
る請求項1,2,3または4記載のファイル管理プログ
ラム。
6. The file management program according to claim 1, wherein the information recorded on the recording medium is image information captured by a digital camera.
【請求項7】 請求項1乃至6のいずれかに記載のファ
イル管理プログラムを記載した記録媒体。
7. A recording medium in which the file management program according to claim 1 is written.
JP2002078321A 2002-03-20 2002-03-20 File management program and recording medium Withdrawn JP2003280960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002078321A JP2003280960A (en) 2002-03-20 2002-03-20 File management program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002078321A JP2003280960A (en) 2002-03-20 2002-03-20 File management program and recording medium

Publications (1)

Publication Number Publication Date
JP2003280960A true JP2003280960A (en) 2003-10-03

Family

ID=29228337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002078321A Withdrawn JP2003280960A (en) 2002-03-20 2002-03-20 File management program and recording medium

Country Status (1)

Country Link
JP (1) JP2003280960A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265270A (en) * 2006-03-29 2007-10-11 Hitachi Ltd Storage system and storage area allocation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265270A (en) * 2006-03-29 2007-10-11 Hitachi Ltd Storage system and storage area allocation method

Similar Documents

Publication Publication Date Title
US7363331B2 (en) File device and file access method
CN104065906B (en) Video recording method and device of digital video recording equipment
CN109496292B (en) Disk management method, disk management device and electronic device
JP2000267904A (en) Data recorder and its method
JP2001265628A (en) File recording management system
CN111078159A (en) Writing method for avoiding writing damage of DVR storage card
US8301862B2 (en) Formatting device
JP2003280951A (en) File management program and recording medium
JP2003280960A (en) File management program and recording medium
US11604593B2 (en) Control apparatus that improves recording of data in a recording medium by allocating directory clusters to recording units in a more effective manner, and control method and non-transitory computer readable storage medium storing instructions thereof
JP2006133923A (en) Data recording / reproducing apparatus, recording / reproducing method, program, and data recording medium
CN111159054B (en) Recording device and control method thereof, and storage medium storing control program thereof
JP2006155461A (en) Information processing apparatus, information processing method, and program
JP2002091806A (en) Filing system
CN119645309B (en) Fine-grained management of re-storage multi-channel recording system, method, and data retrieval method
JP2002229829A (en) File management information generation method and device
TWI911682B (en) Data management method of flash memory
CN115827508B (en) A data processing method, system, device and storage medium
US7424573B2 (en) Information processing apparatus, method, and program for formatting multiple recording media integrated as one
JP2008134777A (en) Caching method of file allocation table
JP2867260B2 (en) Method of recording data on card type optical recording medium
CN113886347A (en) Node data compression method and device, storage medium and electronic equipment
CN115374020A (en) Disk image generation method, device, equipment and storage medium
JPH0423143A (en) Data storing system
JPH06348573A (en) Electronic still camera

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: 20050607