JP2001175525A - File system - Google Patents

File system

Info

Publication number
JP2001175525A
JP2001175525A JP35747199A JP35747199A JP2001175525A JP 2001175525 A JP2001175525 A JP 2001175525A JP 35747199 A JP35747199 A JP 35747199A JP 35747199 A JP35747199 A JP 35747199A JP 2001175525 A JP2001175525 A JP 2001175525A
Authority
JP
Japan
Prior art keywords
block
request
eeprom
file system
address
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
JP35747199A
Other languages
Japanese (ja)
Inventor
Daisuke Igawa
大介 井川
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP35747199A priority Critical patent/JP2001175525A/en
Publication of JP2001175525A publication Critical patent/JP2001175525A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To effectively utilize the unnecessary address space of an EEPROM. SOLUTION: Concerning the file system for using an EEPROM 4 as a block device, this file system is provided with a file system managing part 2 for detecting a block corresponding to a user request and outputting a request by specifying the relation of a user request file and a block, a block address translating layer 3 for reporting request contents on the basis of the address of the EEPROM corresponding to the block of the user request from the file system managing part and applying processing corresponding to the request contents to the detected block by specifying the relation of the block and the address of the EEPROM or the like, and the page erasure type EEPROM 4 for recording the request contents reported from the translating means into a managing area by forming the managing area in one part of plural divided blocks or area except for these blocks.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、メモリの少ない組
込み用計算機向けに組込んで好適なファイルシステムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file system which is suitable for an embedded computer having a small memory.

【0002】[0002]

【従来の技術】従来から一般システム向けに開発された
ファイルシステムを組込み用計算機に流用することがよ
く行われている。特に、マイクロコンピュータ向けファ
イルシステムである「FATファイルシステム」は、実
装が平易であること、また市販のソフトウエアが多いこ
とから、多用されている。ここで、FAT(File Allo
cation Table)とはディスクに格納されているデータ
の位置情報を記憶しておく領域を意味する。よって、F
ATファイルシステムは、通常,ファイル名とディスク
上のアドレスを記憶し管理するファイルシステムである
と言える。
2. Description of the Related Art Conventionally, a file system developed for a general system is often used for an embedded computer. In particular, the "FAT file system", which is a file system for microcomputers, is widely used because its implementation is simple and there are many commercially available software. Here, FAT (File Allo
The “cation table” means an area for storing position information of data stored on the disk. Therefore, F
An AT file system can be generally said to be a file system that stores and manages file names and addresses on a disk.

【0003】ところで、近年,「ページ消去型電気的消
去/書込み可能な読込み専用メモリ(以下、EEPRO
Mと呼ぶ)」が多用されてきているが、このEEPRO
Mと汎用ファイルシステムとの間には書込み方針に大き
く異なり、例えばファイルシステムの一部としてEEP
ROMを使用した場合には整合性を取る必要が生ずる。
In recent years, a “page erasing type electrically erasable / writable read-only memory (hereinafter referred to as EEPRO)
M) is often used, but this EEPRO
M and the general purpose file system differ greatly in writing policy, for example, EEP as part of the file system.
When a ROM is used, it is necessary to ensure consistency.

【0004】そこで、汎用ファイルシステムとEEPR
OMとの整合性をとるためのシステムとして、FTL
(Flash Translation Layer)システムが開発されて
いる。このFTLシステムは、「ページ消去型EEPR
OM」をファイルシステム向けの「ブロックデバイス」
として取り扱えるようにしたシステムである。
Therefore, a general-purpose file system and an EEPR
FTL is a system for achieving consistency with OM.
(Flash Translation Layer) system has been developed. This FTL system uses a “page erase type EEPR
"OM" for "block device" for file system
It is a system that can be handled as.

