JP2006004487A - Optical disk access method, access program, and optical disk apparatus - Google Patents

Optical disk access method, access program, and optical disk apparatus Download PDF

Info

Publication number
JP2006004487A
JP2006004487A JP2004177936A JP2004177936A JP2006004487A JP 2006004487 A JP2006004487 A JP 2006004487A JP 2004177936 A JP2004177936 A JP 2004177936A JP 2004177936 A JP2004177936 A JP 2004177936A JP 2006004487 A JP2006004487 A JP 2006004487A
Authority
JP
Japan
Prior art keywords
data
management information
reading
writing
disk
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
JP2004177936A
Other languages
Japanese (ja)
Inventor
Takashi Hosoya
高史 細谷
Ritsuichi Otsuka
律一 大塚
Kazutoshi Kato
和利 加藤
Kenichi Ito
賢一 伊藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2004177936A priority Critical patent/JP2006004487A/en
Publication of JP2006004487A publication Critical patent/JP2006004487A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable write-in of data after occurrence of an error by enabling reading out written data surely, on the occurrence of a write-in error for a DRAW type. <P>SOLUTION: In data write-in processing for a DRAW type optical disk 3, data 201, 202 and management information 210 indicating a write-in position of the data are written in the disk, the written management information 201 is read out and existence of an error during write-in/read-out is discriminated. When it is discriminated that an error exists in the read out management information 210a, management information 210b is made again, it is written in a new position on the disk. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ホストコンピュータ等からの転送データを追記型光ディスク媒体に書き込み/読み出しを行うためのデータのアクセス方法、アクセスプログラムおよび光ディスク装置に関し、特に書き込み/読み出し時のエラー発生に対し好適に対処する技術に関する。   The present invention relates to a data access method, an access program, and an optical disc apparatus for writing / reading transfer data from a host computer or the like to / from a write-once optical disc medium. Regarding technology.

コンピュータシステムにおいて、追記型光ディスク媒体にパケットライト方式でデータを書き込む場合、アプリケーションプログラムまたはファイルシステムドライバにより、追記型光ディスクのファイルフォーマットに従いデータが転送される。データの転送時に書き込みエラーが発生した場合は、ファイルフォーマットが完結しないため、書き込んだディスクが使用不可となるケースがあった。   In a computer system, when data is written to a write-once optical disk medium by a packet write method, the data is transferred by an application program or a file system driver according to the file format of the write-once optical disk. If a write error occurred during data transfer, the file format could not be completed and the written disc could not be used.

書き込みエラー発生時においても記録済みのファイルデータを復元させるための技術として、ファイル中にファイルフォーマットの管理情報を記録する方法がある(特許文献1)。また、書き込みエラー発生時にパケットライト方式を切り換えて転送データを再度書き込む方法が提案されている(特許文献2)。   As a technique for restoring recorded file data even when a write error occurs, there is a method of recording file format management information in a file (Patent Document 1). In addition, there has been proposed a method of rewriting transfer data by switching the packet write method when a write error occurs (Patent Document 2).

特開2002−230889号公報JP 2002-230889 A

特開2002−184119号公報JP 2002-184119 A

上記特許文献1のようにファイル中にファイルフォーマットの管理情報を記録する方法では、エラー発生以前のファイルデータは利用可能となるが、エラー発生以後の光ディスクへの書き込みができなくなる。さらに、以前書き込んだデータが正常に読み出し可能かを確認する手段がなかった。   In the method of recording file format management information in a file as in Patent Document 1, file data before the occurrence of an error can be used, but writing to the optical disc after the occurrence of the error becomes impossible. Furthermore, there is no means for confirming whether previously written data can be read normally.

また、上記特許文献2のように転送データを再度書き込む方法では、ファイルフォーマットの管理情報に記録されているアドレス情報と、再度書き込んだファイルデータのアドレスとが一致しないために、ファイルシステムドライバからファイルを読み出すことができなくなる。   Further, in the method of rewriting transfer data as in Patent Document 2, the address information recorded in the file format management information does not match the address of the rewritten file data. Cannot be read.

また、書き込みエラーが発生していないディスクにおいても、ディスクの傷や埃等によりファイルフォーマット管理情報の読み出しエラーが発生する場合がある。その際、ファイルシステムドライバは、管理情報に記録されているディスクのアドレス情報に従いデータを読み出すため、1つまたは複数のファイルデータが読み出しできないことになる。追記型光ディスクのファイルフォーマットにおいて、一般にディスクの最終記録位置にはファイルフォーマット管理情報が存在するが、このファイルフォーマット管理情報の読み出しでエラーが発生した場合は、ディスク全体のファイルデータの読み出しができないことになる。   Even in a disk in which no write error has occurred, a file format management information read error may occur due to scratches or dust on the disk. At this time, since the file system driver reads data according to the address information of the disk recorded in the management information, one or a plurality of file data cannot be read. In the file format of a write-once optical disc, file format management information generally exists at the final recording position of the disc, but if an error occurs in reading this file format management information, the file data of the entire disc cannot be read. become.

