JP2005353046A - Recording medium, host device, and data processing method - Google Patents

Recording medium, host device, and data processing method Download PDF

Info

Publication number
JP2005353046A
JP2005353046A JP2005132354A JP2005132354A JP2005353046A JP 2005353046 A JP2005353046 A JP 2005353046A JP 2005132354 A JP2005132354 A JP 2005132354A JP 2005132354 A JP2005132354 A JP 2005132354A JP 2005353046 A JP2005353046 A JP 2005353046A
Authority
JP
Japan
Prior art keywords
recording medium
data
host device
open flag
area
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
JP2005132354A
Other languages
Japanese (ja)
Inventor
Hirokazu So
広和 宗
Takuji Maeda
卓治 前田
Shinji Inoue
信治 井上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005132354A priority Critical patent/JP2005353046A/en
Publication of JP2005353046A publication Critical patent/JP2005353046A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a recording medium, host device thereof and data processing method capable of easily checking the integrity of filesystem management information, when it is mounted on a host. <P>SOLUTION: A semiconductor recording medium (100) maintains an open flag (300) indicating the presence or the absence of the matching property of stored contents data and filesystem management information in a system area (139) directly inaccessible to a host device (200). The semiconductor recording medium automatically updates the open flag to "ON" (value indicating possible lack of matching property) upon receiving a request for write-in to a data recording section or an erasure request from the host device. When actual integrity is confirmed, the host device requests the recording medium to set the open flag to "OFF" (value indicating the presence of the matching property). Moreover, the host device refers to the open flag with a special command when mounted, and determines whether error check processing is required. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、記録媒体、記録媒体にアクセスするホスト機器及び記録媒体とホスト機器間のデータ処理方法に関する。特に、本発明は、記録媒体が半導体記録媒体である場合における、ホスト機器が記録媒体をマウントする時のエラーチェック処理に関する。   The present invention relates to a recording medium, a host device that accesses the recording medium, and a data processing method between the recording medium and the host device. In particular, the present invention relates to an error check process when a host device mounts a recording medium when the recording medium is a semiconductor recording medium.

音楽コンテンツや動画コンテンツ、静止画コンテンツなどのディジタルデータを記録する記録媒体には、半導体記録媒体、磁気ディスク、光ディスク、光磁気ディスクなど、様々な種類が存在する。これらのうち、半導体記録媒体は小型化・軽量化が図れるという特徴があるために、ディジタルスチルカメラや携帯電話端末などの携帯機器を中心に近年急速に普及している。代表的な半導体記録媒体としては、SDメモリーカード(登録商標)やメモリースティック(登録商標)、コンパクトフラッシュ(登録商標)などがある。これら半導体記録媒体の容量は年々、倍化する勢いで増加する傾向にある。   There are various types of recording media for recording digital data such as music content, moving image content, and still image content, such as semiconductor recording media, magnetic disks, optical disks, and magneto-optical disks. Among these, semiconductor recording media are characterized by the fact that they can be reduced in size and weight, and thus have rapidly spread in recent years mainly in portable devices such as digital still cameras and mobile phone terminals. Typical semiconductor recording media include an SD memory card (registered trademark), a memory stick (registered trademark), and a compact flash (registered trademark). The capacity of these semiconductor recording media tends to increase at a rate of doubling every year.

これら半導体記録媒体の記録領域に格納されているディジタルデータの管理はファイルシステムにより実現されている。ファイルシステムでは、記録領域を最小アクセス単位であるセクタ、及びセクタの集合であるクラスタに分割して管理し、1つ以上のクラスタをファイルとして管理する。   Management of digital data stored in the recording area of these semiconductor recording media is realized by a file system. In the file system, a recording area is divided into sectors that are minimum access units and clusters that are a set of sectors, and one or more clusters are managed as files.

従来使用されているファイルシステムとして、FATファイルシステムが一例に挙げられる(非特許文献1参照)。FATファイルシステムはパーソナルコンピュータ(PC)などの情報機器で一般に用いられており、半導体記録媒体においても主流のファイルシステムである。ファイルシステムは一般的に、管理する記録領域の容量が増大すると、それに伴い管理に必要となる情報(以下、「ファイルシステム管理情報」と呼ぶ。)も増大する。   A FAT file system is an example of a file system conventionally used (see Non-Patent Document 1). The FAT file system is generally used in information equipment such as a personal computer (PC), and is a mainstream file system even in a semiconductor recording medium. In general, when the capacity of a recording area to be managed in a file system increases, information required for management (hereinafter referred to as “file system management information”) increases accordingly.

携帯機器などの半導体記録媒体のホスト機器は、半導体記録媒体が装着された際に、半導体記録媒体の記録領域に格納されたディジタルデータを処理するための前処理としてマウントを行う。マウント処理では、具体的には、ファイルシステム管理情報の読出し処理、読み出したファイルシステム管理情報の内容解析及びエラーチェック処理等を実施する。   A host device of a semiconductor recording medium such as a portable device mounts as preprocessing for processing digital data stored in the recording area of the semiconductor recording medium when the semiconductor recording medium is loaded. Specifically, in the mounting process, a file system management information read process, a content analysis of the read file system management information, an error check process, and the like are performed.

そして、ファイルシステム管理情報に異常が発見された場合はホスト機器が適切なエラー処理や修復処理を実施する必要がある。さもなければ、ホスト機器によって前記半導体記録媒体に記録されているディジタルデータを修復不可能な状態で破壊するとか、前記ホスト機器で記録したはずのディジタルデータが他のホスト機器で正常に再生できない、といった致命的な障害が発生する可能性がある。従って、書込み処理を行うホスト機器にとって前記ファイルシステム管理情報のエラーチェックは不可欠な処理である。   If an abnormality is found in the file system management information, the host device needs to perform appropriate error processing and repair processing. Otherwise, the digital data recorded on the semiconductor recording medium by the host device is destroyed in an unrepairable state, or the digital data that should have been recorded by the host device cannot be reproduced normally by another host device. Such a fatal failure may occur. Therefore, the error check of the file system management information is an indispensable process for the host device that performs the writing process.

しかしながら、大容量化に伴うファイルシステム管理情報の増大に伴い、ホスト機器におけるマウント時のエラーチェック処理にかかる時間は増大する。従って、ユーザは記録媒体を使用する前に常にある一定時間待たされることになるため、利便性が低下するという問題が発生する。   However, as the file system management information increases as the capacity increases, the time required for error check processing at the time of mounting in the host device increases. Therefore, since the user always waits for a certain period of time before using the recording medium, there arises a problem that convenience is lowered.

また、信頼性向上のためにエラーチェックの項目数の増加等を行った場合にも、この問題は発生する。   This problem also occurs when the number of error check items is increased to improve reliability.

従来、この問題を解決する方法として、以下のような方法が提案されている(例えば、特許文献1参照)。   Conventionally, as a method for solving this problem, the following method has been proposed (for example, see Patent Document 1).

特許文献1では記録媒体の記録領域にホスト機器が半導体記録媒体を使用中であるか否かを表す「オープンフラグ」を設け、ホスト機器が一連の書込み処理を開始する際にそのオープンフラグをONに設定し、一連の書込み処理が完了しファイルシステム管理情報として整合性の取れた状態になった時点でオープンフラグをOFFに設定する。このように設定されるオープンフラグは半導体記録媒体に格納されたデータとファイルシステムとの整合性の有無を示す。   In Patent Document 1, an “open flag” indicating whether or not the host device is using the semiconductor recording medium is provided in the recording area of the recording medium, and the open flag is turned on when the host device starts a series of writing processes. And the open flag is set to OFF when a series of write processing is completed and the file system management information is in a consistent state. The open flag set in this way indicates whether or not the data stored in the semiconductor recording medium is consistent with the file system.

ホスト機器が半導体記録媒体をマウントする際にはオープンフラグを参照し、ONであれば一連の書込み処理の途中で処理が中断されたと判断し、OFFであれば一連の書込み処理は正常に終了したと判断する。このように特許文献1は、オープンフラグを参照することで、ファイルシステム管理情報の修復の要否の判断を簡略化する方法を提供する。   When the host device mounts the semiconductor recording medium, it refers to the open flag. If it is ON, it is determined that the process has been interrupted in the middle of a series of write processes, and if it is OFF, the series of write processes is completed normally. Judge. As described above, Patent Document 1 provides a method for simplifying the determination of the necessity of restoration of file system management information by referring to the open flag.

特開平5−12092号公報Japanese Patent Laid-Open No. 5-12092 ISO/IEC9293、“Information Technology−Volume and file structure of disk cartridges for information”、1994年ISO / IEC9293, “Information Technology-Volume and file structure of disk cartridges for information”, 1994

しかしながら、上記の従来技術には次のような問題点がある。   However, the above prior art has the following problems.

すなわち、特許文献1では、オープンフラグはどのホスト機器も自由に読み書き可能な領域である記録領域に備えられているため、記録領域への書込みを行う全てのホスト機器がこのオープンフラグを正しく処理するという保証が必要である。そうでなければ、オープンフラグがOFFであったとしてもファイルシステム管理情報が本当に整合性のとれた状態であるとは限らない。   That is, in Patent Document 1, since an open flag is provided in a recording area that is freely readable and writable by any host device, all host devices that write to the recording area correctly process the open flag. This guarantee is necessary. Otherwise, even if the open flag is OFF, the file system management information is not always in a consistent state.

より具体的には、特許文献1の記録媒体では、オープンフラグはホスト機器からの直接的な指示により更新される。つまり、オープンフラグは、ホスト機器からのコマンドや直接的な書き込みによりON/OFFされる。このため、オープンフラグを処理する機能がないホスト機器により、オープンフラグを有する半導体記録媒体に対してデータの記録等が行われ、異常終了した場合、データとファイルシステム間で整合性がとれていないにもかかわらず、オープンフラグはOFF(整合性ありを示す)となる。よって、その後、その記録媒体に対し、オープンフラグを処理可能なホスト機器が、そのオープンフラグを信じて処理を行うと、動作上の不具合が生じる場合がある。   More specifically, in the recording medium of Patent Document 1, the open flag is updated by a direct instruction from the host device. That is, the open flag is turned ON / OFF by a command from the host device or direct writing. For this reason, if a host device that does not have an open flag processing function performs data recording or the like on a semiconductor recording medium having an open flag and terminates abnormally, there is no consistency between the data and the file system. Nevertheless, the open flag is OFF (indicating consistency). Therefore, if a host device that can process the open flag subsequently processes the recording medium by believing in the open flag, an operation failure may occur.

