JP3601702B2 - Information processing apparatus and information processing method - Google Patents

Information processing apparatus and information processing method Download PDF

Info

Publication number
JP3601702B2
JP3601702B2 JP2001211953A JP2001211953A JP3601702B2 JP 3601702 B2 JP3601702 B2 JP 3601702B2 JP 2001211953 A JP2001211953 A JP 2001211953A JP 2001211953 A JP2001211953 A JP 2001211953A JP 3601702 B2 JP3601702 B2 JP 3601702B2
Authority
JP
Japan
Prior art keywords
data
area
recorded
recording
information
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.)
Expired - Fee Related
Application number
JP2001211953A
Other languages
Japanese (ja)
Other versions
JP2003030925A (en
Inventor
章 西村
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2001211953A priority Critical patent/JP3601702B2/en
Priority to PCT/JP2002/006783 priority patent/WO2003009287A1/en
Priority to TW91114839A priority patent/TW588329B/en
Publication of JP2003030925A publication Critical patent/JP2003030925A/en
Application granted granted Critical
Publication of JP3601702B2 publication Critical patent/JP3601702B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • G11B20/1217Formatting, e.g. arrangement of data block or words on the record carriers on discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、情報処理装置及び情報処理方法に関し、例えばビデオデータ、オーディオデータを記録するリムーバブルのハードディスク装置に適用することができる。本発明は、ホスト装置からの出力データを所定データ量だけ記録する毎に、所定領域に、記録したデータのデータ量の情報を記録すると共に、管理用データの更新時、このデータ量の情報をリセットし、起動時においては、この管理用データに基づいて修復の処理を実行することにより、記録時異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができるようにする。
【0002】
【従来の技術】
従来、パーソナルコンピュータのペリフェラルとして使用されるハードディスク装置においては、ハードディスクに記録された管理用のデータにより、複数セクタによるクラスタを単位にしてハードディスクに記録されたデータを管理できるようになされており、この管理をホスト装置であるパーソナルコンピュータにより実行するようになされている。
【0003】
すなわち図6に示すように、ハードディスクは、通常、情報記録面を内周側領域と外周側領域とに分割し、外周側領域がシステムエントリーエリアに割り当てられる。
【0004】
さらにハードディスクは、情報記録面が同心円状に複数のゾーンに区切られ、さらに各ゾーンのトラックがそれぞれ円周方向に所定長で区切られて複数のセクタに分割される。ハードディスクは、これによりこの1トラック当たりのセクタ数が内周側のゾーンより順次増大するようになされ、ゾーンに応じて記録周波数を可変するゾーンビットレコーディングの手法を適用して情報記録面を効率良く利用できるようになされている。
【0005】
このようにしてゾーニングされ、セクタ化されてなるハードディスクは、情報記録面の面番号、情報記録面の外周側より連続して割り当てられるトラック番号、各トラックにおけるセクタを特定するセクタ番号により、物理アドレスが設定され、さらにこの物理アドレスに対応して情報記録面の外周側より順次設定されてなる論理アドレスによりユーザーデータがファイル管理される。
【0006】
ここで論理アドレスは、複数の論理セクタの集合によるクラスタを単位にしたクラスタ番号により表される。すなわち論理セクタは、情報記録面における先頭の領域(この場合は最外周である)を0セクタとして設定されるデータの記録単位に対応する領域であり、例えば1の物理セクタが1の論理セクタに対応して、(論理セクタ番号=1トラック当たりのセクタ数×(面番号+面の数×トラック番号)+セクタ番号−1)の関係式により論理セクタ番号を表すことができるようになされている。なおここで面番号、トラック番号、セクタ番号は、物理アドレスによるものである。
【0007】
ここで論理セクタは、ユーザーデータに換算して1の論理セクタに512バイトのデータを記録できるように構成され、複数個の論理セクタにより1のクラスタが構成されるようになされている。なお1のクラスタは、一般に2のべき乗個のセクタにより構成され、ユーザーデータを記録するデータエリアにおいて、ファイルエリアの先頭を2とする連番であるクラスタ番号により特定されるようになされている。
【0008】
データエリアは、このようにして設定される各クラスタにクラスタ番号が割り当てられ、このクラスタ番号を基準にしてクラスタ単位でアクセスできるようになされている。なおこの説明では、クラスタ番号を4桁のヘキサ形式により示す。
【0009】
これに対してシステムエントリーエリアは、さらにブートエリア、FAT(Fail Allocation table )エリア、ディレクトリエリアに分割され、ブートエリアには、ディスクの構造を定義するデータが記録される。これに対してFATエリア及びディレクトリエリアには、データエリアに記録したユーザーデータのアクセスに必要なアドレス情報等が記録される。なおFATエリアは、メインFATとサブFATとに同一の情報が重複して記録され、これにより信頼性を確保できるようになされている。
【0010】
すなわちディレクトリエリアには、データエリアに記録された各ファイルのファイル名と、各ファイルの記録開始位置である先頭クラスタのクラスタ番号等が記録される。これに対してFATエリアには、各ファイルの先頭クラスタに連続する各クラスタのクラスタ番号等が記録される。これによりハードディスクは、所望するファイル名の先頭クラスタ番号をディレクトリエリアから検出した後、この先頭クラスタ番号に続くクラスタ番号を順次FATエリアから検出することにより、1つのファイルを構成する連続するクラスタのアドレスを検出できるようになされている。
【0011】
かくするにつきこの図6においては、データエリアのクラスタ番号1234h〜1240hまでのクラスタにファイル1が記録されている場合に、ファイル1の第1クラスタのクラスタ番号1234hを示すコードがディレクトリエリアに記録され、さらにこのクラスタ番号1234hから続くクラスタ番号がFATエリアの対応する領域に順次記録されるようになされている。なおこの図6においてEOF(End Of File )は、1つのファイルの最終クラスタを示す識別情報である。
【0012】
より詳細には、ディレクトリエリアは、データエリアに記録した各ファイル毎に、図7に示す構成のファイル管理用データが記録される。すなわちファイル管理用データは、先頭8バイトにファイル名が割り当てられ、続く3バイトに各ファイルの拡張子が割り当てられる。さらに続く1バイトにファイルの属性を示すデータが割り当てられ、続く10バイトがリザーブ用のデータに割り当てられる。また続く2バイトが記録開始時刻のデータに、続く2バイトが記録日のデータに割り当てられ、続く2バイトに先頭クラスタ番号であるクラスタ番号が割り当てられるようになされている。なお最後の4バイトには、ファイル長のデータが割り当てられる。
【0013】
これに対してFATエリアは(図6)、データエリアのクラスタ番号に対応してクラスタアドレスが割り振られ、各クラスタアドレスに続くクラスタのクラスタ番号が記録されるようになされている。また図8に示すように、これらクラスタ番号に割り当てられていないコードのうち、所定のコードがそれぞれ空き領域、欠陥クラスタ、EOFを示す識別情報に割り当てられるようになされている。
【0014】
これによりハードディスクは、ディレクトリエリアより所望のファイルの先頭クラスタ番号を検出してFATエリアを順次辿ることにより、この所望するファイルを記録したクラスタのクラスタ番号を順次辿るとができるようになされ、このようにして検出されるクラスタ番号によりこのファイルをアクセスできるようになされている。また同様にFATエリアをアクセスしてデータエリアの空き領域を検出できるようになされている。これらによりハードディスクは、所定ブロック単位で情報記録面を管理できるようになされている。
【0015】
これに対してハードディスク装置をアクセスするインターフェースにおいては、ATA(AT Attachment )、SCSI(Small Computer System Interface )等があり、これらのインターフェースによるパーソナルコンピュータにおいては、例えば、電源起動時、ハードディスクに記録された管理用データをアップロードする。
【0016】
すなわち図9は、この管理用データのアップロードを示す処理手順であり、ハードディスク装置においては、例えば電源の起動時、ステップSP1からステップSP2に移り、ホスト装置からシステムエントリーエリアの読み出しコマンドが発行され、続くステップSP3において、このコマンドに応動してシステムエントリーエリアのデータがハードディスクより読み出されてホスト装置に送信される。これにより従来のシステムにおいては、続くステップSP4において、一連の書き込み、読み出しのコマンド発行に利用できるように、このシステムエントリーエリアのデータがホスト装置のメモリに記録された後、ステップSP5に移って、この処理手順を終了する。
【0017】
またパーソナルコンピュータにおいては、このようにしてアップロードした管理用データを基準にして、パラメータを設定してハードディスク装置にアクセスを指示する。すなわち例えば所望のファイルを読み出す場合には、このファイルの先頭アドレス(ディレクトリのFATエントリー番号)、クラスタを単位にした転送長をパラメータに設定して読み出しコマンドを発行する。また書き込み時においても、同様にして書き込みのコマンドを発行して記録に供するデータを順次送出する。
【0018】
すなわち図10は、ホスト装置のメモリに記録した管理用データを基準にした書き込みの処理を示すフローチャートである。この場合、ホスト装置においては、ステップSP11からステップSP12に移り、ホストメモリに記録した管理用データを検索して空き領域を示すコードが設定されてなるクラスタ番号(空きクラスタアドレス)を検出する。
【0019】
このようにして空きクラスタアドレスを検出すると、ホスト装置は、続くステップSP13において、この空きクラスタアドレスと転送長とによりパラメータ(LBA(論理ブロックアドレス)による書き込みアドレスである)を設定して書き込みコマンドを発行した後、続くステップSP14で記録に供するデータを転送長の分だけハードディスク装置に送出する。ハードディスク装置においては、続くステップSP15において、書き込みのコマンドに応動して続いて伝送されるデータをバッファメモリに記録し、続くステップSP16において、このバッファメモリに記録したデータをホスト装置により指定された空きクラスタに順次記録する。
【0020】
ハードディスク装置は、このようにしてホスト装置より伝送されたデータの記録を完了すると、ステップSP17において、ホスト装置に割り込みをかける。ホスト装置においては、この割り込みによりステップSP18に移り、ここで記録に供するデータの転送を全て完了したか否か判断し、ここで否定結果が得られると、ステップSP12に戻る。これによりホスト装置は、データ量の大きなファイルについては、繰り返し書き込みコマンドを発行してデータを送出し、ハードディスク装置においては、このコマンドに応動してホスト装置により指定される空きクラスタに順次データを記録する。
【0021】
これに対して記録に供するデータの転送を全て完了すると、ステップSP18で肯定結果が得られることにより、ホスト装置は、ステップSP19に移り、ホストメモリに記録したシステムエントリーエリアの内容をこのファイルの記録に対応するように更新し、またこの更新に対応するようにハードディスク装置にシステムエントリーエリアの更新を指示し、ステップSP20に移ってこの処理手順を終了する。
【0022】
これらの処理により従来のハードディスク装置においては、ホスト装置の管理により書き込み、読み出しの処理を実行するようになされている。
【0023】
【発明が解決しようとする課題】
ところでこの種のハードディスク装置においては、近年、小型化、高記録密度化されており、オーディオデータ、ビデオデータ(以下、AVデータと呼ぶ)の記録についても、ハードディスク装置を利用することにより、携帯可能で、長時間記録可能な記録装置を作成することができると考えられる。すなわちハードディスク装置をビデオテープレコーダの代わりに使用して、小型携帯可能なビデオカメラ等の種々のAV機器を構成することができると考えられる。
【0024】
ところがこのようにAVデータの記録に適用して種々のAV機器を構成する場合にあっては、コンピュータのペリフェラルとして使用される場合に比して、記録途中で異常終了する場合が格段的に増大すると考えられる。すなわち記録中にバッテリー切れにより動作が停止する場合も考えられ、また誤操作により記録中に電源が立ち下げられる場合も考えられる。さらに記録装置を誤って取り外す場合も考えられ、さらには振動、落下等による異常も考えられる。
【0025】
従来のハードディスク装置におけるインターフェースにおいては、上述したようにハードディスクへのデータの記録を完了した後、システムエントリーエリアを更新し、さらにこのようにして更新したシステムエントリーエリアの記録に従ってデータエリアを再生することにより、このように異常が発生した場合、異常発生の時点までハードディスクに正しく記録したデータを再生できなくなる問題があった。
【0026】
この問題を解決する1つの方法として、記録時にデータを書き込む毎に、ディレクトリエリア及びFATエリアを更新すれば、これらディレクトリエリア及びFATエリアの記録により、異常が発生するまでの間に記録したデータを保護することができると考えられる。
【0027】
すなわちこの種のインターフェースにおいては、最大転送長が例えば256セクタ(ATA規格の場合)であることにより、サイズの大きなファイルをアクセスする場合、パーソナルコンピュータにおいては、パラメータを順次更新して読み出しのコマンドを繰り返し発行する。
【0028】
ハードディスク装置においては、このコマンドに対応して指示された先頭クラスタより転送長の分だけデータを再生してパーソナルコンピュータに出力し、サイズの大きなファイルを読み出す場合には、パーソナルコンピュータからの読み出しのコマンドに応動して同様の処理を繰り返すことにより、一連のデータをハードディスクより再生してパーソナルコンピュータに出力するようになされている。
【0029】
また読み出し時と同様に、サイズの大きなファイルを書き込む場合、パーソナルコンピュータにおいては、パラメータを順次更新して読み出しのコマンドを繰り返し発行し、これに対応してハードディスク装置においては、パーソナルコンピュータからの書き込みのコマンドに応動して同様の処理を繰り返すことにより、一連のデータをパーソナルコンピュータより入力してハードディスクに記録するようになされている。
【0030】
すなわち図11は、ホスト装置からの各コマンド毎にファイルを登録する場合の処理手順を示すフローチャートである。この場合、ホスト装置においては、ステップSP21からステップSP22に移り、ホストメモリに記録した管理用データを検索して空き領域を示すコードが設定されてなるクラスタ番号(空きクラスタアドレス)を検出する。
【0031】
このようにして空きクラスタアドレスを検出すると、ホスト装置は、続くステップSP23において、この空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行した後、続くステップSP24で記録に供するデータを転送長の分だけハードディスク装置に送出する。ハードディスク装置においては、続くステップSP25において、書き込みのコマンドに応動して続いて伝送されるデータをバッファメモリに記録し、続くステップSP26において、このバッファメモリに記録したデータをホスト装置により指定された空きクラスタに順次記録する。
【0032】
ハードディスク装置は、このようにしてホスト装置より伝送されたデータの記録を完了すると、ステップSP27において、このデータの記録に対応するようにメインFATの記録を更新した後、続くステップSP28において、同様にサブFATの記録を更新する。また続くステップSP29においてディレクトリエリアの記録を更新する。なおハードディスク装置は、これらメインFAT、サブFAT、ディレクトリエリアの記録においては、直前の処理の完了によりホスト装置に割り込みをかけ、この割り込みによりホスト装置から発行されるコマンドにより、各書き込みの処理を実行するようになされている。
【0033】
このようにしてシステムエントリーエリアを更新すると、ハードディスク装置は、ステップSP30においてホスト装置に割り込みをかける。ホスト装置においては、この割り込みによりステップSP31に移り、ここで記録に供するデータの転送を全て完了したか否か判断し、ここで否定結果が得られると、ステップSP22に戻るのに対し、ステップSP31で肯定結果が得られると、ステップSP32に移ってこの処理手順を終了する。これによりホスト装置は、データ量の大きなファイルについては、繰り返し書き込みコマンドを発行してデータを送出し、ハードディスク装置においては、このコマンドに応動してホスト装置により指定される空きクラスタに順次データを記録すると共に、これに対応して管理用データを逐次更新するようになされている。
【0034】
ところがこの方法の場合、メインFAT、サブFAT、ディレクトリーエリアのアクセスに3回のシークを実行することが必要になり、このシークに要するシーク時間、回転待ち時間により、コマンド毎に実行するファイル登録に時間を要する。これによりこの方法の場合、実際のAVデータの書き込み時間よりファイル登録に要する時間の方が長くなってしまい、連続するAVデータを途切れることなく記録することが困難になる問題がある。因みに、ハードディスク装置において、記録速度は、線記録密度、ディスク回転速度、ディスク径に依存することにより、近年のようにハードディスクの直径が小さくなると、このような問題が顕著となる。
【0035】
本発明は以上の点を考慮してなされたもので、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができる情報処理装置及び情報処理方法を提案しようとするものである。
【0036】
【課題を解決するための手段】
かかる課題を解決するため請求項1の発明においては、情報処理装置に適用して、ホスト装置からの指示により、記録媒体から管理用データを読み出してホスト装置に出力し、該ホスト装置に出力した管理用データに基づいたホスト装置による制御により、データエリアを管理し、また管理用データを更新し、ホスト装置からのコマンドによりホスト装置の出力データを所定データ量だけ記録する毎に、管理用データの記録エリアに、記録した出力データのデータ量の情報を記録し、所定のタイミングで、出力データによる1つのファイルのデータエリアへの記録に対応するように、管理用データを更新すると共に、データ量の情報をリセットし、起動時においては、データ量の情報のリセットの有無を判定し、該判定結果に基づいて、管理用データにより、空き領域に設定されてなる先頭領域を検出し、この先頭領域からデータ量の情報により特定される領域までの間に記録されたデータを、1つのファイルに設定して、管理用データを更新すると共に、データ量の情報をリセットする。
【0037】
また請求項の発明においては、情報処理方法に適用して、ホスト装置からの指示により、記録媒体から管理用データを読み出してホスト装置に出力し、該ホスト装置に出力した管理用データに基づいたホスト装置による制御により、データエリアを管理し、また管理用データを更新し、ホスト装置から出力される出力データを所定データ量だけ記録する毎に、管理用データの記録エリアに、記録した出力データのデータ量の情報を記録し、所定のタイミングで、出力データによる1つのファイルのデータエリアへの記録に対応するように、管理用データを更新すると共に、データ量の情報をリセットし、起動時においては、データ量の情報のリセットの有無を判定し、該判定結果に基づいて、管理用データにより、空き領域に設定されてなる先頭領域を検出し、この先頭領域からデータ量の情報により特定される領域までの間に記録されたデータを、1つのファイルに設定して、管理用データを更新すると共に、データ量の情報をリセットする。
【0038】
請求項1の構成によれば、出力データを所定データ量だけ記録する毎に、管理用データの記録エリアに、記録した出力データのデータ量の情報を記録し、所定のタイミングで、出力データによる1つのファイルのデータエリアへの記録に対応するように、管理用データを更新すると共に、データ量の情報をリセットすることにより、種々の異常により、この所定のタイミングにおける管理用データの更新が困難になった場合でも、データ量の情報におけるリセットの有無により、記録済みのデータが存在するか否か判断することができる。これにより起動時においては、データ量の情報のリセットの有無を判定し、該判定結果に基づいて、管理用データにより、空き領域に設定されてなる先頭領域を検出し、この先頭領域からデータ量の情報により特定される領域までの間に記録されたデータを、1つのファイルに設定して、管理用データを更新すると共に、データ量の情報をリセットすることにより、管理用データより、このような異常の発生した記録済みデータの記録開始位置を検出することができ、さらにデータ量の情報によりこの記録開始位置より記録済みデータの末尾を検出し、このようにして検出される記録開始位置から記録済みデータの末尾までを1つのファイルとして取り扱うようにすることができ、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができる。
【0039】
これにより請求項の構成によれば、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができる情報処理方法を提供することができる。
【0040】
【発明の実施の形態】
以下、適宜図面を参照しながら本発明の実施の形態を詳述する。
【0041】
(1)実施の形態の構成
図2は、本発明の実施の形態に係るハードディスク装置を示すブロック図である。このハードディスク装置1は、撮像装置、セットトップボックス等のAV機器2、パーソナルコンピュータ(PC)等に装着されて、これらの機器より出力される各種データを記録する。またこれらの機器に装着された状態で、又はこれらの装置より取り外されて他のAV機器、パーソナルコンピュータ等に装着された状態で、記録したデータを再生して出力する。
【0042】
このためこのハードディスク装置1は、AV機器等に着脱自在に保持され、AVデータを所定フォーマットによりデータ圧縮してなるデータ、テキストデータ等をこれらのAV機器2との間で入出力し、またこれらのデータの入出力に伴う制御コマンド、ステータスデータ、アドレス等をこれら機器との間で入出力する。さらにこれらのデータをハードディスク3に記録し、またこのハードディスク3に記録したデータを再生して出力する。
【0043】
ここでハードディスク3は、図6〜図8について上述したフォーマットによりAV機器2より出力されるAVデータdataを記録し、また記録したAVデータdataを再生してAV機器2に出力する。
【0044】
サーボ回路4は、ハードディスク制御回路5の制御によりモータ(M)6を駆動し、これによりハードディスク3を所定の回転速度により回転駆動する。またサーボ回路4は、同様にしてモータ(M)8を駆動することにより磁気ヘッドをシークさせ、さらにトラッキング制御する。
【0045】
リードライトデータチャンネル部9は、ハードディスク制御回路5の制御により、記録時、ハードディスク制御回路5の出力データを記録再生系の特性に適した方式により符号化処理してビット系列のデータを生成し、このデータにより磁気ヘッドを駆動する。また再生時、リードライトデータチャンネル部9は、磁気ヘッドより得られる再生信号を信号処理して再生データを生成し、この再生データをハードディスク制御回路5に出力する。
【0046】
ハードディスク制御回路5は、インターフェース制御回路11の指示によりハードディスク3上のデータを管理する制御回路であり、バッファメモリ10を介して入力されるAVデータに応じてサーボ回路4の動作を制御すると共に、このAVデータをリードライトデータチャンネル部9に出力することにより、インターフェース制御回路11により指示されるクラスタにこれらのAVデータを記録する。また再生時、同様にしてサーボ回路4の動作を制御してリードライトデータチャンネル部9の出力データをバッファメモリ10に出力し、これによりインターフェース制御回路11により指示されたクラスタを再生する。
【0047】
インターフェース制御回路(IF制御)11は、例えばSCSIコントローラ、IDEコントローラ、ATAコントローラ等により形成され、AV機器2との間で送受するデータ、制御コマンド等の入出力回路を構成する。すなわちインターフェース制御回路11は、AV機器2より入力されるコマンドcommand、このコマンドに設定されたパラメータを解析し、ハードディスク制御回路5等の動作を制御する。また書き込み時にあっては、バッファメモリ10を介して、AV機器2より入力されるAVデータをハードディスク制御回路5に出力し、また再生時にあっては、バッファメモリ10を介して、ハードディスク制御回路5より出力されるAVデータをAV機器2に出力する。
【0048】
これに対応してAV機器2においては、メモリ2Bにワークエリアを確保した中央処理ユニット(CPU)2Aの処理により、上位のコントローラからの指示に応じてハードディスク装置1に種々のコマンド等を送出する。
【0049】
この処理において中央処理ユニット2Aは、電源起動時、所定の処理手順の実行により、ハードディスク3のシステムエントリーエリアに記録されてなる管理用データであるブートエリア、FATエリア、ディレクトリエリアのデータをメモリ2Bにアップロードし、このアップロードしたデータを基準にしたパラメータの設定により種々のコマンドを送出する。
【0050】
すなわち図1は、メモリ2Bに記録した管理用データを基準にした書き込みの処理を示すフローチャートである。この場合、AV機器2の中央処理ユニット2Aにおいては、ステップSP41からステップSP42に移り、メモリ2Bに記録した管理用データを検索して空き領域を示すコードが設定されてなるクラスタ番号(空きクラスタアドレス)を検出する。
【0051】
このようにして空きクラスタアドレスを検出すると、ホスト装置は、続くステップSP43において、この空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行した後、続くステップSP44で記録に供するデータを転送長の分だけハードディスク装置に送出する。ハードディスク装置においては、続くステップSP45において、書き込みのコマンドに応動して続いて伝送されるデータをバッファメモリ10に記録し、続くステップSP46において、このバッファメモリ10に記録したデータをAV機器2により指定された空きクラスタに順次記録する。
【0052】
ハードディスク装置は、このようにしてAV機器2より伝送されたデータの記録を完了すると、ステップSP47において、このようにして記録するファイルについて、記録を完了したAVデータの記録処理情報を所定領域に記録する。ここでこの実施の形態において、記録領域は、図6との対比により図3に示すように、システムエントリーエリア中の事前に設定された領域である。これに対して記録処理情報は、記録の完了したデータ量の情報が割り当てられ、ハードディスク3の記録単位であるクラスタを単位にしてこのデータ量(クラスタ数である)が表されるようになされている。
【0053】
このようにして記録処理情報を記録すると、ハードディスク装置は、ステップSP48に移り、AV機器2に割り込みをかける。AV機器2においては、この割り込みによりステップSP49に移り、ここで記録に供するデータの転送を全て完了したか否か判断し、ここで否定結果が得られると、ステップSP42に戻る。これによりAV機器2は、データ量の大きなファイルについては、繰り返し書き込みコマンドを発行してデータを送出し、ハードディスク装置においては、このコマンドに応動して記録処理情報を更新しながら、AV機器2により指定される空きクラスタに順次データを記録するようになされている。
【0054】
これに対して記録に供するデータの転送を全て完了すると、ステップSP49で肯定結果が得られることにより、AV機器2は、ステップSP50に移り、このファイルの記録に対応するように、メモリ2Bの記録を更新し、またハードディスク装置1にシステムエントリーエリアの更新を指示する。さらに続くステップSP51において、記録処理情報のリセットを指示し、ハードディスク装置1においては、この指示により記録処理情報によるクラスタ数の値を値0に更新し、その後ステップSP52に移ってこの処理手順を終了する。
【0055】
これらの処理によりハードディスク装置においては、AV機器2により連続する書き込みのコマンドに対して、順次、記録済みのデータ量の情報をハードディスク3のシステムエントリーエリアに記録しながら、AV機器2より出力されるAVデータを記録し、AV機器2の指示によりFATエリア等を更新すると共に、記録処理情報をリセットするようになされ、これにより記録途中で異常が発生した場合でも、必要に応じてデータの修復処理を実行できるようになされている。
【0056】
図4は、ハードディスク装置1の起動時の処理手順を示すフローチャートである。ハードディスク装置1では、この起動時の処理において、上述した記録処理情報により必要に応じて修復処理を実行し、これにより異常終了による記録済みのデータを有効に保護する。
【0057】
すなわちハードディスク装置においては、電源の起動時、ステップSP61からステップSP62に移り、AV機器2からシステムエントリーエリアの読み出しコマンドが発行され、続くステップSP63において、このコマンドに応動してシステムエントリーエリアのデータがハードディスクより読み出されてAV機器2に送信される。これによりAV機器2においては、続くステップSP64において、このシステムエントリーエリアのデータがメモリ2Bに記録される。
【0058】
このようにして従来の電源起動時と同様の処理を実行すると、ハードディスク装置1においては、続くステップSP65において、記録処理情報を読み出し、続くステップSP66において、この記録処理情報がリセットされているか否か、すなわちこの実施の形態ではファイルサイズであるクラスタ数が値0に設定されているか否か判断する。
【0059】
ここで肯定結果が得られると、この場合、何ら異常により記録途中で動作を終了することなく、データエリアの記録に対応するようにシステムエントリーエリアが更新されて終了してなる場合であることにより、ハードディスク装置1は、ステップSP66からステップSP67に移ってこの処理手順を終了する(図5)。
【0060】
これに対してステップSP66で否定結果が得られると、この場合、何らかの異常により記録途中で動作を終了し、データエリアの記録に対応するようにシステムエントリーエリアが更新されていない場合であることにより、ハードディスク装置1は、ステップSP66からステップSP68に移る。ここでハードディスク装置1は、AV機器2において実行される空きクラスタ検出のアルゴリズムと同一のアルゴリズムにより、システムエントリーエリアのデータより、空き領域の先頭を検出する。また同様にして、この空き領域の先頭から、記録処理情報より得られるクラスタ数の分だけ、順次空きクラスタを検出する。
【0061】
このようにして記録情報処理のクラスタ数に対応する空き領域をシステムエントリーエリアのデータより検出すると、ハードディスク装置は、続くステップSP69において、このようにして検出した空き領域を1つのファイルが記録されてなる領域に設定し、この1つのファイルに対応するように所定のメモリ上でFATのデータを更新する。また続くステップSP70(図5)において、この1つのファイルに対応するように、メモリ上においてディレクトリエリアのデータを更新する。
【0062】
このようにしてハードディスク装置1は、異常終了による記録済みデータを1つのファイルとして、メモリ上でシステムエントリーエリアのデータを更新し、この更新をAV機器2に通知する。
【0063】
これによりハードディスク装置1は、続くステップSP71において、AV機器2からFATエリアの更新を指示する書き込みコマンドが得られ、このコマンドにより続くステップSP72において、メモリ上の記録に対応するようにメインFAT及びサブFATの記録を更新する。またこの記録の更新により、続くステップSP73において、AV機器2に割り込みをかける。
【0064】
またこの割り込みにより、続くステップSP74において、AV機器2からディレクトリーエリアの更新を指示する書き込みコマンドが得られ、このコマンドにより続くステップSP75において、メモリ上の記録に対応するようにディレクトリーエリアの記録を更新する。またこれらの処理により、続くステップSP76において、記録処理情報をリセットした後、ステップSP77に移って、AV機器2に割り込みをかけ、ステップSP67に移ってこの処理手順を終了する。
【0065】
(2)実施の形態の動作
以上の構成において、ハードディスク装置1は(図2)、例えば撮像装置、セットトップボックス等のAV機器2に装着されて、電源が立ち上げられると、ハードディスク3のシステムエントリーエリアに記録されたデータが読み出され、このデータがAV機器2に転送されてメモリ2Bに記録される。
【0066】
このようにしてデータエリアの管理用データがハードディスク3よりダウンロードされた状態で、ハードディスク3に記録されたデータを再生してAV機器2に出力する場合、AV機器2において、メモリ2Bの記録より、ディレクトリエリアのデータが検索されて所望するファイルの先頭アドレスが検出され(図3)、さらにこの先頭アドレスを基準にしてFATエリアのデータを順次辿って連続するクラスタアドレスが検出され、これらによりこのファイルが記録されているクラスタアドレスがAV機器2で検出される。ハードディスク装置1では、このようにして検出したクラスタアドレスによる再生コマンドがAV機器2より出力され、このアドレスにより指定されたクラスタを順次再生して再生データを得、この再生データをAV機器2に出力する。これによりこのシステムにおいては、ハードディスク3に記録されたAVデータ等を再生することができる。
【0067】
これに対して記録時においては、メモリ2Bに記録されたFATエリアのデータより、AV機器2において、ハードディスク3上における空き領域が順次検出される。またこのようにして検出した空き領域のクラスタを指定した書き込みのコマンドがAV機器2より出力され、ハードディスク装置1においては、このコマンドにより指定された空きクラスタに順次入力されるAVデータを記録し、記録の完了したデータ量の情報による記録処理情報を記録する。また記録を完了すると、AV機器2の指示により、システムエントリーエリアの記録が更新され、またAV機器2にロードされてなるシステムエントリーエリアのデータが更新され、記録処理情報がリセットされる。
【0068】
データ量の大きなファイルを記録する場合、このファイルが所定のデータ量単位で区切られ、書き込みのコマンドがAV機器2より繰り返し発行されて各データ量のAVデータの記録が繰り返され、またこのAVデータの記録の繰り返しに対応して、順次、記録処理情報が更新される。またこのようにして1つのファイルの記録を完了すると、AV機器2の指示により、システムエントリーエリアの記録が更新され、またAV機器2にロードされてなるシステムエントリーエリアのデータが更新され、記録処理情報がリセットされる。
【0069】
このようにしてデータ量の大きなファイルを繰り返しの書き込みコマンドにより記録する際に、例えば落下、バッテリ切れ等の異常により記録困難となった場合、ハードディスク3では、システムエントリーエリアのデータが更新されていないことにより、システムエントリーエリアの記録によっては、この異常時までに記録した記録済みデータについては、再生することが困難になる。
【0070】
しかしながらこの実施の形態においては、所定のデータ量だけハードディスク3にAVデータを記録すると、記録処理情報を更新し、1つのファイルの記録の完了により管理用データを更新すると共に記録処理情報をリセットすることにより、この記録処理情報のリセットの有無により、このような異常により管理用データを更新しないで終了した記録済みデータの有無を検出することができる。またこのような記録済みデータの記録開始位置については、管理用データにより検出することができ、記録処理情報によるデータ量の分、この管理用データを順次辿って記録済みデータの末尾を確認することができる。これによりこのようにして検出される記録開始位置から記録済みみデータの末尾の領域までのデータを1つのファイルとして処理して、この記録処理情報により異常発生時点までに記録した記録済みデータの修復を図ることができ、これによりこの記録済みデータを有効に保護することが可能となる。
【0071】
またこの実施の形態においては、このようなファイルの記録が空き領域を順次辿って実行されることにより、ハードディスク3における記録単位であるクラスタ数により記録したデータ量を表すようにして、このクラスタ数を記録処理情報に設定して記録済み領域の末尾が示され、これにより何れの領域にこの種の記録済みデータが記録されているかを簡易かつ確実に検出することができる。これによりこの実施の形態においては、記録時の処理を簡略化するようになされ、その分、全体構成を簡略化することができる。またこの記録処理情報に割り当てられたクラスタ数が値0か否か判断することにより、システムエントリーエリアを正しく更新しないで動作を終了したか否か、すなわち異常による記録済みデータが存在するか否かを簡易に判断できるようになされている。
【0072】
すなわちハードディスク装置1においては、電源起動時、システムエントリーエリアのデータをAV機器2に転送した後、記録処理情報に設定されたクラスタ数が値0か否か判断し、これにより異常により動作を終了して、記録済みのデータがハードディスク3に記録されているか否か判断する。さらにこのような記録済みのデータがハードディスク3に残っている場合、システムエントリーエリアの記録より、先頭の空きクラスタを検出し、さらに記録処理情報に記録されたクラスタ数の分だけ、この先頭の空きクラスタより順次空きクラスタを検出し、このようにして検出したクラスタの記録を1つのファイルに設定し、この設定に対応するようにシステムエントリーエリアの記録を更新する。これによりこのハードディスク装置においては、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータを記録することができる。
【0073】
このようにして処理するにつき、この実施の形態においては、システムエントリーエリアにアクセスして単に記録処理情報を更新するだけの処理であることにより、書き込みのコマンドの都度、システムエントリーエリアのメインFAT、サブFAT、ディレクトリーエリアをアクセスして更新する場合のような(図1について説明した処理である)、シークに多大な時間を要することなく、連続するAVデータを記録することができる。
【0074】
(3)実施の形態の効果
以上の構成によれば、ホスト装置からの出力データを所定データ量だけ記録する毎に、所定領域に、記録したデータのデータ量の情報を記録すると共に、管理用データの更新時、このデータ量の情報をリセットすることにより、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができる。
【0075】
またこのとき、ハードディスクの記録単位であるクラスタを単位にして、このようなデータ量を示すことにより、管理用データによるファイル管理と対応付けて、記録済みデータの末尾を特定することができ、その分、全体の処理を簡略化することができる。
【0076】
またホスト装置からのコマンドにより管理用データを更新すると共に、データ量の情報をリセットすることにより、データ量の大きなファイルをホスト装置により管理して、1つのファイルの書き込みの終了により管理用データを更新することができ、これによりこのハードディスク装置を他のホスト装置に接続して従来によるファイル管理システムとの間で互換を図ることができる。
【0077】
また起動時、データ量の情報のリセットの有無を判断して記録済みデータを修復することにより、必要に応じて記録済みデータを修復して、無駄な処理を有効に回避することができる。
【0078】
またこの修復の処理において、管理用データにより空き領域の先頭領域を検出し、この先頭領域から1つのファイルを設定して管理用データを更新することにより、この種のファイル管理システムのアルゴリズムを有効に利用して、修復の処理を実行することができる。
【0079】
(4)他の実施の形態
なお上述の実施の形態においては、クラスタ数によりデータ量を記録する場合について述べたが、本発明はこれに限らず、例えばセクタ数によりデータ量を記録する場合等、必要に応じてハードディスクの記録単位でデータ量を記録する場合、さらには種々の表現方法によりデータ量を記録する場合に広く適用することができる。
【0080】
また上述の実施の形態においては、記録処理情報に単にデータ量の情報を割り当てる場合について述べたが、本発明はこれに限らず、その他にFATエントリ番号、ディレクトリ位置(そのファイルのディレクトリが書き込まれている位置)等も一緒に書込むようにしてもよい。なおこのようにFATエントリ番号を記録するようにすれば、修復処理において、先頭の空き領域を検出する処理を省略することができる。
【0081】
また上述の実施の形態においては、ホスト装置の管理により1つのファイルを記録して記録処理情報をリセットすると共に、管理用データを更新する場合について述べたが、本発明はこれに限らず、例えばハードディスクの取り外し時、電源の立ち下げ時等にこれらの処理を実行するようにしてもよい。
【0082】
また上述の実施の形態においては、記録処理情報を単に記録する場合について述べたが、本発明はこれに限らず、記録処理情報を2度書、3度書するようにし、またこれらを複数箇所に記録するようにし、信頼性を向上するようにしてもよい。
【0083】
また上述の実施の形態においては、本発明をハードディスク装置に適用する場合について述べたが、本発明はこれに限らず、光ディスク、光磁気ディスク等、種々のディスク状記録媒体にデータを記録する情報処理装置に広く適用することができる。
【0084】
【発明の効果】
上述のように本発明によれば、ホスト装置からの出力データを所定データ量だけ記録する毎に、所定領域に、記録したデータのデータ量の情報を記録すると共に、管理用データの更新時、このデータ量の情報をリセットすることにより、記録時に異常が発生した場合でも、記録済みのデータを有効に保護して確実にAVデータ等を記録することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係るハードディスク装置における書き込み時の処理手順を示すフローチャートである。
【図2】本発明の実施の形態に係るハードディスク装置を示すブロック図である。
【図3】図2のハードディスク装置におけるハードディスクのフォーマットを示す図表である。
【図4】図2のハードディスク装置における起動時の処理手順を示すフローチャートである。
【図5】図4の続きの処理手順を示すフローチャートである。
【図6】従来のハードディスクにおける記録フォーマットを示す図表である。
【図7】図6のディレクトリーエリアに記録されるデータを示す図表である。
【図8】図6のFATエリアに記録されるコードを示す図表である。
【図9】従来のシステムにおける起動時の処理手順を示すフローチャートである。
【図10】従来のシステムにおける書き込み時の処理手順を示すフローチャートである。
【図11】繰り返しのコマンドによるシステムエントリーエリアの更新処理の説明に供するフローチャートである。
【符号の説明】
1……ハードディスク装置、2……AV機器、2A……中央処理ユニット、2B、3……ハードディスク、10……バッファメモリ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information processing device and an information processing method, and can be applied to, for example, a removable hard disk device that records video data and audio data. According to the present invention, every time output data from the host device is recorded by a predetermined data amount, information of the data amount of the recorded data is recorded in a predetermined area, and when the management data is updated, the information of the data amount is recorded. reset However, at the time of startup, by executing a repair process based on the management data, During recording To Even if an abnormality occurs, recorded data is effectively protected so that AV data and the like can be reliably recorded.
[0002]
[Prior art]
Conventionally, in a hard disk device used as a peripheral of a personal computer, data recorded on the hard disk can be managed in units of clusters composed of a plurality of sectors by management data recorded on the hard disk. The management is performed by a personal computer as a host device.
[0003]
That is, as shown in FIG. 6, a hard disk usually divides an information recording surface into an inner peripheral area and an outer peripheral area, and the outer peripheral area is allocated to a system entry area.
[0004]
Further, in the hard disk, an information recording surface is concentrically divided into a plurality of zones, and tracks in each zone are divided into a plurality of sectors by dividing the tracks in the circumferential direction by a predetermined length. Hard disk Is Thus, the number of sectors per track is sequentially increased from the zone on the inner circumference side, and the information recording surface can be used efficiently by applying a zone bit recording technique of varying the recording frequency according to the zone. It has been done.
[0005]
The hard disk zoned and sectorized in this manner has a physical address based on the surface number of the information recording surface, the track number continuously allocated from the outer peripheral side of the information recording surface, and the sector number for specifying the sector in each track. Are set, and user data is file-managed by logical addresses sequentially set from the outer peripheral side of the information recording surface in correspondence with the physical address.
[0006]
Here, the logical address is represented by a cluster number in units of a cluster of a set of a plurality of logical sectors. That is, the logical sector is an area corresponding to a data recording unit set with the first area (in this case, the outermost circumference) on the information recording surface as 0 sector. For example, one physical sector is replaced with one logical sector. Correspondingly, the logical sector number can be represented by the relational expression of (logical sector number = number of sectors per track × (surface number + number of surfaces × track number) + sector number−1). . Here, the surface number, the track number, and the sector number are based on physical addresses.
[0007]
Here, the logical sector is configured so that 512 bytes of data can be recorded in one logical sector in terms of user data, and one cluster is constituted by a plurality of logical sectors. Note that one cluster is generally composed of power-of-two sectors, and is specified by a cluster number which is a serial number starting from 2 in a file area in a data area for recording user data.
[0008]
In the data area, a cluster number is assigned to each cluster set in this way, and the cluster can be accessed in cluster units based on the cluster number. In this description, the cluster number is shown in a 4-digit hexadecimal format.
[0009]
On the other hand, the system entry area is further divided into a boot area, a FAT (Fail Allocation Table) area, and a directory area, and data defining the structure of the disc is recorded in the boot area. On the other hand, in the FAT area and the directory area, address information and the like necessary for accessing the user data recorded in the data area are recorded. In the FAT area, the same information is redundantly recorded in the main FAT and the sub FAT, so that reliability can be ensured.
[0010]
That is, in the directory area, the file name of each file recorded in the data area, the cluster number of the first cluster which is the recording start position of each file, and the like are recorded. On the other hand, in the FAT area, a cluster number and the like of each cluster continuous with the first cluster of each file are recorded. This allows the hard disk Is After detecting the top cluster number of the desired file name from the directory area, and sequentially detecting the cluster number following this top cluster number from the FAT area, it is possible to detect the addresses of consecutive clusters constituting one file. It has been made.
[0011]
Thus, in FIG. 6, when the file 1 is recorded in the clusters having the cluster numbers 1234h to 1240h in the data area, the code indicating the cluster number 1234h of the first cluster of the file 1 is recorded in the directory area. Further, a cluster number subsequent to the cluster number 1234h is sequentially recorded in a corresponding area of the FAT area. In FIG. 6, EOF (End Of File) is identification information indicating the last cluster of one file.
[0012]
More specifically, in the directory area, file management data having the configuration shown in FIG. 7 is recorded for each file recorded in the data area. That is, in the file management data, the file name is assigned to the first 8 bytes, and the extension of each file is assigned to the next 3 bytes. Data indicating the attribute of the file is assigned to the next 1 byte, and the next 10 bytes are assigned to the data for reservation. The next 2 bytes are the recording start time data, and the next 2 bytes are the recording Of the day A cluster number, which is the first cluster number, is assigned to the data and the next two bytes are assigned. Note that data of the file length is allocated to the last four bytes.
[0013]
On the other hand, in the FAT area (FIG. 6), a cluster address is assigned corresponding to the cluster number of the data area, and the cluster number of the cluster following each cluster address is recorded. As shown in FIG. 8, among codes not assigned to these cluster numbers, predetermined codes are assigned to identification information indicating a free area, a defective cluster, and EOF, respectively.
[0014]
Thus, the hard disk detects the leading cluster number of the desired file from the directory area and sequentially traces the FAT area, thereby sequentially tracing the cluster number of the cluster in which the desired file is recorded. This This file can be accessed by the cluster number detected in this way. Similarly, the FAT area can be accessed to detect a free area in the data area. These allow the hard disk to manage the information recording surface in predetermined block units.
[0015]
On the other hand, interfaces for accessing the hard disk device include ATA (AT Attachment), SCSI (Small Computer System Interface), and the like. In a personal computer using these interfaces, for example, when the power is turned on, data recorded on the hard disk is used. Upload management data.
[0016]
That is, FIG. 9 shows a processing procedure showing the upload of the management data. In the hard disk device, for example, when the power is turned on, the process proceeds from step SP1 to step SP2, and a read command of the system entry area is issued from the host device. In the following step SP3, in response to this command, data in the system entry area is read from the hard disk and transmitted to the host device. Accordingly, in the conventional system, in the subsequent step SP4, the data of the system entry area is recorded in the memory of the host device so that the data can be used for issuing a series of write and read commands, and then the process proceeds to step SP5. This processing procedure ends.
[0017]
In the personal computer, parameters are set on the basis of the management data uploaded in this manner, and access is instructed to the hard disk device. That is, for example, when reading a desired file, a read command is issued by setting the start address of the file (FAT entry number of the directory) and the transfer length in clusters as parameters. Also at the time of writing, similarly, a write command is issued, and data to be recorded is sequentially transmitted.
[0018]
That is, FIG. 10 is a flowchart showing a write process based on management data recorded in the memory of the host device. In this case, the host device proceeds from step SP11 to step SP12, searches the management data recorded in the host memory, and detects a cluster number (free cluster address) in which a code indicating a free area is set.
[0019]
Upon detecting the free cluster address in this way, in the next step SP13, the host device sets a parameter (which is a write address based on an LBA (logical block address)) based on the free cluster address and the transfer length, and issues a write command. After the issuance, in step SP14, the data to be recorded is sent to the hard disk device for the transfer length. In the hard disk device, in the following step SP15, the data transmitted subsequently in response to the write command is recorded in the buffer memory, and in the following step SP16, the data recorded in the buffer memory is stored in the free space specified by the host device. Record sequentially in the cluster.
[0020]
When the recording of the data transmitted from the host device is completed in this way, the hard disk device interrupts the host device in step SP17. In the host apparatus, the process proceeds to step SP18 due to the interruption, and determines whether or not the transfer of all data to be recorded has been completed. If a negative result is obtained here, the process returns to step SP12. As a result, the host device repeatedly issues a write command for a file having a large data amount and sends out the data. In the hard disk device, in response to the command, the data is sequentially recorded in an empty cluster designated by the host device. I do.
[0021]
On the other hand, when the transfer of all data to be recorded is completed, a positive result is obtained in step SP18, and the host device proceeds to step SP19, in which the contents of the system entry area recorded in the host memory are recorded in this file. And instructs the hard disk device to update the system entry area so as to correspond to this update, and moves to step SP20 to end this processing procedure.
[0022]
With these processes, the conventional hard disk device executes the writing and reading processes under the management of the host device.
[0023]
[Problems to be solved by the invention]
In recent years, this type of hard disk device has been miniaturized and has a high recording density, and the recording of audio data and video data (hereinafter referred to as AV data) can be carried by using the hard disk device. Thus, it is considered that a recording device capable of recording for a long time can be created. That is, it is considered that various AV devices such as a small and portable video camera can be configured by using the hard disk device instead of the video tape recorder.
[0024]
However, in the case where various types of AV equipment are configured by applying to recording of AV data in this way, the number of abnormal terminations during recording is significantly increased as compared with the case where the device is used as a peripheral of a computer. It is thought that. That is, the operation may be stopped due to running out of the battery during recording, or the power supply may be turned off during recording due to an erroneous operation. Further, there is a case where the recording apparatus is accidentally removed, and further, an abnormality due to vibration, drop, or the like is also considered.
[0025]
In the interface of the conventional hard disk device, after the recording of data to the hard disk is completed as described above, the system entry area is updated, and the data area is reproduced according to the recording of the updated system entry area. As a result, when such an abnormality occurs, there is a problem that data recorded on the hard disk cannot be reproduced correctly up to the time of occurrence of the abnormality.
[0026]
One method of solving this problem is to update the directory area and the FAT area each time data is written during recording, so that the data recorded before the occurrence of an abnormality can be recorded by recording the directory area and the FAT area. It is thought that it can be protected.
[0027]
That is, in this type of interface, since the maximum transfer length is, for example, 256 sectors (in the case of the ATA standard), when accessing a file having a large size, the personal computer sequentially updates parameters and issues a read command. Issue repeatedly.
[0028]
In the hard disk device, the data is reproduced from the head cluster designated in response to this command by the transfer length and output to the personal computer, and when reading a large file, the read command from the personal computer is read. In response to this, a series of data is reproduced from a hard disk and output to a personal computer by repeating the same processing.
[0029]
As in the case of reading, when writing a large file, the personal computer sequentially updates the parameters and repeatedly issues a read command. In response to this, the hard disk device writes the read command from the personal computer. By repeating the same processing in response to a command, a series of data is input from a personal computer and recorded on a hard disk.
[0030]
That is, FIG. 11 is a flowchart illustrating a processing procedure when a file is registered for each command from the host device. In this case, the host device proceeds from step SP21 to step SP22, searches the management data recorded in the host memory, and detects a cluster number (free cluster address) in which a code indicating a free area is set.
[0031]
When the free cluster address is detected in this manner, the host device sets a parameter based on the free cluster address and the transfer length and issues a write command in the following step SP23, and then, in the next step SP24, issues data to be recorded. The data is transmitted to the hard disk device for the transfer length. In the hard disk device, in the following step SP25, data transmitted subsequently in response to the write command is recorded in the buffer memory, and in the following step SP26, the data recorded in the buffer memory is stored in the free space designated by the host device. Record sequentially in the cluster.
[0032]
When the recording of the data transmitted from the host device is completed in this way, the hard disk device updates the recording of the main FAT so as to correspond to the recording of the data in step SP27, and then similarly proceeds to step SP28. Update the record of the sub-FAT. In the following step SP29, the record in the directory area is updated. In recording the main FAT, sub-FAT, and directory area, the hard disk device interrupts the host device upon completion of the immediately preceding process, and executes each write process by a command issued from the host device in response to the interrupt. It has been made to be.
[0033]
When the system entry area is updated in this way, the hard disk device interrupts the host device in step SP30. In response to this interrupt, the host device proceeds to step SP31 where it determines whether or not all data transfer for recording has been completed. If a negative result is obtained here, the process returns to step SP22. If a positive result is obtained at step SP32, the process moves to step SP32 and this processing procedure ends. As a result, the host device repeatedly issues a write command for a file having a large data amount and sends out the data. In the hard disk device, in response to the command, the data is sequentially recorded in an empty cluster designated by the host device. At the same time, the management data is sequentially updated in response to this.
[0034]
However, in this method, it is necessary to execute three seeks to access the main FAT, sub FAT, and directory area. According to the seek time required for this seek and the rotation waiting time, the file registration executed for each command is performed. Takes time. Thus, in the case of this method, the time required for file registration is longer than the actual AV data write time, and there is a problem that it is difficult to record continuous AV data without interruption. Incidentally, in the hard disk device, the recording speed depends on the linear recording density, the disk rotation speed, and the disk diameter. Therefore, when the diameter of the hard disk is reduced as in recent years, such a problem is remarkable.
[0035]
The present invention has been made in view of the above points, and an information processing apparatus and information capable of effectively protecting recorded data and reliably recording AV data and the like even when an abnormality occurs during recording. It is intended to propose a processing method.
[0036]
[Means for Solving the Problems]
In order to solve this problem, the invention according to claim 1 is applied to an information processing apparatus, In response to an instruction from the host device, the management data is read from the recording medium and output to the host device. The data area is managed by the control of the host device based on the management data output to the host device. Is updated, and the host device is updated by a command from the host device. Each time the output data is recorded for a predetermined data amount, In the recording area for management data The information of the data amount of the recorded output data is recorded, and at a predetermined timing, the management data is updated so as to correspond to the recording of one file by the output data in the data area, and the information of the data amount is updated. Reset, At the time of start-up, it is determined whether or not the data amount information is reset. Based on the determination result, a head area set as a free area is detected by the management data. The data recorded up to the area specified by is set in one file, the management data is updated, and the data amount information is reset. I do.
[0037]
Claims 4 In the invention of the above, applied to the information processing method, In response to an instruction from the host device, the management data is read from the recording medium and output to the host device. The data area is managed by the control of the host device based on the management data output to the host device. To update the output data output from the host device. Every time a predetermined amount of data is recorded, In the management data recording area, The data amount information of the recorded output data is recorded, and at a predetermined timing, the management data is updated so as to correspond to the recording of one file by the output data in the data area, and the data amount information is reset. At the time of startup, it is determined whether or not the data amount information is reset. Based on the result of the determination, the head area set as a free area is detected by the management data, and the data amount is determined from this head area. The data recorded up to the area specified by the information is set in one file, the management data is updated, and the data amount information is reset. I do.
[0038]
According to the configuration of claim 1, every time the output data is recorded by a predetermined data amount, In the management data recording area, The data amount information of the recorded output data is recorded, and at a predetermined timing, the management data is updated so as to correspond to the recording of one file by the output data in the data area, and the data amount information is reset. Accordingly, even if it becomes difficult to update the management data at the predetermined timing due to various abnormalities, it is determined whether or not the recorded data exists based on whether or not the data amount information is reset. Can be. Thus, at the time of start-up, it is determined whether or not the data amount information is reset. Based on the determination result, the head area set as a free area is detected by the management data, and the data amount is determined from this head area. By setting data recorded up to the area specified by the information in one file, updating the management data, and resetting the information on the data amount, From the management data, An abnormal occurrence has occurred The recording start position of the recorded data can be detected, and the end of the recorded data can be detected from the recording start position based on the data amount information. And The file from the recording start position detected in this way to the end of the recorded data is handled as one file. Can be Even if an abnormality occurs during recording, the recorded data can be effectively protected and AV data and the like can be reliably recorded.
[0039]
This makes the claim 4 According to the configuration, even if an abnormality occurs during recording, it is possible to provide an information processing method capable of effectively protecting recorded data and recording AV data or the like without fail.
[0040]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.
[0041]
(1) Configuration of the embodiment
FIG. 2 is a block diagram showing a hard disk device according to the embodiment of the present invention. The hard disk device 1 is mounted on an AV device 2 such as an imaging device and a set-top box, a personal computer (PC), and the like, and records various data output from these devices. In addition, recorded data is reproduced and output while being attached to these devices or being detached from these devices and attached to other AV devices, personal computers, or the like.
[0042]
Therefore, the hard disk device 1 is detachably held in an AV device or the like, and inputs and outputs data and text data obtained by compressing the AV data in a predetermined format to and from the AV device 2. A control command, status data, address, and the like accompanying the input / output of the data are input / output to / from these devices. Further, these data are recorded on the hard disk 3, and the data recorded on the hard disk 3 is reproduced and output.
[0043]
Here, the hard disk 3 records AV data data output from the AV device 2 in the format described above with reference to FIGS. 6 to 8, reproduces the recorded AV data data, and outputs the data to the AV device 2.
[0044]
The servo circuit 4 drives the motor (M) 6 under the control of the hard disk control circuit 5, thereby rotating the hard disk 3 at a predetermined rotation speed. Similarly, the servo circuit 4 drives the motor (M) 8 to seek the magnetic head, and further performs tracking control.
[0045]
Under the control of the hard disk control circuit 5, the read / write data channel unit 9 encodes the output data of the hard disk control circuit 5 at the time of recording by a method suitable for the characteristics of the recording / reproducing system to generate bit sequence data, The magnetic head is driven by this data. At the time of reproduction, the read / write data channel section 9 performs signal processing on a reproduction signal obtained from the magnetic head to generate reproduction data, and outputs the reproduction data to the hard disk control circuit 5.
[0046]
The hard disk control circuit 5 is a control circuit that manages data on the hard disk 3 according to an instruction from the interface control circuit 11, and controls the operation of the servo circuit 4 in accordance with AV data input via the buffer memory 10, By outputting the AV data to the read / write data channel section 9, the AV data is recorded in the cluster specified by the interface control circuit 11. At the time of reproduction, the operation of the servo circuit 4 is similarly controlled to output the output data of the read / write data channel section 9 to the buffer memory 10, thereby reproducing the cluster specified by the interface control circuit 11.
[0047]
The interface control circuit (IF control) 11 is formed of, for example, a SCSI controller, an IDE controller, an ATA controller, and the like, and constitutes an input / output circuit for transmitting and receiving data to and from the AV device 2 and control commands. That is, the interface control circuit 11 analyzes a command input from the AV device 2 and parameters set in the command, and controls operations of the hard disk control circuit 5 and the like. At the time of writing, the AV data input from the AV device 2 is output to the hard disk control circuit 5 via the buffer memory 10, and at the time of reproduction, the hard disk control circuit 5 is output via the buffer memory 10. The output AV data is output to the AV device 2.
[0048]
In response to this, in the AV device 2, various commands and the like are transmitted to the hard disk device 1 in accordance with an instruction from a higher-level controller by processing of a central processing unit (CPU) 2A having a work area secured in a memory 2B. .
[0049]
In this processing, when the power is turned on, the central processing unit 2A executes a predetermined processing procedure to store data of the boot area, FAT area, and directory area, which are management data recorded in the system entry area of the hard disk 3, in the memory 2B. And sends various commands by setting parameters based on the uploaded data.
[0050]
That is, FIG. 1 is a flowchart showing a writing process based on the management data recorded in the memory 2B. In this case, in the central processing unit 2A of the AV device 2, the process proceeds from step SP41 to step SP42, in which the management data recorded in the memory 2B is searched, and a cluster number (free cluster address) in which a code indicating a free area is set. ) Is detected.
[0051]
Upon detecting the free cluster address in this manner, the host device sets a parameter based on the free cluster address and the transfer length and issues a write command in the subsequent step SP43, and then issues data to be recorded in the subsequent step SP44. The data is transmitted to the hard disk device for the transfer length. In the hard disk device, in the following step SP45, data transmitted subsequently in response to the write command is recorded in the buffer memory 10, and in the following step SP46, the data recorded in the buffer memory 10 is designated by the AV device 2. Are sequentially recorded in the empty clusters.
[0052]
When the recording of the data transmitted from the AV device 2 is completed in this way, in step SP47, the hard disk device records the recording processing information of the recorded AV data in the predetermined area for the file to be recorded in this manner. I do. Here, in this embodiment, the recording area is a previously set area in the system entry area as shown in FIG. 3 in comparison with FIG. On the other hand, the recording processing information is assigned information on the amount of data for which recording has been completed, and this data amount (the number of clusters) is expressed in units of clusters, which are recording units of the hard disk 3. I have.
[0053]
After recording the recording processing information in this way, the hard disk device proceeds to step SP48 and interrupts the AV device 2. In the AV device 2, the process proceeds to step SP49 by this interrupt, and determines whether or not transfer of all data to be recorded has been completed. If a negative result is obtained here, the process returns to step SP42. Thus, the AV device 2 repeatedly issues a write command for a file having a large data amount and sends out data. In the hard disk device, the AV device 2 updates the recording processing information in response to the command, and Data is sequentially recorded in designated empty clusters.
[0054]
On the other hand, when the transfer of all data to be recorded is completed, a positive result is obtained in step SP49, and the AV device 2 proceeds to step SP50, and the recording in the memory 2B is performed so as to correspond to the recording of this file. And instructs the hard disk device 1 to update the system entry area. In a succeeding step SP51, a reset of the recording processing information is instructed, and in the hard disk device 1, the value of the number of clusters according to the recording processing information is updated to a value 0 according to the instruction. I do.
[0055]
With these processes, the hard disk device records recorded commands in succession by the AV device 2 in succession. Mino While recording the data amount information in the system entry area of the hard disk 3, the AV data output from the AV device 2 is recorded, and the FAT area and the like are updated according to the instruction of the AV device 2, and the recording process information is reset. Thus, even if an abnormality occurs during recording, data restoration processing can be executed as needed.
[0056]
FIG. 4 is a flowchart illustrating a processing procedure when the hard disk device 1 is started. In the process at the time of startup, the hard disk device 1 executes a restoration process as necessary based on the above-mentioned recording process information, thereby effectively protecting data recorded due to abnormal termination.
[0057]
That is, in the hard disk device, when the power is turned on, the process proceeds from step SP61 to step SP62, where a read command of the system entry area is issued from the AV device 2, and in the following step SP63, the data of the system entry area is read in response to this command. The data is read from the hard disk and transmitted to the AV device 2. Thus, in the AV device 2, in the subsequent step SP64, the data of the system entry area is recorded in the memory 2B.
[0058]
When the same processing as the conventional power-on operation is performed in this way, in the hard disk device 1, the recording processing information is read out in the following step SP65, and in the following step SP66, it is determined whether or not this recording processing information has been reset. That is, in this embodiment, it is determined whether or not the number of clusters, which is the file size, is set to the value 0.
[0059]
Here, if a positive result is obtained, in this case, the system entry area is updated to correspond to the recording of the data area without ending the operation in the middle of the recording due to any abnormality, and the operation ends. Then, the hard disk device 1 proceeds from step SP66 to step SP67 and ends this processing procedure (FIG. 5).
[0060]
On the other hand, if a negative result is obtained in step SP66, the operation ends in the middle of recording due to some abnormality, and the system entry area is not updated so as to correspond to the recording of the data area. Then, the hard disk device 1 proceeds from step SP66 to step SP68. Here, the hard disk device 1 detects the head of the free area from the data in the system entry area by the same algorithm as the algorithm for detecting the free cluster executed in the AV device 2. Similarly, free clusters are sequentially detected from the beginning of this free area by the number of clusters obtained from the recording processing information.
[0061]
When the free area corresponding to the number of clusters of the recording information processing is detected from the data in the system entry area in this manner, the hard disk drive proceeds to step SP69 to record the detected free area as one file. Then, the FAT data is updated on a predetermined memory so as to correspond to this one file. In the following step SP70 (FIG. 5), the data in the directory area is updated on the memory so as to correspond to this one file.
[0062]
In this way, the hard disk device 1 updates the data in the system entry area on the memory with the data recorded due to the abnormal termination as one file, and notifies the AV device 2 of the update.
[0063]
Thus, in the subsequent step SP71, the hard disk device 1 obtains a write command for instructing the updating of the FAT area from the AV device 2, and in the subsequent step SP72, the main FAT and the sub FAT correspond to the recording on the memory. Update the FAT record. By updating the record, the AV device 2 is interrupted in the following step SP73.
[0064]
In addition, due to this interruption, in the following step SP74, a write command instructing the update of the directory area is obtained from the AV device 2, and in the subsequent step SP75, the recording of the directory area is updated so as to correspond to the recording on the memory. I do. Further, in these steps, after the recording processing information is reset in the subsequent step SP76, the process proceeds to step SP77 to interrupt the AV device 2, and proceeds to step SP67 to end this processing procedure.
[0065]
(2) Operation of the embodiment
In the above configuration, the hard disk device 1 (FIG. 2) is mounted on an AV device 2 such as an imaging device or a set-top box, and when the power is turned on, the data recorded in the system entry area of the hard disk 3 is transferred. The data is read, transferred to the AV device 2, and recorded in the memory 2B.
[0066]
When the data recorded on the hard disk 3 is reproduced and output to the AV device 2 in a state where the management data in the data area is downloaded from the hard disk 3 in this manner, the AV device 2 performs The data in the directory area is searched to detect the start address of the desired file (FIG. 3). Further, based on the start address, the data in the FAT area are sequentially traced to detect continuous cluster addresses. Is detected by the AV device 2. In the hard disk device 1, a playback command based on the cluster address detected in this way is output from the AV device 2, the cluster specified by this address is sequentially played back to obtain playback data, and the playback data is output to the AV device 2. I do. Thus, in this system, AV data and the like recorded on the hard disk 3 can be reproduced.
[0067]
On the other hand, at the time of recording, in the AV device 2, empty areas on the hard disk 3 are sequentially detected from the data in the FAT area recorded in the memory 2B. A write command specifying the cluster of the empty area detected in this way is output from the AV device 2, and the hard disk device 1 records the AV data sequentially input to the empty cluster specified by the command, The recording processing information based on the information of the data amount for which recording has been completed is recorded. When the recording is completed, the recording of the system entry area is updated by the instruction of the AV device 2, the data of the system entry area loaded on the AV device 2 is updated, and the recording processing information is reset.
[0068]
When a file having a large data amount is recorded, the file is divided in units of a predetermined data amount, a write command is repeatedly issued from the AV device 2, and recording of the AV data of each data amount is repeated. In response to the repetition of the recording, the recording processing information is sequentially updated. When the recording of one file is completed in this way, the recording of the system entry area is updated according to an instruction from the AV device 2, and the data of the system entry area loaded on the AV device 2 is updated. Information is reset.
[0069]
When recording a file having a large amount of data by a repetitive write command as described above, if recording becomes difficult due to an abnormality such as dropping or running out of battery, data in the system entry area is not updated on the hard disk 3. As a result, depending on the recording in the system entry area, it becomes difficult to reproduce the recorded data recorded up to this abnormal time.
[0070]
However, in this embodiment, when the AV data is recorded on the hard disk 3 by a predetermined data amount, the recording processing information is updated, the management data is updated when the recording of one file is completed, and the recording processing information is reset. This makes it possible to detect the presence or absence of recorded data that has been terminated without updating the management data due to such an abnormality, based on whether or not the recording processing information has been reset. Further, the recording start position of such recorded data can be detected by the management data, and the end of the recorded data is confirmed by sequentially tracing the management data by the data amount according to the recording processing information. Can be. Thus, the data from the recording start position detected in this way to the end area of the recorded data is processed as one file, and the recorded processing information is used to recover the recorded data recorded up to the time of occurrence of the abnormality. Therefore, it is possible to effectively protect the recorded data.
[0071]
Further, in this embodiment, the recording of such a file is sequentially performed in the free space, so that the amount of data recorded is represented by the number of clusters, which is a recording unit on the hard disk 3, so that the number of clusters is calculated. Is set in the recording processing information to indicate the end of the recorded area, whereby it is possible to easily and reliably detect in which area this type of recorded data is recorded. Thus, in this embodiment, the processing at the time of recording is simplified, and the overall configuration can be simplified accordingly. By judging whether or not the number of clusters allocated to this recording processing information is a value 0, it is determined whether or not the operation has been completed without correctly updating the system entry area, that is, whether or not recorded data due to an abnormality exists. Can be easily determined.
[0072]
That is, in the hard disk device 1, when the power is turned on, the data in the system entry area is transferred to the AV device 2, and then it is determined whether or not the number of clusters set in the recording processing information is 0, thereby ending the operation due to an abnormality. Then, it is determined whether or not the recorded data is recorded on the hard disk 3. Further, when such recorded data remains on the hard disk 3, the head empty cluster is detected from the recording of the system entry area, and the number of the head empty clusters is further increased by the number of clusters recorded in the recording processing information. Empty clusters are sequentially detected from the clusters, the record of the cluster thus detected is set in one file, and the record in the system entry area is updated to correspond to this setting. As a result, in the hard disk device, even if an abnormality occurs during recording, the recorded data can be effectively protected and AV data can be reliably recorded.
[0073]
In this embodiment, the processing is performed merely to update the recording processing information by accessing the system entry area, so that each time a write command is issued, the main FAT, Such as the case of accessing and updating the sub-FAT and directory area (Fig. 1 1 ), It is possible to record continuous AV data without requiring much time for seeking.
[0074]
(3) Effects of the embodiment
According to the above configuration, every time output data from the host device is recorded by a predetermined data amount, information on the data amount of the recorded data is recorded in a predetermined area, and when the management data is updated, the data amount is updated. By resetting this information, even if an abnormality occurs during recording, the recorded data can be effectively protected and AV data and the like can be reliably recorded.
[0075]
Also, at this time, by indicating such a data amount in units of a cluster which is a recording unit of the hard disk, it is possible to identify the end of the recorded data in association with the file management by the management data. Accordingly, the entire processing can be simplified.
[0076]
In addition, the management data is updated by a command from the host device, and the information of the data amount is reset, so that a file having a large data amount is managed by the host device. The hard disk drive can be connected to another host device so that compatibility with a conventional file management system can be achieved.
[0077]
Further, at the time of activation, by judging the presence or absence of reset of the information of the data amount and restoring the recorded data, the recorded data can be restored as necessary, and wasteful processing can be effectively avoided.
[0078]
In this restoration process, the head area of the free area is detected based on the management data, and one file is set from the head area to update the management data, thereby enabling the algorithm of this type of file management system to be effective. To perform a repair process.
[0079]
(4) Other embodiments
In the above-described embodiment, the case of recording the data amount by the number of clusters has been described. However, the present invention is not limited to this. The present invention can be widely applied to a case where the data amount is recorded in units and a case where the data amount is recorded by various expression methods.
[0080]
Further, in the above-described embodiment, the case where the data amount information is simply assigned to the recording processing information has been described. However, the present invention is not limited to this, and the FAT entry number, the directory position (the directory of the file is written, etc.) May be written together. If the FAT entry number is recorded in this way, it is possible to omit the process of detecting the leading empty area in the restoration process.
[0081]
Further, in the above-described embodiment, the case where one file is recorded by the management of the host device to reset the recording processing information and update the management data has been described. However, the present invention is not limited to this. These processes may be executed when the hard disk is removed, when the power is turned off, or the like.
[0082]
In the above-described embodiment, the case where the recording processing information is simply recorded has been described. However, the present invention is not limited to this, and the recording processing information is written twice or three times. May be recorded to improve reliability.
[0083]
Further, in the above-described embodiment, the case where the present invention is applied to a hard disk device has been described. However, the present invention is not limited to this, and information for recording data on various disk-shaped recording media such as an optical disk and a magneto-optical disk. It can be widely applied to processing equipment.
[0084]
【The invention's effect】
As described above, according to the present invention, every time output data from the host device is recorded by a predetermined data amount, information on the data amount of the recorded data is recorded in a predetermined area, and when the management data is updated, By resetting the data amount information, even if an abnormality occurs during recording, the recorded data can be effectively protected and AV data or the like can be reliably recorded.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a writing procedure in a hard disk device according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a hard disk drive according to the embodiment of the present invention.
FIG. 3 is a chart showing a format of a hard disk in the hard disk device of FIG. 2;
FIG. 4 is a flowchart showing a processing procedure at the time of startup in the hard disk device of FIG. 2;
FIG. 5 is a flowchart showing a processing procedure following FIG. 4;
FIG. 6 is a table showing a recording format in a conventional hard disk.
FIG. 7 is a table showing data recorded in a directory area of FIG. 6;
FIG. 8 is a table showing codes recorded in a FAT area of FIG. 6;
FIG. 9 is a flowchart showing a processing procedure at the time of startup in a conventional system.
FIG. 10 is a flowchart showing a processing procedure at the time of writing in a conventional system.
FIG. 11 is a flowchart illustrating a process of updating a system entry area by a repeated command.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Hard disk device, 2 ... AV equipment, 2A ... Central processing unit, 2B, 3 ... Hard disk, 10 ... Buffer memory