【0005】ところで、FTLシステムを用いた場合、
ファイルシステム向けのブロックデバイスのブロックと
EEPROM上のアドレスとは一対一の対応関係にな
い。その理由は、一般のファイルシステムはブロック単
位で「書き換える」ことが前提なっているが、EEPR
OMは当該EEPROMをブロック分けしたとしても、
EEPROMのブロックの書き換えにはファイルシステ
ムのブロックよりも遥かに大きな単位となる「ページ消
去」が前提となっており、しかもページ消去の繰返し上
限回数が比較的低い値(105程度)とされているため
である。その結果、EEPROMをブロックデバイスと
して扱う場合、むやみにページ消去ができないだけでな
く、ブロックデバイスのブロックを書き換える場合で
も、その書き換えの度にEEPROM上の以前書込んだ
アドレスとは別のアドレス上に必要な情報を書込むこと
になる。
[0005] By the way, when the FTL system is used,
There is no one-to-one correspondence between the blocks of the block device for the file system and the addresses on the EEPROM. The reason is that the general file system is premised on "rewriting" in block units, but EEPR
Even if the OM divides the EEPROM into blocks,
The rewriting of the EEPROM block is premised on "page erasure" which is a much larger unit than the block of the file system, and the upper limit number of repeated page erasures is set to a relatively low value (about 10 5 ). Because it is. As a result, when an EEPROM is treated as a block device, not only is it impossible to erase a page unnecessarily, but also when a block of a block device is rewritten, each time the rewrite is performed, a different address from the previously written address on the EEPROM is used. The necessary information will be written.

【0006】[0006]

【発明が解決しようとする課題】従って、以上のような
FTLを用いたファイルシステムは、EEPROMがペ
ージ消去であることから、ファイルシステム上不要であ
っても、書き換えが行われたとき以前書込んだブロック
は保持されている。そのため、ユーザからファイル消去
或いは縮小の要求があった場合、ファイルシステムのレ
ベルでは不要ブロックを空き情報として記録できても、
消去或いは縮小すべきEEPROM上のブロックはその
まま保持された状態となる。よって、EEPROM上の
ブロックは、再利用されない限り、多数のブロックは使
用されたままとなる。ここでいう「不要ブロック」は、
ファイルシステムのレベルとして不要なだけであって、
ブロックデバイスのレベルでは必要か否かを判断するこ
とができず、常に最後に書込んだ情報を最新情報として
保持するだけである。
Therefore, in the file system using the FTL as described above, since the EEPROM is used for page erasure, even if it is unnecessary in the file system, it is written before when rewriting is performed. The block is retained. Therefore, when a user requests a file to be deleted or reduced, even if unnecessary blocks can be recorded as free information at the file system level,
The block on the EEPROM to be erased or reduced is kept as it is. Therefore, many blocks in the EEPROM remain used unless reused. The “unnecessary block” here means
Not only unnecessary at the file system level,
At the block device level, it is not possible to determine whether it is necessary or not, and only the last written information is always kept as the latest information.

【0007】よって、ファイルシステムにEEPROM
を採用した場合、実際にはEEPROM上に不要なブロ
ックが多数有りながら、それらのアドレス空間を有効に
利用できない不都合があり、またその分だけEEPRO
M上のブロックへの書込み速度が遅くなるといった問題
がある。
Therefore, an EEPROM is used as a file system.
When there are many unnecessary blocks in the EEPROM, there is a disadvantage that the address space cannot be used effectively.
There is a problem that the writing speed to the block on M becomes slow.

【0008】本発明は上記事情に鑑みてなされたもの
で、ファイルシステム上で不要とされたブロックをフロ
ックデバイスレベルで積極的に空きの状態を作り出し、
EEPROMのアドレス空間の有効活用を図り、ブロッ
クの書込み速度を向上させるファイルシステムを提供す
ることにある。
The present invention has been made in view of the above circumstances, and actively creates an empty state at the flock device level for unnecessary blocks on a file system.
It is an object of the present invention to provide a file system capable of effectively utilizing an address space of an EEPROM and improving a writing speed of a block.

【0009】[0009]