本発明の目的は、追記型光ディスク媒体への書き込みにおいて、書き込みエラー発生時においても、書き込んだファイルデータを確実に読み出すことができ、エラー発生以後の光ディスクへのファイルデータの書き込みを可能とすることにある。   It is an object of the present invention to be able to reliably read out written file data even when a writing error occurs in writing to a write-once optical disc medium, and to enable writing of file data to an optical disc after the occurrence of the error. It is in.

また本発明の目的は、追記型光ディスクからのデータ読み出しにおいて、書き込みエラーはないが管理情報の読み出しエラーが発生した時、ファイル内容がすべて失われることを防ぐことにある。   It is another object of the present invention to prevent the entire contents of a file from being lost when a read error of management information occurs in a data read from a write-once optical disc.

本発明は、追記型光ディスクへのデータ書き込み処理において、ディスク上に、データと当該データの書き込み位置を示す管理情報とを書き込み、書き込んだ管理情報を読み出して書き込み/読み出し時のエラーの有無を判定する。読み出した管理情報にエラー有りと判定した場合、管理情報を再度作成して、ディスク上の新たな位置に再度書き込む。   The present invention writes data and management information indicating the writing position of the data on the write-once optical disc, and reads the written management information to determine whether there is an error during writing / reading. To do. If it is determined that there is an error in the read management information, the management information is created again and written again at a new location on the disk.

また、本発明は、追記型光ディスクからのデータ読み出し処理において、ディスク上から、当該データのディスク上の書き込み位置を示す管理情報を読み出し、管理情報により当該データにアクセスして当該データを読み出すものである。そして、管理情報の読み出し時または当該データの読み出し時にエラーが発生した場合、ディスク上に当該データの更新前のデータが存在するか否かを検索し、存在する場合には、更新前の管理情報により更新前のデータにアクセスする。   Further, the present invention reads out management information indicating a writing position of the data on the disk from the disk in the data reading process from the write once optical disk, accesses the data by the management information, and reads the data. is there. When an error occurs when reading the management information or when reading the data, a search is made as to whether or not the data before the update of the data exists on the disk. To access the data before update.

書き込みエラー発生時においても、管理情報の再書き込みを行うことにより、書き込んだファイルデータを確実に読み出すことができる。また、エラー発生以後の光ディスクへのファイルデータの書き込みを可能とし、ディスクの継続使用が可能となる。   Even when a write error occurs, the written file data can be reliably read out by rewriting the management information. In addition, file data can be written on the optical disk after the error occurs, and the disk can be used continuously.

また、読み出しエラー発生時に、目的とするデータの更新前のデータを取得することができ、読み出しエラーによりファイル内容がすべて失われることを防ぐことができる。   In addition, when a read error occurs, the data before updating the target data can be acquired, and it is possible to prevent all file contents from being lost due to the read error.

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

図1ないし図3は、本発明による光ディスクへのアクセス方法の一実施例を示すものである。   1 to 3 show an embodiment of a method for accessing an optical disc according to the present invention.

図1は、本発明による光ディスクへのアクセス方法を適用したコンピュータシステムの構成の一例を示すブロック図である。本実施例のコンピュータシステムは、上位装置1と、この上位装置1に接続されたDVD−Rドライブ等の光ディスク装置2と、光ディスク装置2で書き込み/読み出し可能なDVD−R等の追記型光ディスク媒体3とを含んでいる。   FIG. 1 is a block diagram showing an example of the configuration of a computer system to which an optical disk access method according to the present invention is applied. The computer system of this embodiment includes a host device 1, an optical disc device 2 such as a DVD-R drive connected to the host device 1, and a write-once optical disc medium such as a DVD-R that can be written / read by the optical disc device 2. 3 is included.

上位装置1は、パーソナルコンピュータ等で構成され、オペレーティングシステム11、UDF(Universal Disk Format)ファイルシステムドライバ12、デバイスドライバ13等の基本ソフトウェアモジュールと、その上で稼動するアプリケーションプログラム14等のソフトウェアを含んでいる。   The host device 1 is composed of a personal computer or the like, and includes a basic software module such as an operating system 11, a UDF (Universal Disk Format) file system driver 12, and a device driver 13, and software such as an application program 14 that runs on the basic software module. It is out.

