JP2000099408A - System and method for managing feeprom disk and recording medium recording control program therefor - Google Patents

System and method for managing feeprom disk and recording medium recording control program therefor

Info

Publication number
JP2000099408A
JP2000099408A JP10269327A JP26932798A JP2000099408A JP 2000099408 A JP2000099408 A JP 2000099408A JP 10269327 A JP10269327 A JP 10269327A JP 26932798 A JP26932798 A JP 26932798A JP 2000099408 A JP2000099408 A JP 2000099408A
Authority
JP
Japan
Prior art keywords
disk
area
address
block
data
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
JP10269327A
Other languages
Japanese (ja)
Inventor
Shuji Nishikawa
修史 西川
Junji Takahashi
純司 高橋
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.)
NEC Corp
NEC Telecom System Ltd
Original Assignee
NEC Corp
NEC Telecom System 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 NEC Corp, NEC Telecom System Ltd filed Critical NEC Corp
Priority to JP10269327A priority Critical patent/JP2000099408A/en
Publication of JP2000099408A publication Critical patent/JP2000099408A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an FEEPROM disk managing system capable of prolonging the service life of a memory even without providing any special circuit inside a disk device. SOLUTION: An FEEPROM disk 306 is composed of three areas of a disk area 401 for storing data blocks to be managed by this filing system, a substitutive page managing area 402 for storing an address block to write the address of the data blocks in the rewritten disk area and a substitutive page area 403 for storing substitutive blocks to write the data blocks to be rewritten. For the read/write request of data block from the filing system to the disk area 401, a device driver provided outside the disk 306 checks the substitutive page managing area 402, judges whether it is the read/write to the disk area 401 or the substitutive page area 403 and performs the read/write control in the relevant area.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はFEEPROMデイ
スク管理システム及びその管理方法並びにその制御プロ
グラムを記録した記録媒体に関し、特にフラッシュメモ
リを記憶媒体とするFEEPROMデイスク装置中のデ
ータをファイルシステムで管理する方式に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a FEEPROM disk management system, a method for managing the same, and a recording medium on which a control program is recorded. It is about.

【0002】[0002]

【従来の技術】一般に、不揮発性半導体メモリ(例え
ば、FEEPROM)は、メーカーによってデータの書
込み回数が定められており、同一の領域に書込み動作が
繰返し行われると、その領域内に書込まれたデータの信
頼性が十分得られないことになる。かかる問題を解消す
る技術として、例えば、特開平5−204561号公報
に記載のものがある。
2. Description of the Related Art Generally, in a nonvolatile semiconductor memory (for example, FEEPROM), the number of times data is written is determined by a manufacturer, and when a write operation is repeatedly performed in the same area, the data is written in that area. Data reliability cannot be sufficiently obtained. As a technique for solving such a problem, for example, there is a technique described in Japanese Patent Application Laid-Open No. 5-204561.

【0003】この技術では、図10に示す様に、フラッ
シュメモリを記憶媒体とする半導体ディスク(シリコン
ディスク)1において、フラッシュメモリに、データを
記憶するデータメモリ領域8の他に、このデータメモリ
領域のエラーとなった領域を代替する代替メモリ領域及
びデータメモリのうちエラーとなったデータメモリの代
替メモリのアドレスをエラー情報として有するエラーメ
モリ領域7を設け、更にこれ等データメモリ領域及び代
替メモリ領域並びにエラーメモリ領域への書込み読出し
を行うメモリコントローラ5とを設けるようになってい
る。尚、図10において、2はホストシステム、3はホ
ストバス、4はマイコン、9はアドレス、10はデー
タ、11は制御信号を夫々示している。
In this technique, as shown in FIG. 10, in a semiconductor disk (silicon disk) 1 using a flash memory as a storage medium, in addition to a data memory area 8 for storing data in the flash memory, And an error memory area 7 having, as error information, an address of an alternative memory of the data memory in which the error has occurred among the alternative memory areas and the data memory area and the alternative memory area. In addition, a memory controller 5 for writing / reading to / from the error memory area is provided. In FIG. 10, 2 is a host system, 3 is a host bus, 4 is a microcomputer, 9 is an address, 10 is data, and 11 is a control signal.

【0004】[0004]

【発明が解決しようとする課題】図10の従来技術にお
いては、フラッシュメモリを記憶媒体とする半導体ディ
スク1の内部に、バッファメモリ6、エラーメモリ7及
びデータメモリ8を制御するためのメモリコントローラ
5が内蔵されている構成であり、この内蔵メモリコント
ローラ5によってFEEPROMのアクセス制御を行う
ものである。そのために、シリコンディスク1内でメモ
リコントローラ5が実装されていないと、当該シリコン
ディスク1のアクセス制御が不可能であるという欠点が
ある。
In the prior art shown in FIG. 10, a memory controller 5 for controlling a buffer memory 6, an error memory 7 and a data memory 8 is provided inside a semiconductor disk 1 using a flash memory as a storage medium. The built-in memory controller 5 controls access to the FEEPROM. Therefore, if the memory controller 5 is not mounted in the silicon disk 1, access control of the silicon disk 1 cannot be performed.

【0005】本発明の目的は、内部にメモリコントロー
ラ等の制御機能を設けずに、外部に当該制御機能である
デバイスドライバを設けてこのデバイスドライバのアク
セス機能により読み書き制御を可能として、特別の回路
を内部に設けなくともメモリの延命を可能としたFEE
PROMデイスク管理システム及びその管理方法並びに
その制御プログラムを記録した記録媒体を提供すること
である。
An object of the present invention is to provide a special circuit by providing a device driver as the control function without providing a control function such as a memory controller inside, and enabling read / write control by an access function of the device driver. FEE that can extend the life of the memory without providing a memory inside
An object of the present invention is to provide a PROM disk management system, a management method therefor, and a recording medium recording a control program therefor.

【0006】[0006]

【課題を解決するための手段】本発明によれば、フラッ
シュメモリを記憶媒体としたFEEPROMデイスク装
置の管理システムであって、前記FEEPROMデイス
ク装置は、データブロックを格納するディスク領域と、
前記ディスク領域に対する代替領域と、この代替領域を
管理する管理領域とを有し、前記デイスク装置の外部に
設けられて前記デイスク装置に対してバス接続されかつ
前記ディスク領域、代替領域、管理領域の制御をなす制
御手段を含むことを特徴とする管理システムが得られ
る。
According to the present invention, there is provided a management system for a FEEPROM disk device using a flash memory as a storage medium, wherein the FEEPROM disk device has a disk area for storing data blocks,
A replacement area for the disk area; and a management area for managing the replacement area. The storage area is provided outside the disk device, is connected to the disk device via a bus, and has a disk area, a replacement area, and a management area. There is provided a management system including control means for performing control.

【0007】そして、前記制御手段は、前記ディスク装
置に対するアクセスに応答して、このアクセスが前記デ
ィスク領域に対するものか前記代替領域に対するものか
判定すべく前記管理領域をチェックする手段と、このチ
ェック結果に応じた領域へのアクセスをなす手段とを有
することを特徴とする。
In response to the access to the disk device, the control means checks the management area to determine whether the access is to the disk area or to the alternative area, Means for making access to an area corresponding to

【0008】また、本発明によれば、データの送受信を
行うインターフェース回路と、データの読み書きを行う
場合に一時的に記憶するバッファと、データを格納する
FEEPROMディスクとで構成されフラッシュメモリ
を記憶媒体とするFEEPROMディスク装置と、前記
FEEPROMディスクのデータブロックを管理するフ
ァイルシステムと、前記FEEPROMディスクの読み
書き制御を行うデバイスドライバと、前記ファイルシス
テムと前記デバイスドライバを制御するオペレーティン
グシステムと、を有する情報処理装置におけるFEEP
ROMディスク管理システムであって、前記FEEPR
OMディスクは、前記データブロックを格納するディス
ク領域と、書替えを行ったディスク領域のデータブロッ
クのアドレスを書込むアドレスブロックを格納する代替
ページ管理領域と、書替えを行うデータブロックを書込
む代替ブロックを格納する代替ページ領域とを有し、前
記デバイスドライバは、前記ファイルシステムからの前
記ディスク領域へのデータブロックへのアクセスに応答
して、前記代替ページ管理領域をチェックして、前記デ
ィスク領域へのアクセスかまたは代替ページ領域へのア
クセスかを判断する手段と、該当領域へのアクセスを行
う手段とを有することを特徴とするディスク管理システ
ムが得られる。
Further, according to the present invention, a flash memory is constituted by an interface circuit for transmitting and receiving data, a buffer for temporarily storing data when reading and writing data, and a FEEPROM disk for storing data. An information processing system comprising: a FEEPROM disk device; a file system that manages data blocks of the FEEPROM disk; a device driver that controls reading and writing of the FEEPROM disk; and an operating system that controls the file system and the device driver. FEEP in equipment
A ROM disk management system, comprising: the FEEPR
The OM disk includes a disk area for storing the data block, an alternative page management area for storing an address block for writing an address of a data block in the rewritten disk area, and an alternative block for writing a data block for rewriting. An alternative page area to be stored, wherein the device driver checks the alternative page management area in response to accessing a data block from the file system to the disk area, and There is provided a disk management system having means for determining whether access is to an access to an alternative page area and means for accessing the corresponding area.