【課題を解決するための手段】(1) 上記課題を解決
するために、本発明に係るファイルシステムは、ページ
消去型のEEPROMを複数にブロック分けし、ブロッ
クデバイスとして使用するファイルシステムにおいて、
ユーザ要求ファイルと前記ブロックとの関係が規定さ
れ、ユーザ要求を受けたとき対応するブロックを検出し
要求を出力するファイルシステム管理部と、前記ブロッ
クとEEPROMのアドレス等との対応関係が規定さ
れ、前記ファイルシステム管理部からのユーザ要求のブ
ロックを検出し、この検出ブロックに対応する前記EE
PROMのアドレスに基づいて要求内容を通知し、また
前記検出ブロックに要求内容に応じた処理を施すブロッ
ク・アドレス変換手段と、前記ブロック分けされた複数
のブロックの一部またはこれらブロック以外の領域に管
理領域が形成され、前記変換手段から通知される要求内
容を前記管理領域に記録する前記EEPROMとを備え
た構成である。
Means for Solving the Problems (1) In order to solve the above-mentioned problems, a file system according to the present invention is a file system in which a page erase type EEPROM is divided into a plurality of blocks and used as a block device.
A relationship between a user request file and the block is defined, a file system management unit that detects a corresponding block when a user request is received and outputs a request, and a correspondence relationship between the block and an EEPROM address or the like is defined, A block requested by the user from the file system management unit is detected, and the EE corresponding to the detected block is detected.
A block address conversion means for notifying the contents of the request based on the address of the PROM and performing processing according to the contents of the request to the detection block; and a part of the plurality of divided blocks or an area other than these blocks. A management area is formed, and the EEPROM for recording the request content notified from the conversion means in the management area is provided.

【0010】本発明は、以上のような構成としたことに
より、ユーザから所要の要求があったとき、ファイルシ
ステム管理部は、ユーザ要求ファイルに対応するブロッ
クを検出し、ブロックデバイスに要求内容を送出する。
このブロックデバイスの一部を構成するブロック・アド
レス変換手段では、ブロックとEEPROMのアドレス
等との関係が規定されているので、ユーザ要求内容のブ
ロックを検出し、この検出ブロックからEEPROMの
アドレスを取出し、EEPROMに要求内容を通知する
とともに、検出ブロックに要求内容に応じた処理を施
す。
According to the present invention having the above-described configuration, when a user makes a required request, the file system management unit detects a block corresponding to the user request file and sends the request content to the block device. Send out.
In the block address conversion means constituting a part of this block device, since the relationship between the block and the address of the EEPROM and the like is defined, the block of the content requested by the user is detected, and the address of the EEPROM is extracted from the detected block. , The request content is notified to the EEPROM, and processing corresponding to the request content is performed on the detection block.

【0011】ここで、EEPROMは、ブロック・アド
レス変換手段の内容と一対一の関係で情報を記録する管
理領域をもっており、ブロック・アドレス変換手段から
アドレスを伴う要求内容の通知があると、その管理領域
の該当領域に要求内容を記録する。その結果、ユーザを
含むファイルシステム管理部は、ブロック・アドレス変
換手段またはEEPROMの管理領域の記録内容から、
EEPROMのアドレス空間の空き状態が分かり、例え
ば管理領域内に付された記録内容である不要マークがあ
れば、その不要マークに隣接するブロックに対して廃棄
要求または書き換え要求を行えば、EEPROMのアド
レス空間の空きを増やすことができ、EEPROMのペ
ージ消去が可能となり、EEPROMの破棄されたアド
レス空間を容易に再利用可能となる。
Here, the EEPROM has a management area for recording information in a one-to-one relationship with the contents of the block address conversion means, and when a request content accompanied by an address is notified from the block address conversion means, the management area is managed. The request content is recorded in the corresponding area of the area. As a result, the file system management unit including the user uses the block address conversion means or the recorded contents of the management area of the EEPROM to
The empty state of the address space of the EEPROM can be known. For example, if there is an unnecessary mark which is the recording content added in the management area, a discard request or a rewrite request is made to a block adjacent to the unnecessary mark. Space can be increased, the page of the EEPROM can be erased, and the discarded address space of the EEPROM can be easily reused.

【0012】なお、ファイルシステム管理部は、単に入
出力要求データの受け渡しの機能をもたせ、このファイ
ルシステム管理部とブロック・アドレス変換手段との間
に、ユーザ要求ファイルと前記ブロックとの関係が規定
され、ユーザ要求を受けたとき対応するブロックを検出
し要求を出力するブロック検出機構を設けた構成でもよ
い。
The file system management section simply has a function of passing input / output request data, and the relationship between the user request file and the block is defined between the file system management section and the block / address conversion means. In addition, when a user request is received, a block detection mechanism that detects a corresponding block and outputs the request may be provided.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0014】図1は本発明に係るファイルシステムの一
実施の形態を示す構成図である。
FIG. 1 is a configuration diagram showing an embodiment of a file system according to the present invention.

