JP2006338350A - Data control system and program - Google Patents
Data control system and program Download PDFInfo
- Publication number
- JP2006338350A JP2006338350A JP2005162538A JP2005162538A JP2006338350A JP 2006338350 A JP2006338350 A JP 2006338350A JP 2005162538 A JP2005162538 A JP 2005162538A JP 2005162538 A JP2005162538 A JP 2005162538A JP 2006338350 A JP2006338350 A JP 2006338350A
- Authority
- JP
- Japan
- Prior art keywords
- management information
- devices
- virtual management
- logical address
- 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.)
- Withdrawn
Links
- 238000005192 partition Methods 0.000 claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 41
- 238000012546 transfer Methods 0.000 claims abstract description 8
- 238000000034 method Methods 0.000 claims description 27
- 230000000052 comparative effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 3
- 230000010365 information processing Effects 0.000 description 3
- 101100473585 Arabidopsis thaliana RPP4 gene Proteins 0.000 description 2
- 101150085479 CHS2 gene Proteins 0.000 description 2
- 101100167214 Emericella nidulans (strain FGSC A4 / ATCC 38163 / CBS 112.46 / NRRL 194 / M139) chsA gene Proteins 0.000 description 2
- 101100377543 Gerbera hybrida 2PS gene Proteins 0.000 description 2
- 101001018064 Homo sapiens Lysosomal-trafficking regulator Proteins 0.000 description 2
- 101000648827 Homo sapiens TPR and ankyrin repeat-containing protein 1 Proteins 0.000 description 2
- 101000667110 Homo sapiens Vacuolar protein sorting-associated protein 13B Proteins 0.000 description 2
- 102100033472 Lysosomal-trafficking regulator Human genes 0.000 description 2
- 102100028173 TPR and ankyrin repeat-containing protein 1 Human genes 0.000 description 2
- 101100439693 Ustilago maydis (strain 521 / FGSC 9021) CHS4 gene Proteins 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
【課題】複数のデバイスを認識させる場合において煩雑な処理を軽減し、小型の電子機器に対しても適用可能であるデータ制御システム及びプログラムを提供する。
【解決手段】データ制御システムは、バスを介したデータ転送の対象となる第1〜第nのデバイス50、80と、第1〜第nのデバイス50、80のパーティション管理情報から、第1〜第nのデバイス50、80を1つのデバイスとして認識させるための仮想管理情報を作成する仮想管理情報作成部62と、第1〜第nのデバイス50、80が、1つのデバイスの論理アドレスを指定してリード又はライトのアクセスが要求された場合に、仮想管理情報及び論理アドレスに基づいて、第1〜第nのデバイス50、80のいずれかを指定するデバイス指定情報と論理アドレスに対応する物理アドレスを算出して、デバイスに対するアクセス制御を行うデバイス制御部64と、を含む。
【選択図】図1The present invention provides a data control system and a program that reduce complicated processing when a plurality of devices are recognized, and can be applied to a small electronic device.
A data control system includes first to n-th devices 50 and 80 that are targets of data transfer via a bus and partition management information of first to n-th devices 50 and 80 based on first to first devices. The virtual management information creation unit 62 that creates virtual management information for recognizing the nth devices 50 and 80 as one device, and the first to nth devices 50 and 80 specify the logical address of one device. When the read or write access is requested, the device designation information for designating one of the first to nth devices 50 and 80 and the physical corresponding to the logical address based on the virtual management information and the logical address A device control unit 64 that calculates an address and controls access to the device.
[Selection] Figure 1
Description
本発明は、データ制御システム及びプログラムに関する。 The present invention relates to a data control system and a program.
USB規格の上位層のプロトコルの1つに、外部記憶装置をサポートするための規格としてUSBマスストレージクラスが知られている。USBマスストレージクラスでは複数のデバイスのそれぞれを、プロトコル上で個々のデバイスとして認識させる。このため、複数のデバイスを例えばUSBマスストレージクラスで扱う場合は複数のデバイスの管理を行う必要があり、この管理に処理は煩雑であり、小型の電子機器では単一のデバイスしか扱えないものもある。 The USB mass storage class is known as a standard for supporting an external storage device as one of upper layer protocols of the USB standard. In the USB mass storage class, each of a plurality of devices is recognized as an individual device on the protocol. For this reason, when handling a plurality of devices in the USB mass storage class, for example, it is necessary to manage a plurality of devices. This management is complicated, and some small electronic devices can handle only a single device. is there.
他の機器と通信にて情報を送受信する通信手段と、他の機器によってリモート制御可能にするベンダーユニークの宣言及び前記他の機器の記録手段として機能するストレージクラスの宣言のうちのいずれか一方を設定する設定手段とを備える構成が知られている(特許文献1参照)。
しかしながら、上記のような構成においては、機能するストレージクラスの宣言のうちのいずれか一方を設定する必要があり、例えば複数の記憶装置を同時に認識させることができない。 However, in the above configuration, it is necessary to set one of declarations of a functioning storage class, and for example, a plurality of storage devices cannot be recognized simultaneously.
また、複数のデバイスを有する電子機器においては、プロトコル上で個々のデバイスとして認識させる場合には、USBマスストレージクラス上において複雑なデータ制御処理を行わなければならなかった。 In addition, in an electronic apparatus having a plurality of devices, complicated data control processing has to be performed on the USB mass storage class when it is recognized as an individual device on the protocol.
本発明は、以上のような技術的課題に鑑みてなされたものであり、その目的とするところは、複数のデバイスを認識させる場合において煩雑な処理を軽減し、小型の電子機器に対しても適用可能であるデータ制御システム及びプログラムを提供することにある。 The present invention has been made in view of the technical problems as described above. The object of the present invention is to reduce complicated processing when recognizing a plurality of devices, and also to a small electronic device. An object is to provide a data control system and a program that can be applied.
本発明は、バスを介したデータ転送の対象となる第1〜第n(nは2以上の整数)のデバイスと、前記第1〜第nのデバイスのパーティション管理情報から、前記第1〜第nのデバイスを1つのデバイスとして認識させるための仮想管理情報を作成する仮想管理情報作成部と、前記第1〜第nのデバイスが前記仮想管理情報に基づいて1つのデバイスとして認識され、前記1つのデバイスの論理アドレスを指定してリード又はライトのアクセスが要求された場合に、前記仮想管理情報及び前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかを指定するデバイス指定情報と前記論理アドレスに対応する物理アドレスを算出して、デバイスに対するアクセス制御を行うデバイス制御部と、を含むデータ制御システムに関する。 According to the present invention, the first to n-th devices (n is an integer of 2 or more) to be transferred via the bus and the partition management information of the first to n-th devices, the first to first a virtual management information creating unit for creating virtual management information for recognizing n devices as one device, the first to nth devices are recognized as one device based on the virtual management information, and the 1 Device designation information for designating one of the first to nth devices based on the virtual management information and the logical address when a read or write access is requested by designating a logical address of one device And a device control unit that calculates a physical address corresponding to the logical address and controls access to the device.
本発明によれば、複数のデバイスを外部機器等に単一のデバイスとして認識させることができるので、複雑な処理を必要としないで外部機器等からの複数のデバイスに対するアクセスを可能にする。 According to the present invention, since a plurality of devices can be recognized as a single device by an external device or the like, it is possible to access the plurality of devices from the external device or the like without requiring complicated processing.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのいずれかの管理情報のブート情報を、前記仮想管理情報のブート情報にコピーして前記仮想管理情報を作成するようにしてもよい。 In the present invention, the virtual management information creation unit creates the virtual management information by copying the boot information of the management information of any of the first to nth devices into the boot information of the virtual management information. You may make it do.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのうちの前記第1のデバイスのパーティション管理情報を、前記仮想管理情報の第1パーティション情報にコピーして前記仮想管理情報を作成するようにしてもよい。 In the present invention, the virtual management information creation unit copies the partition management information of the first device among the first to nth devices to the first partition information of the virtual management information, and Virtual management information may be created.
これにより、第1のデバイスに対してアクセス制御する場合には、外部機器等からの論理アドレスをそのまま第1のデバイスの物理アドレスとして用いることができる。 Thereby, when controlling access to the first device, the logical address from the external device or the like can be used as it is as the physical address of the first device.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのうちの前記第2〜第nのデバイスのパーティション管理情報に対して、パーティションのスタートアドレスをオフセットする処理を施し、その結果を、前記仮想管理情報の第2〜第nパーティション情報に用いるようにしてもよい。 In the present invention, the virtual management information creation unit performs a process of offsetting a partition start address with respect to partition management information of the second to n-th devices among the first to n-th devices. And the result may be used for the second to n-th partition information of the virtual management information.
これにより、複数のデバイスを1つのデバイスとして認識させるための仮想管理情報を作成することができる。 Thereby, virtual management information for recognizing a plurality of devices as one device can be created.
また、本発明では、前記デバイス制御部は、指定された前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかに特定する処理と、前記物理アドレスを算出する処理とを行い、前記論理アドレスに対応するデバイスが第k(kは2以上n以下)のデバイスである場合には、前記論理アドレスから第1〜第k―1のデバイスのパーティションのサイズの合計に相当する値を減算することで、前記物理アドレスを算出するようにしてもよい。 In the present invention, the device control unit performs a process of specifying any of the first to n-th devices based on the designated logical address, and a process of calculating the physical address, When the device corresponding to the logical address is a k-th device (k is 2 or more and n or less), a value corresponding to the total size of the partitions of the first to k-1 devices from the logical address is set. The physical address may be calculated by subtraction.
これにより、外部機器は仮想管理情報100における仮想アドレスを指定することによって、複数のデバイスのうちの任意のデバイスの物理アドレスにアクセスすることができる。
Thus, the external device can access the physical address of any device among the plurality of devices by designating the virtual address in the
また、本発明では、前記デバイス制御部は、前記論理アドレスに対応するデバイスが第1のデバイスである場合には、前記論理アドレスを前記物理アドレスとして用いるようにしてもよい。 In the present invention, when the device corresponding to the logical address is the first device, the device control unit may use the logical address as the physical address.
これにより、デバイス制御部の処理を単純化することができる。また、デバイス制御部の処理を軽減することができ、デバイス制御部の処理を行う処理部の負荷を軽減することができる。 Thereby, the process of a device control part can be simplified. In addition, the processing of the device control unit can be reduced, and the load on the processing unit that performs the processing of the device control unit can be reduced.
また、本発明は、バスを介したデータ転送の対象となる第1〜第n(nは2以上の整数)のデバイスのパーティション管理情報から、前記第1〜第nのデバイスを1つのデバイスとして認識させるための仮想管理情報を作成する仮想管理情報作成部と、前記第1〜第nのデバイスが前記仮想管理情報に基づいて1つのデバイスとして認識され、前記1つのデバイスの論理アドレスを指定してリード又はライトのアクセスが要求された場合に、前記仮想管理情報及び前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかを指定するデバイス指定情報と前記論理アドレスに対応する物理アドレスを算出して、デバイスに対するアクセス制御を行うデバイス制御部と、を含むプログラムに関する。 Further, according to the present invention, the first to nth devices are defined as one device from the partition management information of the first to nth devices (n is an integer equal to or larger than 2) to be transferred via the bus. A virtual management information creating unit for creating virtual management information for recognition; and the first to nth devices are recognized as one device based on the virtual management information, and a logical address of the one device is designated. When the read or write access is requested, device designation information for designating one of the first to n-th devices and the physical corresponding to the logical address based on the virtual management information and the logical address And a device control unit that calculates an address and performs access control on the device.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのいずれかの管理情報のブート情報を、前記仮想管理情報のブート情報にコピーして前記仮想管理情報を作成するようにしてもよい。 In the present invention, the virtual management information creation unit creates the virtual management information by copying the boot information of the management information of any of the first to nth devices into the boot information of the virtual management information. You may make it do.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのうちの前記第1のデバイスのパーティション管理情報を、前記仮想管理情報の第1パーティション情報にコピーすることで前記仮想管理情報を作成するようにしてもよい。 In the present invention, the virtual management information creation unit may copy the partition management information of the first device among the first to nth devices to the first partition information of the virtual management information. The virtual management information may be created.
また、本発明では、前記仮想管理情報作成部は、前記第1〜第nのデバイスのうちの前記第2〜第nのデバイスのパーティション管理情報に対して、パーティションのスタートアドレスをオフセットする処理を施し、その結果を、前記仮想管理情報の第2〜第nパーティション情報に用いるようにしてもよい。 In the present invention, the virtual management information creation unit performs a process of offsetting a partition start address with respect to partition management information of the second to n-th devices among the first to n-th devices. And the result may be used for the second to n-th partition information of the virtual management information.
また、本発明では、前記デバイス制御部は、指定された前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかに特定する処理と、前記物理アドレスを算出する処理とを行い、前記論理アドレスに対応するデバイスが第k(kは2以上n以下)のデバイスである場合には、前記論理アドレスから第1〜第k―1のデバイスのパーティションのサイズの合計に相当する値を減算することで、前記物理アドレスを算出するようにしてもよい。 In the present invention, the device control unit performs a process of specifying any of the first to n-th devices based on the designated logical address, and a process of calculating the physical address, When the device corresponding to the logical address is a k-th device (k is 2 or more and n or less), a value corresponding to the total size of the partitions of the first to k-1 devices from the logical address is set. The physical address may be calculated by subtraction.
また、本発明では、前記デバイス制御部は、前記論理アドレスに対応するデバイスが第1のデバイスである場合には、前記論理アドレスを前記物理アドレスとして用いるようにしてもよい。 In the present invention, when the device corresponding to the logical address is the first device, the device control unit may use the logical address as the physical address.
以下、本発明の一実施形態について、図面を参照して説明する。なお、以下に説明する実施の形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また以下で説明される構成のすべてが本発明の必須構成要件であるとは限らない。なお、以下の図において同符号のものは同様の意味を表す。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The embodiments described below do not unduly limit the contents of the present invention described in the claims. Also, not all of the configurations described below are essential constituent requirements of the present invention. In the following drawings, the same reference numerals have the same meaning.
1.構成
図1に本実施形態の情報処理システム及びこの情報処理システムが組み込まれる電子機器の構成例を示す。
1. Configuration FIG. 1 shows a configuration example of an information processing system according to the present embodiment and an electronic apparatus in which the information processing system is incorporated.
パーソナルコンピュータPCと電子機器10は、バス70(例えばUSB(USB1.1、USB2.0等)などのシリアルバス等)を介して接続される。なお、電子機器10としては、例えば携帯電話、携帯型オーディオ機器、携帯型映像機器、デジタルカメラ、デジタルビデオカメラ、携帯型情報端末、ICレコーダ、或いは電子手帳などの種々の機器が考えられる。またシリアルバスを介して電子機器10に接続されるデバイスは、パーソナルコンピュータPCに限定されず、ホスト機能を有する電子機器(プリンタ、ストレージデバイス等)であってもよい。また、シリアルバスは、USB以外のシリアルバス(例えばIEEE1394)であってもよいし、多チャンネルのシリアルバスであってもよい。またシリアルバスの少なくとも一部が無線バスであってもよい。また、バス70はシリアルバスでなくてもよく、パラレルバスでも良い
電子機器10は、入力デバイス20、表示デバイス30、サウンドデバイス40、メモリ50、処理部60、ストレージドライブ80、シリアルインターフェース90を含む。なお電子機器10はこれらの一部を省略した構成であってもよい。例えばアプリケーションデバイスである入力デバイス20、表示デバイス30、サウンドデバイス40のうちの一部を省略したり、他のアプリケーションデバイス(例えばCCDなどの画像取り込みデバイス)を設けたりするようにしてもよい。またストレージ82がメモリカードなどの取り外し可能な外部メディアである場合には電子機器10はストレージ82を含まない構成となる。
The personal computer PC and the
入力デバイス20は、ユーザが種々の情報を入力するためのデバイスである。この入力デバイス20としては例えば操作ボタン、操作キー、スイッチ、キーボード、或いはマウスなどがある。
The
表示デバイス30は、ユーザに情報を表示するためのデバイスである。この表示デバイス30としては、例えばLCD(液晶ディスプレイ)、或いは有機ELディスプレイなどがある。
The
サウンドデバイス40は、ユーザにサウンド(音声、音楽)を出力したり、サウンドを入力(録音)するためのデバイスである。このサウンドデバイス30としは、例えばスピーカ、マイクなどがある。
The
メモリ50は、プログラムを記憶したり、データを一時的に記憶するものであり、ROM、RAM、EEPROM(電気的にデータの書き換えが可能な不揮発性メモリ)などである。また、本実施形態では、メモリ50上にRAMDISKを構築してRAM上に仮想のファイルシステムを構築することができる。
The
処理部60は、本実施形態の情報処理システムとして機能するものであり、電子機器10の全体や各部の制御を行う。処理部60による処理は、CPU(プロセッサ)などのハードウェア回路とCPU上で動作するプログラム(ファームウェア)により実現でき、このプログラム(処理モジュール)は、例えばメモリ50(ROM、EEPROM)に格納される。但し処理部60が含むこれらの各部の一部又は全部を、専用のハードウェア回路(ASIC)により実現してもよい。
The
ストレージドライブ80(ストレージインターフェース)は、ストレージ82へのアクセス制御を行うものであり、ストレージ82にアクセスして、ストレージ82からデータを読み出したり、ストレージ82にデータを書き込んだりするなどの制御を行う。ストレージ82は、各種データ(画像データ、音データ)のファイルシステム84(FAT12、FAT16、FAT32、NTFSなどのファイルシステム)を記憶(記録)する。ストレージ82としては、メモリカード(マルチメディアカード、メモリーカード)などの外部メディアや、ハードディスクなどの内蔵メディアがある。
The storage drive 80 (storage interface) controls access to the
また、図1にはストレージドライブ80は1つしか図示されていないが、これに限定されない。複数のストレージドライブ80が設けられても良い。
Further, FIG. 1 shows only one
シリアルインターフェース90は、シリアルバスを介したシリアル転送のためのインターフェースである。このシリアルインターフェース90は、物理層回路であるトランシーバや、データ転送(パケット転送)を制御する転送コントローラや、転送データを一時的に記憶するバッファ(パケットバッファ)や、バッファへのアクセス制御を行うバッファコントローラなどを含むことができる。なお、パーソナルコンピュータPCと電子機器10の接続はシリアルバス70に限定されず、パラレルのバスでも良い。
The
処理部60の仮想管理情報作成部62は、図2に示すように例えばメモリ50に構築されたRAMディスクのMBR情報(Master Boot Record、広義にはパーティション管理情報)と、ストレージドライブ80に接続されたストレージ82(例えば不揮発性メモリーカード等)のMBR情報から、複数のデバイスを1つのデバイスとして認識させるための仮想管理情報100を作成する。これにより、メモリ50に構築されたRAMディスクとストレージ82を1つのデバイスとしてパーソナルコンピュータPC等に認識させることができる。即ち、複数デバイスをパーソナルコンピュータPC等に認識させるために必要とした複雑な処理を省略することができる。
The virtual management
処理部60のデバイス制御部64は、仮想管理情報100と外部機器等から指定される論理セクタ又は論理アドレス等に基づいて複数のデバイスから対応するデバイスを選択するためのデバイス指定情報を算出する。さらにデバイス制御部64は、その対応するデバイスの物理セクタ又は物理アドレスを算出し、デバイス指定情報に対応するデバイスに対して、該物理セクタ又は物理アドレスを用いてアクセス制御を行う。
The
また、処理部60では、図3に示す処理が実行される。メイン60−1は複数のタスクの調停処理等を行い、その複数のタスクに、例えばUSB制御60−2、ファイルシステム制御60−3、表示制御60−4、入力制御60−5等があるが、これに限定されない。例えば表示の制御を行うタスクである表示制御60−4や入力制御を行うタスクである入力制御60−5が省略されても良い。USB制御60−2は、USBに対する制御を行うタスクである。
In the
また、ファイルシステム制御60−3は図4に示すように、メモリ50やストレージドライブ80に設定されたファイルシステムに対するアクセスを制御するタスクである。
The file system control 60-3 is a task for controlling access to the file system set in the
2.仮想管理情報
図5は、仮想管理情報100の論理アドレス空間を示す図である。仮想管理情報100によって、パーソナルコンピュータPC等の外部機器は複数のデバイス(例えばデバイス0としてRAMディスク、デバイス1としてメモリーカード)を一つのデバイスとして認識する。従って、外部機器からは仮想管理情報100による論理アドレスを指定することで、RAMディスク50(以下、メモリ50を説明の簡略化のためにRAMディスク50と呼ぶ)とメモリーカード82(以下、ストレージ82を説明の簡略化のためにメモリーカード82と呼ぶ)のいずれかにアクセスする。
2. Virtual Management Information FIG. 5 is a diagram showing a logical address space of the
ここで、例えば、図5に示すように論理アドレス10〜論理アドレス99までがRAMディスク50に割り当てられ、論理アドレス100以降がメモリーカード82に割り当てられているとする。このとき、外部機器から例えば論理アドレス100を指定する要求があった場合、処理部60のファイルシステム制御60−3は、仮想管理情報100を参照して、論理アドレス100がメモリーカード82の物理アドレス1に対応するという情報を取得し、メモリーカード82のファイルシステムにアクセスする制御を行う。
Here, for example, as shown in FIG. 5, it is assumed that
また、外部機器が論理アドレス10を指定する要求があった場合、ファイルシステム制御60−3は、仮想管理情報100からRAMディスク50の物理アドレス10を取得し、RAMディスクのファイルシステムにアクセスする制御を行う。
Further, when there is a request for the external device to specify the
このように、複数のデバイスの物理アドレスを仮想管理情報100に割り当てることで、外部機器は複数のデバイスに対して、1つのデバイスの論理アドレスを指定することでアクセスすることが可能である。
As described above, by assigning physical addresses of a plurality of devices to the
図6は、具体的な仮想管理情報100の構成例を示す図である。図6は、例えば第1〜第4のデバイス(広義には第1〜第nのデバイス、nは2以上の整数)の4つのデバイスを1つのデバイスとして認識させるための仮想管理情報100である。論理アドレス000hから所定のサイズ(図6では446バイト)の領域にはBootStrapLoader(広義にはブート情報)が設定される。この情報は、管理情報作成部62によって、新たに設定するようにしても良いし、例えば4つのデバイスのいずれかのMBR情報のBootStrapLoaderからコピーして設定されるようにしても良い。
FIG. 6 is a diagram illustrating a specific configuration example of the
論理アドレス1BEhから所定のサイズ(図6では16バイト)の領域には、第1のパーティションテーブル(広義には管理情報)として、デバイス0(例えばRAMディスク50)の管理情報102が設定される。この管理情報102は、管理情報作成部62によって、デバイス0のMBR情報からコピーして設定される。
In the area of a predetermined size (16 bytes in FIG. 6) from the logical address 1BEh, the
論理アドレス1CEhから所定のサイズ(図6では16バイト)の領域には、第2のパーティションテーブル(広義には管理情報)として、デバイス1(例えばメモリーカード82)の管理情報104が設定される。この管理情報104は、管理情報作成部62によって、デバイス1のMBR情報にオフセットが施されて設定される。
In the area of a predetermined size (16 bytes in FIG. 6) from the logical address 1CEh, the
第3、第4のパーティションテーブル(広義には管理情報)においても、第2パーティションテーブルと同様に、対応するデバイスのMBR情報(例えば管理情報106及び108)に所定のオフセットが施されて設定される。
Also in the third and fourth partition tables (management information in a broad sense), the MBR information (for example,
図7は、各管理情報102〜108の詳細を示す図である。各管理情報102〜108は例えば16バイトで構成され、先頭から順に、ブートフラグBF(例えば1バイト)、スタートアドレスCHS1(例えば3バイト)、パーティションタイプ(例えば1バイト)、エンドアドレスCHS2(例えば3バイト)、スタートアドレスLBA1(例えば4バイト)、エリアサイズLBA2(例えば4バイト)を含む。
FIG. 7 is a diagram showing details of the
ブートフラグBFはそのパーティション(管理情報に対応するデバイス)のブートのアクティブ、ノンアクティブを設定する情報である。スタートアドレスCHS1及びエンドアドレスCHS2はCHS(CylinderHeadSector)方式でのパーティション(管理情報に対応するデバイス)の仮想管理情報100におけるスタートアドレス又はエンドアドレスを示す情報である。
The boot flag BF is information for setting active / inactive booting of the partition (device corresponding to the management information). The start address CHS1 and the end address CHS2 are information indicating a start address or an end address in the
スタートアドレスLBA1はパーティション(管理情報に対応するデバイス)の仮想管理情報100における論理ブロックの開始アドレスを示す情報であり、エリアサイズLBA2はパーティション(管理情報に対応するデバイス)の仮想管理情報100における論理ブロックのサイズを示す情報である。
The start address LBA1 is information indicating the start address of the logical block in the
なお、本実施形態では、CHS方式及びLBA方式の両方に対応すべく、各管理情報102〜108が構成されている。
In the present embodiment, each piece of
3.仮想管理情報作成部
図8は仮想管理情報100の作成フローを示す図である。仮想管理情報作成部62では、ステップS1に示すようにまずRAMディスク50(広義には第1のデバイス)のMBR情報(広義には管理情報)が取得される。そして、ステップS2に示すようにメモリーカード82(広義には第2のデバイス)のMBR情報(広義には管理情報)が取得される。そして、ステップS3ではステップS1及びステップS2で取得されたMBR情報に基づいて仮想管理情報100を作成する。
3. Virtual Management Information Creation Unit FIG. 8 is a diagram showing a creation flow of the
なお、ステップS1、ステップS2の順番は逆でも良い。 Note that the order of step S1 and step S2 may be reversed.
図9は、例えば、仮想管理情報作成部62によって取得されたMBR情報のうち、LBA方式のパーティション情報に基づいて仮想管理情報100を作成した場合の仮想管理情報100の一例を示す図である。図9に示すように、RAMディスク50の物理セクタは、例えば1〜(RAMディスク50のセクタ数−1)であり、メモリーカード82の物理セクタは例えば1〜(メモリーカード82のセクタ数−1)である。
FIG. 9 is a diagram illustrating an example of the
なお、RAMディスク50のセクタ数及びメモリーカード82のセクタ数は、各MBR情報から取得される数である。
Note that the number of sectors of the
仮想管理情報作成部62は、RAMディスク50及びメモリーカード82のMBR情報を用いて仮想管理情報100を作成する。仮想管理情報100によって外部機器に単一のデバイスとして認識させるときの単一のデバイスを仮想デバイス110とする。仮想管理情報100は仮想デバイス110のMBR情報に相当する。そして、仮想管理情報100は仮想デバイス110の仮想セクタ0に対応する。
The virtual management
また、仮想管理情報作成部62は、RAMディスク50のMBR情報をコピーして仮想管理情報100の第1のパーティションテーブル(広義には管理情報)として用いる。具体的には、仮想セクタ1がRAMディスク50の物理セクタ1に対応し、仮想セクタ(RAMディスク50のセクタ数−1)がRAMディスク50の物理セクタ(RAMディスク50のセクタ数−1)に対応する。
The virtual management
また、仮想管理情報作成部62はメモリーカード82のMBR情報にオフセットを施す処理を行い、その結果を用いて仮想管理情報100の第2のパーティションテーブル(広義には管理情報)を作成する。具体的には、仮想セクタ(RAMディスク50のセクタ数)がメモリーカード82の物理セクタ1に対応し、仮想セクタ(RAMディスク50のセクタ数+メモリーカード82のセクタ数−2)がメモリーカード82の物理セクタ(メモリーカード82のセクタ数−1)に対応する。ここで、仮想セクタ(RAMディスク50のセクタ数)は、メモリーカード82の物理セクタ1にオフセット(RAMディスク50のセクタ数−1)が施されたものである。同様に、仮想セクタ(RAMディスク50のセクタ数+メモリーカード82のセクタ数−2)は、メモリーカード82の物理セクタ(メモリーカード82のセクタ数−1)にオフセット(RAMディスク50のセクタ数−1)が施されたものである。
Further, the virtual management
4.アクセス制御
図10は、外部機器から例えば図9に示すように設定された仮想デバイス110の論理セクタx(仮想セクタx)を指定する要求が送られた場合の各デバイスに対するアクセス制御のフローを示す図である。
4). Access Control FIG. 10 shows a flow of access control for each device when a request for specifying the logical sector x (virtual sector x) of the virtual device 110 set as shown in FIG. 9 is sent from an external device. FIG.
まずステップS11では、その論理セクタxが0であるかどうかの判断が行われる。このとき、論理セクタxが0である場合には、ステップ12に示す処理が行われる。ステップ12では、仮想管理情報100として格納されているデータにアクセスする処理である。これにより、外部機器等は仮想管理情報100の例えば第1〜第4のパーティションテーブル等の情報を取得することができる。また、外部機器等から仮想管理情報100を書き換えることができるようにしても良い。
First, in step S11, it is determined whether or not the logical sector x is 0. At this time, if the logical sector x is 0, the processing shown in step 12 is performed. Step 12 is processing for accessing data stored as the
一方、論理セクタxが0でない場合には、ステップ13の処理が行われる。ステップ13では、論理セクタxとRAMディスク50のセクタ数との大小比較が行われる。そして、論理セクタxがRAMディスク50のセクタ数よりも小さい場合には、ステップ14に示すようにRAMディスク50上の物理セクタxにアクセスする処理が行われる。この場合、論理セクタxの値がそのまま物理セクタxとして用いられる。
On the other hand, if the logical sector x is not 0, the process of step 13 is performed. In step 13, the size comparison between the logical sector x and the number of sectors of the
また、ステップ13において論理セクタxがRAMディスク50のセクタ数よりも大きい場合は、ステップ15に示すように論理セクタxとRAMディスク50のセクタ数からメモリーカード82上の物理セクタを算出する処理と、メモリーカード82上の算出された物理セクタにアクセスする処理が行われる。具体的には、ステップ15では、論理セクタx−(RAMディスク50のセクタ数)+1が、メモリーカード82上の物理セクタとして算出され、メモリーカード82上の物理セクタ(論理セクタx−(RAMディスク50のセクタ数)+1)にアクセスする処理が行われる。
If the logical sector x is larger than the number of sectors in the
上記のような処理によってRAMディスク50やメモリーカード82にアクセスすることができる。なお、図10に示すアクセス制御の処理は、処理部60のデバイス制御部64で行われる。デバイス制御部64は、例えば図3のファイルシステム制御60−3に組み込まれても良いし、別途アクセス制御を行うモジュールとして設けても良い。
The
5.比較例との対比と効果
図11は、複数のデバイスを複数のデバイスとして外部機器(例えばパーソナルコンピュータPC)に認識させる比較例の電子機器11を示す図である。
5. Comparison and Effect with Comparative Example FIG. 11 is a diagram illustrating an
比較例の場合、複数のデバイスを外部機器に認識させるために、複雑な処理を伴うファームウェア及びそれを処理する処理装置(例えばCPU等)が必要である。そのため、電子機器11の回路規模も大きくなり、例えば携帯電子機器などの小型電子機器に搭載することが難しい。
In the case of the comparative example, in order to make an external device recognize a plurality of devices, firmware with complicated processing and a processing device (for example, a CPU) that processes the firmware are necessary. Therefore, the circuit scale of the
さらに、図11のように例えば2つのデバイスを外部機器に認識させるため、外部機器からどちらのデバイスにアクセスがあるか等の調停処理も複雑になり、さらに外部機器とのインターフェースの転送速度が高速になれば、電子機器11での処理装置の処理速度も高速なものが要求される。例えば、パーソナルコンピュータPCに接続させるようなカードリーダー等ならば、電子機器11のコストを多少犠牲にしても高機能な電子機器11として製品化することが可能である。
Furthermore, as shown in FIG. 11, for example, two devices are recognized by an external device, so that arbitration processing such as which device is accessed from the external device becomes complicated, and the transfer rate of the interface with the external device is high. If so, it is required that the processing speed of the processing apparatus in the
しかしながら、小型電子機器に電子機器11を搭載させることは、回路規模の大きさ、高速な処理による消費電力等の課題があり、事実上困難である。その場合には、電子機器11のファームウェアを簡素化して、2つのデバイスのうち、どちらか一方を選択して外部機器に認識させる方法が考えられる。これならば電子機器11の処理装置の能力を下げることも可能であり、小型電子機器に搭載することも可能となる。但し、この方法では、認識させたいデバイスを何らかの方法で切り替える必要があり、不便である。
However, it is practically difficult to mount the
これらに対して、本願では、例えば図1に示すように仮想管理情報100を用いることによって、複数デバイスを単一のデバイスとして外部機器に認識させることができるため、結果として複数のデバイスを外部機器に認識させることができる。
In contrast, in the present application, for example, by using the
本願の実施形態では、仮想管理情報100を作成する仮想管理情報作成部62(例えばファームウェア)を電子機器10に実装するだけで、上記のような複数のデバイスの認識を可能にする。仮想管理情報作成部62の処理は、ファームウェア的にみても非常に軽い処理であるため、比較例の電子機器11に比べて、格段に軽いファームウェアを電子機器10に適用できる。このため、処理部60に必要な処理装置に要求される能力も低減され、回路規模縮小及び消費電力の低減が可能となる。
In the embodiment of the present application, it is possible to recognize a plurality of devices as described above only by mounting a virtual management information creating unit 62 (for example, firmware) that creates the
さらに、一度仮想管理情報100を作成すれば、ストレージ82の変更(記憶メディアの交換等)があるまで仮想管理情報作成部62は仮想管理情報100を作成しなくても良い。この点においても、電子機器11に比べて、実施形態の電子機器10は低消費電力化に有利である。
Furthermore, once the
また、本実施形態では、電子機器10に複数のデバイスが実装された場合、仮想管理情報100のパーティションをデバイスの数だけ作成することで、容易に複数のデバイスを外部機器に認識させることができる。即ち、制御上のファームウェアの設計が簡単になり、設計コストの削減も可能である。
Further, in the present embodiment, when a plurality of devices are mounted on the
また、デバイスの数が増えれば、比較例のような構成では、さらにファームウェアが複雑化する。ファームウェアが複雑化すれば、処理装置に要求される処理能力も増大し、小型電子機器に搭載する点においても非常に不利である。 Further, if the number of devices increases, the firmware becomes more complicated in the configuration as in the comparative example. If the firmware becomes complicated, the processing capability required for the processing apparatus increases, which is very disadvantageous in terms of mounting in a small electronic device.
しかしながら、本願では容易にデバイスの数に対応できるため、デバイスの数が増えても、ファームウェアは比較例に比べて非常に軽いため、処理装置に要求される処理能力もそれほど増大しない。即ち、デバイスの数が増える場合においても、本実施形態は処理装置による回路規模増大及び消費電力増大を低減できるので、比較例よりも小型電子機器に搭載する点において有利である。 However, in the present application, the number of devices can be easily accommodated. Therefore, even if the number of devices increases, the firmware is very light compared to the comparative example, so the processing capability required for the processing apparatus does not increase so much. That is, even when the number of devices increases, the present embodiment can reduce the increase in circuit scale and power consumption due to the processing apparatus, and is therefore advantageous in mounting in a small electronic device as compared with the comparative example.
上記のように、本発明の実施例について詳細に説明したが、本発明の新規事項及び効果から実体的に逸脱しない多くの変形が可能であることは当業者には容易に理解できるであろう。したがって、このような変形例はすべて本発明の範囲に含まれるものとする。例えば、明細書または図面において、少なくとも一度、より広義又は同義な異なる用語と共に記載された用語は、明細書または図面のいかなる箇所においても、その異なる用語に置き換えることができる。 As described above, the embodiments of the present invention have been described in detail. However, those skilled in the art can easily understand that many modifications can be made without departing from the novel matters and effects of the present invention. . Accordingly, all such modifications are intended to be included in the scope of the present invention. For example, a term described with a different term having a broader meaning or the same meaning at least once in the specification or the drawings can be replaced with the different term anywhere in the specification or the drawings.
10 電子機器、50 RAMディスク、62 仮想管理情報作成部、
64 デバイス制御部、82 メモリーカード、100 仮想管理情報
10 electronic devices, 50 RAM disks, 62 virtual management information creation unit,
64 device control unit, 82 memory card, 100 virtual management information
Claims (12)
前記第1〜第nのデバイスのパーティション管理情報から、前記第1〜第nのデバイスを1つのデバイスとして認識させるための仮想管理情報を作成する仮想管理情報作成部と、
前記第1〜第nのデバイスが前記仮想管理情報に基づいて1つのデバイスとして認識され、前記1つのデバイスの論理アドレスを指定してリード又はライトのアクセスが要求された場合に、
前記仮想管理情報及び前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかを指定するデバイス指定情報と前記論理アドレスに対応する物理アドレスを算出して、前記第1〜第nのデバイスの少なくとも1つに対するアクセス制御を行うデバイス制御部と、
を含むことを特徴とするデータ制御システム。 First to nth devices (n is an integer equal to or greater than 2) that are targets of data transfer via the bus;
A virtual management information creating unit for creating virtual management information for recognizing the first to nth devices as one device from the partition management information of the first to nth devices;
When the first to nth devices are recognized as one device based on the virtual management information, and a read or write access is requested by specifying a logical address of the one device,
Based on the virtual management information and the logical address, device designation information for designating any of the first to n-th devices and a physical address corresponding to the logical address are calculated, and the first to n-th devices are calculated. A device control unit for controlling access to at least one of the devices;
A data control system comprising:
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのいずれかの管理情報のブート情報を、前記仮想管理情報のブート情報にコピーして前記仮想管理情報を作成することを特徴とするデータ制御システム。 In claim 1,
The virtual management information creation unit
A data control system that creates the virtual management information by copying the boot information of the management information of any of the first to nth devices into the boot information of the virtual management information.
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのうちの前記第1のデバイスのパーティション管理情報を、前記仮想管理情報の第1パーティション情報にコピーして前記仮想管理情報を作成することを特徴とするデータ制御システム。 In claim 1 or 2,
The virtual management information creation unit
A data control system for creating the virtual management information by copying the partition management information of the first device among the first to n-th devices to the first partition information of the virtual management information .
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのうちの前記第2〜第nのデバイスのパーティション管理情報に対して、パーティションのスタートアドレスをオフセットする処理を施し、その結果を、前記仮想管理情報の第2〜第nパーティション情報に用いることを特徴とするデータ制御システム。 In claim 3,
The virtual management information creation unit
The partition management information of the second to n-th devices among the first to n-th devices is subjected to processing for offsetting the start address of the partition, and the result is stored in the second to second virtual management information. A data control system used for n-th partition information.
前記デバイス制御部は、
指定された前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかに特定する処理と、前記物理アドレスを算出する処理とを行い、
前記論理アドレスに対応するデバイスが第k(kは2以上n以下)のデバイスである場合には、前記論理アドレスから第1〜第k―1のデバイスのパーティションのサイズの合計に相当する値を減算することで、前記物理アドレスを算出することを特徴とするデータ制御システム。 In any one of Claims 1 thru | or 4,
The device controller is
Based on the specified logical address, a process for specifying one of the first to n-th devices and a process for calculating the physical address are performed.
When the device corresponding to the logical address is a k-th device (k is 2 or more and n or less), a value corresponding to the total size of the partitions of the first to k-1 devices from the logical address is set. A data control system, wherein the physical address is calculated by subtraction.
前記デバイス制御部は、
前記論理アドレスに対応するデバイスが第1のデバイスである場合には、前記論理アドレスを前記物理アドレスとして用いることを特徴とするデータ制御システム。 In claim 5,
The device controller is
When the device corresponding to the logical address is the first device, the logical address is used as the physical address.
前記第1〜第nのデバイスが前記仮想管理情報に基づいて1つのデバイスとして認識され、前記1つのデバイスの論理アドレスを指定してリード又はライトのアクセスが要求された場合に、
前記仮想管理情報及び前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかを指定するデバイス指定情報と前記論理アドレスに対応する物理アドレスを算出して、デバイスに対するアクセス制御を行うデバイス制御部と、
を含むことを特徴とするプログラム。 Virtual management for recognizing the first to n-th devices as one device from the partition management information of the first to n-th (n is an integer of 2 or more) devices to be transferred via the bus A virtual management information creation unit for creating information;
When the first to nth devices are recognized as one device based on the virtual management information, and a read or write access is requested by specifying a logical address of the one device,
A device that performs device access control by calculating device designation information for designating any of the first to nth devices and a physical address corresponding to the logical address based on the virtual management information and the logical address. A control unit;
The program characterized by including.
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのいずれかの管理情報のブート情報を、前記仮想管理情報のブート情報にコピーして前記仮想管理情報を作成することを特徴とするプログラム。 In claim 7,
The virtual management information creation unit
A program for creating virtual management information by copying boot information of management information of any of the first to nth devices into boot information of the virtual management information.
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのうちの前記第1のデバイスのパーティション管理情報を、前記仮想管理情報の第1パーティション情報にコピーすることで前記仮想管理情報を作成することを特徴とするプログラム。 In claim 7 or 8,
The virtual management information creation unit
A program for creating the virtual management information by copying the partition management information of the first device among the first to n-th devices to the first partition information of the virtual management information.
前記仮想管理情報作成部は、
前記第1〜第nのデバイスのうちの前記第2〜第nのデバイスのパーティション管理情報に対して、パーティションのスタートアドレスをオフセットする処理を施し、その結果を、前記仮想管理情報の第2〜第nパーティション情報用いることを特徴とするプログラム。 In claim 9,
The virtual management information creation unit
The partition management information of the second to n-th devices among the first to n-th devices is subjected to processing for offsetting the start address of the partition, and the result is stored in the second to second virtual management information. A program using the nth partition information.
前記デバイス制御部は、
指定された前記論理アドレスに基づいて、前記第1〜第nのデバイスのいずれかに特定する処理と、前記物理アドレスを算出する処理とを行い、
前記論理アドレスに対応するデバイスが第k(kは2以上n以下)のデバイスである場合には、前記論理アドレスから第1〜第k―1のデバイスのパーティションのサイズの合計に相当する値を減算することで、前記物理アドレスを算出することを特徴とするプログラム。 In any of claims 7 to 10,
The device controller is
Based on the specified logical address, a process for specifying one of the first to n-th devices and a process for calculating the physical address are performed.
When the device corresponding to the logical address is a k-th device (k is 2 or more and n or less), a value corresponding to the total size of the partitions of the first to k-1 devices from the logical address is set. A program characterized in that the physical address is calculated by subtraction.
前記デバイス制御部は、
前記論理アドレスに対応するデバイスが第1のデバイスである場合には、前記論理アドレスを前記物理アドレスとして用いることを特徴とするプログラム。 In claim 11,
The device controller is
When the device corresponding to the logical address is the first device, the program uses the logical address as the physical address.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005162538A JP2006338350A (en) | 2005-06-02 | 2005-06-02 | Data control system and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005162538A JP2006338350A (en) | 2005-06-02 | 2005-06-02 | Data control system and program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2006338350A true JP2006338350A (en) | 2006-12-14 |
Family
ID=37558856
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005162538A Withdrawn JP2006338350A (en) | 2005-06-02 | 2005-06-02 | Data control system and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006338350A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008204298A (en) * | 2007-02-21 | 2008-09-04 | Sony Corp | Information processing apparatus, information recording medium, information processing method, and computer program |
| JP7754634B2 (en) | 2021-03-30 | 2025-10-15 | 住友電気工業株式会社 | Content providing device and content providing system |
-
2005
- 2005-06-02 JP JP2005162538A patent/JP2006338350A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008204298A (en) * | 2007-02-21 | 2008-09-04 | Sony Corp | Information processing apparatus, information recording medium, information processing method, and computer program |
| JP7754634B2 (en) | 2021-03-30 | 2025-10-15 | 住友電気工業株式会社 | Content providing device and content providing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4399021B1 (en) | Disk array control device and storage device | |
| US20080229046A1 (en) | Unified support for solid state storage | |
| JP5984118B2 (en) | Storage device virtualization | |
| KR101301840B1 (en) | Method of data processing for non-volatile memory | |
| US20100161884A1 (en) | Nonvolatile Semiconductor Memory Drive, Information Processing Apparatus and Management Method of Storage Area in Nonvolatile Semiconductor Memory Drive | |
| JP2010525453A (en) | Remove-on-delete technology for solid-state drive optimization | |
| EP2954400A1 (en) | Readdressing memory for non-volatile storage devices | |
| US20170322728A1 (en) | Grouped trim bitmap | |
| CN114371812B (en) | Controllers and methods of operation | |
| US20200241794A1 (en) | Low latency swap device, system and method | |
| CN112988060A (en) | Key value storage device and method for operating key value storage device | |
| EP2499572A2 (en) | Flash memory file system | |
| JP5325637B2 (en) | Information processing program and information processing apparatus | |
| JP4212811B2 (en) | Information processing system, interface device, information processing device, information storage device | |
| JP2006338350A (en) | Data control system and program | |
| WO2020241545A1 (en) | Information processing device | |
| KR100950936B1 (en) | Solid state drive with multiple drives | |
| CN101258460B (en) | Method and apparatus for providing virtual flash memory device | |
| CN116048414A (en) | Device data reading method and electronic device | |
| JP2006338597A (en) | Data control system, program and electronic device | |
| US20110106861A1 (en) | Interface Techniques Providing Contiguous Storage For Files | |
| JP4439385B2 (en) | Buffering device and buffering method | |
| JP4439384B2 (en) | Buffering device and method of using memory device | |
| CN111158582A (en) | Storage device and electronic device | |
| JP2014123295A (en) | Setting method, program, and information processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20080805 |