Claims (4)

ホスト装置の制御に応じてディスク状記録媒体をアクセスする情報処理装置であって、
前記ディスク状記録媒体は、
情報記録面が同心円状に分割されて、前記ホスト装置の出力データを記録するデータエリアと、前記データエリアに記録されたデータを管理する管理用データを記録する管理用データの記録エリアとが設定され、
前記情報処理装置は、
前記ホスト装置からの指示により、前記記録媒体から前記管理用データを読み出して前記ホスト装置に出力し、該ホスト装置に出力した前記管理用データに基づいた前記ホスト装置による制御により、前記データエリアを管理し、また前記管理用データを更新し、
前記ホスト装置からのコマンドにより前記ホスト装置の出力データを所定データ量だけ記録する毎に、前記管理用データの記録エリアに、記録した前記出力データのデータ量の情報を記録し、
所定のタイミングで、前記出力データによる1つのファイルの前記データエリアへの記録に対応するように、前記管理用データを更新すると共に前記データ量の情報をリセットし、
起動時においては、前記データ量の情報のリセットの有無を判定し、
該判定結果に基づいて、前記管理用データにより、空き領域に設定されてなる先頭領域を検出し、前記先頭領域から前記データ量の情報により特定される領域までの間に記録されたデータを、1つのファイルに設定して、前記管理用データを更新すると共に、前記データ量の情報をリセットする
ことを特徴とする情報処理装置。
An information processing apparatus for accessing a disk-shaped recording medium according to control of a host device,
The disk-shaped recording medium,
An information recording surface is divided concentrically, and a data area for recording output data of the host device and a recording area for management data for recording management data for managing data recorded in the data area are set. And
The information processing device,
According to an instruction from the host device, the management data is read from the recording medium and output to the host device, and the data area is controlled by the host device based on the management data output to the host device. Managing and updating the management data,
Each time the output data of the host device is recorded by a predetermined data amount by a command from the host device , information of the data amount of the output data recorded is recorded in the recording area of the management data ,
At a predetermined timing, the management data is updated and the data amount information is reset so as to correspond to recording of one file in the data area by the output data ,
At the time of activation, it is determined whether or not the information of the data amount is reset,
Based on the determination result, the management data detects a head area set as a free area, and records data recorded from the head area to an area specified by the data amount information, An information processing apparatus , wherein the information for setting is set in one file, the management data is updated, and the information on the data amount is reset .
前記ディスク状記録媒体は、
情報記録面が所定の記録単位で区切られ、
前記データ量の情報は、
前記記録単位により表されるデータ量である
ことを特徴とする請求項1に記載の情報処理装置。
The disk-shaped recording medium,
The information recording surface is separated by a predetermined recording unit,
The information on the data amount is:
2. The information processing apparatus according to claim 1, wherein the data amount is a data amount represented by the recording unit.
前記所定のタイミングが、前記出力データによる1つのファイルの書き込みの完了により、前記ホスト装置から前記管理用データの更新が指示されるタイミングである
ことを特徴とする請求項1に記載の情報処理装置。
2. The information processing apparatus according to claim 1, wherein the predetermined timing is a timing at which an update of the management data is instructed from the host device upon completion of writing of one file by the output data. .
ホスト装置の制御に応じてディスク状記録媒体をアクセスする情報処理方法であって、
前記ディスク状記録媒体は、
情報記録面が同心円状に分割されて、前記ホスト装置の出力データを記録するデータエリアと、前記データエリアに記録されたデータを管理する管理用データを記録する管理用データの記録エリアとが設定され、
前記情報処理方法は、
前記ホスト装置からの指示により、前記記録媒体から前記管理用データを読み出して前記ホスト装置に出力し、該ホスト装置に出力した前記管理用データに基づいた前記ホスト装置による制御により、前記データエリアを管理し、また前記管理用データを更新し、
前記ホスト装置から出力される出力データを所定データ量だけ記録する毎に、前記管理用データの記録エリアに、記録した前記出力データのデータ量の情報を記録し、
所定のタイミングで、前記出力データによる1つのファイルの前記データエリアへの記録に対応するように、前記管理用データを更新すると共に、前記データ量の情報をリセットし、
起動時においては、前記データ量の情報のリセットの有無を判定し、
該判定結果に基づいて、前記管理用データにより、空き領域に設定されてなる先頭領域 を検出し、前記先頭領域から前記データ量の情報により特定される領域までの間に記録されたデータを、1つのファイルに設定して、前記管理用データを更新すると共に、前記データ量の情報をリセットする
ことを特徴とする情報処理方法。
An information processing method for accessing a disk-shaped recording medium according to control of a host device,
The disk-shaped recording medium,
An information recording surface is divided concentrically, and a data area for recording output data of the host device and a recording area for management data for recording management data for managing data recorded in the data area are set. And
The information processing method includes:
According to an instruction from the host device, the management data is read from the recording medium and output to the host device, and the data area is controlled by the host device based on the management data output to the host device. Managing and updating the management data,
Every time the output data output from the host device is recorded by a predetermined data amount, in the recording area of the management data, information on the data amount of the output data recorded is recorded,
At a predetermined timing, the management data is updated so as to correspond to recording of one file in the data area by the output data, and information of the data amount is reset,
At the time of activation, it is determined whether or not the information of the data amount is reset,
Based on the determination result, the management data detects a head area set as a free area, and records data recorded from the head area to an area specified by the data amount information, An information processing method , wherein the management data is updated in one file, and the data amount information is reset .
JP2001211953A 2001-07-12 2001-07-12 Information processing apparatus and information processing method Expired - Fee Related JP3601702B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2001211953A JP3601702B2 (en) 2001-07-12 2001-07-12 Information processing apparatus and information processing method
PCT/JP2002/006783 WO2003009287A1 (en) 2001-07-12 2002-07-04 Information processor, and information processing method
TW91114839A TW588329B (en) 2001-07-12 2002-07-04 Data processing device and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001211953A JP3601702B2 (en) 2001-07-12 2001-07-12 Information processing apparatus and information processing method