【0015】このファイルシステムは、ファイルシステ
ムを使用するユーザ1と、ファイルシステム管理部2
と、ブロック・アドレス変換層3と、ページ消去型電気
的消去/書込み可能な読込み専用メモリであるEEPR
OM4とによって構成されている。
The file system includes a user 1 who uses the file system, a file system management unit 2
, A block / address conversion layer 3 and an EEPR which is a page erasure type electrically erasable / writable read-only memory
OM4.

【0016】前記ユーザ1は、ユーザインターフェース
としての機能を有し、一般的にはユーザプログラムをも
っている。このユーザ1は、外部から読込み・書込み要
求やファイル消去要求,ファイル移動要求の指示を受け
たとき、ユーザプログラムに従って所要のデータ等に変
換しファイルシステム管理部2に送出する機能をもって
いる。
The user 1 has a function as a user interface, and generally has a user program. The user 1 has a function of, upon receiving a read / write request, a file erasing request, or a file moving request from the outside, converting the data into required data or the like in accordance with a user program and sending the converted data to the file system management unit 2.

【0017】前記ファイルシステム管理部2は、ユーザ
1に対してファイルを提供し、またEEPROM4を磁
気ディスクと同様に扱うためのブロックデバイスに対し
て各種の要求を行う層でもあり、ユーザ1のファイルと
ブロックデバイスのブロックとの変換を行う層である。
このファイルシステム管理部2には、ファイルシステム
を扱う例えばFATなどのテーブルが設けられている。
このテーブルは、ユーザ1からの要求内容に応じたファ
イル名と要求内容の割り当てられているブロックが保存
し管理されている。よって、ファイルシステム管理部2
は、ユーザ1からある要求内容を受け付けたとき、割付
けブロックを検出し、当該検出ブロックNOおよび要求
内容等を送出する機能をもっている。
The file system management unit 2 is a layer that provides files to the user 1 and makes various requests to a block device for handling the EEPROM 4 in the same manner as a magnetic disk. This is a layer that performs conversion between a block and a block of a block device.
The file system management unit 2 is provided with a table for handling a file system, such as a FAT.
This table stores and manages a file name according to the request from the user 1 and blocks to which the request is assigned. Therefore, the file system management unit 2
Has a function of detecting an allocated block when receiving a request content from the user 1 and transmitting the detected block number, the request content, and the like.

【0018】前記ブロック・アドレス変換層3は、ファ
イルシステム管理部2からの各種要求に対するブロック
デバイスのインターフェースとして機能する層であっ
て、変換テーブルが設けられ、ブロックおよび要求内容
をEEPROM4のアドレス,データおよびコマンド対
に変換する役割をもっている。
The block / address conversion layer 3 is a layer functioning as an interface of a block device for various requests from the file system management unit 2. The block / address conversion layer 3 is provided with a conversion table. And has the role of converting to command pairs.

【0019】このEEPROM4は、複数のブロックに
分けられ、その1つのブロックは例えば512バイト領
域に相当する大きさに形成されている。EEPROMの
一般的な消去ブロックは64kバイトであることから、
EEPROM4のブロックデバイスのブロックとその領
域が大きく異なる。このEEPROM4に形成された複
数のブロックの内の一部のブロックまたはブロック以外
の領域に変換層3の変換テーブルの管理内容と一対一の
関係をもってデータを保持する管理領域5が形成されて
いる。
The EEPROM 4 is divided into a plurality of blocks, and one block is formed in a size corresponding to, for example, a 512-byte area. Since a typical erase block of an EEPROM is 64 Kbytes,
The block of the block device of the EEPROM 4 and its area are greatly different. A management area 5 for holding data in a one-to-one relationship with the management contents of the conversion table of the conversion layer 3 is formed in some of the blocks formed in the EEPROM 4 or in an area other than the blocks.

【0020】次に、以上のようなファイルシステムの動
作について説明する。
Next, the operation of the above file system will be described.