UDFファイルシステムドライバ12は、追記型光ディスク3のファイルフォーマットに従い、ファイルの作成・更新・削除等を行うソフトウェアである。本発明のアクセス方法は、主にこのUDFファイルシステムドライバ12により実現される。デバイスドライバ13は、追記型光ディスク3への書き込み/読み出しを行うために光ディスク装置2を制御し、UDFファイルシステムドライバ12と連携して追記書き込みの規格に従った記録方法を実現するソフトウェアである。アプリケーションプログラム14は、各種業務を実行する業務プログラムまたはユーザインタフェースを提供するプログラムである。   The UDF file system driver 12 is software that creates, updates, and deletes files according to the file format of the write-once optical disc 3. The access method of the present invention is mainly realized by the UDF file system driver 12. The device driver 13 is software that controls the optical disc apparatus 2 to perform writing / reading on the write-once optical disc 3 and realizes a recording method in accordance with the write-once standard in cooperation with the UDF file system driver 12. The application program 14 is a business program that executes various business operations or a program that provides a user interface.

光ディスク装置2は、追記型光ディスク媒体3にデータを書き込み読み出しする記録再生部21と、これを制御する制御部22を備える。制御部22は上位装置1からの指令により記録再生部21を制御するとともに、上位装置1からの書き込みデータを受け取り、読み出したデータを上位装置1に返送する。   The optical disc apparatus 2 includes a recording / reproducing unit 21 for writing / reading data to / from the write-once type optical disc medium 3 and a control unit 22 for controlling the recording / reproducing unit 21. The control unit 22 controls the recording / reproducing unit 21 according to a command from the host device 1, receives write data from the host device 1, and returns the read data to the host device 1.

図2は、追記型光ディスク媒体3におけるデータ書き込み時のデータレイアウトの一例を示す図である。図2(a)はUDFファイルシステムにおけるパケットライト方式による書き込みを示し、各ファイルデータ201,202は1個または複数個のパケット形式として書き込む。複数個のファイルを1個のパケットとしても良い。そして、パケットの最後にファイルフォーマットの管理情報210として、各ファイルのディスク上の位置を示すVAT(Virtual Allocation Table)と呼ばれる情報が書き込まれる。図では、ファイル1(201)とファイル2(202)を1個のパケットとし、VATにはそれぞれのファイルの位置情報が記述されている。   FIG. 2 is a diagram showing an example of a data layout at the time of data writing in the write-once type optical disc medium 3. FIG. 2A shows writing by the packet write method in the UDF file system, and each file data 201 and 202 is written in one or a plurality of packet formats. A plurality of files may be a single packet. At the end of the packet, information called VAT (Virtual Allocation Table) indicating the position of each file on the disk is written as file format management information 210. In the figure, file 1 (201) and file 2 (202) are one packet, and the VAT describes the position information of each file.

データ読み出し時には、この管理情報(VAT)210に記述された位置情報に基づき目的のファイルにアクセスし(図中の破線で示す)、目的のデータを読み出すことができる。もし、VATすなわち管理情報が書き込みエラーにより正常に書き込まれなかったり、または管理情報の読み出しに失敗すると、ファイル位置が不明となる為、目的のファイルにアクセスできずデータを読み出すことができなくなる。   At the time of data reading, the target file can be accessed based on the position information described in the management information (VAT) 210 (indicated by a broken line in the figure) to read the target data. If the VAT, that is, the management information is not written normally due to a write error or if the management information cannot be read, the file position becomes unknown, so that the target file cannot be accessed and data cannot be read.

ファイルデータの書き込みチェックは、通常、アプリケーションプログラム14により書き込んだファイルデータを読み出しすることで行うが、ファイル全体を読み出す必要があり読み出しに時間がかかる。なお、アプリケーションプログラムからはVAT等の管理情報の位置が特定できないため、管理情報の読み出しチェックができない。   The file data write check is normally performed by reading the file data written by the application program 14, but it is necessary to read the entire file, which takes time. Since the position of management information such as VAT cannot be specified from the application program, the management information read check cannot be performed.

そこで本実施例では、UDFファイルシステムドライバ12において、ファイルデータと管理情報の書き込み後に管理情報(VAT)210を読み出しこれをチェックすることで、管理情報が正常に書き込まれたかどうかを確認するようにした。この方法によれば、ディスク上の管理情報(VAT)210を読み出すだけであるから、アプリケーションプログラム14による方法に比較し短時間で書き込み不良を確認できることになる。   Therefore, in this embodiment, the UDF file system driver 12 reads the management information (VAT) 210 after writing the file data and management information and checks it to confirm whether the management information has been written normally. did. According to this method, since only the management information (VAT) 210 on the disk is read, writing defects can be confirmed in a shorter time than the method using the application program 14.

