JPH06250909A - File management method - Google Patents

File management method

Info

Publication number
JPH06250909A
JPH06250909A JP5062431A JP6243193A JPH06250909A JP H06250909 A JPH06250909 A JP H06250909A JP 5062431 A JP5062431 A JP 5062431A JP 6243193 A JP6243193 A JP 6243193A JP H06250909 A JPH06250909 A JP H06250909A
Authority
JP
Japan
Prior art keywords
file
directory
data
recorded
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5062431A
Other languages
Japanese (ja)
Inventor
Osamu Okuda
治 奥田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5062431A priority Critical patent/JPH06250909A/en
Publication of JPH06250909A publication Critical patent/JPH06250909A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the disappearance of a file even if the recording of file data is abnormally terminated at the time of updating the file and to set the editing of the file to be efficient. CONSTITUTION:In a file management method recording directory information into the information recording medium of an additional type for respective pieces of file data and managing the file, the directory of the new file is recorded when data of the new file can normally be recorded at the time of updating the file into the new file, and a processing is terminated when data of the new file cannot normally be recorded. At the time of reproducing the file after update, the directory is read from the recording medium and a file name is retrieved. When the directory of the same file name exists, the file is managed by the latest directory.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、光カードなどの追記式
情報記録媒体に記録されたファイルデータを管理するた
めのファイル管理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management method for managing file data recorded on a write-once information recording medium such as an optical card.

【0002】[0002]

【従来の技術】従来、情報記録媒体としては、磁気を利
用して磁気的に情報を記録再生する磁気記録媒体や光を
利用して光学的に情報を記録再生する光学的情報記録媒
体などが知られている。磁気記録媒体としてはフロッピ
ーディスクなどがあり、光学的情報記録媒体としては光
ディスクや光カードなどがある。こうした情報記録媒体
は大容量のデータを記録することが可能で、コンピュー
タの外部記憶装置などに広く使用されている。
2. Description of the Related Art Conventionally, as an information recording medium, there are a magnetic recording medium which magnetically records and reproduces information by using magnetism and an optical information recording medium which optically records and reproduces information by using light. Are known. The magnetic recording medium includes a floppy disk and the like, and the optical information recording medium includes an optical disk and an optical card. Such an information recording medium can record a large amount of data and is widely used as an external storage device of a computer.

【0003】ところで、こうした記録媒体の大容量のデ
ータを管理する手法として、データのブロックを1つの
ファイルとし、それぞれのファイルごとにファイルを管
理するためのディレクトリ情報を記録することによっ
て、データの記録、再生を管理するファイル管理方法が
知られている。通常、ディレクトリにはファイル名、フ
ァイル長、先頭データトラック番号などのファイル情報
が書き込まれ、こうした情報をもとにファイル管理が行
われている。前述した光カード、特にデータの消去が不
可能な追記式の光カードは寸法がクレジットカード程度
であるが、記憶容量は数メガバイトの容量を持ってい
る。従って、これだけの容量を持っているとやはりディ
レクトリが必要で、一般には光カードのファイル管理に
はディレクトリによるファイル管理が採用されている。
By the way, as a method of managing a large amount of data on such a recording medium, a block of data is set as one file, and directory information for managing the file is recorded for each file, thereby recording the data. A file management method for managing reproduction is known. Normally, file information such as a file name, file length, and head data track number is written in the directory, and file management is performed based on such information. The above-mentioned optical card, especially the write-once optical card in which data cannot be erased, is about the size of a credit card, but has a storage capacity of several megabytes. Therefore, if it has such a capacity, a directory is still necessary, and in general, file management by a directory is adopted for file management of an optical card.

【0004】図5はその光カードの記録面を示した図
で、1は光カード、10はファイルデータを記録するた
めの複数のトラックからなるデータ部、20はディレク
トリ情報を記録するためのディレクトリ部である。ま
た、101 〜10n はデータの記録単位であるデータト
ラック、201 〜20m はディレクトリ部20に記録さ
れたディレクトリである。ここで、光カード1にファイ
ルデータを記録する場合は光カード1の上部の先頭トラ
ック101 側からデータ部10にE方向にファイルデー
タが書き込まれ、これに対しディレクトリは光カード1
の下部からF方向に書き込まれる。ファイルデータは1
つまたは複数トラックからなり、こうした各ファイルデ
ータに対応してディレクトリが書き込まれる。ところ
で、ファイルの管理を行う場合、不要なファイルは消去
する必要があるが、光カードのような追記式の媒体は書
き換が不可能であるために、ファイルが不要となっても
消去できない問題があった。
FIG. 5 shows the recording surface of the optical card. Reference numeral 1 is an optical card, 10 is a data section consisting of a plurality of tracks for recording file data, and 20 is a directory for recording directory information. It is a department. Further, 10 1 to 10 n are data tracks, which are recording units of data, and 20 1 to 20 m are directories recorded in the directory section 20. Here, the case of recording the file data on the optical card 1 file data to the data portion 10 from the first track 10 1 of the upper of the optical card 1 in the direction E is written, whereas the directory optical card 1
Is written in the F direction from the lower part of. File data is 1
It consists of one or more tracks, and a directory is written corresponding to each such file data. By the way, when managing files, it is necessary to delete unnecessary files, but since write-once media such as optical cards cannot be rewritten, it cannot be deleted even when files are no longer needed. was there.