【0021】今、ユーザ1からファイル廃棄要求を出力
すると、ファイルシステム管理部2では、ファイル廃棄
要求に基づき、テーブルに予め割付けられているブロッ
クの中から廃棄要求を受けたデータ保持の必要がなくな
ったブロックを検出し、当該検出ブロックに対する「ブ
ロック廃棄要求」をブロックデバイス(変換層を含む)
に通知する。
Now, when a file discard request is output from the user 1, the file system management unit 2 does not need to hold the data for which the discard request has been received from the blocks pre-allocated to the table based on the file discard request. Block device (including the conversion layer)
Notify.

【0022】ここで、ブロック・アドレス変換層3は、
ブロック廃棄要求を受けると、変換テーブルから不要な
ブロックを保持することを止める処理(例えば不要マー
カ付加処理)を行い、当該ブロックを破棄したことをE
EPROM4に通知する。このEEPROM4は、その
管理領域5内のブロック対応アドレス管理領域部分に不
要マーカを付すことにより、ブロック・アドレス変換層
3の変換テーブルと一対一の関係を保持するように記録
する。この段階では、破棄されたブロックに対応するE
EPROMのデータ格納アドレスには未だデータが保持
されている。
Here, the block / address conversion layer 3
When a block discard request is received, a process of stopping retaining unnecessary blocks from the conversion table (for example, an unnecessary marker adding process) is performed, and it is determined that the block has been discarded.
Notify EPROM4. The EEPROM 4 records an unnecessary marker on the block corresponding address management area in the management area 5 so as to maintain a one-to-one relationship with the conversion table of the block / address conversion layer 3. At this stage, E corresponding to the discarded block
Data is still stored in the data storage address of the EPROM.

【0023】しかし、変換テーブルとEEPROM4の
管理領域5は一対一の関係にあるので、例えばユーザ1
またはファイルシステム管理部2がブロック・アドレス
変換層3等に対して変換テーブルの書込み内容を要求す
れば、EEPROM4の管理領域5内容であるEEPR
OM4の破棄されたアドレス空間が容易に把握できるの
で、例えばデータの書き換えを通して破棄されたEEP
ROM4のアドレス空間を増やしていくことが可能とな
る。
However, since the conversion table and the management area 5 of the EEPROM 4 have a one-to-one relationship, for example, the user 1
Alternatively, if the file system management unit 2 requests the block / address conversion layer 3 or the like to write the contents of the conversion table, the EEPROM 4 which is the contents of the management area 5 of the EEPROM 4
Since the discarded address space of the OM4 can be easily grasped, for example, the EEP discarded through data rewriting
It is possible to increase the address space of the ROM 4.

【0024】このことは、例えばある破棄されたアドレ
ス空間に隣接するアドレス空間のデータを書き換えるこ
とにより、ページに相当するアドレス空間を増やすこと
が可能であり、ページ相当分だけブロックが不要になっ
た時、EEPROM4の該当アドレスに対してページ消
去を実施すれば、EEPROM4のアドレス空間に空き
領域,ひいては有効利用領域ないし再利用領域を増やす
ことができ、またページ相当領域になるまでページ消去
をしないので、消去回数を減らすことができる。
This means that, for example, by rewriting data in an address space adjacent to a certain discarded address space, an address space corresponding to a page can be increased, and blocks corresponding to the page become unnecessary. At this time, if the page erasure is performed for the corresponding address of the EEPROM 4, a free area, and consequently, an effective use area or a reuse area can be increased in the address space of the EEPROM 4, and the page erasure is not performed until the area corresponding to the page is reached. , The number of erasures can be reduced.

【0025】なお、上記実施の形態では、変換層3の変
換テーブルのうち、不要とされたブロックに不要マーカ
を付してユーザ1等が把握可能にしたが、例えば変換テ
ーブル側では不要なブロックを保持することを止めるだ
けとし、ユーザ1等で変換テーブルのブロック保持停止
またはEEPROM4内の管理領域5の内容を読み出
し、後にページ消去により破棄されたEEPROM4の
アドレス空間を空き状態となるように回収すれば、同様
にEEPROM4の破棄されたアドレス空間を再利用で
きる。
In the above embodiment, the unnecessary tables are marked with unnecessary markers in the conversion table of the conversion layer 3 so that the user 1 or the like can grasp them. The user 1 or the like simply stops holding the conversion table or reads the contents of the management area 5 in the EEPROM 4 by the user 1 or the like, and collects the address space of the EEPROM 4 discarded by page erasure so that the address space becomes empty. Then, similarly, the discarded address space of the EEPROM 4 can be reused.