さらに本実施例では、図2(b)に示すように、管理情報210aの書き込み時または読み出し時にエラーが発生した場合は、新たな管理情報210bを新たな位置に再度書き込むようにする。新たな管理情報210bにより、書き込んだファイル201,202へのアクセスが可能になり、書き込んだファイルデータを確実に読み出すことができる。また、エラー発生時においても、エラー発生以後の光ディスクへのファイルデータの書き込みを可能とし光ディスクの継続使用が可能となる。ここで新たな管理情報210bは、新たな書き込み位置を決定し、VAT情報の再計算を行うことで作成する。   Further, in the present embodiment, as shown in FIG. 2B, when an error occurs during the writing or reading of the management information 210a, the new management information 210b is written again at a new position. The new management information 210b makes it possible to access the written files 201 and 202, and the written file data can be reliably read out. Further, even when an error occurs, file data can be written to the optical disk after the error occurs, and the optical disk can be used continuously. Here, the new management information 210b is created by determining a new writing position and recalculating the VAT information.

図3は、本実施例におけるアクセス方法として、データ書き込み時のフローチャートを示す図である。これに沿ってその工程を説明する。   FIG. 3 is a diagram showing a flowchart at the time of data writing as an access method in the present embodiment. The process will be described along this line.

上位装置1のUDFファイルシステムドライバ12は、ファイルデータをパケットデータとして光ディスク装置2に転送し、これを光ディスク媒体3に書き込みを行う(ステップ300)。ファイルデータの書き込みに対してのエラー有無を判定する(ステップ301)。もしエラーがあれば、再度ファイルデータの書き込みを行う。   The UDF file system driver 12 of the host device 1 transfers the file data as packet data to the optical disc device 2 and writes it on the optical disc medium 3 (step 300). It is determined whether or not there is an error in writing file data (step 301). If there is an error, write the file data again.

次に、上記書き込みを行ったファイルデータの記録位置およびこれから書き込みを行う管理情報の記録位置をもとに、VATやファイルデータの位置が格納されているFE(File Entry)等の管理情報を作成する(ステップ302)。パケットの最終データとして、作成した管理情報を書き込み(ステップ303)、書き込みエラーの有無を判定する(ステップ304)。ここでの判定は、書き込み動作自身が正常であるかどうかをチェックし、書き込みエラーが生じた場合は、ステップ302に戻り再度管理情報を作成し、ステップ303で再度書き込むようにする。管理情報の書き込みが完了したら、書き込んだ管理情報を読み出し(ステップ305)、書き込み元データ、すなわちステップ302で作成した管理情報のデータと比較する(ステップ306)。管理情報の比較で読み出したデータに誤りがある場合や読み出し動作自身が不可の場合(ステップ307)は、ステップ302に戻り、管理情報を再度作成し、ステップ303で再度書き込むようにする。これを繰り返し、全データを正常に書き込み、読み出しができたら書き込み処理を終了する。   Next, based on the recording position of the file data that has been written and the recording position of the management information that will be written, management information such as FE (File Entry) that stores the position of the VAT and file data is created. (Step 302). The created management information is written as the final data of the packet (step 303), and it is determined whether there is a write error (step 304). In this determination, it is checked whether or not the write operation itself is normal. If a write error occurs, the process returns to step 302 to create management information again, and write again in step 303. When the management information has been written, the written management information is read (step 305) and compared with the write source data, that is, the management information data created in step 302 (step 306). If there is an error in the data read in the comparison of the management information or if the read operation itself is not possible (step 307), the process returns to step 302 to re-create the management information and write it again in step 303. This process is repeated, and all data is normally written. When reading is completed, the writing process is terminated.

この工程により、ファイルデータと管理情報の書き込み後に管理情報を読み出しこれをチェックすることで、管理情報の値が正常に書き込まれたかどうかを確認するとともに、エラーが発生した場合は、新たな管理情報を再度書き込むので、書き込んだファイルデータを確実に読み出すことを保証する。また新たに書き込まれる管理情報は、追記型光ディスクのフォーマットに従っているので、エラー発生以後のデータの書き込みは継続して可能となる。   By this process, after the file data and management information are written, the management information is read and checked to check whether the management information value has been written normally. If an error occurs, new management information is created. Is written again, so that the written file data is surely read out. Since newly written management information conforms to the format of a write-once optical disc, data can be continuously written after an error occurs.