【0005】そこで、こうした問題点を解決するための
方法として、例えば特開昭63−91888号公報に提
案されたディレクトリ形成方法がある。この方法はファ
イルを消去するためのディレクトリを記録することによ
り、論理的にファイルを消去するという方法である。こ
の方法では,消去ディレクトリを用いることによってフ
ァイルの更新が可能となる。
Then, as a method for solving such a problem, there is a directory forming method proposed in Japanese Patent Laid-Open No. 63-91888, for example. This method is a method of logically erasing a file by recording a directory for erasing the file. In this method, the file can be updated by using the erase directory.

【0006】以上のファイル更新方法の例を図6及び図
7に基づいて説明する。まず、図6はファイル更新処理
を示したフローチャートで、始めに光カードのディレク
トリ部に更新前の旧ファイルを消去するために、旧ファ
イルのディレクトリの消去ディレクトリが記録される
(S1)。次いで、更新した後の新ファイルのデータが
記録され(S2)、この新ファイルのデータの記録中に
異常が発生したかどうかが判断される(S3)。もし、
異常が発生すれば処理を終了し、正常に記録できれば新
ファイルのディレクトリを記録して処理を終了する(S
4)。
An example of the above file updating method will be described with reference to FIGS. 6 and 7. First, FIG. 6 is a flowchart showing the file update process. First, in order to erase the old file before update, the erase directory of the old file directory is recorded in the directory portion of the optical card (S1). Next, the updated data of the new file is recorded (S2), and it is determined whether or not an abnormality has occurred during the recording of the data of this new file (S3). if,
If an error occurs, the process ends. If it can be recorded normally, the directory of the new file is recorded and the process ends (S
4).

【0007】図7は光カードのディレクトリとデータを
示し、図7(a)はファイルAを更新する前の状態、図
7(b)はファイルAの更新を正常終了した後の状態、
図7(c)はファイルAの更新が異常終了した後の状態
を示す。また、図中の201〜205はディレクトリ、
301〜304はファイルデータ、A,B,Cはファイ
ル名、括弧内のDはそのディレクトリが消去ディレクト
リであることを示す。更に、矢印はディレクトリが管理
するファイルデータを指しており、例えばディレクトリ
201はファイルデータ301をAというファイル名で
管理することを表わしている。
FIG. 7 shows the directory and data of the optical card. FIG. 7 (a) shows a state before updating the file A, and FIG. 7 (b) shows a state after completing the update of the file A normally.
FIG. 7C shows a state after the update of the file A ends abnormally. Further, 201 to 205 in the figure are directories,
Reference numerals 301 to 304 indicate file data, A, B and C indicate file names, and D in parentheses indicates that the directory is an erasing directory. Furthermore, the arrow points to the file data managed by the directory, and for example, the directory 201 represents that the file data 301 is managed by the file name A.

【0008】ここで、図7(a)のファイルAを図6の
処理に従って更新する場合は、まず図7(b)に示すよ
うに旧ファイルAの消去ディレクトリ204が記録され
る。消去ディレクトリ204は前述の如くA(D)とし
て示されている。次いで、新ファイルAのデータ304
が記録され、正常に記録できれば新ファイルAのディレ
クトリ205が記録される。また、図7(b)のように
更新されたデータを再生する場合は、まずディレクトリ
201〜205が読み出され、ホストコンピュータへ転
送される。ホストコンピュータでは各ディレクトリをメ
モリに一時格納した後、それらのディレクトリの中から
消去ディレクトリを探し出し、消去ディレクトリで指示
されたディレクトリ201を取り除く。即ち、消去ディ
レクトリ204によって不要なディレクトリ201が除
去され、残ったディレクトリ202,203,205に
よってファイル管理が行われる。従って、旧ファイルA
のデータ301は実質的に除去され、ファイルAのデー
タはディレクトリ205により新ファイルAのデータ3
04として管理される。こうしてファイルAは正常に更
新される。
Here, when the file A of FIG. 7A is updated according to the process of FIG. 6, the erase directory 204 of the old file A is first recorded as shown in FIG. 7B. The erase directory 204 is shown as A (D) as described above. Next, data 304 of new file A
Is recorded, and if recorded normally, the directory 205 of the new file A is recorded. When reproducing the updated data as shown in FIG. 7B, the directories 201 to 205 are first read and transferred to the host computer. After temporarily storing each directory in the memory in the host computer, the erasure directory is searched from those directories and the directory 201 designated by the erasure directory is removed. That is, the erasure directory 204 removes the unnecessary directory 201, and the remaining directories 202, 203, and 205 perform file management. Therefore, the old file A
Data 301 of the new file A is deleted by the directory 205.
It is managed as 04. In this way, the file A is updated normally.