【0026】(その他の実施の形態)図2は本発明に係
るファイルシステムの他の実施形態を示す構成図であ
る。なお、同図において図1と同一部分には同一符号を
付し、その詳しい説明は省略する。
(Other Embodiments) FIG. 2 is a configuration diagram showing another embodiment of the file system according to the present invention. In the figure, the same parts as those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted.

【0027】このファイルシステムは、ファイルシステ
ム管理部2aの改良の他、当該ファイルシステム管理部
2aとブロック・アドレス変換層3との間に新たにブロ
ック検出機構6を設けたことにある。
In this file system, in addition to the improvement of the file system management unit 2a, a block detection mechanism 6 is newly provided between the file system management unit 2a and the block / address conversion layer 3.

【0028】このファイルシステム管理部2aは、ファ
イルシステム本来の機能であるユーザ1とブロックデバ
イス間の要求の受け渡しを行うことを主なる役割とす
る。
The main function of the file system management section 2a is to transfer a request between the user 1 and the block device, which is an original function of the file system.

【0029】前記ブロック検出機構6は、図1において
説明したユーザ1からの要求内容に応じたファイル名と
要求内容が割り当てられているブロックとを保存するテ
ーブルを所有し、ユーザ1からファイル廃棄要求が出力
されたとき、ファイルシステム管理部2から受け渡され
たファイル廃棄要求に基づきテーブルに予め割付けられ
ているブロックの中から廃棄要求を受けたデータ保持の
必要がなくなったブロックを検出し、当該検出ブロック
に対する「ブロック廃棄要求」をブロックデバイス(変
換層を含む)に通知する機能をもっている。
The block detecting mechanism 6 has a table for storing a file name corresponding to the request from the user 1 described in FIG. 1 and a block to which the request is allocated. Is output, the block that is no longer required to hold the data for which the discard request has been received is detected from among the blocks allocated in advance to the table based on the file discard request passed from the file system management unit 2, and It has a function of notifying a block device (including a conversion layer) of a "block discard request" for a detected block.

【0030】従って、この場合には、ファイルシステム
管理部2aはファイル廃棄要求を受け渡すだけであり、
ブロック検出機構6は、ファイル廃棄要求を受けたと
き、テーブルから不要とするブロックデバイスのブロッ
クを検出し、当該検出ブロックに対する「ブロック廃棄
要求」をブロックデバイス(変換層を含む)に通知す
る。その他は図1と同様であるので、図1の説明に譲
る。
Therefore, in this case, the file system management section 2a only passes the file discard request,
When receiving the file discard request, the block detection mechanism 6 detects a block of a block device that is not required from the table, and notifies the block device (including the conversion layer) of a “block discard request” for the detected block. The other parts are the same as those in FIG. 1, and thus will be described with reference to FIG.

【0031】また、ファイルシステム管理部2aがブロ
ック廃棄要求を出力しないが、例えばFATファイルシ
ステムの場合には、ブロック検出機構6がFATを監視
することにより、不要マークの付されたブロックを廃棄
対象と判断し、当該検出ブロックに対する「ブロック廃
棄要求」をブロックデバイス(変換層を含む)に通知す
る構成であってもよい。
Although the file system management unit 2a does not output a block discard request, for example, in the case of the FAT file system, the block detection mechanism 6 monitors the FAT to discard blocks with unnecessary marks. , And may notify the block device (including the conversion layer) of a “block discard request” for the detected block.

【0032】その他、本発明はその要旨を逸脱しない範
囲で種々変形して実施できる。
In addition, the present invention can be variously modified and implemented without departing from the gist thereof.

【0033】[0033]