なお、ステップ302の管理情報の作成およびステップ303の書き込みを行うタイミングは、ステップ300のファイルデータ書き込みの直後に行う必要はない。例えば、ディレクトリ情報などの他の情報を書き込んだ後に管理情報の書き込みを行っても良い。   Note that the timing for creating the management information in step 302 and the writing in step 303 need not be performed immediately after the file data writing in step 300. For example, management information may be written after writing other information such as directory information.

図4および図5は、本発明による光ディスクへのアクセス方法の他の実施例を示すものである。   4 and 5 show another embodiment of a method for accessing an optical disc according to the present invention.

図4は、本発明を適用した追記型光ディスク媒体3におけるデータ読み出し時のデータレイアウトの一例を示す図である。UDFファイルシステムドライバ12においてファイルデータを読み出すためには、図4(a)に示すように管理情報(VAT)410を読み出し、目的のファイル位置を特定しそこにアクセスする必要がある。しかし、ファイル1(401)のように管理情報410は読み出せても目的のファイルデータの一部401xが壊れていて読み出し不可である場合や、ファイル2(402)のように管理情報410が読み出し不可である場合には、目的のファイルデータを取得することができないことになる。しかしながら、追記型光ディスクのパケットライト方式においては、以前にファイルの更新が行われている場合は、光ディスク上に更新前のファイルが存在する。   FIG. 4 is a diagram showing an example of a data layout at the time of data reading in the write-once type optical disc medium 3 to which the present invention is applied. In order for the UDF file system driver 12 to read the file data, it is necessary to read the management information (VAT) 410 as shown in FIG. 4A, specify the target file position, and access it. However, even if the management information 410 can be read as in the file 1 (401), the portion 401x of the target file data is broken and cannot be read out, or the management information 410 is read out as in the file 2 (402). If it is not possible, the target file data cannot be acquired. However, in the write-once optical disc packet write method, if the file has been updated before, the file before update exists on the optical disc.

本実施例では、ファイルシステムドライバ12において読み出しエラー発生時に、ディスク上に存在する更新前のファイルにアクセスし、これを読み出すようにする。そのために、以前の管理情報を検索しこれを参照して、読み出しエラーとなったファイルの更新前のファイルが存在するかどうかを確認する。図4(b)に示すように、読み出しエラーとなったファイル401,402の更新前のファイル401p,402pが存在する場合は、これを読み出し、読み出しエラーとなったファイル401,402の代替とする。更新前のファイル401p,402pが存在するか否かは、更新前の管理情報410pを検索し、存在する場合はその位置情報から目的のファイルにアクセスする。   In this embodiment, when a read error occurs in the file system driver 12, the file before update existing on the disk is accessed and read. For this purpose, the previous management information is searched and referred to, and it is confirmed whether or not there is a file before update of the file in which the read error has occurred. As shown in FIG. 4B, when there are pre-update files 401p and 402p of the files 401 and 402 in which a read error has occurred, these are read and used as substitutes for the files 401 and 402 in which a read error has occurred. . Whether or not the files 401p and 402p before the update exist is searched for the management information 410p before the update, and if it exists, the target file is accessed from the position information.

これにより、読み出しエラーにより目的のファイルデータが全く取得できない事態を防ぐことが可能となる。   As a result, it is possible to prevent a situation in which target file data cannot be acquired at all due to a read error.

図5は、本実施例におけるアクセス方法として、データ読み出し時のフローチャートを示す図である。UDFファイルシステムドライバ12は、ファイルデータを読み出すために最終書き込み位置にあるVAT等の管理情報を読み出す(ステップ500)。管理情報の読み出しに対してのエラー有無を判定する(ステップ501)。管理情報の読み出しに成功した場合は、目的のファイルが書き込まれているアドレス(位置情報)を読み出す(ステップ502)。ステップ501で管理情報の読み出しエラーが発生した場合は、以前の管理情報の読み出し処理(ステップ506)に移行する。   FIG. 5 is a diagram showing a flowchart at the time of data reading as an access method in the present embodiment. The UDF file system driver 12 reads management information such as VAT at the final writing position in order to read file data (step 500). It is determined whether or not there is an error in reading the management information (step 501). If the management information is successfully read, the address (position information) where the target file is written is read (step 502). If a management information read error occurs in step 501, the process proceeds to the previous management information read process (step 506).

ステップ502のアドレス読み出しエラー判定を行い(ステップ503)、アドレスを取得できた場合は、そこにアクセスしてファイルデータを読み出す(ステップ504)。アドレスの読み出しに失敗した場合は、以前の管理情報の読み出し処理(ステップ506)に移行する。   An address read error determination is performed in step 502 (step 503). If the address can be acquired, the file data is read by accessing the address (step 504). If the address reading fails, the process proceeds to the previous management information reading process (step 506).