【0009】[0009]

【発明が解決しようとしている課題】ところで、図7
(c)は前述のようにファイルAの更新が異常終了した
後の状態を示しているのであるが、こうした異常終了し
たときのデータを再生する場合には、更新対象のファイ
ルAが論理的に消去されてしまう問題があった。具体的
に説明すると、まず図7(c)では新ファイルの記録に
異常が発生したために、新ファイルAのデータは記録さ
れず、旧ファイルAの消去ディレクトリ204が記録さ
れた状態にある。こうした状態で全てのディレクトリ2
01〜204を読み出し、その中から消去ディレクトリ
204で指示されたディレクトリ201を除去すると、
残ったディレクトリは202と203となる。そのた
め、ファイルAを管理するためのディレクトリがなくな
ってしまい、ファイルAが消去されることになる。この
ように上記従来のファイル更新方法では、新ファイルが
正常に記録できず、異常終了した場合には、旧ファイル
が消去され、アクセスできなくなるという問題があっ
た。
By the way, FIG.
As described above, (c) shows the state after the update of the file A ends abnormally. However, when the data at the time of such abnormal end is reproduced, the file A to be updated is logically updated. There was a problem that it would be erased. More specifically, first, in FIG. 7C, since the recording of the new file is abnormal, the data of the new file A is not recorded and the erase directory 204 of the old file A is recorded. All directories 2 in this state
When 01 to 204 are read out and the directory 201 designated by the erase directory 204 is removed from them,
The remaining directories are 202 and 203. Therefore, there is no directory for managing the file A, and the file A is deleted. As described above, the conventional file updating method has a problem that the new file cannot be normally recorded, and when the new file is abnormally terminated, the old file is erased and cannot be accessed.

【0010】本発明は、このような問題点を解消するた
めになされたもので、ファイルの更新時にファイルデー
タの記録が異常終了した場合であってもファイルの消失
を防止でき、ファイルの編集の効率化を図るようにした
ファイル管理方法を提供することを目的としたものであ
る。
The present invention has been made to solve such a problem, and even if the recording of the file data is abnormally terminated at the time of updating the file, it is possible to prevent the file from being lost and to edit the file. The purpose of the present invention is to provide a file management method for improving efficiency.

【0011】[0011]

【課題を解決するための手段】本発明の目的は、追記式
の情報記録媒体にファイルデータごとにディレクトリ情
報を記録してファイルの管理を行うファイル管理方法に
おいて、前記ファイルを新たなファイルに更新する場合
に、新ファイルのデータを正常に記録できたときは新フ
ァイルのディレクトリを記録すると共に、新ファイルの
データを正常に記録できなかったときは処理を終了し、
更新後のファイルを再生する場合には、前記記録媒体か
らディレクトリを読み出してファイル名を検索し、同じ
ファイル名のディレクトリがあったときは、最も新しい
ディレクトリによってファイルを管理することを特徴と
するファイル管理方法によって達成される。
SUMMARY OF THE INVENTION It is an object of the present invention to update a file to a new file in a file management method for managing file by recording directory information for each file data on a write-once information recording medium. In this case, when the data of the new file can be recorded normally, the directory of the new file is recorded, and when the data of the new file cannot be recorded normally, the processing is terminated.
When playing the updated file, the directory is read from the recording medium to search for the file name, and if there is a directory with the same file name, the file is managed by the newest directory. Achieved by management methods.

【0012】また、本発明の目的は、追記式の情報記録
媒体にファイルデータごとにディレクトリ情報を記録し
てファイルの管理を行うファイル管理方法において、前
記ファイルを新たなファイルに更新する場合に、新ファ
イルのデータを正常に記録できたときは、旧ファイルの
ディレクトリの消去を示す消去ディレクトリ及び新ファ
イルのディレクトリをそれぞれ記録すると共に、新ファ
イルのデータを正常に記録できなかったときは処理を終
了し、更新後のファイルを再生する場合には、前記記録
媒体からディレクトリを読み出して消去ディレクトリを
探し、消去ディレクトリがあったときは、消去ディレク
トリによって指示された旧ファイルのディレクトリを取
り除いて残りのディレクトリによってファイルを管理す
ることを特徴とするファイル管理方法によって達成され
る。
It is another object of the present invention to manage a file by recording directory information for each file data on a write-once type information recording medium and updating the file to a new file. When the data of the new file can be recorded normally, the erase directory indicating the deletion of the directory of the old file and the directory of the new file are recorded respectively, and when the data of the new file cannot be recorded normally, the processing ends. Then, when playing the updated file, the directory is read from the recording medium to find an erase directory, and if there is an erase directory, the directory of the old file designated by the erase directory is removed and the remaining directory is removed. It is characterized by managing files by It is achieved by a file management method.