【0009】そして、前記デバイスドライバは、前記デ
ィスク領域への書込みがエラーとなった場合、前記代替
ページ管理領域の未使用のアドレスブロックを検索する
手段と、未使用のアドレスブロックが存在した場合は、
前記代替ページ管理領域の未使用のアドレスブロックに
書込み要求データブロックのアドレスを書込む手段と、
書込み要求データブロックのアドレスを書込んだアドレ
スブロックに対応した前記代替ページ領域の代替ブロッ
クへ書込みを行う手段とを有することを特徴とする。
The device driver includes means for searching for an unused address block in the alternative page management area when an error has occurred in writing to the disk area, and means for searching for an unused address block if an unused address block exists. ,
Means for writing an address of a write request data block to an unused address block of the alternative page management area;
Means for writing to an alternative block in the alternative page area corresponding to the address block in which the address of the write request data block has been written.

【0010】また、前記デバイスドライバは、前記代替
ページ領域への書込みがエラーとなった場合、前記代替
ページ管理領域の未使用のアドレスブロックを検索する
手段と、未使用のアドレスブロックが存在した場合は、
検索前に書込み要求データブロックのアドレスを書込ん
であった前記代替ページ管理領域のアドレスブロックに
書込み不可マークを書込む手段と、該当の未使用のアド
レスブロックに書込み要求データブロックのアドレスを
書込む手段と、書込み要求データブロックのアドレスを
書込んだアドレスブロックに対応した前記代替ページ領
域の代替ブロックへ書込みを行う手段とを有することを
特徴とし、また、前記デバイスドライバは、前記代替ペ
ージ管理領域に未使用のアドレスブロックが存在しない
場合、書込みエラーを前記オペレーティングシステムに
通知する手段を有することを特徴とする。
The device driver may further comprise means for retrieving an unused address block in the alternative page management area when writing to the alternative page area results in an error. Is
Means for writing a non-writable mark in the address block of the alternative page management area in which the address of the write request data block was written before the search, and writing the address of the write request data block in the corresponding unused address block Means, and means for writing to a substitute block of the substitute page area corresponding to the address block in which the address of the write request data block has been written, and wherein the device driver comprises: If there is no unused address block, a means for notifying the operating system of a write error is provided.

【0011】更に、前記デバイスドライバは、バスを介
して前記FEEPROMディスク装置に対して書込みコ
マンド及び書込みデータを送信する手段を有し、前記F
EEPROMディスク装置は、前記書込みコマンドを解
析して前記書込みデータを該当領域に書込む手段と、前
記書込みの終了に応答して割込みを発生して前記デバイ
スドライバに書込み完了を通知する手段を有することを
特徴とし、また、前記デバイスドライバは、バスを介し
て前記FEEPROMディスク装置に対して読込みコマ
ンド及び読込み先アドレスを送信する手段を有し、前記
FEEPROMディスク装置は、読込みコマンド及び読
込みアドレスを解析して該当読込みアドレスからデータ
の読込み準備を行う手段と、この読込み準備の完了に応
答して割込みを発生して前記デバイスドライバに読込み
準備完了を通知する手段とを有し、前記バスドライバ
は、更に前記バスを通じて該当アドレスのデータの読込
みを行う手段を有することを特徴とする。
Further, the device driver has means for transmitting a write command and write data to the FEEPROM disk device via a bus.
The EEPROM disk device has means for analyzing the write command and writing the write data in a corresponding area, and means for generating an interrupt in response to the end of the write and notifying the device driver of the write completion. Wherein the device driver has means for transmitting a read command and a read destination address to the FEEPROM disk device via a bus, and the FEEPROM disk device analyzes the read command and the read address. Means for preparing to read data from the corresponding read address, and means for generating an interrupt in response to the completion of the read preparation and notifying the device driver of the completion of the read preparation, wherein the bus driver further comprises: Means for reading data at the corresponding address through the bus It is characterized in.

【0012】本発明によれば、データの送受信を行うイ
ンターフェース回路と、データの読み書きを行う場合に
一時的に記憶するバッファと、データを格納するFEE
PROMディスクとで構成されフラッシュメモリを記憶
媒体とするFEEPROMディスク装置と、前記FEE
PROMディスクのデータブロックを管理するファイル
システムと、前記FEEPROMディスクの読み書き制
御を行うデバイスドライバと、前記ファイルシステムと
前記デバイスドライバを制御するオペレーティングシス
テムとを有し、前記FEEPROMディスクは、前記デ
ータブロックを格納するディスク領域と、書替えを行っ
たディスク領域のデータブロックのアドレスを書込むア
ドレスブロックを格納する代替ページ管理領域と、書替
えを行うデータブロックを書込む代替ブロックを格納す
る代替ページ領域とを有する情報処理装置におけるFE
EPROMディスク管理方法であって、前記ファイルシ
ステムからの前記ディスク領域へのデータブロックへの
アクセスに応答して、前記デバイスドライバが、前記代
替ページ管理領域をチェックし、前記ディスク領域への
アクセスかまたは代替ページ領域へのアクセスかを判断
し、該当領域へのアクセスを行うようにしたことを特徴
とするディスク管理方法が得られる。
According to the present invention, an interface circuit for transmitting and receiving data, a buffer for temporarily storing data when reading and writing data, and an FEE for storing data
A FROM disk device comprising a PROM disk and using a flash memory as a storage medium;
A file system that manages data blocks of the PROM disk; a device driver that controls reading and writing of the FEEPROM disk; and an operating system that controls the file system and the device driver. The FEEPROM disk stores the data blocks. It has a disk area for storing, an alternative page management area for storing an address block for writing an address of a data block of the rewritten disk area, and an alternative page area for storing an alternative block for writing a data block to be rewritten. FE in information processing equipment
An EPROM disk management method, wherein in response to accessing a data block from the file system to the disk area, the device driver checks the alternative page management area and accesses the disk area or It is possible to obtain a disk management method characterized in that it is determined whether or not an access is made to an alternative page area, and the area is accessed.

【0013】そして、前記ディスク領域への書込みがエ
ラーとなった場合、前記デバイスドライバが、前記代替
ページ管理領域の未使用のアドレスブロックを検索し、
未使用のアドレスブロックが存在した場合は、前記代替
ページ管理領域の未使用のアドレスブロックに書込み要
求データブロックのアドレスを書込み、書込み要求デー
タブロックのアドレスを書込んだアドレスブロックに対
応した前記代替ページ領域の代替ブロックへ書込みを行
うようにしたことを特徴とする。
When writing to the disk area results in an error, the device driver searches for an unused address block in the alternative page management area,
If there is an unused address block, the address of the write request data block is written in the unused address block of the alternative page management area, and the replacement page corresponding to the address block in which the address of the write request data block has been written. It is characterized in that writing is performed to a substitute block of an area.

【0014】また、前記代替ページ領域への書込みがエ
ラーとなった場合、前記デバイスドライバが、前記代替
ページ管理領域の未使用のアドレスブロックを検索し、
未使用のアドレスブロックが存在した場合は、検索前に
書込み要求データブロックのアドレスを書込んであった
前記代替ページ管理領域のアドレスブロックに書込み不
可マークを書込み、該当の未使用のアドレスブロックに
書込み要求データブロックのアドレスを書込み、書込み
要求データブロックのアドレスを書込んだアドレスブロ
ックに対応した前記代替ページ領域の代替ブロックへ書
込みを行うようにしたことを特徴とする。
If an error occurs in writing to the alternative page area, the device driver searches for an unused address block in the alternative page management area,
If there is an unused address block, write a non-writable mark in the address block of the alternative page management area where the address of the write request data block has been written before the search, and write the corresponding unused address block. The address of the request data block is written, and writing is performed to a substitute block of the substitute page area corresponding to the address block in which the address of the write request data block has been written.