ステップ504のファイル読み出しエラー判定を行い(ステップ505)、正常であればそれを求めるファイルデータとする。ファイルデータの読み出しに失敗した場合は、以前の管理情報の読み出し処理に移行する(ステップ406)。   In step 504, a file read error determination is made (step 505). If reading of the file data fails, the process proceeds to the previous management information reading process (step 406).

次に、上記各判定ステップ(ステップ501,503,505)で失敗したときに移行する、以前の管理情報読み出し処理(ステップ506)について述べる。まず、読み出しに失敗した管理情報の書き込まれている位置から過去に遡って直前の管理情報位置にアクセスする(ステップ507)。アクセスした直前の管理情報を読み出す(ステップ508)。読み出した管理情報の中に、目的のファイルの更新前ファイルの情報が存在するかどうかを判定する(ステップ509)。存在すれば、その管理情報に記述されるアドレスをもとに更新前のファイルにアクセスして更新前のデータを読み出す(ステップ510)。読み出した更新前のデータで、目的とするファイルのデータの代替とする。   Next, the previous management information reading process (step 506), which is shifted to when the above determination steps (steps 501, 503, 505) fail, will be described. First, the management information position immediately before is accessed retroactively from the position where the management information failed to be read is written (step 507). The management information immediately before access is read (step 508). It is determined whether or not the information of the file before update of the target file exists in the read management information (step 509). If it exists, the file before update is accessed based on the address described in the management information, and the data before update is read (step 510). The read data before update is used as a substitute for the target file data.

もしステップ509で、直前の管理情報に目的のファイルの更新前ファイルの情報が存在しない場合は、ステップ507に戻り、さらに1つ前の管理情報まで遡り、更新前のファイルが存在するかどうかを再度検索する。この工程を繰り返せば、目的のファイルを発見できる確率を高めることができる。   If it is determined in step 509 that there is no information on the file before update of the target file in the immediately previous management information, the process returns to step 507 to go back to the previous management information and determine whether the file before update exists. Search again. If this process is repeated, the probability that the target file can be found can be increased.

なお、上記説明では省略したが、以前の管理情報読み出し処理(ステップ506)においても、管理情報の読み出し、アドレスの読み出し、ファイルの読み出しの際、ステップ501、503、505に示す各読み出しエラーの判定を行うものとする。   Although omitted in the above description, also in the previous management information reading process (step 506), the determination of each reading error shown in steps 501, 503, and 505 at the time of reading management information, address reading, and file reading. Shall be performed.

上記実施例により、読み出しエラー発生時に以前の管理情報を検索することで、更新前のデータを取得し目的のデータの代替とすることができる。よって、読み出しエラーによりファイル内容がすべて失われることを防ぐことが可能となる。   According to the above-described embodiment, the previous management information is searched when a read error occurs, so that the data before update can be acquired and substituted for the target data. Therefore, it is possible to prevent the entire file contents from being lost due to a read error.

本発明は上記実施例に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。たとえば、本発明はファイルシステムを解析し、書き込みまたは読み出しを行うプログラム等に適用することができる。   It goes without saying that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention. For example, the present invention can be applied to a program that analyzes a file system and performs writing or reading.

また、上記実施例の説明では、ファイルシステムの一例としてUDFファイルシステムを例にとって説明したが、追記型光ディスクへの書き込みで使用される他のファイルシステムにおいても適用することができる。   In the above description of the embodiment, the UDF file system has been described as an example of the file system. However, the present invention can also be applied to other file systems used for writing on a write-once optical disc.

光ディスクへのアクセス方法を適用したコンピュータシステムの構成の一例を示すブロック図。1 is a block diagram showing an example of the configuration of a computer system to which an optical disk access method is applied. 追記型光ディスク媒体におけるデータ書き込み時のデータレイアウトの一例を示す図。The figure which shows an example of the data layout at the time of the data writing in a write-once type | mold optical disk medium. 図2における光ディスク媒体へのアクセス方法として、データ書き込み時のフローチャートを示す図。The figure which shows the flowchart at the time of data writing as an access method to the optical disk medium in FIG. 追記型光ディスク媒体におけるデータ読み出し時のデータレイアウトの一例を示す図。The figure which shows an example of the data layout at the time of the data reading in a write-once type | mold optical disk medium. データ読み出し時のフローチャートを示す図。The figure which shows the flowchart at the time of data reading.

符号の説明Explanation of symbols