【0013】[0013]

【実施例】以下、本発明の実施例について図面を参照し
て詳細に説明する。図1は本発明のファイル管理方法に
基づくファイル更新処理の一実施例を示したフローチャ
ートである。図1において、ファイルを更新する場合
は、まず光カードに新ファイルのデータを記録する(S
1)。ここで、データの記録中に異常が発生したかどう
かを判断し(S2)、もし異常が発生してデータを正常
に記録できなければ、処理を異常終了する。一方、デー
タを正常に記録できれば、新ファイルのディレクトリを
記録して処理を正常終了する(S3)。こうして光カー
ドのファイル更新処理が終了する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a flow chart showing an embodiment of a file update process based on the file management method of the present invention. In FIG. 1, when updating a file, first, the data of the new file is recorded on the optical card (S
1). Here, it is judged whether or not an abnormality has occurred during the recording of the data (S2), and if the abnormality occurs and the data cannot be normally recorded, the processing is abnormally terminated. On the other hand, if the data can be normally recorded, the directory of the new file is recorded and the processing is normally terminated (S3). In this way, the file updating process of the optical card is completed.

【0014】図2は光カードの記録内容を示した図で、
図2(a)はファイルの更新前の内容、図2(b)はフ
ァイル更新後の内容を示す。また、図2(c)はファイ
ルのデータ記録時に異常が発生して処理を異常終了した
ときの記録内容を示した図である。ファイル更新前は図
2(a)に示すように3つのファイルデータ301〜3
03が記録され、またそれを管理するためのディレクト
リ201〜203が記録されている。なお、A,B,C
はファイル名で、矢印はディレクトリが管理するファイ
ルデータを指しており、例えばディレクトリ201はフ
ァイルデータ301をファイル名Aで管理していること
を表わしている。この状態で、図1に示した処理に従っ
てファイルAを更新しようとすると、図2(b)に示す
ようにまず新ファイルAのデータ304が記録され、デ
ータ304が正常に記録できれば新ファイルAのディレ
クトリ204が記録される。一方、新ファイルAのデー
タ記録時に異常が発生し、データを正常に記録できなけ
れば、図2(c)に示すようにデータ304の記録途中
で異常終了される。従って、新ファイルのディレクトリ
は未記録のままで処理を終了する。
FIG. 2 is a diagram showing the recorded contents of the optical card.
2A shows the contents of the file before updating, and FIG. 2B shows the contents after updating the file. Further, FIG. 2C is a diagram showing the recorded contents when an abnormality occurs during the data recording of the file and the processing is abnormally terminated. Before the file update, as shown in FIG. 2A, three file data 301 to 301
03 is recorded, and directories 201 to 203 for managing it are recorded. In addition, A, B, C
Indicates a file name, and an arrow indicates file data managed by the directory. For example, the directory 201 indicates that the file data 301 is managed by the file name A. If the file A is updated according to the process shown in FIG. 1 in this state, the data 304 of the new file A is first recorded as shown in FIG. 2B, and if the data 304 can be normally recorded, the new file A is recorded. The directory 204 is recorded. On the other hand, if an error occurs during the data recording of the new file A and the data cannot be normally recorded, as shown in FIG. 2C, the data 304 is abnormally terminated during recording. Therefore, the process ends with the directory of the new file left unrecorded.

【0015】次に、図2(b)のように正常に更新され
た光カードのデータを再生するときの処理について説明
する。データを再生する場合は、情報記録再生装置では
光カードの全てのディレクトリ201〜204を再生
し、上位制御装置であるホストコンピュータへ転送す
る。ホストコンピュータではディレクトリをメモリに書
き込んだ後、ディレクトリのファイル名を検索し、同じ
ファイル名のディレクトリがあったときは、最も新しい
ディレクトリ以外のディレクトリを取り除くように処理
する。図2(b)の例では、ディレクトリ201と20
4はどちらもファイル名はAであるので、古いディレク
トリ201が取り除かれ、最も新しいディレクトリ20
4が残される。従って、ホストコンピュータではディレ
クトリ202と203及び204によってそれぞれデー
タ302、303、304のファイル管理が行われる。
以上により、ファイルAのデータはディレクトリ204
によってデータ304となり、ファイルAは正常に更新
される。
Next, the processing for reproducing the data of the normally updated optical card as shown in FIG. 2B will be described. When reproducing data, the information recording / reproducing apparatus reproduces all the directories 201 to 204 of the optical card and transfers them to the host computer which is the host controller. After writing the directory to the memory, the host computer searches for the file name of the directory, and when there is a directory with the same file name, the directory other than the newest directory is removed. In the example of FIG. 2B, the directories 201 and 20
4 has the file name A, the old directory 201 is removed and the newest directory 20
4 is left. Therefore, in the host computer, files 302, 303, 304 are managed by the directories 202, 203, and 204, respectively.
As described above, the data of the file A is stored in the directory 204
Then, the data 304 is obtained, and the file A is updated normally.