【発明の効果】以上説明したように本発明によれば、フ
ァイルシステム上で不要とされたブロックが存在する
時、その不要とされたブロックに基づき、その隣接する
ブロックに相当するEEPROMのアドレス空間に対し
廃棄または書き換え等の要求を行うことにより、EEP
ROMの不要とするアドレス空間を積極的に作り出すこ
とが可能となり、EEPROMのアドレス空間の有効活
用を図ることができる。
As described above, according to the present invention, when an unnecessary block exists on the file system, the address space of the EEPROM corresponding to the adjacent block is determined based on the unnecessary block. By making a request to discard or rewrite
An address space that does not require a ROM can be positively created, and the effective use of the EEPROM address space can be achieved.

【0034】また、EEPROMのアドレス空間を増や
した状態で一度にページ消去を行うことができ、消去回
数を低減化できる。
Further, page erasing can be performed at a time while the address space of the EEPROM is increased, and the number of times of erasing can be reduced.

【0035】さらに、EEPROMの消去時間は通常の
デバイスよりも長いので、消去回数を減少させることに
より、EEPROMの寿命が長くなり、また平均書込み
速度を上げることが可能となる。
Further, since the erasing time of the EEPROM is longer than that of a normal device, the life of the EEPROM can be extended and the average writing speed can be increased by reducing the number of times of erasing.

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

【図1】 本発明に係るファイルシステムの一実施の形
態を示す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a file system according to the present invention.

【図2】 本発明に係るファイルシステムの他の実施形
態を示す構成図。
FIG. 2 is a configuration diagram showing another embodiment of the file system according to the present invention.

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

1…ユーザ 2,2a…ファイルシステム管理部 3…ブロック・アドレス変換層 4…EEPROM 5…管理領域 6…ブロック検出機構 DESCRIPTION OF SYMBOLS 1 ... User 2, 2a ... File system management part 3 ... Block address conversion layer 4 ... EEPROM 5 ... Management area 6 ... Block detection mechanism

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ページ消去型のEEPROMを複数にブ
ロック分けし、ブロックデバイスとして使用するファイ
ルシステムにおいて、 ユーザ要求ファイルと前記ブロックとの関係が規定さ
れ、ユーザ要求を受けたとき対応するブロックを検出し
要求を出力するファイルシステム管理部と、 前記ブロックとEEPROMのアドレス等との対応関係
が規定され、前記ファイルシステム管理部からのユーザ
要求のブロックを検出し、この検出ブロックに対応する
前記EEPROMのアドレスに基づいて要求内容を通知
し、また前記検出ブロックに要求内容に応じた処理を施
すブロック・アドレス変換手段と、 前記ブロック分けされた複数のブロックの一部またはこ
れらブロック以外の領域に管理領域が形成され、前記変
換手段から通知される要求内容を前記管理領域に記録す
る前記EEPROMとを備えことを特徴とするファイル
システム。
1. A file system in which a page erase type EEPROM is divided into a plurality of blocks and used as a block device, a relationship between a user request file and the blocks is defined, and a corresponding block is detected when a user request is received. And a correspondence relationship between the block and the address of the EEPROM, etc. is defined, a block requested by the user from the file system management unit is detected, and the EEPROM of the EEPROM corresponding to the detected block is detected. A block address conversion means for notifying a request content based on an address and performing processing according to the request content to the detection block; and a management area in a part of the plurality of divided blocks or an area other than these blocks. Is formed in the request notified from the conversion means. A file system comprising: the EEPROM for recording contents in the management area.
【請求項2】 ページ消去型のEEPROMを複数にブ
ロック分けし、ブロックデバイスとして使用するファイ
ルシステムにおいて、 ユーザ要求と前記ブロックデバイスとの間のデータ受け
渡しを行うファイルシステム管理部と、 ユーザ要求ファイルと前記ブロックとの関係が規定さ
れ、ユーザ要求を受けたとき対応するブロックを検出し
要求を出力するブロック検出機構と、 前記ブロックとEEPROMのアドレス等との関係が規
定され、前記ブロック検出機構からのユーザ要求のブロ
ックを検出し、この検出ブロックに対応する前記EEP
ROMのアドレスに基づいて要求内容を通知するととも
に、検出ブロックに要求内容に応じた処理を施すブロッ
ク・アドレス変換手段と、 前記ブロック分けされた複数のブロックの一部またはこ
れらブロック以外の領域に管理領域が形成され、前記変
換手段から通知される要求内容を前記管理領域に記録す
る前記EEPROMとを備えことを特徴とするファイル
システム。
2. A file system which divides a page erasure type EEPROM into a plurality of blocks and uses the block device as a block device, wherein a file system management unit for transferring data between a user request and the block device; A relationship between the block and the block is defined, a block detection mechanism that detects a corresponding block when a user request is received and outputs a request, and a relationship between the block and an EEPROM address and the like is defined. Detecting a block requested by a user and the EEP corresponding to the detected block;
A block address conversion means for notifying the request content based on the address of the ROM and performing processing according to the request content to the detected block; and managing a part of the plurality of divided blocks or an area other than these blocks. A file system, comprising: an area in which an area is formed; and the EEPROM which records request contents notified from the conversion means in the management area.
【請求項3】 ユーザ要求内容がブロック廃棄要求であ
るとき、前記ブロック・アドレス変換手段は、前記廃棄
要求ブロックを検出して不要なブロックの保持を止める
ともに、当該ブロックが破棄されたことを前記EEPR
OMに通知し、 このEEPROMは、管理領域の該当領域に不要マーク
を記録することを特徴とする請求項1または請求項2に
記載のファイルシステム。
3. When the content of the user request is a block discard request, the block / address conversion means detects the discard request block, stops holding unnecessary blocks, and informs the user that the block has been discarded. EEPR
3. The file system according to claim 1, wherein the OM is notified, and the EEPROM records an unnecessary mark in a corresponding area of the management area.
【請求項4】 ユーザ要求内容としては、前記管理領域
内に付された不要マークに隣接するブロックに対して廃
棄要求または書き換え要求を行うことにより、EEPR
OMのアドレス空間の空きを増やし、EEPROMのペ
ージ消去を可能とする請求項1ないし請求項3の何れか
1つに記載のファイルシステム。
4. The content of a user request is a request for discarding or rewriting a block adjacent to an unnecessary mark added in the management area, thereby achieving an EEPR.
The file system according to any one of claims 1 to 3, wherein a space in the address space of the OM is increased to enable page erasure of the EEPROM.
JP35747199A 1999-12-16 1999-12-16 File system Pending JP2001175525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35747199A JP2001175525A (en) 1999-12-16 1999-12-16 File system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35747199A JP2001175525A (en) 1999-12-16 1999-12-16 File system