【0015】更に、前記代替ページ管理領域に未使用の
アドレスブロックが存在しない場合、前記デバイスドラ
イバが、書込みエラーを前記オペレーティングシステム
に通知するようにしたことを特徴とし、また、前記デバ
イスドライバが、バスを介して前記FEEPROMディ
スク装置に対して書込みコマンド及び書込みデータを送
信有し、前記FEEPROMディスク装置が、前記書込
みコマンドを解析して前記書込みデータを該当領域に書
込み、前記書込みの終了に応答して割込みを発生して前
記デバイスドライバに書込み完了を通知するようにした
ことを特徴とする。
Further, when there is no unused address block in the substitute page management area, the device driver notifies a write error to the operating system. A write command and write data are transmitted to the FEEPROM disk device via a bus. And generating an interrupt to notify the device driver of the write completion.

【0016】また、前記デバイスドライバが、バスを介
して前記FEEPROMディスク装置に対して読込みコ
マンド及び読込み先アドレスを送信し、前記FEEPR
OMディスク装置が、読込みコマンド及び読込みアドレ
スを解析して該当読込みアドレスからデータの読込み準
備を行い、この読込み準備の完了に応答して割込みを発
生して前記デバイスドライバに読込み準備完了を通知
し、前記バスドライバが、前記バスを通じて該当アドレ
スのデータの読込みを行うようにしたことを特徴とす
る。
The device driver transmits a read command and a read destination address to the FEEPROM disk device via a bus, and
The OM disk device analyzes the read command and the read address, prepares for reading data from the read address, generates an interrupt in response to the completion of the read preparation, and notifies the device driver of the completion of the read preparation, The bus driver reads data of a corresponding address through the bus.

【0017】本発明によれば、データの送受信を行うイ
ンターフェース回路と、データの読み書きを行う場合に
一時的に記憶するバッファと、データを格納するFEE
PROMディスクとで構成されフラッシュメモリを記憶
媒体とするFEEPROMディスク装置と、前記FEE
PROMディスクのデータブロックを管理するファイル
システムと、前記FEEPROMディスクの読み書き制
御を行うデバイスドライバと、前記ファイルシステムと
前記デバイスドライバを制御するオペレーティングシス
テムとを有し、前記FEEPROMディスクは、前記デ
ータブロックを格納するディスク領域と、書替えを行っ
たディスク領域のデータブロックのアドレスを書込むア
ドレスブロックを格納する代替ページ管理領域と、書替
えを行うデータブロックを書込む代替ブロックを格納す
る代替ページ領域とを有する情報処理装置におけるFE
EPROMディスク管理方法のプログラムを記録した記
録媒体であって、前記プログラムは、前記ファイルシス
テムからの前記ディスク領域へのデータブロックへのア
クセスに応答して、前記デバイスドライバが、前記代替
ページ管理領域をチェックし、前記ディスク領域へのア
クセスかまたは代替ページ領域へのアクセスかを判断
し、該当領域へのアクセスを行うようにしたことを特徴
とする記録媒体が得られる。
According to the present invention, an interface circuit for transmitting / receiving data, a buffer for temporarily storing data when reading / writing data, and an FEE for storing data.
A FROM disk device comprising a PROM disk and using a flash memory as a storage medium;
A file system that manages data blocks of the PROM disk; a device driver that controls reading and writing of the FEEPROM disk; and an operating system that controls the file system and the device driver. The FEEPROM disk stores the data blocks. It has a disk area for storing, an alternative page management area for storing an address block for writing an address of a data block of the rewritten disk area, and an alternative page area for storing an alternative block for writing a data block to be rewritten. FE in information processing equipment
A recording medium on which a program of an EPROM disk management method is recorded, wherein the program causes the device driver to store the alternative page management area in response to an access to a data block from the file system to the disk area. It is possible to obtain a recording medium characterized in that a check is made to determine whether to access the disk area or the alternative page area, and access to the area is performed.

【0018】本発明の作用を述べる。ディスク装置の内
部にメモリコントローラ等の制御機能を設けずに、外部
に当該制御機能であるデバイスドライバを設けてこのデ
バイスドライバのアクセス機能により読み書き制御を可
能として、特別の回路を内部に設けなくともメモリの延
命を可能とするものである。
The operation of the present invention will be described. Without providing a control function such as a memory controller inside the disk device, a device driver, which is the control function, is provided outside, and read / write control can be performed by an access function of the device driver, so that a special circuit is not provided inside. It enables the life of the memory to be extended.

【0019】[0019]

【発明の実施の形態】以下に、本発明の実施の形態につ
いて図面を参照して説明する。図1は、この発明の一実
施例を示すFEEPROMディスクを組み込んだシステ
ムのブロック図である。本システムはCPU101とR
AM102とROM105とFEEPROMディスク装
置106とを含む。RAM102はCPUバス103に
接続され、ROM105及びFEEPROMディスク装
置106はIOバス104に接続される。RAM102
には、図2に示す様に、アプリケーションプログラム2
01、オペレーティングシステム202、ファイルシス
テム203及びデバイスドライバ204が格納されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a system incorporating a FEEPROM disk showing one embodiment of the present invention. This system is composed of CPU 101 and R
It includes an AM 102, a ROM 105, and a FEEPROM disk device 106. The RAM 102 is connected to the CPU bus 103, and the ROM 105 and the FEEPROM disk device 106 are connected to the IO bus 104. RAM 102
As shown in FIG. 2, the application program 2
01, an operating system 202, a file system 203, and a device driver 204 are stored.

【0020】FEEPROMディスク装置106は、図
3に示す様に、IOバス104との通信を行うインター
フェース回路302と、IOバスから送信されたデータ
を一時的に格納するバッファメモリ303と、FEEP
ROMディスク306とを含む。バッファメモリ303
とFEEPROMディスク306とはアドレスバス30
4とデータバス305で接続されている。そして、FE
EPROMディスク装置106の中のFEEPROMデ
ィスク306は、図4に示す様に、ディスク領域40
1、代替ページ管理領域402、代替ページ領域403
に分割して使用されるようになっている。
As shown in FIG. 3, the FEEPROM disk device 106 includes an interface circuit 302 for communicating with the IO bus 104, a buffer memory 303 for temporarily storing data transmitted from the IO bus 104, and a FEEPROM.
ROM disk 306. Buffer memory 303
And the FEEPROM disk 306 are connected to the address bus 30
4 and a data bus 305. And FE
The FEEPROM disk 306 in the EPROM disk device 106 has a disk area 40 as shown in FIG.
1, alternative page management area 402, alternative page area 403
It is designed to be used separately.

【0021】次に、図5、図6、図7及び図8のフロー
チャートを参照しつつ本発明の実施の形態の動作につい
て説明する。先ず、図5を参照すると、FEEPROM
ディスク306へのデータブロックの書込み方法を示す
フローチャートである。FEEPROMディスク306
のディスク領域401への書込みを行う場合、アプリケ
ーションプログラム201からファイルの書込み要求が
ファイルシステム203に通知されると、ファイルシス
テム203はこのファイルへの書込み要求を分析し、F
EEPROMディスク306のディスク領域401の該
当領域への書込み要求をデバイスドライバ204へ通知
する。
Next, the operation of the embodiment of the present invention will be described with reference to the flowcharts of FIGS. 5, 6, 7 and 8. First, referring to FIG.
6 is a flowchart illustrating a method for writing a data block to a disk 306. FEEPROM disk 306
When writing to the disk area 401 of a file, when a file write request is notified from the application program 201 to the file system 203, the file system 203 analyzes the file write request and
The device driver 204 is notified of a write request to the corresponding area of the disk area 401 of the EEPROM disk 306.

【0022】デバイスドライバ204は、図5のフロー
チャートに従って、FEEPROMディスク306に書
込みを実施する。ファイルシステム203からディスク
領域401に対して書込み要求があった場合、デバイス
ドライバ204は、書込み要求データブロックのアドレ
スが代替ページ管理領域402に存在するか検索し(処
理501)、代替ページ管理領域402に書込み要求デ
ータブロックのアドレスが存在するか判断する(処理5
02)。
The device driver 204 writes data to the FEEPROM disk 306 according to the flowchart of FIG. When a write request is issued from the file system 203 to the disk area 401, the device driver 204 searches whether the address of the write request data block exists in the alternative page management area 402 (process 501), and It is determined whether the address of the write request data block exists in
02).

【0023】代替ページ管理領域402に書込み要求デ
ータブロックのアドレスが存在しなければ、ディスク領
域401の該当アドレスにデータブロックの内容を書き
込む(処理504)。また、代替ページ管理領域402
に書込み要求データブロックのアドレスが存在すれば、
代替ページ管理領域402の該当アドレスブロックに対
応した代替ページ領域403の該当代替ブロックにデー
タブロックの内容を書き込む(処理503)。
If the address of the write request data block does not exist in the substitute page management area 402, the contents of the data block are written to the corresponding address of the disk area 401 (process 504). Also, the alternative page management area 402
If the address of the write request data block exists in
The contents of the data block are written to the corresponding substitute block of the substitute page area 403 corresponding to the corresponding address block of the substitute page management area 402 (process 503).