【0016】これに対し、図2(c)のように正常に更
新されなかった光カードのデータを再生する場合は、前
記と同様に情報記録再生装置によって全てのディレクト
リ201〜203が再生され、ホストコンピュータへ転
送される。ホストコンピュータではディレクトリのファ
イル名を検索し、同じファイル名のディレクトリがある
かどうかを調べるのであるが、図2(c)の例では新フ
ァイルのディレクトリは未記録であるので、同じファイ
ル名は存在しない。従って、ディレクトリ201〜20
3によってファイル管理が行われる。以上により、ファ
イルAのデータはディレクトリ201によってデータ3
01となり、ファイルAは更新されないものの、更新前
のファイルAが消失することはなく、旧ファイルAに対
してアクセスすることは可能である。
On the other hand, when reproducing the data of the optical card which is not normally updated as shown in FIG. 2C, all the directories 201 to 203 are reproduced by the information recording / reproducing apparatus in the same manner as described above. Transferred to the host computer. The host computer searches for the file name of the directory to see if there is a directory with the same file name. In the example of FIG. 2 (c), the directory of the new file is unrecorded, so the same file name exists. do not do. Therefore, directories 201-20
File management is carried out by 3. As described above, the data of the file A is data 3 by the directory 201.
01, the file A is not updated, but the file A before update is not lost and the old file A can be accessed.

【0017】本実施例では、光カードのファイルを更新
する場合に、新ファイルのデータを正常に記録できれば
新ファイルのディレクトリを記録し、データの再生時に
同じファイル名のディレクトリがあったときは、最も後
に記録されたディレクトリでファイル管理を行うことに
より、実質的に旧ファイルを消去してファイルの更新を
正常に行うことができる。また、新ファイルのデータを
正常に記録できなければ、新ファイルのディレクトリを
記録せずにそのまま異常終了することにより、データの
再生時には同じファイル名のディレクトリは存在せず、
更新しようとするファイルは以前のディレクトリでファ
イル管理を行うことができる。即ち、ファイルの更新は
できないものの、旧ファイルを旧ディレクトリで管理す
ることができ、従来のように新ファイルのデータの記録
に異常が発生した場合に、旧ファイルが消失するという
問題点を解決することができる。従って、新ファイルが
正常に記録できなくても旧ファイルにアクセスできるの
で、例えばファイルの編集を終了し、編集し終ったファ
イルを保存するときに、ファイルの消失により新たにフ
ァイルを作成する必要がなく、ファイル編集の効率化を
図ることができる。また、ファイルの更新を行うとき
に、従来のように消去ディレクトリを書き込む必要がな
いので、その分ファイルの更新に要する時間を短縮する
ことができる。
In the present embodiment, when updating the file of the optical card, if the data of the new file can be normally recorded, the directory of the new file is recorded, and when there is a directory with the same file name when the data is reproduced, By performing file management in the directory recorded most recently, the old file can be substantially deleted and the file can be updated normally. Also, if the data of the new file cannot be recorded normally, the directory of the new file is not recorded and the process ends abnormally, so there is no directory with the same file name when playing the data.
The file to be updated can be managed in the previous directory. In other words, although the file cannot be updated, the old file can be managed in the old directory, and the problem that the old file is lost when an error occurs in the data recording of the new file as in the past is solved. be able to. Therefore, even if the new file cannot be recorded normally, the old file can be accessed. For example, when editing the file and saving the edited file, it is necessary to create a new file due to the loss of the file. Therefore, the efficiency of file editing can be improved. In addition, since it is not necessary to write an erase directory when updating a file, the time required for updating the file can be shortened accordingly.

【0018】次に、本発明の他の実施例について説明す
る。図3は本発明に基づくファイル更新処理の他の例を
示したフローチャートである。この実施例では、ファイ
ルの更新に際してまず光カードに新ファイルのデータを
記録する(S1)。次いで、データの記録に異常が発生
したかどうかを判断し(S2)、もし異常が発生して正
常に記録できなければ、処理を異常終了する。一方、デ
ータを正常に記録できれば、旧ファイルのディレクトリ
の消去を示す消去ディレクトリを記録し(S3)、新フ
ァイルのディレクトリを記録し(S4)、処理を正常終
了する。
Next, another embodiment of the present invention will be described. FIG. 3 is a flowchart showing another example of the file updating process based on the present invention. In this embodiment, when the file is updated, the data of the new file is first recorded on the optical card (S1). Next, it is judged whether or not an abnormality has occurred in the data recording (S2), and if the abnormality occurs and normal recording cannot be performed, the processing is abnormally terminated. On the other hand, if the data can be normally recorded, the erase directory indicating the erasure of the old file directory is recorded (S3), the new file directory is recorded (S4), and the process ends normally.