Publications (1)

Publication Number Publication Date
JP2001175525A true JP2001175525A (en) 2001-06-29

Family

ID=18454300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35747199A Pending JP2001175525A (en) 1999-12-16 1999-12-16 File system

Country Status (1)

Country Link
JP (1) JP2001175525A (en)

Similar Documents

Publication Publication Date Title
US10649910B2 (en) Persistent memory for key-value storage
US7610434B2 (en) File recording apparatus
KR100453053B1 (en) Flash memory file system
US6571326B2 (en) Space allocation for data in a nonvolatile memory
US8838875B2 (en) Systems, methods and computer program products for operating a data processing system in which a file delete command is sent to an external storage device for invalidating data thereon
JP5336060B2 (en) Nonvolatile memory device and method of operating the same
US8028120B2 (en) System with flash memory device and data recovery method thereof
US7752412B2 (en) Methods of managing file allocation table information
US5832493A (en) Flash file management system
JP5032172B2 (en) Integrated memory management apparatus and method, and data processing system
CN1493026B (en) Memory device and record regenerator using it
US7681008B2 (en) Systems for managing file allocation table information
US20060224818A1 (en) Method for fast access to flash-memory media
US20070094440A1 (en) Enhanced data access in a storage device
KR19990063714A (en) Memory management
US7971022B2 (en) Apparatus and method of processing data of non-volatile memory using transaction block
TW201011767A (en) NAND error management
US20090125668A1 (en) Management of erased blocks in flash memories
KR101950759B1 (en) Garbage collection method for performing memory controller of storage device and memory controler
JP2003256269A (en) Control method for nonvolatile storage device, and memory device
JPH10289158A (en) Task management device
KR100977709B1 (en) A flash memory storage device and a manage method using the same
WO2008042594A1 (en) Managing file allocation table information
CN111949212B (en) File system and file management method based on self-defined open channel SSD
JP2001175525A (en) File system