【0024】書込みが成功すれば(処理505)、書込
み処理を終了し、書込みがエラーとなった場合は(処理
505)、ディスク領域401への書込みかを判断し
(処理506)、ディスク領域401で書込みエラーと
なった場合は、代替ページ管理領域402の未使用アド
レスブロックを検索する(処理508)。
If the writing is successful (process 505), the writing process is terminated. If the writing is an error (process 505), it is determined whether the data is to be written to the disk area 401 (process 506). If a write error has occurred in step (a), an unused address block in the alternative page management area 402 is searched (step 508).

【0025】代替ページ領域403で書込みエラーとな
った場合、代替ページ管理領域402の書込み要求デー
タブロックのアドレスが書き込まれていたアドレスブロ
ックに書込み不可マークを書込み(処理507)、代替
ページ管理領域402の未使用アドレスブロックを検索
する(処理508)。
When a write error occurs in the alternative page area 403, a write disable mark is written in the address block of the alternative page management area 402 where the address of the write request data block has been written (process 507), and the alternative page management area 402 The unused address block is searched (step 508).

【0026】代替ページ管理領域402に未使用アドレ
スブロックが存在すれば(処理509)、代替ページ管
理領域402の未使用アドレスブロックに書き込み要求
データブロックのアドレスを書き込み(処理510)、
代替ページ管理領域402の書き込み要求データブロッ
クのアドレスを書き込んだアドレスブロックに対応した
代替ページ領域403の代替ブロックにデータブロック
の内容を書き込む(処理512)。
If there is an unused address block in the substitute page management area 402 (step 509), the address of the write request data block is written to an unused address block in the substitute page management area 402 (step 510).
The contents of the data block are written to the substitute block of the substitute page area 403 corresponding to the address block in which the address of the write request data block of the substitute page management area 402 has been written (process 512).

【0027】代替ページ管理領域402の未使用アドレ
スブロックの検索で(処理508)、代替ページ管理領
域402に未使用アドレスブロックが存在しなければ
(処理509)、オペレーティングシステム202に対
して書き込み不可能である旨のエラーを通知する(処理
511)。エラーの通知方法は任意とする。
In the search for an unused address block in the alternative page management area 402 (step 508), if there is no unused address block in the alternative page management area 402 (step 509), writing to the operating system 202 is impossible. Is notified (process 511). The error notification method is optional.

【0028】代替ページ管理領域402を検索(処理5
01)は、図8のフローチャートに従って、デバイスド
ライバ204はFEEPROMディスク装置106から
データの読込みを行い、書込み要求ブロックアドレスが
代替ページ管理領域402に存在するか確認する。
Search the alternative page management area 402 (Process 5)
01), the device driver 204 reads data from the FEEPROM disk device 106 according to the flowchart of FIG. 8, and checks whether the write request block address exists in the alternative page management area 402.

【0029】データの読込みは、デバイスドライバ20
4がFEEPROMディスク装置106に対して読込み
コマンドの送信(処理801)及び読込みアドレスを送
信(処理802)する。デバイスドライバ204はFE
EPROMディスク装置106から読込み準備完了割込
みにより通知される(処理803)と該当読込みアドレ
スから必要サイズ分のデータを読込む(処理804)。
Data reading is performed by the device driver 20.
4 transmits a read command to the FEEPROM disk device 106 (process 801) and transmits a read address (process 802). Device driver 204 is FE
When notified from the EPROM disk device 106 by a read preparation completion interrupt (step 803), data of a required size is read from the corresponding read address (step 804).

【0030】FEEPROMディスク装置106はIO
バス104から受信した読込みコマンド及び読込みアド
レスを解析し、FEEPROMディスク306から読込
みが可能になると、CPU101に対して読込み準備完
了の割込み信号を通知する。インターフェース回路30
2はFEEPROMディスク306のデータブロックを
アドレスバス304及びデータバス305を経由してバ
ッファメモリ303に格納されたデータをIOバス10
4に送信する。
The FEEPROM disk device 106 has an IO
The read command and the read address received from the bus 104 are analyzed, and when reading from the FEEPROM disk 306 becomes possible, the CPU 101 notifies the CPU 101 of a read preparation completion interrupt signal. Interface circuit 30
2 stores data stored in the buffer memory 303 via the address bus 304 and the data bus 305 into the IO bus 10
Send to 4.

【0031】ディスク領域401、代替ページ管理領域
402及び代替ページ領域への書込みは、図7のフロー
チャートに従って、デバイスドライバ204はFEEP
ROMディスク装置106にデータの書込みを行う。デ
ータの書込みは、デバイスドライバ204がFEEPR
OMディスク装置106に対して消去コマンドの送信
(処理701)及び消去ブロックアドレスの送信(処理
702)を行う。デバイスドライバ204は、FEEP
ROMディスク装置106から消去完了割込みが通知さ
れる(処理803)と書込みコマンドの送信(処理70
4)、書込みアドレスの送信(処理705)及び該当書
込みアドレスに必要サイズ分のデータを書込み(処理7
06),FEEPROMディスク装置106から書込み
完了割込みが通知される(処理707)と書込みを終了
する。
The writing to the disk area 401, the alternative page management area 402, and the alternative page area is performed according to the flowchart of FIG.
Data is written to the ROM disk device 106. Data writing is performed by the device driver 204 by the FEEPR.
The erase command is transmitted to the OM disk device 106 (process 701) and the erase block address is transmitted (process 702). The device driver 204 is a FEEP
When an erasure completion interrupt is notified from the ROM disk device 106 (process 803), a write command is transmitted (process 70).
4) Transmission of a write address (process 705) and writing of data of a required size to the write address (process 7)
06), when a write completion interrupt is notified from the FEEPROM disk device 106 (process 707), the writing ends.

【0032】FEEPROMディスク装置106はIO
バス104から受信した消去コマンド及び消去ブロック
アドレスを解析し、FEEPROMディスク306の該
当ブロックが消去されると、CPU101に対して消去
完了の割込み信号を通知する。また、書込みコマンド、
書込みアドレスをIOバス104から受信すると、イン
ターフェース回路302はFEEPROMディスク30
6の書込み準備を行い、書込みデータを受信するとイン
ターフェース回路302からバッファメモリ303に格
納され、アドレスバス304及びデータバス305を経
由してFEEPROMディスク306に該当アドレスに
データを書込む。
The FEEPROM disk device 106 has an IO
The erasing command and the erasing block address received from the bus 104 are analyzed, and when the corresponding block of the FEEPROM disk 306 is erased, the CPU 101 notifies the CPU 101 of an erasing completion interrupt signal. Also, a write command,
When the write address is received from the IO bus 104, the interface circuit 302
When the write data is received and the write data is received, it is stored in the buffer memory 303 from the interface circuit 302, and the data is written to the corresponding address on the FEEPROM disk 306 via the address bus 304 and the data bus 305.

【0033】FEEPROMディスク306のディスク
領域401から読込みを行う場合、アプリケーションプ
ログラム201からファイルの読込み要求がファイルシ
ステム203に通知されると、ファイルシステム203
は、ファイルへの読込み要求を分析し、FEEPROM
ディスク306のディスク領域401の該当領域からの
読込み要求をデバイスドライバ204へ通知する。
When reading from the disk area 401 of the FEEPROM disk 306, when a file reading request is notified from the application program 201 to the file system 203, the file system 203
Analyzes the read request to the file and
The device driver 204 is notified of a read request from a corresponding area of the disk area 401 of the disk 306.

【0034】デバイスドライバ204は、図6のフロー
チャートに従って、FEEPROMディスク306から
読込みを実施する。ファイルシステム203からディス
ク領域401に対して読込み要求があった場合、デバイ
スドライバ204は、読込み要求データブロックのアド
レスが代替ページ管理領域402に存在するか検索し
(処理601)、代替ページ管理領域402に読込み要
求データブロックのアドレスが存在するか判断する(処
理602)。
The device driver 204 reads data from the FEEPROM disk 306 according to the flowchart shown in FIG. When a read request is issued from the file system 203 to the disk area 401, the device driver 204 searches whether or not the address of the read request data block exists in the alternative page management area 402 (process 601). It is determined whether or not the address of the read request data block exists (step 602).