1…上位装置、12…UDFファイルシステムドライバ、13…デバイスドライバ、2…光ディスク装置、21…記録再生部、22…制御部、3…追記型光ディスク媒体、201,202,401,402…ファイルデータ、210,410…管理情報。
DESCRIPTION OF SYMBOLS 1 ... High-order apparatus, 12 ... UDF file system driver, 13 ... Device driver, 2 ... Optical disk apparatus, 21 ... Recording / reproducing part, 22 ... Control part, 3 ... Write-once optical disk medium, 201, 202, 401, 402 ... File data , 210, 410... Management information.

Claims (8)

追記型光ディスクへのデータ書き込み処理において、
該ディスク上に、データと当該データの書き込み位置を示す管理情報とを書き込み、
書き込んだ該管理情報を読み出して書き込み/読み出し時のエラーの有無を判定し、
読み出した該管理情報にエラー有りと判定した場合、管理情報を再度作成して、該ディスク上の新たな位置に再度書き込むことを特徴とする光ディスクアクセス方法。
In the process of writing data to the write once optical disc,
Write data and management information indicating the writing position of the data on the disk,
Read the management information that has been written to determine whether there is an error during writing / reading,
An optical disc access method, wherein when it is determined that there is an error in the read management information, the management information is created again and written again at a new position on the disc.
請求項1記載の光ディスクアクセス方法において、
前記書き込み/読み出し時のエラーの有無は、読み出した管理情報と書き込み時の管理情報とを比較することで判定することを特徴とする光ディスクアクセス方法。
The optical disk access method according to claim 1,
An optical disc access method, wherein the presence / absence of an error at the time of writing / reading is determined by comparing the read management information with the management information at the time of writing.
追記型光ディスクからのデータ読み出し処理において、
該ディスク上から、当該データのディスク上の書き込み位置を示す管理情報を読み出し、該管理情報により当該データにアクセスして当該データを読み出すものであって、
該管理情報の読み出し時または当該データの読み出し時にエラーが発生した場合、該ディスク上に当該データの更新前のデータが存在するか否かを検索し、存在する場合には、更新前の管理情報により更新前のデータにアクセスすることを特徴とする光ディスクアクセス方法。
In the process of reading data from a write-once optical disc,
Management information indicating a writing position of the data on the disk is read from the disk, the data is accessed by the management information, and the data is read.
When an error occurs at the time of reading the management information or at the time of reading the data, it is searched whether or not the data before the update of the data exists on the disk, and if it exists, the management information before the update An access method for an optical disc, characterized in that the pre-update data is accessed.
請求項3記載の光ディスクアクセス方法において、
前記更新前のデータが存在するか否かは、読み出し時にエラーが発生した前記管理情報の位置よりも時間的に過去に書き込まれた管理情報を検索し、該管理情報より当該データの更新前のデータが存在するか否かを判定することを特徴とする光ディスクアクセス方法。
The optical disk access method according to claim 3, wherein
Whether or not the pre-update data exists is determined by searching the management information written in the past in time from the position of the management information in which an error occurred at the time of reading, and from the management information before the update of the data An optical disc access method, comprising: determining whether or not data exists.
追記型光ディスクへのデータ書き込みプログラムにおいて、
該ディスク上にデータを書き込むステップと、
該ディスク上に書き込んだデータの書き込み位置を示す管理情報を作成するステップと、
作成した該管理情報を該ディスク上に書き込むステップと、
該ディスク上から書き込んだ該管理情報を読み出すステップと、
読み出した該管理情報のエラーの有無を判定するステップとを備え、
該判定の結果エラー有りの場合、管理情報を再度作成するステップと、
該再度作成した管理情報を該ディスク上の新たな位置に再度書き込むステップとを有することを特徴とする光ディスクアクセスプログラム。
In a program for writing data to a write once optical disc,
Writing data on the disk;
Creating management information indicating a writing position of data written on the disk;
Writing the created management information on the disc;
Reading the management information written from the disk;
Determining whether there is an error in the read management information,
If there is an error as a result of the determination, a step of creating management information again;
And a step of rewriting the regenerated management information at a new position on the disc.
追記型光ディスクからのデータ読み出しプログラムにおいて、
該ディスク上から、当該データのディスク上の書き込み位置を示す管理情報を読み出すステップと、
該管理情報により当該データにアクセスして当該データを読み出すステップと、
該管理情報の読み出し時または当該データの読み出し時のエラーの有無を判定するステップとを備え、
該判定の結果エラー有りの場合、該ディスク上に当該データの更新前のデータが存在するか否かを検索するステップと、
存在する場合には、更新前の管理情報により更新前のデータにアクセスするステップとを有することを特徴とする光ディスクアクセスプログラム。
In a program for reading data from a write-once optical disc,
Reading management information indicating the writing position of the data on the disk from the disk;
Accessing the data according to the management information and reading the data;
Determining whether or not there is an error when reading the management information or reading the data,
If there is an error as a result of the determination, a step of searching whether there is data before the update of the data on the disk;
If present, a step of accessing the data before update by the management information before update.
追記型光ディスクへのデータ書き込み読み出しを行う光ディスク装置において、
該データを書き込み読み出しする記録再生手段と、
該記録再生手段を制御する制御手段とを有し、
該記録再生手段は、該ディスク上に、データと当該データの書き込み位置を示す管理情報とを書き込み、該ディスク上から書き込んだ管理情報を読み出し、読み出した該管理情報にエラー有りと判定された場合、新たな管理情報を該ディスク上の新たな位置に再度書き込むことを特徴とする光ディスク装置。
In an optical disc apparatus for writing and reading data on a write once optical disc,
Recording / reproducing means for writing and reading the data;
Control means for controlling the recording / reproducing means,
The recording / reproducing means writes data and management information indicating the writing position of the data on the disc, reads the management information written from the disc, and determines that there is an error in the read management information. An optical disc apparatus wherein new management information is rewritten at a new position on the disc.
追記型光ディスクへのデータ書き込み読み出しを行う光ディスク装置において、
該データを書き込み読み出しする記録再生手段と、
該記録再生手段を制御する制御手段とを有し、
上記記録再生手段は、該ディスク上から、当該データのディスク上の書き込み位置を示す管理情報を読み出し、該管理情報により当該データにアクセスして当該データを読み出すものであって、該管理情報の読み出し時または当該データの読み出し時にエラーが発生し、該ディスク上に当該データの更新前のデータが存在する場合には、更新前の管理情報により更新前のデータにアクセスすることを特徴とする光ディスク装置。
In an optical disc apparatus for writing and reading data on a write once optical disc,
Recording / reproducing means for writing and reading the data;
Control means for controlling the recording / reproducing means,
The recording / reproducing means reads management information indicating a writing position of the data on the disk from the disk, accesses the data by the management information, and reads the data, and reads the management information. Or an error occurs at the time of reading the data, and the data before the update of the data exists on the disk, the data before the update is accessed by the management information before the update. .
JP2004177936A 2004-06-16 2004-06-16 Optical disk access method, access program, and optical disk apparatus Pending JP2006004487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004177936A JP2006004487A (en) 2004-06-16 2004-06-16 Optical disk access method, access program, and optical disk apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004177936A JP2006004487A (en) 2004-06-16 2004-06-16 Optical disk access method, access program, and optical disk apparatus