このように、特許文献1の方法では、オープンフラグに非対応のホスト機器により、オープンフラグを有する記録媒体が一旦アクセスされると、オープンフラグの信頼性が損なわれる場合がある。よって、オープンフラグを処理する機能がない従来のホスト機器と、オープンフラグに対応した新しいホスト機器との間で、オープンフラグを有する半導体記録媒体を用いてデータの授受を行うことができないという問題がある。   As described above, in the method of Patent Document 1, once a recording medium having an open flag is accessed by a host device that does not support the open flag, the reliability of the open flag may be impaired. Therefore, there is a problem in that data cannot be exchanged between a conventional host device that does not have an open flag processing function and a new host device that supports the open flag using a semiconductor recording medium having an open flag. is there.

本発明では上記問題点に鑑み、オープンフラグの処理機能が搭載されていない従来ホスト機器とのデータの授受が可能であり、かつマウント時のファイルシステム管理情報の整合性を簡単に確認することが可能な、記録媒体、記録媒体のホスト機器、データ処理方法を提供することを目的とする。   In the present invention, in view of the above problems, it is possible to exchange data with a conventional host device not equipped with an open flag processing function, and to easily check the consistency of file system management information at the time of mounting. An object of the present invention is to provide a recording medium, a recording medium host device, and a data processing method.

本発明に係る記録媒体は、データを格納し、ホスト機器からアクセス可能な記録媒体において、データを格納するデータ記録部と、ホスト機器との通信を行うホストインタフェース部と、記録媒体の制御を行う制御部とを備える。データ記録部は、コンテンツデータを格納するデータ領域と、コンテンツデータをホスト機器が取得する際に使用する管理情報を格納している検索情報格納領域とを有する。さらに、データ記録部は、データ領域に格納された情報と、検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納する。制御部は、データ記録部への書込み要求または消去要求をホスト機器から受信したときに、オープンフラグの値を不整合の可能性があることを示す値に自動的に更新する。   A recording medium according to the present invention stores data and is accessible from a host device, and controls a data recording unit that stores data, a host interface unit that communicates with the host device, and the recording medium And a control unit. The data recording unit has a data area for storing content data and a search information storage area for storing management information used when the host device acquires the content data. Further, the data recording unit stores an open flag indicating that there is a possibility of inconsistency between the information stored in the data area and the information stored in the search information storage area. The control unit automatically updates the value of the open flag to a value indicating that there is a possibility of inconsistency when a write request or erase request to the data recording unit is received from the host device.

本発明に係るホスト機器は、コンテンツデータを格納するデータ領域と、コンテンツデータを読み出す際に使用する管理情報を格納している検索情報格納領域とを有し、さらに、データ領域に格納された情報と、検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納する記録媒体にアクセスする。ホスト機器は、記録媒体と情報の受け渡しを行うアクセス部と、ホスト機器の動作制御を行うデータ処理部とを備える。データ処理部は、オープンフラグを参照し、オープンフラグの値が不整合の可能性があることを示す場合は、記録媒体の前記データ領域に格納された情報と、検索情報格納領域に格納された情報との間で実際に不整合が発生しているか否かの確認処理を実行し、オープンフラグの値が不整合の可能性をあることを示さない場合は、確認処理を省略する。   The host device according to the present invention has a data area for storing content data, a search information storage area for storing management information used when reading the content data, and information stored in the data area And a recording medium that stores an open flag indicating that there is a possibility of inconsistency between the information stored in the search information storage area. The host device includes an access unit that exchanges information with a recording medium, and a data processing unit that controls operation of the host device. When the data processing unit refers to the open flag and indicates that the value of the open flag may be inconsistent, the information stored in the data area of the recording medium and the search information storage area If the process of confirming whether or not inconsistency has actually occurred with the information is executed and the value of the open flag does not indicate that there is a possibility of inconsistency, the confirmation process is omitted.

本発明に係るデータ処理方法は、コンテンツデータを格納するデータ領域と、コンテンツデータを読み出す際に使用する管理情報を格納している検索情報格納領域とを有し、さらにデータ領域に格納された情報と、検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納する記録媒体と、ホスト機器との間のデータ処理方法である。データ処理方法は、記録媒体において書込み処理または消去処理が発生した時に、記録媒体において自動的に前記オープンフラグを、不整合の可能性があることを示す値に更新し、書込み処理または消去処理完了後、記録媒体中のデータ領域に格納された情報と検索情報格納領域に格納された情報の間で不整合が発生していない場合に限り、ホスト機器から記録媒体に対して、オープンフラグの値を不整合の可能性がないことを示す値に更新するための要求を送信する。   The data processing method according to the present invention includes a data area for storing content data, a search information storage area for storing management information used when reading the content data, and information stored in the data area And a data processing method between a host device and a recording medium for storing an open flag indicating that there is a possibility of inconsistency between the information stored in the search information storage area. In the data processing method, when the writing process or the erasing process occurs in the recording medium, the open flag is automatically updated to a value indicating that there is a possibility of inconsistency in the recording medium, and the writing process or the erasing process is completed. After that, only when there is no inconsistency between the information stored in the data area of the recording medium and the information stored in the search information storage area, the value of the open flag from the host device to the recording medium. A request is sent to update to a value indicating that there is no possibility of inconsistency.

本発明によれば、記録媒体のファイルシステム管理情報の整合性が確認されている状態において、マウント時におけるファイルシステム管理情報のエラーチェック処理を省略することが可能となり、かつ記録媒体を介して従来のホスト機器とのデータの授受が可能となる。このことは、今後、大容量化が見込まれている半導体記録媒体及びそのホスト機器にとって特に有効である。   According to the present invention, it is possible to omit the error check processing of the file system management information at the time of mounting in a state where the consistency of the file system management information of the recording medium has been confirmed, and the conventional method via the recording medium. Data can be exchanged with other host devices. This is particularly effective for a semiconductor recording medium and its host device that are expected to increase in capacity in the future.

以下、添付の図面を参照して本発明に係る記録媒体、ホスト機器およびデータ処理方法の実施の形態を説明する。   Embodiments of a recording medium, a host device, and a data processing method according to the present invention will be described below with reference to the accompanying drawings.

第1の実施形態
以下、本発明の第1の実施形態を図面に基づいて詳細に説明する。
First Embodiment Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の半導体記録媒体100及び半導体記録媒体100にアクセスするホスト機器200の構成例を示す図である。   FIG. 1 is a diagram illustrating a configuration example of a semiconductor recording medium 100 of the present invention and a host device 200 that accesses the semiconductor recording medium 100.

半導体記録媒体100は、ホスト機器200に対して脱着可能な記録媒体であって、ホストインタフェース部110、制御部120およびデータ記録部130から構成される。   The semiconductor recording medium 100 is a recording medium that is detachable from the host device 200, and includes a host interface unit 110, a control unit 120, and a data recording unit 130.

ホストインタフェース部110は、半導体記録媒体100のホスト機器200と情報の受け渡しをする。   The host interface unit 110 exchanges information with the host device 200 of the semiconductor recording medium 100.

制御部120は、半導体記録媒体100の内部制御を行い、コマンド処理部121と、論物変換制御部122と、記録領域アクセス部123とフラグ更新部125とを備えている。   The control unit 120 performs internal control of the semiconductor recording medium 100, and includes a command processing unit 121, a logical / physical conversion control unit 122, a recording area access unit 123, and a flag update unit 125.

コマンド処理部121は、ホストインタフェース部110で受信したホスト機器200からのコマンドの解釈及び実行を行い、必要に応じてその結果をホストインタフェース部110経由でホスト機器200に通知する。   The command processing unit 121 interprets and executes a command from the host device 200 received by the host interface unit 110 and notifies the host device 200 of the result via the host interface unit 110 as necessary.

論物変換制御部122は、ホスト機器200がアクセスの際に指定するアドレスである論理アドレスからデータ記録部130に於ける物理的なアドレス(物理アドレス)への変換処理を行う。   The logical-physical conversion control unit 122 performs conversion processing from a logical address, which is an address designated when the host device 200 accesses, to a physical address (physical address) in the data recording unit 130.

記録領域アクセス部123は、論物変換制御部122によって算出された物理アドレスの情報に基づき、データ記録部130に格納されたディジタルデータにアクセスする。   The recording area access unit 123 accesses the digital data stored in the data recording unit 130 based on the physical address information calculated by the logical-physical conversion control unit 122.

フラグ更新部125はオープンフラグ300(詳細は後述)の値の更新処理を行う。   The flag update unit 125 performs update processing of the value of the open flag 300 (details will be described later).

データ記録部130は、ディジタルデータを格納する部分であり、物理的にはフラッシュメモリ等の不揮発性のメモリで構成されており、検索情報格納領域131と、データ領域132と、システム領域139とを備えている。   The data recording unit 130 is a part that stores digital data, and is physically composed of a non-volatile memory such as a flash memory. The data recording unit 130 includes a search information storage area 131, a data area 132, and a system area 139. I have.

検索情報格納領域131及びデータ領域132はホスト機器200から任意のディジタルデータの読み書きが可能な領域である。   The search information storage area 131 and the data area 132 are areas in which arbitrary digital data can be read and written from the host device 200.

データ領域132は任意のディジタルデータ(コンテンツデータ)を格納する領域である。   The data area 132 is an area for storing arbitrary digital data (content data).

検索情報格納領域131は、データ領域132に格納されたディジタルデータ(コンテンツデータ)をホスト機器が取り出す際に必要となる管理情報(論理アドレスやサイズなど)を格納する領域である。本実施の形態では、データ領域132に格納されるディジタルデータはFATファイルシステムによって管理されるものとし、FATファイルシステムにおいて必要となる情報(ファイルシステム管理情報)を検索情報格納領域131に格納する。   The search information storage area 131 is an area for storing management information (such as a logical address and size) required when the host device retrieves the digital data (content data) stored in the data area 132. In the present embodiment, digital data stored in the data area 132 is managed by the FAT file system, and information (file system management information) necessary for the FAT file system is stored in the search information storage area 131.