【0035】代替ページ管理領域402に読込み要求デ
ータブロックのアドレスが存在しなければ(処理60
2)、ディスク領域401の該当アドレスからデータブ
ロックの内容を読込む(処理604)。また、代替ペー
ジ管理領域402に読込み要求データブロックのアドレ
スが存在すれば(処理602)、代替ページ管理領域4
02の該当アドレスブロックに対応した代替ページ領域
403の該当代替ブロックにデータブロックの内容を読
込む(処理603)。
If the address of the read request data block does not exist in the substitute page management area 402 (process 60)
2) The contents of the data block are read from the corresponding address in the disk area 401 (process 604). If the address of the read request data block exists in the alternative page management area 402 (process 602), the alternative page management area 4
The content of the data block is read into the corresponding substitute block of the substitute page area 403 corresponding to the corresponding address block of No. 02 (process 603).

【0036】読込みが終了すると、デバイスドライバ2
04は、ファイルシステム203に対して、読込み内容
を通知する(処理605)。読込み内容の通知方法は、
任意である。デバイスドライバ204が、FEEPRO
Mディスク装置106から読み書きする場合の動作は、
FEEPROMディスク306への書込み処理と同様で
ある。
When the reading is completed, the device driver 2
04 notifies the file system 203 of the read content (step 605). The notification method of the read content is
Optional. If the device driver 204 is a FEEPRO
The operation when reading and writing from the M disk device 106 is as follows.
This is the same as the writing process to the FEEPROM disk 306.

【0037】[0037]