【0019】図4は光カードの記録内容を示した図で、
図4(a)はファイル更新前の記録内容、図4(b)は
ファイル更新後の記録内容を示した図である。また、図
4(c)はファイルデータの記録時に異常が発生して処
理を異常終了したときの記録内容を示した図である。フ
ァイルの更新前は図4(a)に示すようにファイルデー
タ301〜303とそれを管理するディレクトリ201
〜203が記録されている。A,B,Cはそれぞれファ
イル名である。この状態で、図3に従ってファイルAを
更新しようとすると、図4(b)に示すようにまず新フ
ァイルAのデータ304が記録され、データ304が正
常に記録できれば、旧ファイルAの消去ディレクトリ2
04、新ファイルAのディレクトリ205が記録され
る。一方、新ファイルAのデータ304の記録時に異常
が発生し、データ304を正常に記録できなければ、図
4(c)に示すようにデータ304の記録途中でそのま
ま処理は異常終了する。
FIG. 4 is a diagram showing the recorded contents of the optical card.
FIG. 4A is a diagram showing recorded contents before the file is updated, and FIG. 4B is a diagram showing recorded contents after the file is updated. Further, FIG. 4C is a diagram showing the recorded contents when an abnormality occurs during the recording of file data and the processing is abnormally terminated. Before updating the file, as shown in FIG. 4A, the file data 301 to 303 and the directory 201 for managing the file data
~ 203 are recorded. A, B, and C are file names, respectively. If the file A is updated according to FIG. 3 in this state, the data 304 of the new file A is first recorded as shown in FIG. 4B. If the data 304 can be normally recorded, the erase directory 2 of the old file A is recorded.
04, the directory 205 of the new file A is recorded. On the other hand, if an abnormality occurs during the recording of the data 304 of the new file A and the data 304 cannot be recorded normally, the processing ends abnormally during the recording of the data 304 as shown in FIG. 4C.

【0020】ここで、図4(b)のようにファイルの更
新を正常に終了した光カードのデータを再生する場合
は、まず情報記録再生装置によって全てのディレクトリ
201〜205が再生され、ホストコンピュータへ転送
される。ホストコンピュータでは各ディレクトリをメモ
リに格納した後、ディレクトリの中から消去ディレクト
リを探し、その消去ディレクトリで指示されたディレク
トリを取り除く。この例では、消去ディレクトリ204
が探し出され、それによって指示された旧ファイルAの
ディレクトリ201が除去される。これにより、ディレ
クトリは202,203,205だけとなり、以後はこ
れらのディレクトリによってファイル管理が行われる。
従って、ファイルAのデータはディレクトリ205によ
ってデータ304となり、ファイルAは正常に更新され
る。
Here, in the case of reproducing the data of the optical card for which the file update is normally completed as shown in FIG. 4B, first, the information recording / reproducing apparatus reproduces all the directories 201 to 205, and the host computer Transferred to. After storing each directory in the memory, the host computer searches the directory for an erase directory and removes the directory designated by the erase directory. In this example, the deletion directory 204
Is searched for, and the directory 201 of the old file A indicated by that is deleted. As a result, the directories are only 202, 203 and 205, and the files are managed by these directories thereafter.
Therefore, the data of the file A becomes the data 304 by the directory 205, and the file A is updated normally.

【0021】一方、図4(c)のようにファイルの更新
を異常終了した光カードのデータを再生する場合は、同
様に全てのディレクトリが再生され、ホストコンピュー
タに転送される。ホストコンピュータではディレクトリ
の中から消去ディレクトリを探すのであるが、データの
記録に異常が発生したときは消去ディレクトリや新ファ
イルのディレクトリを記録せずに処理を終了するので、
消去ディレクトリは存在せず、ディレクトリは201,
202,203だけとなる。従って、ファイルAのデー
タはディレクトリ201によってデータ301となり、
ファイルAは更新されないが、更新前の旧ファイルAが
消去されることはない。
On the other hand, in the case of reproducing the data of the optical card in which the updating of the file is abnormally terminated as shown in FIG. 4C, all directories are similarly reproduced and transferred to the host computer. The host computer searches the directory for an erase directory, but if an error occurs in recording data, the process ends without recording the erase directory or the new file directory.
There is no deletion directory, the directory is 201,
Only 202 and 203 are available. Therefore, the data of the file A becomes the data 301 by the directory 201,
The file A is not updated, but the old file A before the update is not erased.