図2に、FATファイルシステムを採用した場合の検索情報格納領域131およびデータ領域132の構成例を示す。図2において、検索情報格納領域131は、データ領域132を複数のパーティションと呼ばれる領域に分割して管理するための情報を格納するマスターブートレコード・パーティションテーブル、1つのパーティション内の管理情報を格納するパーティションブートセクタ、ファイルに含まれるデータの格納位置を示すFATテーブル1及びFATテーブル2、並びにルートディレクトリ直下に存在するファイル及びディレクトリの情報を格納するルートディレクトリエントリから構成される。また、データ領域132はクラスタと呼ばれる単位に分割されて管理される。   FIG. 2 shows a configuration example of the search information storage area 131 and the data area 132 when the FAT file system is adopted. In FIG. 2, a search information storage area 131 stores a master boot record / partition table that stores information for dividing and managing the data area 132 into areas called a plurality of partitions, and stores management information in one partition. The partition boot sector, the FAT table 1 and the FAT table 2 indicating the storage position of the data included in the file, and the root directory entry for storing information on the files and directories existing immediately under the root directory. The data area 132 is managed by being divided into units called clusters.

図1に戻り、システム領域139はホスト機器200から直接的にアクセス不可能な領域であり、半導体記録媒体100内からアクセス可能な領域であり、半導体記録媒体100の内部レジスタ情報などを格納する領域である。システム領域139は、検索情報格納領域131に格納されたファイルシステム管理情報と、データ領域132に格納されたディジタルデータとの整合性がとれていない可能性の有無を示すオープンフラグ300を備える。   Returning to FIG. 1, the system area 139 is an area that is not directly accessible from the host device 200, is an area that can be accessed from within the semiconductor recording medium 100, and is an area that stores internal register information of the semiconductor recording medium 100. It is. The system area 139 includes an open flag 300 indicating whether or not there is a possibility that the file system management information stored in the search information storage area 131 and the digital data stored in the data area 132 are not consistent.

オープンフラグ300は、少なくとも「ON」及び「OFF」の2つの値を有し、「ON」は実際に格納されているデータとファイルシステムの情報との間で整合性がとれていない可能性があることを示し、「OFF」は整合性がとれていることを示す。   The open flag 300 has at least two values of “ON” and “OFF”, and “ON” may not be consistent between the actually stored data and the file system information. “OFF” indicates that there is consistency.

ホスト機器200は、アクセス部210、フラグ処理部220およびデータ処理部230を備える。   The host device 200 includes an access unit 210, a flag processing unit 220, and a data processing unit 230.

アクセス部210は、ホスト機器200に装着された半導体記録媒体100に対して、コマンドやデータ等の情報の受け渡しを行う。   The access unit 210 delivers information such as commands and data to the semiconductor recording medium 100 mounted on the host device 200.

フラグ処理部220は、半導体記録媒体100のオープンフラグ300の値を制御する。具体的にはオープンフラグ300の値の取得やオープンフラグ300の値を「OFF」にするタイミングの通知をアクセス部210経由にて行う。   The flag processing unit 220 controls the value of the open flag 300 of the semiconductor recording medium 100. Specifically, acquisition of the value of the open flag 300 and notification of the timing to set the value of the open flag 300 to “OFF” are performed via the access unit 210.

データ処理部230は、半導体記録媒体100に格納されたデータもしくはこれから格納するデータを処理する部分であり、ホスト機器200の動作制御において中心的な処理を担う。   The data processing unit 230 is a part that processes data stored in the semiconductor recording medium 100 or data to be stored in the future, and plays a central role in operation control of the host device 200.

以下、半導体記録媒体100及びホスト機器200の各構成部の動作について図面を用いて説明する。   Hereinafter, the operation of each component of the semiconductor recording medium 100 and the host device 200 will be described with reference to the drawings.

最初に、半導体記録媒体100の全体動作シーケンスについて説明する。   First, the entire operation sequence of the semiconductor recording medium 100 will be described.

図3は、半導体記録媒体100がホスト機器200に挿入された後の半導体記録媒体100の動作概要を示すフローチャートである。   FIG. 3 is a flowchart showing an outline of the operation of the semiconductor recording medium 100 after the semiconductor recording medium 100 is inserted into the host device 200.

半導体記録媒体100は、ホスト機器200からの電源供給開始後、ホスト機器200のアクセス部210経由で発行される初期化処理要求に対して、半導体記録媒体100内部の初期化処理を実行する(S301)。その後、ホスト機器200からのコマンド待ち状態となる。   The semiconductor recording medium 100 executes an initialization process inside the semiconductor recording medium 100 in response to an initialization process request issued via the access unit 210 of the host apparatus 200 after the power supply from the host apparatus 200 is started (S301). ). Thereafter, the host device 200 enters a command waiting state.

ホスト機器200からコマンドが発行された場合、ホストインタフェース部110はコマンドを受信し(S302)、制御部120に通知する。   When a command is issued from the host device 200, the host interface unit 110 receives the command (S302) and notifies the control unit 120 of the command.

制御部120のコマンド処理部121は受信したコマンドを解釈し、オープンフラグ300の値の取得を要求するコマンドであれば(S303でYES)、ステップS304の処理に進む。それ以外のコマンドであれば(S303でNO)、ステップS305の処理に進む。   If the command processing unit 121 of the control unit 120 interprets the received command and is a command that requests acquisition of the value of the open flag 300 (YES in S303), the process proceeds to step S304. If it is any other command (NO in S303), the process proceeds to step S305.

ステップS304では、コマンド処理部121は記録領域アクセス部123経由でデータ記録部130に格納されているオープンフラグ300の値を取得し、取得した値をホストインタフェース部110経由でホスト機器200に通知する(S304)。その後、次のコマンド待ち状態となる。   In step S304, the command processing unit 121 acquires the value of the open flag 300 stored in the data recording unit 130 via the recording area access unit 123, and notifies the acquired value to the host device 200 via the host interface unit 110. (S304). Then, the next command wait state is entered.

ステップS305では、制御部120のコマンド処理部121は受信したコマンドを解釈し、オープンフラグ300を「OFF」に更新することを要求するコマンドであるならば(S305でYES)、ステップS306の処理に進む。それ以外のコマンドであれば(S305でNO)、ステップS307の処理に進む。   In step S305, if the command processing unit 121 of the control unit 120 interprets the received command and requests that the open flag 300 be updated to “OFF” (YES in S305), the processing of step S306 is performed. move on. If it is any other command (NO in S305), the process proceeds to step S307.

ステップS306では、フラグ更新部125により、記録領域アクセス部123経由でデータ記録部130に格納されているオープンフラグ300の値を「OFF」に設定し(S306)、必要に応じてホスト機器200へのレスポンス処理を実行した後、次のコマンド待ち状態となる。   In step S306, the flag update unit 125 sets the value of the open flag 300 stored in the data recording unit 130 via the recording area access unit 123 to “OFF” (S306), and sends it to the host device 200 as necessary. After executing the response process, the next command is waited for.

ステップS307では、制御部120のコマンド処理部121は受信したコマンドを解釈し、そのコマンドが、検索情報格納領域131及びデータ領域132に格納されたディジタルデータを更新するためのコマンド(すなわち書込み処理要求や消去処理要求など)である場合(S307で)、ステップS308の処理に進む。それ以外であるならばステップS310の処理に進む。   In step S307, the command processing unit 121 of the control unit 120 interprets the received command, and the command updates the digital data stored in the search information storage area 131 and the data area 132 (that is, a write processing request). Or erasure processing request) (S307), the process proceeds to step S308. Otherwise, the process proceeds to step S310.

ステップS308では、コマンド処理部121は記録領域アクセス部123経由でデータ記録部130に格納されているオープンフラグ300の値を参照し、「OFF」(整合性あり)ならばステップS309の処理に、「ON」(整合性なし)ならばS310の処理に進む。   In step S308, the command processing unit 121 refers to the value of the open flag 300 stored in the data recording unit 130 via the recording area access unit 123. If “OFF” (consistency), the processing in step S309 is performed. If “ON” (no consistency), the process proceeds to S310.

ステップS309では、フラグ更新部125は記録領域アクセス部123経由でデータ記録部130に格納されているオープンフラグ300の値を「ON」に更新する。このように、本実施形態のオープンフラグは、半導体記録媒体100内の制御部120により「ON」に更新される。   In step S309, the flag update unit 125 updates the value of the open flag 300 stored in the data recording unit 130 via the recording area access unit 123 to “ON”. As described above, the open flag of this embodiment is updated to “ON” by the control unit 120 in the semiconductor recording medium 100.

ステップS310では、制御部120は受信したコマンドの内容に応じた処理を実行する。例えば書込み処理要求である場合には、論物変換制御部122がホスト機器200により指定された論理アドレスを物理アドレスに変換し、物理アドレスを利用して記録領域アクセス部123経由でデータ記録部130への書込みを実行する。また、読出し処理要求である場合には、論物変換制御部122がホスト機器200により指定された論理アドレスを物理アドレスに変換し、記録領域アクセス部123経由でデータ記録部130に格納されたディジタルデータを読み出してホストインタフェース部110経由でホストに送信する。   In step S310, the control unit 120 executes processing according to the content of the received command. For example, when the request is a write processing request, the logical-physical conversion control unit 122 converts the logical address designated by the host device 200 into a physical address, and the data recording unit 130 via the recording area access unit 123 using the physical address. Write to. In the case of a read processing request, the logical-physical conversion control unit 122 converts the logical address designated by the host device 200 into a physical address and stores the digital address stored in the data recording unit 130 via the recording area access unit 123. Data is read and transmitted to the host via the host interface unit 110.

コマンドの内容に応じた処理を実行した後、必要に応じてホスト機器200に対するレスポンスをホストインタフェース部110経由で送信する。処理完了後、ステップS302に戻り、次のコマンド待ち状態となる。   After executing processing according to the content of the command, a response to the host device 200 is transmitted via the host interface unit 110 as necessary. After the process is completed, the process returns to step S302 to wait for the next command.

次に、半導体記録媒体100が装着されたときのホスト機器200のマウント処理完了までのシーケンスについて説明する。   Next, a sequence until the mounting process of the host device 200 when the semiconductor recording medium 100 is loaded will be described.