【実施例】本発明の一実施例の動作を詳細に説明する。
まず、FEEPROMディスク装置106の中のFEE
PROMディスク306は、8Mバイト(1Mバイトは
2の20乗バイト=1048576バイト)のFEEP
ROMを合わせて64個備える。従って、FEEPRO
Mディスク装置106の全体の記憶容量は512Mバイ
トとなる。このうち、FEEPROMディスク306の
ディスク領域401は、462Mバイトを割当て(アド
レス00000000H番地(Hは16進表示を表す)
から1CDFFFFFH番地までの512Mバイト)、
代替ページ管理領域402には、100kバイト(1k
バイトは2の10乗バイト=1024バイト)を割当て
(アドレス1CE00000H番地から1CE18FF
FH番地までの100kバイト)、代替ページ領域40
3には50Mバイトを割当てる(アドレス1CE190
00H番地から1FFFFFFFH番地までの50Mバ
イト)。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The operation of one embodiment of the present invention will be described in detail.
First, the FEE in the FEEPROM disk device 106
The PROM disk 306 has an 8 Mbyte (1 Mbyte is 2 to the 20th power byte = 1048576 bytes) FEEP
A total of 64 ROMs are provided. Therefore, FEEPRO
The total storage capacity of the M disk device 106 is 512 Mbytes. Among them, 462 Mbytes are allocated to the disk area 401 of the FEEPROM disk 306 (address 000000000H (H represents hexadecimal notation)).
To 1CDFFFFFH to 512 Mbytes),
The replacement page management area 402 has 100 kbytes (1 kbytes).
Bytes are allocated as 2 10 bytes = 1024 bytes (addresses 1CE0000H to 1CE18FF)
100 Kbytes to address FH), alternative page area 40
3 is allocated 50 Mbytes (address 1CE190
(50 MB from address 00H to address 1FFFFFFFFH).

【0038】本システムでは、FEEPROMディスク
306の1ページ当りの書込み単位は任意とし、ファイ
ルシステムからの1回当たりの書込み要求ブロックサイ
ズは、2048バイトとする。本システムでは、FEE
PROMディスク306の代替ページ領域403への書
込みは、ファイルシステム203からの1回当りの書込
み要求ブロックサイズ単位で行うため、2048バイト
単位で書込みを行う。例えば、2048バイト単位でブ
ロックを管理するため、データブロック0は00000
000H番地から000007FFH番地、データブロ
ック2は00000800H番地から00000FFF
H番地になる。従って、この装置では、書込みエラー時
に代替できる総ブロック数は25000ブロックであ
る。
In this system, the unit of writing per page of the FEEPROM disk 306 is arbitrary, and the size of a block requested to be written by the file system at one time is 2048 bytes. In this system, FEE
Writing to the substitute page area 403 of the PROM disk 306 is performed in units of a write request block size per one time from the file system 203, so that writing is performed in units of 2048 bytes. For example, to manage blocks in units of 2048 bytes, data block 0 is 000000
From address 000H to address 000007FFH, data block 2 is from address 0000000800H to address 00000FFF
Address H Therefore, in this device, the total number of blocks that can be replaced when a write error occurs is 25,000 blocks.

【0039】図9において、ファイルシステム203か
らFEEPROMディスク306のディスク領域401
のデータブロック0(アドレス00000000H番
地)に対して書込み要求があった場合、図5のフローチ
ャートに従って処理を行うと、デバイスドライバ204
は書込み要求データブロックのアドレス0000000
0Hが代替ページ管理領域402のアドレスブロックの
内容を検索し(処理501)、代替ページ管理領域40
2に書込み要求データブロックのアドレス000000
00Hが存在するか判断する(処理502)。
In FIG. 9, the disk area 401 of the FEEPROM disk 306 is transferred from the file system 203.
When a write request is issued to data block 0 (address 0000000000H) of the device driver 204, the processing is performed according to the flowchart of FIG.
Is the address of the write request data block 000000
0H searches the contents of the address block in the alternative page management area 402 (process 501), and
2 is the address 000000 of the write request data block
It is determined whether 00H exists (process 502).

【0040】代替ページ管理領域402に書込み要求デ
ータブロックのアドレス00000000Hが代替ペー
ジ管理領域402のアドレスブロック0に存在している
ため、データブロックの書込みは代替ページ管理領域4
02のアドレスブロック0に対応した代替ページ領域4
03の代替ブロック0に書込みを行う。
Since the address 00000000H of the write request data block exists in the alternative page management area 402 in the address block 0 of the alternative page management area 402, the data block is written in the alternative page management area 4
Alternate page area 4 corresponding to address block 0 of 02
Write to the alternative block 0 of 03.

【0041】同様にして、ディスク領域401のデータ
ブロック1(アドレス00000800H番地)に対し
て書込み要求があった場合、ディスク領域401のデー
タブロック1に対して書込みを行う。ディスク領域40
1のデータブロック2(アドレス00001000H番
地)に対して書込み要求があった場合、デバイスドライ
バ204は、書込み要求データブロックのアドレス00
001000Hが代替ページ管理領域402のアドレス
ブロックの内容を検索し(処理501)、代替ページ管
理領域402に書込み要求データブロックのアドレス0
0001000Hが存在するか判断する(処理50
2)。
Similarly, when a write request is issued to data block 1 (address 00000800H) of disk area 401, data is written to data block 1 of disk area 401. Disk area 40
When a write request is issued to the first data block 2 (address 00001000H), the device driver 204 writes the address 00 of the write request data block.
001000H searches the contents of the address block in the substitute page management area 402 (process 501), and writes the address 0 of the write request data block to the substitute page management area 402.
0001000H is determined (processing 50
2).

【0042】代替ページ管理領域402に書込み要求デ
ータブロックのアドレス00001000Hが代替ペー
ジ管理領域402のアドレスブロック1に存在している
ため、データブロックの書込みは代替ページ管理領域4
02のアドレスブロック1に対応した代替ページ領域4
03の代替ブロック1に書込みを行う。
Since the address 00001000H of the write request data block exists in the alternative page management area 402 in the address block 1 of the alternative page management area 402, the data block is written in the alternative page management area 4
Alternate page area 4 corresponding to address block 1 of 02
03 is written to the alternative block 1.

【0043】ここで、書込みがエラーの場合、代替ペー
ジ管理領域402のアドレスブロック1に書込み不可マ
ークFFFFFFFEHを書込み(処理507)、代替
ページ管理領域402の未使用アドレスブロックを検索
し(処理508)、図9では、代替ページ管理領域40
2のアドレスブロック2が未使用の場合、代替ページ管
理領域402のアドレスブロック2に書込み要求データ
ブロックのアドレス00001000Hを書込み(処理
510)、代替ページ管理領域402のアドレスブロッ
ク2に対応した代替ページ領域403の代替ブロック2
にデータブロック2の内容を書き込む(処理512)。
Here, if the writing is an error, the write disable mark FFFFFFFEH is written to the address block 1 of the alternative page management area 402 (processing 507), and an unused address block of the alternative page management area 402 is searched (processing 508). In FIG. 9, the alternative page management area 40
If the address block 2 of the second page is unused, the address 00001000H of the write request data block is written into the address block 2 of the alternative page management area 402 (processing 510), and the alternative page area corresponding to the address block 2 of the alternative page management area 402 Alternative block 2 for 403
Then, the contents of the data block 2 are written into (step 512).

【0044】図9において、ファイルシステム203か
らFEEPROMディスク306のディスク領域401
のデータブロック0(アドレス00000000H番
地)に対して読込み要求があった場合、図6のフローチ
ャートに従って処理を行うと、デバイスドライバ204
は、読込み要求データブロックのアドレス000000
00Hが代替ページ管理領域402のアドレスブロック
の内容を検索し(処理601)、代替ページ管理領域4
02に読込み要求データブロックのアドレス00000
000Hが存在するか判断する(処理602)。
In FIG. 9, the disk area 401 of the FEEPROM disk 306 is transferred from the file system 203.
When a read request is issued to data block 0 (address 0000000000H) of the device driver 204, the processing is performed according to the flowchart of FIG.
Is the address 000000 of the read request data block
00H searches the contents of the address block in the alternative page management area 402 (step 601), and
02 to address 00000 of read request data block
It is determined whether 000H exists (process 602).

【0045】代替ページ管理領域402に読込み要求デ
ータブロックのアドレス00000000Hが代替ペー
ジ管理領域402のアドレスブロック0に存在している
ため、データブロックの読込みは、代替ページ管理領域
302のアドレスブロック0に対応した代替ページ領域
403の代替ブロック0から読込みを行う。同様にし
て、ディスク領域401のデータブロック1(アドレス
00000800H番地)に対して読込み要求があった
場合、ディスク領域401のデータブロック1から読込
みを行う。
Since the address 000000000H of the read request data block exists in the alternative page management area 402 at the address block 0 of the alternative page management area 402, the data block reading corresponds to the address block 0 of the alternative page management area 302. Reading is performed from the replacement block 0 of the replacement page area 403 thus set. Similarly, when a read request is issued for the data block 1 (address 00000800H) of the disk area 401, the data is read from the data block 1 of the disk area 401.

【0046】尚、上述した図5〜図8のフローチャート
の処理は記憶媒体に予め格納された制御プログラムに基
づいて実行するように構成することができる。
The processing in the flowcharts of FIGS. 5 to 8 can be configured to be executed based on a control program stored in a storage medium in advance.

【0047】[0047]

【発明の効果】以上説明したように本発明においては、
ディスク装置内部に特別な回路を必要とせずにFEEP
ROMディスクの寿命を延ばすことができるため、以下
に記載するような効果を奏する。すなわち、ハードディ
スク装置からFEEPROMディスクへ変更する場合、
デバイスドライバを新たに組込むだけで動作可能であ
り、ソフトウェアレベルの再利用性が高くなる。また、
特別な回路を必要としないために、システム全体での部
品点数が少なくなり、従来のものと比較して信頼性を高
めることができる。
As described above, in the present invention,
FEEP without any special circuit inside the disk drive
Since the life of the ROM disk can be extended, the following effects can be obtained. That is, when changing from a hard disk drive to a FEEPROM disk,
Operation is possible only by newly incorporating a device driver, and reusability at the software level is improved. Also,
Since no special circuit is required, the number of components in the entire system is reduced, and the reliability can be improved as compared with the conventional system.

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

【図1】本発明の一実施例を示すFEEPROMディス
ク装置を搭載したシステムのブロック図である。
FIG. 1 is a block diagram of a system equipped with a FEEPROM disk device showing one embodiment of the present invention.

【図2】図1に示したRAM内で動作するプログラムの
ブロック図である。
FIG. 2 is a block diagram of a program that operates in a RAM shown in FIG. 1;

【図3】図1に示したFEEPROMディスク装置内の
構成を示した図である。
FIG. 3 is a diagram showing a configuration inside the FEEPROM disk device shown in FIG. 1;

【図4】図3に示したFEEPROMディスクの構成を
示した図である。
FIG. 4 is a diagram showing a configuration of a FEEPROM disk shown in FIG. 3;

【図5】EEPROMディスクへの書込み方法を示した
フローチャートである。
FIG. 5 is a flowchart showing a method for writing to an EEPROM disk.

【図6】FEEPROMディスクからの読込み方法を示
したフローチャートである。
FIG. 6 is a flowchart showing a method of reading data from a FEEPROM disk.

【図7】FEEPROMディスクの1ブロックに対する
の書込み方法を示したフローチャートである。
FIG. 7 is a flowchart showing a writing method for one block of the FEEPROM disk.

【図8】FEEPROMディスクの1ブロックに対する
読込み方法を示したフローチャートである。
FIG. 8 is a flowchart showing a reading method for one block of the FEEPROM disk.

【図9】実施例におけるFEEPROMディスクの構成
を示した図である。
FIG. 9 is a diagram showing a configuration of a FEEPROM disk in an embodiment.

【図10】従来例を示すブロック図である。FIG. 10 is a block diagram showing a conventional example.

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

101 CPU 102 RAM 103 CPUバス 104 IOバス 105 ROM 106 FEEPROMディスク装置 201 アプリケーションプログラム 202 オペレーティングシステム 203 ファイルシステム 204 デバイスドライバ 301 割込み信号 302 インターフェース回路 303 バッファメモリ 304 アドレスバス 305 データバス 306 FEEPROMディスク 401 ディスク領域 402 代替ページ管理領域 403 代替ページ領域 101 CPU 102 RAM 103 CPU bus 104 IO bus 105 ROM 106 FEEPROM disk device 201 application program 202 operating system 203 file system 204 device driver 301 interrupt signal 302 interface circuit 303 buffer memory 304 address bus 305 data bus 306 FEEPROM disk 401 disk area 402 Alternative page management area 403 Alternative page area

フロントページの続き (72)発明者 高橋 純司 神奈川県川崎市中原区小杉町一丁目403番 地 日本電気テレコムシステム株式会社内 Fターム(参考) 5B018 GA06 KA14 MA22 NA06 QA16 5B025 AA01 AC01 AD04 AE08 5B065 BA05 EA11 Continuation of the front page (72) Inventor Junji Takahashi 1-403 Kosugi-cho, Nakahara-ku, Kawasaki-shi, Kanagawa F-term in NEC Telecom System Corporation (reference) 5B018 GA06 KA14 MA22 NA06 QA16 5B025 AA01 AC01 AD04 AE08 5B065 BA05 EA11

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 フラッシュメモリを記憶媒体としたFE
EPROMデイスク装置の管理システムであって、 前記FEEPROMデイスク装置は、データブロックを
格納するディスク領域と、前記ディスク領域に対する代
替領域と、この代替領域を管理する管理領域とを有し、 前記デイスク装置の外部に設けられて前記デイスク装置
に対してバス接続されかつ前記ディスク領域、代替領
域、管理領域の制御をなす制御手段を含むことを特徴と
する管理システム。
1. An FE using a flash memory as a storage medium
A management system for an EPROM disk device, wherein the FEEPROM disk device has a disk area for storing a data block, an alternative area for the disk area, and a management area for managing the alternative area. A management system comprising a control means provided externally, connected to the disk device via a bus, and controlling the disk area, the replacement area, and the management area.
【請求項2】 前記制御手段は、前記ディスク装置に対
するアクセスに応答して、このアクセスが前記ディスク
領域に対するものか前記代替領域に対するものか判定す
べく前記管理領域をチェックする手段と、このチェック
結果に応じた領域へのアクセスをなす手段とを有するこ
とを特徴とする請求項1記載の管理システム。
2. In response to an access to the disk device, the control unit checks the management area to determine whether the access is to the disk area or to the alternative area, and the check result 2. A management system according to claim 1, further comprising means for accessing an area corresponding to the information.
【請求項3】 データの送受信を行うインターフェース
回路と、データの読み書きを行う場合に一時的に記憶す
るバッファと、データを格納するFEEPROMディス
クとで構成されフラッシュメモリを記憶媒体とするFE
EPROMディスク装置と、 前記FEEPROMディスクのデータブロックを管理す
るファイルシステムと、 前記FEEPROMディスクの読み書き制御を行うデバ
イスドライバと、 前記ファイルシステムと前記デバイスドライバを制御す
るオペレーティングシステムと、を有する情報処理装置
におけるFEEPROMディスク管理システムであっ
て、 前記FEEPROMディスクは、前記データブロックを
格納するディスク領域と、書替えを行ったディスク領域
のデータブロックのアドレスを書込むアドレスブロック
を格納する代替ページ管理領域と、書替えを行うデータ
ブロックを書込む代替ブロックを格納する代替ページ領
域とを有し、 前記デバイスドライバは、前記ファイルシステムからの
前記ディスク領域へのデータブロックへのアクセスに応
答して、前記代替ページ管理領域をチェックして、前記
ディスク領域へのアクセスかまたは代替ページ領域への
アクセスかを判断する手段と、該当領域へのアクセスを
行う手段とを有することを特徴とするディスク管理シス
テム。
3. An FE using a flash memory as a storage medium, comprising an interface circuit for transmitting and receiving data, a buffer for temporarily storing data when reading and writing data, and a FEEPROM disk for storing data.
An information processing apparatus comprising: an EPROM disk device; a file system that manages data blocks of the FEEPROM disk; a device driver that controls reading and writing of the FEEPROM disk; and an operating system that controls the file system and the device driver. A FEEPROM disk management system, wherein the FEEPROM disk has a disk area for storing the data block, an alternative page management area for storing an address block for writing an address of a data block of the rewritten disk area, and a rewrite operation. And a replacement page area storing a replacement block in which a data block to be written is written. The device driver further comprises: a data block from the file system to the disk area. Means for checking the alternative page management area in response to the access to determine whether the access is to the disk area or the alternative page area, and means for accessing the corresponding area A disk management system characterized by the following.
【請求項4】 前記デバイスドライバは、前記ディスク
領域への書込みがエラーとなった場合、前記代替ページ
管理領域の未使用のアドレスブロックを検索する手段
と、未使用のアドレスブロックが存在した場合は、前記
代替ページ管理領域の未使用のアドレスブロックに書込
み要求データブロックのアドレスを書込む手段と、書込
み要求データブロックのアドレスを書込んだアドレスブ
ロックに対応した前記代替ページ領域の代替ブロックへ
書込みを行う手段とを有することを特徴とする請求項3
記載のディスク管理システム。
4. The device driver according to claim 1, wherein when an error occurs in writing to said disk area, said device driver searches for an unused address block in said alternative page management area. Means for writing the address of a write request data block to an unused address block of the alternative page management area, and writing to an alternative block of the alternative page area corresponding to the address block in which the address of the write request data block has been written. And means for performing the operation.
A disk management system as described.
【請求項5】 前記デバイスドライバは、前記代替ペー
ジ領域への書込みがエラーとなった場合、前記代替ペー
ジ管理領域の未使用のアドレスブロックを検索する手段
と、未使用のアドレスブロックが存在した場合は、検索
前に書込み要求データブロックのアドレスを書込んであ
った前記代替ページ管理領域のアドレスブロックに書込
み不可マークを書込む手段と、該当の未使用のアドレス
ブロックに書込み要求データブロックのアドレスを書込
む手段と、書込み要求データブロックのアドレスを書込
んだアドレスブロックに対応した前記代替ページ領域の
代替ブロックへ書込みを行う手段とを有することを特徴
とする請求項3または4記載のディスク管理システム。
5. The device driver according to claim 1, further comprising: a unit configured to search for an unused address block in the alternative page management area when an error occurs in writing to the alternative page area; and when an unused address block exists. Means for writing a non-writable mark in the address block of the alternative page management area in which the address of the write request data block was written before the search, and adding the address of the write request data block to the corresponding unused address block. 5. The disk management system according to claim 3, further comprising means for writing, and means for writing to a substitute block in the substitute page area corresponding to the address block in which the address of the write request data block has been written. .
【請求項6】 前記デバイスドライバは、前記代替ペー
ジ管理領域に未使用のアドレスブロックが存在しない場
合、書込みエラーを前記オペレーティングシステムに通
知する手段を有することを特徴とする請求項3〜5いず
れか記載のディスク管理システム。
6. The device driver according to claim 3, wherein said device driver has means for notifying a write error to said operating system when there is no unused address block in said alternative page management area. A disk management system as described.
【請求項7】 前記デバイスドライバは、バスを介して
前記FEEPROMディスク装置に対して書込みコマン
ド及び書込みデータを送信する手段を有し、 前記FEEPROMディスク装置は、前記書込みコマン
ドを解析して前記書込みデータを該当領域に書込む手段
と、前記書込みの終了に応答して割込みを発生して前記
デバイスドライバに書込み完了を通知する手段を有する
ことを特徴とする請求項3〜6いずれか記載のディスク
管理システム。
7. The device driver includes means for transmitting a write command and write data to the FEEPROM disk device via a bus, wherein the FEEPROM disk device analyzes the write command and writes the write data. The disk management according to any one of claims 3 to 6, further comprising: means for writing to the corresponding area; and means for generating an interrupt in response to the end of the writing and notifying the device driver of the completion of the writing. system.
【請求項8】 前記デバイスドライバは、バスを介して
前記FEEPROMディスク装置に対して読込みコマン
ド及び読込み先アドレスを送信する手段を有し、前記F
EEPROMディスク装置は、読込みコマンド及び読込
みアドレスを解析して該当読込みアドレスからデータの
読込み準備を行う手段と、この読込み準備の完了に応答
して割込みを発生して前記デバイスドライバに読込み準
備完了を通知する手段とを有し、前記バスドライバは、
更に前記バスを通じて該当アドレスのデータの読込みを
行う手段を有することを特徴とする請求項3〜7いずれ
か記載のディスク管理システム。
8. The device driver, comprising: means for transmitting a read command and a read destination address to the FEEPROM disk device via a bus.
The EEPROM disk device analyzes a read command and a read address and prepares to read data from the read address. In response to the completion of the read preparation, an interrupt is generated to notify the device driver of the read preparation completion. Means, and the bus driver,
8. The disk management system according to claim 3, further comprising means for reading data at a corresponding address through said bus.
【請求項9】 データの送受信を行うインターフェース
回路と、データの読み書きを行う場合に一時的に記憶す
るバッファと、データを格納するFEEPROMディス
クとで構成されフラッシュメモリを記憶媒体とするFE
EPROMディスク装置と、 前記FEEPROMディスクのデータブロックを管理す
るファイルシステムと、 前記FEEPROMディスクの読み書き制御を行うデバ
イスドライバと、 前記ファイルシステムと前記デバイスドライバを制御す
るオペレーティングシステムとを有し、 前記FEEPROMディスクは、前記データブロックを
格納するディスク領域と、書替えを行ったディスク領域
のデータブロックのアドレスを書込むアドレスブロック
を格納する代替ページ管理領域と、書替えを行うデータ
ブロックを書込む代替ブロックを格納する代替ページ領
域とを有する情報処理装置におけるFEEPROMディ
スク管理方法であって、 前記ファイルシステムからの前記ディスク領域へのデー
タブロックへのアクセスに応答して、前記デバイスドラ
イバが、前記代替ページ管理領域をチェックし、前記デ
ィスク領域へのアクセスかまたは代替ページ領域へのア
クセスかを判断し、該当領域へのアクセスを行うように
したことを特徴とするディスク管理方法。
9. An FE which includes an interface circuit for transmitting and receiving data, a buffer for temporarily storing data when reading and writing data, and a FEEPROM disk for storing data, and uses a flash memory as a storage medium.
An EPROM disk device; a file system that manages data blocks of the FEEPROM disk; a device driver that controls reading and writing of the FEEPROM disk; and an operating system that controls the file system and the device driver. Stores a disk area for storing the data block, an alternative page management area for storing an address block for writing an address of a data block in the rewritten disk area, and an alternative block for writing a data block for rewriting. A method of managing an FEEPROM disk in an information processing apparatus having an alternative page area, the method comprising: responding to an access to a data block from the file system to the disk area; A disk driver that checks the alternative page management area, determines whether to access the disk area or access to the alternative page area, and accesses the corresponding area. .
【請求項10】 前記ディスク領域への書込みがエラー
となった場合、前記デバイスドライバが、前記代替ペー
ジ管理領域の未使用のアドレスブロックを検索し、未使
用のアドレスブロックが存在した場合は、前記代替ペー
ジ管理領域の未使用のアドレスブロックに書込み要求デ
ータブロックのアドレスを書込み、書込み要求データブ
ロックのアドレスを書込んだアドレスブロックに対応し
た前記代替ページ領域の代替ブロックへ書込みを行うよ
うにしたことを特徴とする請求項9記載のディスク管理
方法。
10. When writing to the disk area results in an error, the device driver searches for an unused address block in the alternative page management area, and when there is an unused address block, the device driver The address of the write request data block is written to an unused address block of the replacement page management area, and the writing is performed to the replacement block of the replacement page area corresponding to the address block in which the address of the write request data block is written. 10. The disk management method according to claim 9, wherein:
【請求項11】 前記代替ページ領域への書込みがエラ
ーとなった場合、前記デバイスドライバが、前記代替ペ
ージ管理領域の未使用のアドレスブロックを検索し、未
使用のアドレスブロックが存在した場合は、検索前に書
込み要求データブロックのアドレスを書込んであった前
記代替ページ管理領域のアドレスブロックに書込み不可
マークを書込み、該当の未使用のアドレスブロックに書
込み要求データブロックのアドレスを書込み、書込み要
求データブロックのアドレスを書込んだアドレスブロッ
クに対応した前記代替ページ領域の代替ブロックへ書込
みを行うようにしたことを特徴とする請求項9または1
0記載のディスク管理方法。
11. When an error occurs in writing to the alternative page area, the device driver searches for an unused address block in the alternative page management area, and when an unused address block exists, A write disable mark is written in the address block of the alternative page management area where the address of the write request data block was written before the search, and the address of the write request data block is written in the corresponding unused address block. 10. The writing method according to claim 9, wherein writing is performed to a replacement block in the replacement page area corresponding to the address block in which the address of the block is written.
0. A disk management method according to item 0.
【請求項12】 前記代替ページ管理領域に未使用のア
ドレスブロックが存在しない場合、前記デバイスドライ
バが、書込みエラーを前記オペレーティングシステムに
通知するようにしたことを特徴とする請求項9〜11い
ずれか記載のディスク管理方法。
12. The device driver according to claim 9, wherein when there is no unused address block in the substitute page management area, the device driver notifies the operating system of a write error. Disk management method described.
【請求項13】 前記デバイスドライバが、バスを介し
て前記FEEPROMディスク装置に対して書込みコマ
ンド及び書込みデータを送信有し、前記FEEPROM
ディスク装置が、前記書込みコマンドを解析して前記書
込みデータを該当領域に書込み、前記書込みの終了に応
答して割込みを発生して前記デバイスドライバに書込み
完了を通知するようにしたことを特徴とする請求項9〜
12いずれか記載のディスク管理方法。
13. The FEEPROM, wherein the device driver transmits a write command and write data to the FEEPROM disk device via a bus.
The disk device analyzes the write command, writes the write data in a corresponding area, generates an interrupt in response to the end of the write, and notifies the device driver of the write completion. Claim 9-
13. The disk management method according to any one of 12.
【請求項14】 前記デバイスドライバが、バスを介し
て前記FEEPROMディスク装置に対して読込みコマ
ンド及び読込み先アドレスを送信し、前記FEEPRO
Mディスク装置が、読込みコマンド及び読込みアドレス
を解析して該当読込みアドレスからデータの読込み準備
を行い、この読込み準備の完了に応答して割込みを発生
して前記デバイスドライバに読込み準備完了を通知し、
前記バスドライバが、前記バスを通じて該当アドレスの
データの読込みを行うようにしたことを特徴とする請求
項9〜13記載のディスク管理方法。
14. The FEEPRO, wherein the device driver transmits a read command and a read destination address to the FEEPROM disk device via a bus.
The M disk device analyzes the read command and the read address, prepares to read data from the read address, generates an interrupt in response to the completion of the read preparation, and notifies the device driver of the completion of the read preparation,
14. The disk management method according to claim 9, wherein said bus driver reads data of a corresponding address through said bus.
【請求項15】 データの送受信を行うインターフェー
ス回路と、データの読み書きを行う場合に一時的に記憶
するバッファと、データを格納するFEEPROMディ
スクとで構成されフラッシュメモリを記憶媒体とするF
EEPROMディスク装置と、 前記FEEPROMディスクのデータブロックを管理す
るファイルシステムと、 前記FEEPROMディスクの読み書き制御を行うデバ
イスドライバと、 前記ファイルシステムと前記デバイスドライバを制御す
るオペレーティングシステムとを有し、 前記FEEPROMディスクは、前記データブロックを
格納するディスク領域と、書替えを行ったディスク領域
のデータブロックのアドレスを書込むアドレスブロック
を格納する代替ページ管理領域と、書替えを行うデータ
ブロックを書込む代替ブロックを格納する代替ページ領
域とを有する情報処理装置におけるFEEPROMディ
スク管理方法のプログラムを記録した記録媒体であっ
て、 前記プログラムは、 前記ファイルシステムからの前記ディスク領域へのデー
タブロックへのアクセスに応答して、前記デバイスドラ
イバが、前記代替ページ管理領域をチェックし、前記デ
ィスク領域へのアクセスかまたは代替ページ領域へのア
クセスかを判断し、該当領域へのアクセスを行うように
したことを特徴とする記録媒体。
15. An F / F which includes an interface circuit for transmitting / receiving data, a buffer for temporarily storing data when reading / writing data, and a FEEPROM disk for storing data, and uses a flash memory as a storage medium.
An EEPROM disk device, a file system that manages data blocks of the FEEPROM disk, a device driver that controls reading and writing of the FEEPROM disk, and an operating system that controls the file system and the device driver. Stores a disk area for storing the data block, an alternative page management area for storing an address block for writing an address of a data block in the rewritten disk area, and an alternative block for writing a data block for rewriting. A recording medium on which a program for a FEEPROM disk management method in an information processing apparatus having an alternative page area is recorded, wherein the program stores the disk area from the file system. In response to the access to the data block, the device driver checks the alternative page management area, determines whether to access the disk area or the alternative page area, and accesses the corresponding area. A recording medium characterized by performing the following.
JP10269327A 1998-09-24 1998-09-24 System and method for managing feeprom disk and recording medium recording control program therefor Pending JP2000099408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10269327A JP2000099408A (en) 1998-09-24 1998-09-24 System and method for managing feeprom disk and recording medium recording control program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10269327A JP2000099408A (en) 1998-09-24 1998-09-24 System and method for managing feeprom disk and recording medium recording control program therefor

Publications (1)

Publication Number Publication Date
JP2000099408A true JP2000099408A (en) 2000-04-07

Family

ID=17470824

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10269327A Pending JP2000099408A (en) 1998-09-24 1998-09-24 System and method for managing feeprom disk and recording medium recording control program therefor

Country Status (1)

Country Link
JP (1) JP2000099408A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005066787A1 (en) * 2004-01-09 2005-07-21 Matsushita Electric Industrial Co., Ltd. Information recording medium
JP2007241896A (en) * 2006-03-10 2007-09-20 Sony Corp Nonvolatile memory system and management method of nonvolatile memory
JP2010015265A (en) * 2008-07-01 2010-01-21 Denso Corp Program rewriting device and program rewriting method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005066787A1 (en) * 2004-01-09 2005-07-21 Matsushita Electric Industrial Co., Ltd. Information recording medium
EP1705572A1 (en) * 2004-01-09 2006-09-27 Matsushita Electric Industrial Co., Ltd. Information recording medium
EP1705572A4 (en) * 2004-01-09 2007-05-09 Matsushita Electric Ind Co Ltd Information recording medium
JP2007241896A (en) * 2006-03-10 2007-09-20 Sony Corp Nonvolatile memory system and management method of nonvolatile memory
JP2010015265A (en) * 2008-07-01 2010-01-21 Denso Corp Program rewriting device and program rewriting method

Similar Documents

Publication Publication Date Title
EP1189139B1 (en) Recording system, data recording device, memory device, and data recording method
EP0548564B1 (en) Storage device employing a flash memory
US6789158B2 (en) Method of rewriting program in a flash microcomputer
KR101087906B1 (en) File recording device
US5933846A (en) Rewritable ROM file device having read/write buffer access control via copy of rewritable area
US8031536B2 (en) Storage device employing a flash memory
EP1548602B1 (en) Non-volatile storage device control method
US5841699A (en) Storage device and method to detect its degradation
US20080307152A1 (en) Memory Module, Memory Controller, Nonvolatile Storage, Nonvolatile Storage System, and Memory Read/Write Method
US8185705B2 (en) Information recording medium, information recording medium accessing apparatus and accessing method
US8661186B2 (en) Nonvolatile memory device, access device, and nonvolatile memory system
JPH11126488A (en) Method and device for storing and controlling data of external memory using plural flash memories
US6990554B2 (en) Data rewriting apparatus, control method, and recording medium
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
US7487298B2 (en) Disk array device, method for controlling the disk array device and storage system
US20060062041A1 (en) Memory device, momory managing method and program
US5233591A (en) Auto changer apparatus with a defect control memory
JPH10326227A (en) System for managing storage device using flash memory as storage medium
US6415371B1 (en) Storage system, storage device, storage medium controller, access device, method for protecting data, storage medium and computer data signal
JP2000099408A (en) System and method for managing feeprom disk and recording medium recording control program therefor
JP2000030375A (en) Data processing system, access device, and recording media
JPH06162786A (en) Information processor using flash memory
JPH04313882A (en) Record control system for memory card
JP3359934B2 (en) Data storage device
JPH05250884A (en) Nonvolatile storage device