【0022】本実施例では、新ファイルのデータを正常
に記録できた場合に、旧ファイルのディレクトリの消去
ディレクトリ、新ファイルのディレクトリを記録し、デ
ータの再生時に消去ディレクトリで指示される旧ファイ
ルのディレクトリを除去することにより、新ファイルの
ディレクトリによって新ファイルのデータを管理できフ
ァイルの更新を正常に行うことができる。また、新ファ
イルのデータを正常に記録できなかった場合は、そのま
ま異常終了することにより、データの再生時に消去ディ
レクトリが存在することはないので、旧ファイルのディ
レクトリが除去されることはなく、旧ファイルのディレ
クトリによって旧ファイルを管理することができる。従
って、データの記録に異常が発生しても旧ファイルが消
失することはなく、前記実施例と同様にファイルの編集
の効率化を図ることができる。
In this embodiment, when the data of the new file can be normally recorded, the erase directory of the directory of the old file and the directory of the new file are recorded, and the old file specified by the erase directory is reproduced when the data is reproduced. By removing the directory, the data of the new file can be managed by the directory of the new file, and the file can be updated normally. Also, if the data of the new file could not be recorded normally, it will not be deleted because the erase directory will not exist when the data is played back by abnormally ending. Old files can be managed by the file directory. Therefore, even if an abnormality occurs in data recording, the old file is not lost, and the efficiency of file editing can be improved as in the above embodiment.

【0023】[0023]

【発明の効果】以上説明したように本発明は、ファイル
の更新時にファイルデータの記録が異常終了した場合で
も、ファイルの消失を防止することができ、これによっ
てファイルの編集時にデータの記録に異常が生じたとし
ても、ファイルが消失することはなく、旧ファイルにア
クセスできるために、ファイルの編集を効率的に行える
という効果がある。
As described above, the present invention can prevent the loss of a file even if the recording of the file data ends abnormally when the file is updated, and as a result, the data recording becomes abnormal when the file is edited. Even if the error occurs, the file is not lost and the old file can be accessed. Therefore, there is an effect that the file can be efficiently edited.

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

【図1】本発明によるファイル更新方法の一実施例を示
したフローチャートである。
FIG. 1 is a flowchart showing an embodiment of a file updating method according to the present invention.

【図2】図1の方法でファイルを更新した場合の光カー
ドの記録内容をファイル更新前と正常に更新された後、
及び正常に更新されなかったときでそれぞれ示した図で
ある。
FIG. 2 shows the recorded contents of the optical card when the file is updated by the method of FIG. 1 before the file is updated and after it is normally updated.
6A and 6B are diagrams respectively showing a case where the update is not normally performed.

【図3】本発明によるファイル更新方法の他の実施例を
示したフローチャートである。
FIG. 3 is a flowchart showing another embodiment of the file updating method according to the present invention.

【図4】図3の方法でファイルを更新した場合の光カー
ドの記録内容をファイル更新前と正常に更新された後、
及び正常に更新されなかったときでそれぞれ示した図で
ある。
FIG. 4 shows the recorded contents of the optical card when the file is updated by the method of FIG. 3 before the file is updated and after it is normally updated.
6A and 6B are diagrams respectively showing a case where the update is not normally performed.

【図5】一般的な光カードの記録領域のデータ部とディ
レクトリ部の配置を示した図である。
FIG. 5 is a diagram showing an arrangement of a data section and a directory section in a recording area of a general optical card.

【図6】従来例の光カードのファイル更新方法を示した
フローチャートである。
FIG. 6 is a flowchart showing a conventional method of updating a file of an optical card.

【図7】図6の方法でファイルを更新する場合の光カー
ドの記録内容をファイル更新前と正常に更新された後、
及び正常に更新されなかったときでそれぞれ示した図で
ある。
FIG. 7 shows the recorded contents of the optical card when the file is updated by the method of FIG. 6 before the file is updated and after it is normally updated.
6A and 6B are diagrams respectively showing a case where the update is not normally performed.

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