図4は、半導体記録媒体100が装着されたホスト機器200の動作シーケンス例を示すフローチャートである。   FIG. 4 is a flowchart illustrating an example of an operation sequence of the host device 200 in which the semiconductor recording medium 100 is mounted.

ホスト機器200はアクセス部210経由で半導体記録媒体100に対して初期化処理を要求する(S401)。半導体記録媒体100の初期化処理終了後、ホスト機器200は半導体記録媒体100に対してオープンフラグ300の値の取得要求を行う(S402)。本実施形態においては、フラグ処理部220がアクセス部210経由でオープンフラグ300の値の取得のための専用コマンドを発行する。   The host device 200 requests initialization processing to the semiconductor recording medium 100 via the access unit 210 (S401). After the initialization process of the semiconductor recording medium 100 is completed, the host device 200 requests the semiconductor recording medium 100 to acquire the value of the open flag 300 (S402). In the present embodiment, the flag processing unit 220 issues a dedicated command for acquiring the value of the open flag 300 via the access unit 210.

取得したオープンフラグ300の値を判断し(S403)、その値が「ON」ならば、ホスト機器200は検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータとの整合性がとれていない可能性があると判断し、整合性確認のためのエラーチェック処理を含むマウント処理を実行する(S404)。   The value of the acquired open flag 300 is determined (S403). If the value is “ON”, the host device 200 is stored in the file system management information and data area 132 stored in the search information storage area 131. It is determined that there is a possibility that consistency with data is not achieved, and mount processing including error check processing for confirming consistency is executed (S404).

ステップS404におけるエラーチェック処理によりエラーが検出され、かつ、ファイルシステム管理情報の修復が必要と判断される場合にはステップS407へ進む。修復の必要がない場合には処理を完了する。   If an error is detected by the error check process in step S404 and it is determined that the file system management information needs to be repaired, the process proceeds to step S407. If there is no need for repair, the process is completed.

ステップS407において、ホスト機器200がファイルシステム管理情報の修復手段を備えている場合は、S408の処理に進む。備えていない場合には異常終了とし、以降は適切なエラー処理を行う。例えば、動作を停止したり、読出しアクセスに限定したりする処置をとるものとする。   If it is determined in step S407 that the host device 200 includes file system management information restoration means, the process advances to step S408. If it is not provided, the process ends abnormally, and thereafter appropriate error processing is performed. For example, it is assumed that measures are taken such as stopping the operation or limiting to read access.

ステップS408において、ファイルシステム管理情報の修復完了した時点で、フラグ処理部220はアクセス部210経由でオープンフラグ300を「OFF」に更新するコマンドを発行する。その後、必要であればマウント処理を再実行し、処理を完了する。   In step S408, when the restoration of the file system management information is completed, the flag processing unit 220 issues a command for updating the open flag 300 to “OFF” via the access unit 210. Thereafter, if necessary, the mount process is re-executed to complete the process.

一方、ステップS403において、取得したオープンフラグ300の値が「OFF」ならば、ホスト機器200は検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータとの整合性がとれていると判断し、整合性確認のためのエラーチェック処理を行わずにマウント処理を実行し(S405)、処理を完了する。   On the other hand, if the value of the acquired open flag 300 is “OFF” in step S <b> 403, the host device 200 compares the file system management information stored in the search information storage area 131 and the data stored in the data area 132. It is determined that consistency is achieved, mount processing is executed without performing error check processing for confirming consistency (S405), and the processing is completed.

特許文献1の記録媒体では、オープンフラグはホスト機器により直接的に更新されていたため、オープンフラグを処理できないホスト機器によって処理された場合にオープンフラグの信頼性が損なわれ、その後、そのフラグの値を信じて処理したホスト機器において動作上の不具合が生じる可能性があるという問題があった。これに対し、本実施形態の半導体記録媒体100は、ホスト機器200から書き込みコマンドまたは消去コマンドを受信したときに、半導体記録媒体100自身が自動的にオープンフラグをONに設定する(S309)。このため、オープンフラグを処理できないホスト機器によって記録媒体が処理された場合でも、半導体記録媒体100自身によりオープンフラグが必ずONに設定される。一方、本実施形態のホスト機器は、データ記録、消去時に半導体記録媒体100のオープンフラグをまずチェックし、オープンフラグがONのときは整合性チェック処理を実行する(S403〜S405)。よって、本実施形態によれば、オープンフラグを処理できないホスト機器により記録媒体が処理された場合であっても、オープンフラグの信頼性が担保され、その後に、その記録媒体をオープンフラグに対応したホスト機器により処理する場合において、オープンフラグに基づいて整合性チェック処理が確実になされる。このため、特許文献1で考え得るような不具合を防止できる。   In the recording medium of Patent Document 1, since the open flag is directly updated by the host device, the reliability of the open flag is impaired when processed by the host device that cannot process the open flag. There is a problem that a malfunction in the host device may occur in the host device that has been processed by believing in the above. In contrast, in the semiconductor recording medium 100 of the present embodiment, when the write command or the erase command is received from the host device 200, the semiconductor recording medium 100 itself automatically sets the open flag to ON (S309). For this reason, even when the recording medium is processed by a host device that cannot process the open flag, the open flag is always set to ON by the semiconductor recording medium 100 itself. On the other hand, the host device of the present embodiment first checks the open flag of the semiconductor recording medium 100 at the time of data recording and erasing, and executes consistency check processing when the open flag is ON (S403 to S405). Therefore, according to the present embodiment, even when a recording medium is processed by a host device that cannot process the open flag, the reliability of the open flag is ensured, and then the recording medium is compatible with the open flag. In the case of processing by the host device, the consistency check processing is reliably performed based on the open flag. For this reason, the malfunction which can be considered by patent document 1 can be prevented.

次に、ホスト機器200が半導体記録媒体100への一連の書込み処理を実行した後の後処理のシーケンスについて説明する。   Next, a post-processing sequence after the host device 200 executes a series of writing processes to the semiconductor recording medium 100 will be described.

ここで「一連の処理」とは、「ファイルオープンからファイルクローズまで」とか「マウントからアンマウントまで」といった処理単位を表しており、「一連の書込み処理」が完了した時点において、処理中にエラーが発生していなければ、検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータは整合性がとれた状態になっているとする。   Here, “Sequential processing” represents a processing unit such as “from file open to file close” or “from mount to unmount”. When “Sequential write processing” is completed, an error occurs during processing. If it does not occur, it is assumed that the file system management information stored in the search information storage area 131 and the data stored in the data area 132 are in a consistent state.

図5は、後処理におけるホスト機器200の動作シーケンス例を示すフローチャートである。   FIG. 5 is a flowchart illustrating an example of an operation sequence of the host device 200 in post-processing.

一連の処理が終了後、検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータとの整合性を確認し(S501)、整合性がとれている場合、ホスト機器200のフラグ処理部220は、アクセス部210経由で半導体記録媒体100に対して、オープンフラグ300の値を「OFF」に設定するように要求する(S502)。本実施形態においては専用のコマンドを発行することによって実現する。半導体記録媒体100の制御部210はこの要求を受けて、オープンフラグ300を「OFF」に設定する。   After a series of processing is completed, the consistency between the file system management information stored in the search information storage area 131 and the data stored in the data area 132 is confirmed (S501). The flag processing unit 220 of the host device 200 requests the semiconductor recording medium 100 via the access unit 210 to set the value of the open flag 300 to “OFF” (S502). This embodiment is realized by issuing a dedicated command. In response to this request, the control unit 210 of the semiconductor recording medium 100 sets the open flag 300 to “OFF”.

一方、一連の処理中にエラーが発生した場合などで、整合性がとれていない可能性がある場合には(S501でNO)、異常終了とし、以降は適切なエラー処理を行う。   On the other hand, if an error occurs during a series of processes and there is a possibility that consistency is not achieved (NO in S501), the process ends abnormally, and appropriate error processing is performed thereafter.

図6は一連の書込み処理の実行後における、半導体記録媒体100のオープンフラグ300の状態を示している。図6に示すように、本発明によるホスト機器200の場合には正常終了時にオープンフラグ300は「OFF」に設定される。書込みエラーや電源断などによる異常終了時は「ON」に設定されることになる。これに対して、従来のホスト機器はオープンフラグ300を「OFF」に設定する手段を知らないため、書込み処理後は常に「ON」となる。   FIG. 6 shows the state of the open flag 300 of the semiconductor recording medium 100 after execution of a series of writing processes. As shown in FIG. 6, in the case of the host device 200 according to the present invention, the open flag 300 is set to “OFF” at the normal end. It will be set to “ON” upon abnormal termination due to a write error or power interruption. On the other hand, since the conventional host device does not know the means for setting the open flag 300 to “OFF”, it is always “ON” after the writing process.

すなわち、一連の処理がエラーなく終了していれば、本後処理においてオープンフラグ300が「OFF」に戻される。オープンフラグに対応していない従来のホスト機器により半導体記録媒体100に書き込み、削除の処理がなされた場合は、この後処理は実行されないため、オープンフラグ300が「ON」のままであり、その後に、オープンフラグ対応のホスト機器がその半導体記録媒体100に最初にアクセスするときに、オープンフラグ300を参照することで、その半導体記録媒体100の整合性が取れていない可能性があることを認識できる。一方、オープンフラグ300が「OFF」であれば、検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータとの整合性は担保される。   That is, if the series of processing ends without error, the open flag 300 is returned to “OFF” in the post-processing. When a conventional host device that does not support the open flag writes to the semiconductor recording medium 100 and performs a deletion process, the post-process is not executed, and therefore the open flag 300 remains “ON”. When the host device corresponding to the open flag accesses the semiconductor recording medium 100 for the first time, it is possible to recognize that the consistency of the semiconductor recording medium 100 may not be obtained by referring to the open flag 300. . On the other hand, if the open flag 300 is “OFF”, the consistency between the file system management information stored in the search information storage area 131 and the data stored in the data area 132 is secured.

以上のように、本発明による半導体記録媒体100は、ホスト機器200が直接アクセスできない領域にオープンフラグ300を備えており、ホスト機器200からの検索情報格納領域131及びデータ領域132に格納されたデータを更新するコマンド(すなわち書込み処理要求や消去処理要求など)を受信した際には、半導体記録媒体100自身が自動的にオープンフラグ300を「ON」に設定する。   As described above, the semiconductor recording medium 100 according to the present invention includes the open flag 300 in an area that cannot be directly accessed by the host device 200, and stores the data stored in the search information storage area 131 and the data area 132 from the host apparatus 200. When a command to be updated (that is, a write process request or an erase process request) is received, the semiconductor recording medium 100 itself automatically sets the open flag 300 to “ON”.

また、本発明によるホスト機器200は、半導体記録媒体100の検索情報格納領域131に格納されているファイルシステム管理情報と、データ領域132に格納されているデータとの整合性がとれている場合に限り、半導体記録媒体100に対してオープンフラグ300を「OFF」に設定するように要求する。   In addition, the host device 200 according to the present invention can be used when the file system management information stored in the search information storage area 131 of the semiconductor recording medium 100 and the data stored in the data area 132 are consistent. As far as it is concerned, the semiconductor recording medium 100 is requested to set the open flag 300 to “OFF”.

これにより、オープンフラグ300が「OFF」の場合のオープンフラグ300の信頼性が担保されるため、ホスト機器200は半導体記録媒体100のマウント処理時にオープンフラグ300を参照することでエラーチェック処理を省略できるか否かを事前に判定することが可能となる。本発明はエラーチェック処理にかかる時間が増大すればするほど、その効果は絶大である。従って、特に大容量化が進む半導体記録媒体において有効である。   Thereby, since the reliability of the open flag 300 when the open flag 300 is “OFF” is ensured, the host device 200 omits the error check process by referring to the open flag 300 during the mounting process of the semiconductor recording medium 100. It is possible to determine in advance whether or not this is possible. The effect of the present invention increases as the time required for the error check process increases. Therefore, this is particularly effective in a semiconductor recording medium whose capacity is increasing.

第2の実施形態
以下、本発明の第2の実施の形態を詳細に説明する。
Second Embodiment Hereinafter, a second embodiment of the present invention will be described in detail.

図7は、第2の実施の形態における半導体記録媒体500及び半導体記録媒体500にアクセスするホスト機器600の構成例を示す図である。図8は半導体記録媒体500のデータ記録部530の構成例を示す図である。   FIG. 7 is a diagram illustrating a configuration example of the semiconductor recording medium 500 and the host device 600 that accesses the semiconductor recording medium 500 according to the second embodiment. FIG. 8 is a diagram illustrating a configuration example of the data recording unit 530 of the semiconductor recording medium 500.

本実施形態の半導体記録媒体500における第1の実施の形態との違いは以下の点である。   The difference of the semiconductor recording medium 500 of this embodiment from the first embodiment is as follows.

本実施形態の半導体記録媒体500のデータ記録部530は図8に示すように3通りのデータ領域を持ち、選択的にいずれか1つの領域に設定可能である。このため、データ記録部530は、検索領域情報格納領域と、データ領域と、オープンフラグとのセットを複数格納する。これらのセットはホスト機器からのコマンドにて切り替えられて使用されるものであり、いずれか1つのセットのみが有効となる。このため、データ記録部530はシステム領域539において、現在有効になっているセットに関する情報を格納する選択セット格納部800を備える。   The data recording unit 530 of the semiconductor recording medium 500 of the present embodiment has three data areas as shown in FIG. 8, and can be selectively set to any one area. Therefore, the data recording unit 530 stores a plurality of sets of search area information storage areas, data areas, and open flags. These sets are used by being switched by a command from the host device, and only one set is effective. For this reason, the data recording unit 530 includes a selected set storage unit 800 that stores information related to the currently valid set in the system area 539.

また、ホスト機器について第1の実施形態1との違いは、本実施形態のホスト機器600は、半導体記録媒体500に複数存在する各セットの切替えを指示するセット切替え指示部640を備えている点である。つまり、本実施形態においては、半導体記録媒体500はセットを3つ備えており、ホスト機器600はこれらを切り替えて使用することが可能である。以下に各セットを説明する。   In addition, the difference between the host device and the first embodiment is that the host device 600 of the present embodiment includes a set switching instruction unit 640 that instructs switching of a plurality of sets existing in the semiconductor recording medium 500. It is. That is, in the present embodiment, the semiconductor recording medium 500 includes three sets, and the host device 600 can be used by switching them. Each set is described below.

セット1:第1の検索情報格納領域531、第1のデータ領域532、第1のオープンフラグ701により構成される。ホスト機器600は第1の検索情報格納領域531及び第1のデータ領域532のみにアクセス可能である。     Set 1: It comprises a first search information storage area 531, a first data area 532, and a first open flag 701. The host device 600 can access only the first search information storage area 531 and the first data area 532.

セット2:第2の検索情報格納領域533、第2のデータ領域534、第2のオープンフラグ702により構成される。ホスト機器600は、第2の検索情報格納領域533及び第2のデータ領域534のみにアクセス可能である。また、第2の検索情報格納領域533及び第2のデータ領域534と、第1の検索情報格納領域531及び第1のデータ領域532とは、選択的にいずれかが有効にされる。     Set 2: a second search information storage area 533, a second data area 534, and a second open flag 702. The host device 600 can access only the second search information storage area 533 and the second data area 534. In addition, any one of the second search information storage area 533 and the second data area 534 and the first search information storage area 531 and the first data area 532 is selectively enabled.

セット3:第3の検索情報格納領域535、第3のデータ領域536、第3のオープンフラグ703により構成される。ホスト機器600は第3の検索情報格納領域535及び第3のデータ領域536のみにアクセス可能である。第3の検索情報格納領域535及び第3のデータ領域536の領域は、第1の検索情報格納領域531及び第1のデータ領域532と第2の検索情報格納領域533及び第2のデータ領域534とを合わせた領域に等しい。     Set 3: a third search information storage area 535, a third data area 536, and a third open flag 703. The host device 600 can access only the third search information storage area 535 and the third data area 536. The areas of the third search information storage area 535 and the third data area 536 are the first search information storage area 531, the first data area 532, the second search information storage area 533, and the second data area 534. Is equal to the combined area.

以下、半導体記録媒体500及びホスト機器600の動作について図面を用いて説明する。   Hereinafter, operations of the semiconductor recording medium 500 and the host device 600 will be described with reference to the drawings.

図9は、半導体記録媒体500がホスト機器600に挿入された後の半導体記録媒体500の動作概要を示すフローチャートである。   FIG. 9 is a flowchart showing an operation outline of the semiconductor recording medium 500 after the semiconductor recording medium 500 is inserted into the host device 600.

半導体記録媒体500は、ホスト機器600からの電源供給開始後、ホスト機器600のアクセス部610経由で発行される初期化処理要求に対して、半導体記録媒体500内部の初期化処理を実行する(S901)。このとき、制御部520は選択セット格納部800に格納された値を参照し、「セット1」、「セット2」、「セット3」のいずれで使用するかを決定する。本実施形態においては、選択セット格納部800には、前回使用したセットの情報が格納されているものとする。なお、初期化処理時には常に特定のセットが有効になる仕様であってもよい。   The semiconductor recording medium 500 executes initialization processing inside the semiconductor recording medium 500 in response to the initialization processing request issued via the access unit 610 of the host device 600 after the power supply from the host device 600 is started (S901). ). At this time, the control unit 520 refers to the value stored in the selected set storage unit 800 and determines whether to use “set 1”, “set 2”, or “set 3”. In the present embodiment, it is assumed that the selected set storage unit 800 stores information on the set used last time. The specification may be such that a specific set is always valid during the initialization process.

初期化処理後はホスト機器600からのコマンド待ち状態となる。ホスト機器600からコマンドが発行されると、ホストインタフェース部510はコマンドを受信し(S902)、制御部520に通知する。   After initialization processing, the host device 600 waits for a command. When a command is issued from the host device 600, the host interface unit 510 receives the command (S902) and notifies the control unit 520 of the command.

制御部520のコマンド処理部521は受信した前記コマンドを解釈し、オープンフラグの値の取得を要求するコマンドであるならば(S903でYES)、ステップS904の処理に進む。それ以外であるならばステップS905の処理に進む。   If the command processing unit 521 of the control unit 520 interprets the received command and requests acquisition of the value of the open flag (YES in S903), the process proceeds to step S904. Otherwise, the process proceeds to step S905.

ステップS904において、コマンド処理部521は記録領域アクセス部523経由でデータ記録部530に格納されている3つのオープンフラグ701、702、703のうち、選択セット格納部800で選択されているセットに対応するものの値を取得する。そして、取得した値をホストインタフェース部110経由でホスト機器600に通知した後、次のコマンド待ち状態となる。   In step S904, the command processing unit 521 corresponds to the set selected by the selected set storage unit 800 among the three open flags 701, 702, and 703 stored in the data recording unit 530 via the recording area access unit 523. Get the value of what to do. After the acquired value is notified to the host device 600 via the host interface unit 110, the next command wait state is entered.

ステップS905において、制御部520のコマンド処理部521は受信したコマンドを解釈し、そのコマンドがオープンフラグを「OFF」に更新することを要求するコマンドであるならば、ステップS906の処理に進む。それ以外であるならばステップS907の処理に進む。   In step S905, the command processing unit 521 of the control unit 520 interprets the received command, and if the command is a command requesting to update the open flag to “OFF”, the process proceeds to step S906. Otherwise, the process proceeds to step S907.

ステップS906において、フラグ更新部525は記録領域アクセス部523経由でデータ記録部530に格納されている3つのオープンフラグ701、702、703のうち選択セット格納部800で選択されているセットに対応するものの値を「OFF」に設定し、必要に応じてホスト機器600へのレスポンス処理を実行した後、次のコマンド待ち状態となる。   In step S906, the flag update unit 525 corresponds to the set selected by the selected set storage unit 800 among the three open flags 701, 702, and 703 stored in the data recording unit 530 via the recording area access unit 523. The value of the object is set to “OFF”, response processing to the host device 600 is executed as necessary, and the next command wait state is entered.

ステップS907において、制御部520のコマンド処理部521は受信したコマンドを解釈し、そのコマンドがホスト機器600がセットを切り替えることを要求するコマンドであるならば、ステップS908の処理に進む。それ以外であるならばステップS909の処理に進む。   In step S907, the command processing unit 521 of the control unit 520 interprets the received command, and if the command is a command requesting the host device 600 to switch the set, the process proceeds to step S908. Otherwise, the process proceeds to step S909.

ステップS908において、フラグ更新部525は切替えの前後のセットに応じてオープンフラグの値を更新する。具体的には、フラグ更新部525は図10に示すようなオープンフラグ更新表を有しており、そのオープンフラグ更新表を参照して3つのオープンフラグの更新を行う。例えば図10の(a)に示すようにセット1からセット2への切替えであった場合には、オープンフラグ701、702の値は変更せず、オープンフラグ703のみ「ON」へと変更する。   In step S908, the flag update unit 525 updates the value of the open flag according to the set before and after switching. Specifically, the flag update unit 525 has an open flag update table as shown in FIG. 10, and updates the three open flags with reference to the open flag update table. For example, when switching from set 1 to set 2 as shown in FIG. 10A, the values of the open flags 701 and 702 are not changed, and only the open flag 703 is changed to “ON”.

その後、コマンド処理部521は選択セット格納部800に切替え後のセットの情報を格納する。その後、必要に応じてホスト機器600へのレスポンス処理を実行した後、次のコマンド待ち状態となる。   Thereafter, the command processing unit 521 stores the information of the set after switching in the selected set storage unit 800. Thereafter, response processing to the host device 600 is executed as necessary, and the next command wait state is entered.

ステップS909において、制御部520のコマンド処理部521は受信したコマンドを解釈し、そのコマンドが検索情報格納領域及びデータ領域に格納されたデータを更新するコマンド(すなわち、書込み処理要求や消去処理要求など)である場合、ステップS910の処理に進む。それ以外であるならばステップS912の処理に進む。   In step S909, the command processing unit 521 of the control unit 520 interprets the received command, and the command updates the data stored in the search information storage area and the data area (that is, a write process request, an erase process request, etc.). ), The process proceeds to step S910. Otherwise, the process proceeds to step S912.

ステップS910において、コマンド処理部521は記録領域アクセス部523経由でデータ記録部530に格納されている3つのオープンフラグ701、702、703のうち選択セット格納部800で選択されているセットに対応するものの値を参照し、「OFF」ならばステップS911の処理に進み、「ON」ならばステップS912の処理に進む。   In step S910, the command processing unit 521 corresponds to the set selected by the selected set storage unit 800 among the three open flags 701, 702, and 703 stored in the data recording unit 530 via the recording area access unit 523. If the value is “OFF”, the process proceeds to step S911. If “ON”, the process proceeds to step S912.

ステップS911において、フラグ更新部525は記録領域アクセス部523経由でデータ記録部530に格納されている3つのオープンフラグ701、702、703のうち選択セット格納部800で選択されている状態に対応するものの値を「ON」に更新する。   In step S911, the flag update unit 525 corresponds to the state selected by the selected set storage unit 800 among the three open flags 701, 702, and 703 stored in the data recording unit 530 via the recording area access unit 523. The value of the thing is updated to “ON”.

ステップS912において、制御部520は受信したコマンドの内容に応じた処理を実行する。例えば書込み処理要求である場合には、論物変換制御部522がホスト機器600により指定された論理アドレスを物理アドレスに変換し、物理アドレスを利用して記録領域アクセス部523経由でデータ記録部530への書込みを実行する。また、例えば読出し処理要求である場合には、論物変換制御部522がホスト機器600により指定された論理アドレスを物理アドレスに変換し、記録領域アクセス部523経由でデータ記録部530に格納されたディジタルデータを読み出してホストインタフェース部510経由でホストに送信する。   In step S912, control unit 520 executes processing according to the content of the received command. For example, when the request is a write processing request, the logical-physical conversion control unit 522 converts the logical address designated by the host device 600 into a physical address, and uses the physical address to record the data recording unit 530 via the recording area access unit 523. Write to. Also, for example, in the case of a read processing request, the logical-physical conversion control unit 522 converts the logical address designated by the host device 600 into a physical address and stores it in the data recording unit 530 via the recording area access unit 523. The digital data is read out and transmitted to the host via the host interface unit 510.

なお、論物変換制御部522は、現在選択されているセットに関する情報を記録領域アクセス部523経由で選択セット格納部800から取得することで、適切なアクセス制御を実施することができる。   The logical-physical conversion control unit 522 can perform appropriate access control by acquiring information about the currently selected set from the selected set storage unit 800 via the recording area access unit 523.

コマンドの内容に応じた処理を実行した後、必要に応じてホスト機器600に対するレスポンスをホストインタフェース部510経由で送信する。処理完了後はステップS902に戻り、次のコマンド待ち状態となる。   After executing processing according to the contents of the command, a response to the host device 600 is transmitted via the host interface unit 510 as necessary. After the process is completed, the process returns to step S902 to wait for the next command.

ところで、オープンフラグ更新表は次のような規則によって作成されている。   By the way, the open flag update table is created according to the following rules.

セット1とセット2ではホスト機器600からアクセスする領域が重複しないため、一方のセットにおける書込み処理・消去処理による影響が他方のセットに及ばない。従って、切替え処理の前後でオープンフラグを更新する必要がないため「そのまま」とする。   Since the areas accessed from the host device 600 do not overlap in the set 1 and the set 2, the influence of the write process / erase process in one set does not affect the other set. Therefore, since it is not necessary to update the open flag before and after the switching process, it is set as “as is”.

セット1とセット3、セット2とセット3ではホスト機器600からアクセスできる領域が重複しているため、一方のセットにおける書込み処理・消去処理による影響が他方のセットに及ぶ。従って、切替え処理の前後でオープンフラグを「ON」にする。   In set 1 and set 3, and in set 2 and set 3, the areas that can be accessed from the host device 600 overlap, and therefore the influence of the writing process / erasing process in one set affects the other set. Therefore, the open flag is set to “ON” before and after the switching process.

次にホスト機器600側の処理シーケンスについて述べる。   Next, a processing sequence on the host device 600 side will be described.

半導体記録媒体500が装着されたときのホスト機器600のマウント処理完了までのシーケンスは、第1の実施形態における図4で示した動作シーケンスと全く同様である。   The sequence up to the completion of the mounting process of the host device 600 when the semiconductor recording medium 500 is loaded is exactly the same as the operation sequence shown in FIG. 4 in the first embodiment.

また、ホスト機器600が半導体記録媒体500への一連の書込み処理を実行した後の後処理のシーケンスは、第1の実施形態における図5で示した動作シーケンスと全く同様である。   Further, the post-processing sequence after the host device 600 executes a series of writing processes to the semiconductor recording medium 500 is exactly the same as the operation sequence shown in FIG. 5 in the first embodiment.

以上のように、本発明による半導体記録媒体500は、検索情報格納領域、データ領域、オープンフラグのセット(組み合わせ)を3種類有し、それらを切り替えて使用することが可能である。そして、ホスト機器600からの検索情報格納領域及びデータ領域に格納されたデータを更新するコマンド(すなわち、書込み処理要求や消去処理要求など)を受信した際には現在選択されているセットに対応するオープンフラグを自動的に「ON」に設定する。また、ホスト機器に対して現在選択されているセットに対応するオープンフラグの値を通知する機能を備えている。   As described above, the semiconductor recording medium 500 according to the present invention has three types (sets) of search information storage areas, data areas, and open flags, and can be used by switching them. When a command (that is, a write process request, an erase process request, etc.) for updating the data stored in the search information storage area and the data area is received from the host device 600, it corresponds to the currently selected set. The open flag is automatically set to “ON”. In addition, a function of notifying the host device of the value of the open flag corresponding to the currently selected set is provided.

また、本発明によるホスト機器600は半導体記録媒体500の現在選択されているセットにおいて、検索情報格納領域に格納されているファイルシステム管理情報とデータ領域に格納されているディジタルデータとの整合性がとれている場合に限り、前記半導体記録媒体500に対してオープンフラグを「OFF」に設定するように要求する。   Further, the host device 600 according to the present invention has consistency between the file system management information stored in the search information storage area and the digital data stored in the data area in the currently selected set of the semiconductor recording media 500. Only when it is possible, the semiconductor recording medium 500 is requested to set the open flag to “OFF”.

そのため、ホスト機器600は、半導体記録媒体500のマウント処理時に現在選択されているセットのオープンフラグを参照することで、エラーチェック処理を省略できるか否かを簡単に判定することが可能となる。本発明はエラーチェック処理にかかる時間が増大すればするほど、その効果は絶大である。従って、特に大容量化が進む半導体記録媒体において有効である。   Therefore, the host device 600 can easily determine whether or not the error check process can be omitted by referring to the open flag of the currently selected set during the mounting process of the semiconductor recording medium 500. The effect of the present invention increases as the time required for the error check process increases. Therefore, this is particularly effective in a semiconductor recording medium whose capacity is increasing.

上記の各実施形態において以下のような変形例も考えられる。   In each of the above embodiments, the following modifications are also conceivable.

(1)各実施形態において、半導体記録媒体について記述したが、ハードディスク等のコントローラ内蔵の記録媒体に対しても、本発明の上記思想を適用できる。   (1) Although the semiconductor recording medium has been described in each embodiment, the above-described concept of the present invention can be applied to a recording medium with a built-in controller such as a hard disk.

(2)各実施形態においては、検索情報格納領域131においてFATファイルシステムを用いたが、FAT32やUDFなどの他のファイルシステムを利用してもよい。または、検索情報格納領域131においてファイルシステムを使わずに論理容量や記録アドレス等を管理してもよい。   (2) In each embodiment, the FAT file system is used in the search information storage area 131, but other file systems such as FAT32 and UDF may be used. Alternatively, the logical capacity and recording address may be managed in the search information storage area 131 without using a file system.

(3)各実施形態においては、半導体記録媒体100がホスト機器200に対して、オープンフラグ300の値を読み出すための専用コマンドを提供する例を示したが、この専用コマンドは必ずしも必要ではない。例えば、他のコマンドのレスポンス情報の一部としてオープンフラグ300の値を通知してもよい。この場合、ホスト機器200がオープンフラグ300の値を参照するのはマウント処理前であることが多いため、初期化処理時のコマンドに対するレスポンス情報に追加すると効果的である。   (3) In each embodiment, an example in which the semiconductor recording medium 100 provides a dedicated command for reading the value of the open flag 300 to the host device 200 has been described, but this dedicated command is not necessarily required. For example, the value of the open flag 300 may be notified as a part of response information of another command. In this case, since it is often before the mount process that the host device 200 refers to the value of the open flag 300, it is effective to add it to the response information for the command during the initialization process.

(4)各実施形態においては、ホスト機器200が半導体記録媒体100のオープンフラグ300を「OFF」に更新する要求を発行するタイミングを、「一連の書込み処理」が完了した時点としたが、検索情報格納領域131に格納されているファイルシステム管理情報とデータ領域132に格納されているデータとの整合性がとれた状態であればいつ発行してもよい。   (4) In each embodiment, the timing at which the host device 200 issues a request to update the open flag 300 of the semiconductor recording medium 100 to “OFF” is the time when the “series of write processing” is completed. If the file system management information stored in the information storage area 131 and the data stored in the data area 132 are in a consistent state, they may be issued anytime.

(5)半導体記録媒体100がフォーマット(論理的な初期化)処理を実行する機能をそなえている場合、フォーマット処理の直後に、オープンフラグ(第2の実施形態の場合は、フォーマット対象のセットに対応するフラグ)を自動的に「OFF」に設定してもよい。   (5) When the semiconductor recording medium 100 has a function of executing a format (logical initialization) process, immediately after the format process, an open flag (in the case of the second embodiment, a set to be formatted) The corresponding flag) may be automatically set to “OFF”.

(6)ホスト機器が半導体記録媒体のオープンフラグの値を「OFF」に設定する要求を行った際に、半導体記録媒体の制御部においても、検索情報格納領域131(第2の実施形態の場合、現在選択されているもの)に格納されているファイルシステム管理情報と、データ領域(第2の実施形態の場合、現在選択されているもの)に格納されているデータとの整合性チェックを行い、不整合であるならばオープンフラグの値を「OFF」設定を行わないようにしてもよい。このとき、ホスト機器と半導体記録媒体の両方で整合性チェックを行うことになるため整合性チェックの精度向上や処理負荷の分散といった効果が期待できる。   (6) When the host device makes a request to set the value of the open flag of the semiconductor recording medium to “OFF”, the search information storage area 131 (in the case of the second embodiment) also in the control unit of the semiconductor recording medium The file system management information stored in the currently selected one) and the data stored in the data area (the one currently selected in the second embodiment) are checked. If they are inconsistent, the value of the open flag may not be set to “OFF”. At this time, since the consistency check is performed by both the host device and the semiconductor recording medium, it is possible to expect the effects of improving the accuracy of the consistency check and distributing the processing load.

(7)第2の実施形態において、半導体記録媒体は3つのセットを有するものとしたが、2つ以上のセットであればいくつであってもよい。   (7) In the second embodiment, the semiconductor recording medium has three sets. However, any number of sets may be used as long as there are two or more sets.

(8)第2の実施形態において、領域切替えコマンドを受信した時にフラグ更新部525がオープンフラグ更新表を参照して、各オープンフラグの値を更新するものとしたが(S908)、領域切替えコマンドの直後でなくともよい。例えば、領域切替え処理後に最初に書込み処理要求もしくは消去処理要求を受信したタイミングで更新してもよい。   (8) In the second embodiment, when the region switching command is received, the flag update unit 525 refers to the open flag update table and updates the value of each open flag (S908). It does not have to be immediately after. For example, the update may be performed at the timing when the write process request or the erase process request is first received after the area switching process.

本発明にかかる半導体記録媒体、半導体記録媒体のホスト機器、データ処理方法は、ファイルシステムによってディジタルデータの管理を行うコントローラ内蔵の記録媒体等として有用であり、特に半導体記録媒体に適している。   The semiconductor recording medium, the host device of the semiconductor recording medium, and the data processing method according to the present invention are useful as a recording medium with a built-in controller for managing digital data by a file system, and are particularly suitable for the semiconductor recording medium.

本発明の第1の実施形態に於ける半導体記録媒体及びホスト機器の構成例を示した図である。1 is a diagram illustrating a configuration example of a semiconductor recording medium and a host device according to a first embodiment of the present invention. 本発明の第1の実施形態に於ける情報検索格納領域及びデータ領域の構成例を示した図である。It is the figure which showed the structural example of the information search storage area and data area in the 1st Embodiment of this invention. 本発明の第1の実施形態に於ける半導体記録媒体の動作の一例を示したフローチャートである。3 is a flowchart showing an example of the operation of the semiconductor recording medium in the first embodiment of the present invention. 本発明の第1の実施形態に於けるホスト機器での半導体記録媒体の初期化からマウント処理までの動作の一例を示したフローチャートである。5 is a flowchart illustrating an example of operations from initialization of the semiconductor recording medium to mounting processing in the host device according to the first embodiment of the present invention. 本発明の第1の実施形態に於けるホスト機器での一連の書込み処理終了後の後処理の一例を示したフローチャートである。6 is a flowchart illustrating an example of post-processing after a series of write processing ends in the host device according to the first exemplary embodiment of the present invention. 本発明の第1の実施形態に於ける一連の書込み処理後のオープンフラグの状態例を示す図である。It is a figure which shows the example of a state of the open flag after a series of write-in processes in the 1st Embodiment of this invention. 本発明の第2の実施形態に於ける半導体記録媒体及びホスト機器の構成例を示した図である。It is the figure which showed the structural example of the semiconductor recording medium and the host apparatus in the 2nd Embodiment of this invention. 本発明の第2の実施形態に於けるデータ記録部の構成例を示した図である。It is the figure which showed the structural example of the data recording part in the 2nd Embodiment of this invention. 本発明の第2の実施形態に於ける半導体記録媒体の全体動作の一例を示したフローチャートである。6 is a flowchart showing an example of the entire operation of the semiconductor recording medium in the second embodiment of the present invention. 本発明の第2の実施形態に於けるオープンフラグ遷移表の一例を示した図である。It is the figure which showed an example of the open flag transition table in the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

100 半導体記録媒体
110 ホストインタフェース部
120 制御部
130 データ記録部
121 コマンド処理部
122 論物変換制御部
123 記録領域アクセス部
125 フラグ更新部
131 検索情報格納領域
132 データ領域
139 システム領域
200 ホスト機器
210 アクセス部
220 フラグ処理部
230 データ処理部
300 オープンフラグ
DESCRIPTION OF SYMBOLS 100 Semiconductor recording medium 110 Host interface part 120 Control part 130 Data recording part 121 Command processing part 122 Logical-physical conversion control part 123 Recording area access part 125 Flag update part 131 Search information storage area 132 Data area 139 System area 200 Host apparatus 210 Access Section 220 Flag processing section 230 Data processing section 300 Open flag

Claims (14)