Publications (1)

Publication Number Publication Date
JP2006004487A true JP2006004487A (en) 2006-01-05

Family

ID=35772768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004177936A Pending JP2006004487A (en) 2004-06-16 2004-06-16 Optical disk access method, access program, and optical disk apparatus

Country Status (1)

Country Link
JP (1) JP2006004487A (en)

Similar Documents

Publication Publication Date Title
US6625096B1 (en) Optical disk recording and reproduction method and apparatus as well as medium on which optical disk recording and reproduction program is recorded
US7330947B2 (en) Method and apparatus for backing up data in virtual storage medium
JPH04232653A (en) Write control system of magneto-optic disk data storage device
JP2010009290A (en) Storage system, copy control method and copy control unit
JPH11296999A (en) Record medium preserving additional information for defect management and defect managing method
JPH02281474A (en) Auto changer device for storage medium
KR100367295B1 (en) An apparatus and method for writing a region code in a DVD driver
US8707089B2 (en) Storage control device for formatting to storage media, storage control method for formatting to storage media, and medium for storing storage control program for formatting to storage media
US8688938B2 (en) Data copying
JP2005284816A (en) Disk array system
JP3437502B2 (en) Dynamic defect management method for rewritable optical disk
JP4841408B2 (en) Volume migration program and method
US7840541B2 (en) Information recording method and information recording/reproduction device
JP2006004487A (en) Optical disk access method, access program, and optical disk apparatus
KR20050045517A (en) A optical recording medium, a recording/reproducing method and a recording/reproducing apparatus
JP3595550B1 (en) Information recording / reproducing apparatus, information recording / reproducing method, and program
US10042582B2 (en) Data erasing method
KR20040083101A (en) Method for handling data, data storage system, file system and computer program product
JP2005149248A (en) Metadata restoration system, method thereof, storage device and program therefor
JP3794322B2 (en) Data copy system
JPH02278572A (en) Alternative block processing system
JP4277707B2 (en) Information recording method
JP4664869B2 (en) Data recording system
JP2005353136A (en) Video/audio data recording method, device, program and medium
JPH02197938A (en) Restoring system for draw type optical disk directory