1 光カード 10 データ部 20 ディレクトリ部 101 〜10n データトラック 201 〜20m ディレクトリ 201〜205 ディレクトリ 301〜304 ファイルデータ1 the optical card 10 data portion 20 directory unit 10 1 to 10 n data tracks 20 1 to 20 m directory 201-205 directories 301-304 file data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 追記式の情報記録媒体にファイルデータ
ごとにディレクトリ情報を記録してファイルの管理を行
うファイル管理方法において、前記ファイルを新たなフ
ァイルに更新する場合に、新ファイルのデータを正常に
記録できたときは新ファイルのディレクトリを記録する
と共に、新ファイルのデータを正常に記録できなかった
ときは処理を終了し、更新後のファイルを再生する場合
には、前記記録媒体からディレクトリを読み出してファ
イル名を検索し、同じファイル名のディレクトリがあっ
たときは、最も新しいディレクトリによってファイルを
管理することを特徴とするファイル管理方法。
1. In a file management method for managing a file by recording directory information for each file data on a write-once type information recording medium, when the file is updated to a new file, the data of the new file is normal. When the data of the new file is recorded, the directory of the new file is recorded, and when the data of the new file is not normally recorded, the process is terminated, and when the updated file is reproduced, the directory is recorded from the recording medium. A file management method that reads and searches for a file name, and when a directory with the same file name is found, the file is managed by the newest directory.
【請求項2】 追記式の情報記録媒体にファイルデータ
ごとにディレクトリ情報を記録してファイルの管理を行
うファイル管理方法において、前記ファイルを新たなフ
ァイルに更新する場合に、新ファイルのデータを正常に
記録できたときは、旧ファイルのディレクトリの消去を
示す消去ディレクトリ及び新ファイルのディレクトリを
それぞれ記録すると共に、新ファイルのデータを正常に
記録できなかったときは処理を終了し、更新後のファイ
ルを再生する場合には、前記記録媒体からディレクトリ
を読み出して消去ディレクトリを探し、消去ディレクト
リがあったときは、消去ディレクトリによって指示され
た旧ファイルのディレクトリを取り除いて残りのディレ
クトリによってファイルを管理することを特徴とするフ
ァイル管理方法。
2. A file management method for managing a file by recording directory information for each file data on a write-once type information recording medium, and when the file is updated to a new file, the data of the new file is normal. If it is possible to record in the file, the erase directory indicating the deletion of the old file directory and the directory of the new file are recorded respectively, and if the data of the new file cannot be recorded normally, the processing is terminated and the updated file When reproducing, the directory is read from the recording medium to search for an erase directory, and when there is an erase directory, the directory of the old file designated by the erase directory is removed and the files are managed by the remaining directories. File management method characterized by.
JP5062431A 1993-03-01 1993-03-01 File management method Pending JPH06250909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5062431A JPH06250909A (en) 1993-03-01 1993-03-01 File management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5062431A JPH06250909A (en) 1993-03-01 1993-03-01 File management method

Publications (1)

Publication Number Publication Date
JPH06250909A true JPH06250909A (en) 1994-09-09

Family

ID=13199987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5062431A Pending JPH06250909A (en) 1993-03-01 1993-03-01 File management method

Country Status (1)

Country Link
JP (1) JPH06250909A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6266431A (en) * 1985-09-19 1987-03-25 Matsushita Electric Ind Co Ltd Optical data storage reproducing device
JPS6391888A (en) * 1986-10-07 1988-04-22 Canon Inc Directory forming method
JPS6459640A (en) * 1987-08-31 1989-03-07 Canon Kk Optical information recording and reproducing device
JPH034367A (en) * 1989-05-31 1991-01-10 Toshiba Corp Information processor
JPH03192436A (en) * 1989-12-22 1991-08-22 Hitachi Ltd Information recording and reproducing system
JPH04361339A (en) * 1991-06-10 1992-12-14 Nec Eng Ltd File managing system for draw type optical disk

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6266431A (en) * 1985-09-19 1987-03-25 Matsushita Electric Ind Co Ltd Optical data storage reproducing device
JPS6391888A (en) * 1986-10-07 1988-04-22 Canon Inc Directory forming method
JPS6459640A (en) * 1987-08-31 1989-03-07 Canon Kk Optical information recording and reproducing device
JPH034367A (en) * 1989-05-31 1991-01-10 Toshiba Corp Information processor
JPH03192436A (en) * 1989-12-22 1991-08-22 Hitachi Ltd Information recording and reproducing system
JPH04361339A (en) * 1991-06-10 1992-12-14 Nec Eng Ltd File managing system for draw type optical disk

Similar Documents

Publication Publication Date Title
US7155566B2 (en) Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus
JPH05313980A (en) Information recording method
JPH04141867A (en) File managing method
JP3135531B2 (en) Recording medium for storing additional information for defect management and defect management method
RU2005111237A (en) METHOD AND DEVICE FOR MANAGING DISK DEFECTS USING TEMPORARY INFORMATION ABOUT DEFECTS (WIOD) AND TEMPORARY INFORMATION ABOUT DEFECT MANAGEMENT (VIAU) AND A DISC HAVING A VIDEO AND VIAUD
JPH056891B2 (en)
US7813248B2 (en) Method and apparatus for protecting data when a recording process has failed
JP3641863B2 (en) Data recording apparatus and method
CA1316600C (en) Optical recording medium recording and reproducing device
JP2622418B2 (en) Information recording / reproducing method
JPH03192436A (en) Information recording and reproducing system
JPH06250909A (en) File management method
JPH03217972A (en) File retrieving device
JP2612589B2 (en) Directory search method
JPH05342817A (en) File management method and information recording and reproducing device
JPS6391887A (en) Data recording system
JPH08212125A (en) Information recording method
JP2982923B2 (en) File management method
JP2001043662A (en) Disk medium managing method
JP2652388B2 (en) Optical disk storage management method
JP2003263860A (en) Storage medium where data can additionally be written after finalization, and device and method for recording and reproducing the same
JPH02132516A (en) System and method for write enable type optical disk controlling
JPH0922375A (en) File management method
JPH07234813A (en) Information recording method
JPH0580072B2 (en)