データを格納し、ホスト機器からアクセス可能な記録媒体において、
種々のデータを格納するデータ記録部と、
前記ホスト機器との通信を行うホストインタフェース部と、
前記記録媒体の制御を行う制御部とを備え、
前記データ記録部は、コンテンツデータを格納するデータ領域と、前記コンテンツデータをホスト機器が取得する際に使用する管理情報を格納している検索情報格納領域とを有し、さらに、前記データ記録部は、前記データ領域に格納された情報と、前記検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納し、
前記制御部は、前記データ記録部への書込み要求または消去要求を前記ホスト機器から受信したときに、前記オープンフラグの値を不整合の可能性があることを示す値に自動的に更新する
ことを特徴とする記録媒体。
In a storage medium that stores data and is accessible from the host device,
A data recording unit for storing various data;
A host interface unit for communicating with the host device;
A control unit for controlling the recording medium,
The data recording unit includes a data area for storing content data, and a search information storage area for storing management information used when a host device acquires the content data, and the data recording unit Stores an open flag indicating that there is a possibility of inconsistency between the information stored in the data area and the information stored in the search information storage area,
The control unit automatically updates the value of the open flag to a value indicating that there is a possibility of inconsistency when a write request or erase request to the data recording unit is received from the host device. A recording medium characterized by the above.
前記データ記録部はさらに前記ホスト機器から直接アクセスができない領域であるシステム領域を有し、該システム領域に前記オープンフラグが格納されることを特徴とする請求項1記載の記録媒体。   The recording medium according to claim 1, wherein the data recording unit further includes a system area that is an area that cannot be directly accessed from the host device, and the open flag is stored in the system area. 前記オープンフラグの値をホスト機器が取得するための専用のコマンドを備えていることを特徴とする請求項1記載の記録媒体。   The recording medium according to claim 1, further comprising a dedicated command for a host device to acquire the value of the open flag. 前記制御部は初期化処理を実行した際に、初期化処理に対するレスポンス情報と共に前記オープンフラグの値を前記ホスト機器に通知することを特徴とする請求項1記載の記録媒体。   The recording medium according to claim 1, wherein the control unit notifies the host device of a value of the open flag together with response information to the initialization process when the initialization process is executed. 前記ホスト機器から、前記オープンフラグの値を前記不整合が発生していないことを示す値に変更するように要求された場合に、前記制御部は、前記データ領域に格納された情報と前記検索情報格納領域に格納された情報の間で不整合が発生しているか否かのチェックを行い、前記チェックの結果が不整合を示す場合は、前記オープンフラグの値を前記不整合の可能性がないことを示す値に変更しないことを特徴とする請求項1記載の記録媒体。   When the host device requests to change the value of the open flag to a value indicating that the inconsistency has not occurred, the control unit searches the information stored in the data area and the search A check is made as to whether or not inconsistency occurs between information stored in the information storage area, and if the result of the check indicates inconsistency, the value of the open flag may indicate the possibility of inconsistency. The recording medium according to claim 1, wherein the recording medium is not changed to a value indicating that there is no recording. 前記制御部は、前記検索情報格納領域を論理的に初期化する機能を備えており、前記論理的な初期化を実行した直後に、前記オープンフラグを、前記データ領域に格納された情報と前記検索情報格納領域に格納された情報の間で整合性が保たれていることを示す値に自動的に更新することを特徴とする請求項1記載の記録媒体。   The control unit has a function of logically initializing the search information storage area, and immediately after executing the logical initialization, the open flag is set to the information stored in the data area and the information 2. The recording medium according to claim 1, wherein the information stored in the search information storage area is automatically updated to a value indicating that consistency is maintained. 前記データ記録部のデータ領域は、複数の領域サイズの中の1つのサイズに選択的に設定可能であり、前記データ記録部は、データ領域の各サイズ毎に、検索情報格納領域と、データ領域と、オープンフラグとをセットにして管理し、さらに、選択中の1つのセットを示す情報を格納し、
前記制御部は、前記選択中の1つのセットを示す情報を参照し、選択中の1つのセットに関する検索情報格納領域とデータ領域とオープンフラグに対してアクセスを行うことを特徴とする請求項1記載の記録媒体。
The data area of the data recording unit can be selectively set to one size among a plurality of area sizes, and the data recording unit includes a search information storage area, a data area, and a data area for each size of the data area. And an open flag as a set, and further, information indicating one set being selected is stored,
The control unit refers to information indicating one set being selected, and accesses a search information storage area, a data area, and an open flag related to the one set being selected. The recording medium described.
前記各セットの切替え処理時において、切替え処理前の前記データ領域及び前記検索情報格納領域が、切替え処理後の前記データ領域及び前記検索情報格納領域と重複しない場合は、各セットに含まれるオープンフラグの値を変更しないことを特徴とする請求項7記載の記録媒体。   When the data area and the search information storage area before the switching process do not overlap the data area and the search information storage area after the switching process at the time of the switching process of each set, an open flag included in each set The recording medium according to claim 7, wherein the value of is not changed. 前記各セットの切替え処理が発生した場合において、切替え処理後の書込み処理要求もしくは消去処理要求を最初に受信した時に、各セットに含まれるオープンフラグの値を更新することを特徴とする請求項7記載の記録媒体。   8. The value of an open flag included in each set is updated when a write process request or an erase process request after the switch process is first received when the switch process of each set occurs. The recording medium described. 前記データ記録部は不揮発性メモリによって構成されていることを特徴とする請求項1記載の記録媒体。   The recording medium according to claim 1, wherein the data recording unit includes a nonvolatile memory. コンテンツデータを格納するデータ領域と、前記コンテンツデータを読み出す際に使用する管理情報を格納している検索情報格納領域とを有し、さらに、前記データ領域に格納された情報と、前記検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納する記録媒体にアクセスするホスト機器であって、
前記記録媒体と情報の受け渡しを行うアクセス部と、前記ホスト機器の動作制御を行うデータ処理部とを備え、
前記データ処理部は、前記オープンフラグを参照し、該オープンフラグの値が前記不整合の可能性があることを示す場合は、前記記録媒体の前記データ領域に格納された情報と、前記検索情報格納領域に格納された情報との間で実際に不整合が発生しているか否かの確認処理を実行し、前記オープンフラグの値が前記不整合の可能性をあることを示さない場合は、前記確認処理を省略することを特徴とするホスト機器。
A data area for storing content data; a search information storage area for storing management information used when reading the content data; and information stored in the data area and the search information storage A host device that accesses a recording medium that stores an open flag indicating that there is a possibility of inconsistency with information stored in an area,
An access unit that exchanges information with the recording medium, and a data processing unit that controls the operation of the host device,
The data processing unit refers to the open flag, and if the value of the open flag indicates that there is a possibility of inconsistency, information stored in the data area of the recording medium, and the search information When checking whether or not inconsistency has actually occurred with the information stored in the storage area, if the value of the open flag does not indicate that there is a possibility of inconsistency, A host device characterized in that the confirmation process is omitted.
前記データ処理部は、前記確認処理を実行した結果、前記不整合が発生していないと判断した場合に、前記オープンフラグの値を前記不整合の可能性がないことを示す値に更新するための要求を前記記録媒体に発行することを特徴とする請求項11記載のホスト機器。   The data processing unit updates the value of the open flag to a value indicating that there is no possibility of inconsistency when it is determined that the inconsistency has not occurred as a result of executing the confirmation processing. The host device according to claim 11, wherein the request is issued to the recording medium. コンテンツデータを格納するデータ領域と、前記コンテンツデータを読み出す際に使用する管理情報を格納している検索情報格納領域とを有し、さらに前記データ領域に格納された情報と、前記検索情報格納領域に格納された情報との間で不整合の可能性があることを示すオープンフラグを格納する記録媒体と、ホスト機器との間のデータ処理方法であって、
前記記録媒体において書込み処理または消去処理が発生した時に、前記記録媒体において自動的に前記オープンフラグを前記不整合の可能性があることを示す値に更新し、
前記書込み処理または消去処理完了後、前記記録媒体中の前記データ領域に格納された情報と前記検索情報格納領域に格納された情報の間で不整合が発生していない場合に限り、前記ホスト機器から前記記録媒体に対して、前記オープンフラグの値を前記不整合の可能性がないことを示す値に更新するための要求を送信する、ことを特徴とするデータ処理方法。
A data area for storing content data; a search information storage area for storing management information used when reading the content data; and information stored in the data area; and the search information storage area A data processing method between a recording medium for storing an open flag indicating that there is a possibility of inconsistency with information stored in the host device, and a host device,
When a writing process or an erasing process occurs in the recording medium, the open flag is automatically updated in the recording medium to a value indicating that there is a possibility of inconsistency,
The host device only when there is no inconsistency between the information stored in the data area of the recording medium and the information stored in the search information storage area after completion of the writing process or the erasing process To the recording medium, a request for updating the value of the open flag to a value indicating that there is no possibility of inconsistency is transmitted.
さらに、前記オープンフラグの値を参照し、前記記録媒体の前記データ領域に格納された情報と前記検索情報格納領域に格納された情報の間で不整合の可能性の有無を判断し、
その判断結果にしたがい、前記記録媒体の前記データ領域に格納された情報と前記検索情報格納領域に格納された情報の間で実際の不整合の有無を確認するための処理の実行の要否を判断する、ことを特徴とする請求項13記載のデータ処理方法。
Further, referring to the value of the open flag, it is determined whether there is a possibility of inconsistency between the information stored in the data area of the recording medium and the information stored in the search information storage area,
According to the determination result, whether or not it is necessary to execute a process for confirming whether there is an actual mismatch between the information stored in the data area of the recording medium and the information stored in the search information storage area. 14. The data processing method according to claim 13, wherein determination is made.
JP2005132354A 2004-05-10 2005-04-28 Recording medium, host device, and data processing method Pending JP2005353046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005132354A JP2005353046A (en) 2004-05-10 2005-04-28 Recording medium, host device, and data processing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004139581 2004-05-10
JP2005132354A JP2005353046A (en) 2004-05-10 2005-04-28 Recording medium, host device, and data processing method

Publications (1)

Publication Number Publication Date
JP2005353046A true JP2005353046A (en) 2005-12-22

Family

ID=35587444

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005132354A Pending JP2005353046A (en) 2004-05-10 2005-04-28 Recording medium, host device, and data processing method

Country Status (1)

Country Link
JP (1) JP2005353046A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010001602A1 (en) * 2008-07-01 2010-01-07 パナソニック株式会社 Memory controller, nonvolatile storage device, data processing device, nonvolatile storage device system, and method
JP2014089616A (en) * 2012-10-31 2014-05-15 Kyocera Document Solutions Inc Information processor and program for information processor
US9692925B2 (en) 2015-01-28 2017-06-27 Kyocera Document Solutions Inc. Image processing apparatus that facilitates restoration from protection mode of included hard disk drive, method for controlling image processing apparatus, and storage medium
US10839197B2 (en) 2016-07-15 2020-11-17 Panasonic I-Pro Sensing Solutions Co., Ltd. Monitoring system, monitoring camera, and management device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010001602A1 (en) * 2008-07-01 2010-01-07 パナソニック株式会社 Memory controller, nonvolatile storage device, data processing device, nonvolatile storage device system, and method
JP2014089616A (en) * 2012-10-31 2014-05-15 Kyocera Document Solutions Inc Information processor and program for information processor
US9692925B2 (en) 2015-01-28 2017-06-27 Kyocera Document Solutions Inc. Image processing apparatus that facilitates restoration from protection mode of included hard disk drive, method for controlling image processing apparatus, and storage medium
US10839197B2 (en) 2016-07-15 2020-11-17 Panasonic I-Pro Sensing Solutions Co., Ltd. Monitoring system, monitoring camera, and management device

Similar Documents

Publication Publication Date Title
US7801930B2 (en) Recording medium, host device, and data processing method
US7587562B2 (en) Data duplication system, data duplication method and program
JP4722704B2 (en) INFORMATION RECORDING MEDIUM, ACCESS DEVICE AND ACCESS METHOD FOR INFORMATION RECORDING MEDIUM
US8156292B2 (en) Methods for implementation of data formats on a removable disk drive storage system
US20110055297A1 (en) Access module, information recording module, controller, and information recording system
US8516208B2 (en) Data backup method and information processing apparatus
CN109902034B (en) Snapshot creating method and device, electronic equipment and machine-readable storage medium
KR20070089603A (en) Apparatus, method, and computer program for processing information
JPH03224045A (en) Data holding system
JP4713951B2 (en) Virtual tape library system and virtual tape writing method
JP2013161185A (en) Magnetic tape device and control method of the same
CN101169705B (en) Method for implementing file class mirror-image under multiple hard disk based on nude file system
JP2005353046A (en) Recording medium, host device, and data processing method
JP2006338345A5 (en)
JP5985529B2 (en) Apparatus, method and device for rapid resumption from hibernation
JP2006343923A (en) Disk recording device
US20070271311A1 (en) Disk array device and data management method for managing master data and replication data replicated from master data
JP4667225B2 (en) Control device and copy control method
JP2004362580A (en) Storage system, its operation method, and tape storage medium device
JP2006323462A (en) File-copying device and file-copying method
JP2006133923A (en) Data recording/reproducing device, recording/reproducing method, program and data recording medium
GB2548818A (en) Indirection data strucures to manage file system metadata
JP2009288914A (en) Flash memory and electronic apparatus
JP2009205590A (en) Access module, information recording module, controller, and information recording system
JP2007133535A (en) File system inside storage device

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20061208