Publications (2)

Publication Number Publication Date
JP2003030925A JP2003030925A (en) 2003-01-31
JP3601702B2 true JP3601702B2 (en) 2004-12-15

Family

ID=19047191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001211953A Expired - Fee Related JP3601702B2 (en) 2001-07-12 2001-07-12 Information processing apparatus and information processing method

Country Status (3)

Country Link
JP (1) JP3601702B2 (en)
TW (1) TW588329B (en)
WO (1) WO2003009287A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4367371B2 (en) * 2005-04-22 2009-11-18 ソニー株式会社 Information processing apparatus and method, and program
JP5766050B2 (en) * 2011-07-05 2015-08-19 キヤノン株式会社 Image processing apparatus and control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0879686A (en) * 1994-09-01 1996-03-22 Asahi Optical Co Ltd Method for recording information of electronic still camera and device therefor
JPH10334590A (en) * 1997-05-27 1998-12-18 Sanyo Electric Co Ltd Data recorder, data recording method and recording medium recorded with data recording program

Also Published As

Publication number Publication date
WO2003009287A1 (en) 2003-01-30
TW588329B (en) 2004-05-21
JP2003030925A (en) 2003-01-31

Similar Documents

Publication Publication Date Title
JP3888569B2 (en) Disk unit
US7472219B2 (en) Data-storage apparatus, data-storage method and recording/reproducing system
US20110122759A1 (en) Data Recording Apparatus and System Having Sustained High Transfer Rates
JP2010211910A (en) Data storage device
EP1164590A2 (en) Information playback apparatus, information processing method and information recording medium
US7676140B2 (en) Recording apparatus
JP2002150699A (en) Information processor, information processing method, and recording medium with this method recorded thereon
JP3770138B2 (en) Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program
JP3940902B2 (en) Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program
JP4106702B2 (en) Information processing apparatus, data recording / reproducing method, program for data recording / reproducing method, and recording medium recording program for data recording / reproducing method
JP3601702B2 (en) Information processing apparatus and information processing method
JP4066447B2 (en) Information processing apparatus and data processing method
JP2009026349A (en) Method and device for recording/reproducing video
JP2003030927A (en) Information processor and information processing method
JP3994306B2 (en) Information processing apparatus and information recording medium access method
US6731865B1 (en) Recording/playback apparatus and method capable of modifying the number of retry operations
US6496311B1 (en) Data recording/reproducing unit, data recording method, data reproducing method, data recording/reproducing method, hard disk controller, and AV-data recording/reproducing method
JP2000285590A (en) Disk device
JP4301026B2 (en) Data recording apparatus, data recording method, and recording / reproducing system
JP4304569B2 (en) DATA STORAGE DEVICE, DATA STORAGE DEVICE CONTROL METHOD, DATA STORAGE DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING DATA STORAGE DEVICE CONTROL PROGRAM
JP2004030233A (en) Data processor, data processing method, program for data processing method and recording medium with its program recorded
JP2003123379A (en) Information processor, control method for the same, control program for the same and recording medium recording control program for information processor
JP2003115161A (en) Information processor and information processing method
JP2002008349A (en) Information processor and information processing method
JP2006178778A (en) Data recorder and data recording system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040414

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040902

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040915

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

Free format text: PAYMENT UNTIL: 20091001

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101001

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101001

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111001

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111001

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121001

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131001

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees