JPH06259335A - External storage device - Google Patents

External storage device

Info

Publication number
JPH06259335A
JPH06259335A JP5044872A JP4487293A JPH06259335A JP H06259335 A JPH06259335 A JP H06259335A JP 5044872 A JP5044872 A JP 5044872A JP 4487293 A JP4487293 A JP 4487293A JP H06259335 A JPH06259335 A JP H06259335A
Authority
JP
Japan
Prior art keywords
data
storage device
error
sector number
external storage
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
JP5044872A
Other languages
Japanese (ja)
Inventor
Kenichi Kaki
健一 柿
Kunihiro Katayama
国弘 片山
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5044872A priority Critical patent/JPH06259335A/en
Publication of JPH06259335A publication Critical patent/JPH06259335A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a system which can easily detect and correct an error of a table indicating a data area used for an auxiliary storage device. CONSTITUTION:A read (301) of a 1st table is made and error detection (303) is performed by making a comparison with a value (302) read out of a 2nd table based on the read value; if an error is decided, the 2nd table is retrieved (304, 305, and 406) and when there is a retrieved value, the 1st table is corrected (308), but when not, the 2nd table is corrected (307) to correct the error of the table indicating the data area of the auxiliary storage device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置において
用いられる外部記憶装置に関し、特に、データ記憶領域
を示すテーブルをメモリに展開する外部記憶装置のテー
ブルのエラー処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external storage device used in an information processing apparatus, and more particularly to error processing of a table of an external storage device which expands a table showing a data storage area in a memory.

【0002】[0002]

【従来の技術】外部記憶装置内のファイルの物理的な位
置を表す物理パス名と論理的な見かけ上の位置を表す論
理パス名を設定し、それぞれのパス名を記憶するメモリ
をもつ外部記憶装置において、パス名を記憶するメモリ
にランダムアクセスメモリを用いた場合、読み出しデー
タの信頼性を向上するため、パリティビットを付加する
方式が一般的に採用されている。この方式はデータにパ
リティビットを付加してメモリに書き込み、そのメモリ
からデータを読みだすときパリティチェックを行い、パ
リティエラーが発生すると割込みによって制御装置にエ
ラーの発生が知らされる。これにより制御装置はあらか
じめ決められている割込みベクタの処理が行われる。
2. Description of the Related Art External storage having a memory for storing a physical path name indicating a physical position of a file in an external storage device and a logical path name indicating a logical apparent position, and storing each path name. In a device, when a random access memory is used as a memory for storing a path name, a method of adding a parity bit is generally adopted in order to improve reliability of read data. In this method, a parity bit is added to data and written in a memory, a parity check is performed when reading the data from the memory, and when a parity error occurs, an interrupt notifies the control device of the error occurrence. As a result, the control device processes the predetermined interrupt vector.

【0003】更に、読み出しデータの信頼性を向上する
ため、メモリにエラーチェックビットを付加して書き込
み、そのメモリからデータを読みだすとき、エラーチェ
ックビットを用い、エラーの有無を判定し、ビットエラ
ーを訂正する方式も一般的に用いられている。
Further, in order to improve the reliability of the read data, an error check bit is added to the memory for writing, and when the data is read from the memory, the error check bit is used to judge the presence / absence of an error and to determine the bit error. The method of correcting is also commonly used.

【0004】前記のようなファイル管理を持つ外部記憶
装置に関する公知例としては、特開平2−32430号
公報がある。
As a publicly known example of the external storage device having the above file management, there is JP-A-2-32430.

【0005】[0005]

【発明が解決しようとする課題】物理パス名と論理パス
名をテーブルとして記憶するメモリに対して、パリティ
チェック機能しか持たない場合、メモリデータのエラー
検出はできるが、エラーデータの訂正はできず、エラー
が発生するとデータ領域を示すテーブルが破壊されるこ
とに成り、外部記憶装置としては致命的な問題と成る。
When a memory that stores a physical path name and a logical path name as a table has only a parity check function, the memory data error can be detected, but the error data cannot be corrected. When an error occurs, the table indicating the data area is destroyed, which is a fatal problem for the external storage device.

【0006】また、エラーチェックビットを付加するこ
とでエラーデータを訂正する方式においても、1ビット
或いは数ビットの訂正は可能であるが、全ビットの訂正
は不可能である。
Further, even in the method of correcting error data by adding an error check bit, correction of one bit or several bits is possible, but correction of all bits is impossible.

【0007】本発明の目的は、相対するテーブルを持つ
外部記憶装置において、ハードウェアの負担を低減し、
かつ、データエラーが発生したテーブルの内容を容易に
訂正するものである。
An object of the present invention is to reduce the load on hardware in an external storage device having opposing tables,
Moreover, the contents of the table in which the data error has occurred are easily corrected.

【0008】[0008]

【課題を解決するための手段】第一のテーブルの内容を
番地とし、該当する第一のテーブルの番地を格納した第
二のテーブルを持ち、二つのテーブルを比較し、不一致
の場合二つのテーブルのうちどちらかがエラーかを判別
しエラーが発生した方のテーブルを書き換え、テーブル
のデータエラーを回避する。
[Means for Solving the Problems] The contents of the first table are used as addresses, and a second table that stores the addresses of the corresponding first table is stored. The two tables are compared. If they do not match, the two tables are compared. It is determined which is an error, and the table in which the error occurred is rewritten to avoid a data error in the table.

【0009】[0009]

【作用】本方式を用いることで、補助記憶装置のデータ
領域を示すテーブルがメモリ上でのデータエラーを回避
でき、信頼性の高い補助記憶装置が提供できる。また、
二つのテーブルの構成をそれぞれ読みだし、書き込み時
のデータ検索に最適となるように構成することで、補助
記憶装置内のデータ領域の検索を高速に行える。
By using this method, the table indicating the data area of the auxiliary storage device can avoid a data error on the memory, and a highly reliable auxiliary storage device can be provided. Also,
By reading out the configurations of the two tables and configuring them so as to be optimal for data retrieval at the time of writing, the retrieval of the data area in the auxiliary storage device can be performed at high speed.

【0010】[0010]

【実施例】以下図面を参照して本発明の実施例について
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0011】図1は本発明のメモリデータ訂正方式を用
いた外部記憶装置の原理ブロック図であり、図中1は第
一のテーブル、2は第二のテーブルのメモリであり、そ
れぞれデータ領域4に記憶されているデータセットの所
在を示している。3は第一のテーブル1と第二のテーブ
ル2の内容を読みだし、エラー検出と、エラー処理を行
う制御部。5は補助記憶装置内のローカルバスである。
6はホストとのインタフェース部であり、ホストバス7
とコマンドやデータの授受を行う。
FIG. 1 is a block diagram showing the principle of an external storage device using the memory data correction method of the present invention. In FIG. 1, 1 is a memory for a first table and 2 is a memory for a second table. Shows the location of the data set stored in. A control unit 3 reads out the contents of the first table 1 and the second table 2 and performs error detection and error processing. Reference numeral 5 is a local bus in the auxiliary storage device.
Reference numeral 6 denotes an interface section with the host, which is a host bus 7
And exchange commands and data.

【0012】図2は第一のテーブル1と第二のテーブル
2の構成とデータ領域4との関係を示す図である。デー
タ領域4は複数バイトを一単位としたセクタに分割さ
れ、それぞれのセクタに昇順あるいは降順に番号が付加
されている。この番号を以下物理セクタ番号と称する。
一方、補助記憶装置をアクセスするホストは補助記憶装
置のデータ領域を示すシリンダ番号やセクタ番号等を指
定することでデータの読み出し或いは書き込みを行う。
このホストが指定するシリンダ番号やセクタ番号などを
総称して以下論理セクタ番号と称する。ここで、ホスト
が指定する論理セクタ番号と、補助記憶装置内のデータ
領域を示す物理セクタ番号とが一対一で対応しない場
合、例えば、データ領域に書き換え回数の制限があり電
気的に書き換え可能な半導体メモリであるEEPROM
やフラッシュメモリを用いた際、書き換え回数の制限を
救済する方法として全データ領域に平均して書き換えを
行うため論理セクタ番号と物理セクタ番号が違ってい
る。また、データ領域に一度の書き込みしか行えないO
TPROMを用いた際、論理セクタ番号と物理セクタ番
号が異なる事は明らかである。以上の様に論理セクタ番
号と物理セクタ番号が異なるため、論理セクタ番号と物
理セクタ番号を変換するためのテーブルが第一のテーブ
ル1と第二のテーブル2である。
FIG. 2 is a diagram showing the relationship between the configuration of the first table 1 and the second table 2 and the data area 4. The data area 4 is divided into sectors each having a plurality of bytes as a unit, and a number is added to each sector in ascending or descending order. Hereinafter, this number is referred to as a physical sector number.
On the other hand, a host accessing the auxiliary storage device reads or writes data by designating a cylinder number, a sector number or the like indicating a data area of the auxiliary storage device.
The cylinder number, sector number, etc. designated by this host are collectively referred to as a logical sector number hereinafter. Here, when the logical sector number designated by the host and the physical sector number indicating the data area in the auxiliary storage device do not have a one-to-one correspondence, for example, the data area is electrically rewritable due to the limited number of rewrites. EEPROM which is a semiconductor memory
When a flash memory is used, the logical sector number and the physical sector number are different because rewriting is performed by averaging over all data areas as a method of relieving the limitation on the number of times of rewriting. Also, the data area can be written only once.
It is obvious that the logical sector number and the physical sector number are different when using the TPROM. Since the logical sector number and the physical sector number are different as described above, the tables for converting the logical sector number and the physical sector number are the first table 1 and the second table 2.

【0013】第一のテーブル1は論理セクタ番号の昇順
或いは降順に配置され、物理セクタ番号が格納されてい
る。図2では論理セクタ番号1,2,n,n+1,n+
2のデータがそれぞれ物理セクタ番号a,d,k,r,
hのデータ領域に格納されていることを示す。ホストが
補助記憶装置からのデータ読み出しは論理セクタ番号の
指定によって行われ、指定された論理セクタ番号をもと
に第一のテーブル1からデータが格納されている物理セ
クタ番号が求まる。
The first table 1 is arranged in ascending or descending order of logical sector numbers and stores physical sector numbers. In FIG. 2, logical sector numbers 1, 2, n, n + 1, n +
The data of 2 are physical sector numbers a, d, k, r,
Indicates that the data is stored in the data area of h. The host reads data from the auxiliary storage device by designating the logical sector number, and the physical sector number in which the data is stored is obtained from the first table 1 based on the designated logical sector number.

【0014】第二のテーブル2は物理セクタ番号の昇順
或いは降順に配置され、第一のテーブル1に格納されて
いる物理セクタ番号に対応した論理セクタ番号が格納さ
れている。図2では物理セクタ番号a,d,h,k,r
のそれぞれのデータ領域に、論理セクタ番号1,2,n
+2,n,n+1のデータが格納されていることを示し
ている。ホストから補助記憶装置へのデータの書き込み
も論理セクタ番号の指定によって行われ、補助記憶装置
のデータ領域の空き領域を検索し、ホストからのデータ
を書き込むデータ領域を確定する。ホストからのデータ
の書き込みを行ったデータ領域に対応する第二のテーブ
ル2に論理セクタ番号を登録すると共に、第一のテーブ
ル1には論理セクタ番号の位置に、データを書き込んだ
物理セクタ番号を登録する。そして2つのテーブルは常
に、対応とれたものと成っている。
The second table 2 is arranged in ascending or descending order of physical sector numbers, and stores logical sector numbers corresponding to the physical sector numbers stored in the first table 1. In FIG. 2, physical sector numbers a, d, h, k, r
In the respective data areas of the logical sector numbers 1, 2, n
This indicates that +2, n, n + 1 data is stored. The writing of data from the host to the auxiliary storage device is also performed by designating the logical sector number, the empty area of the data area of the auxiliary storage device is searched, and the data area to which the data from the host is written is determined. The logical sector number is registered in the second table 2 corresponding to the data area in which the data is written from the host, and the physical sector number in which the data is written is stored in the first table 1 at the position of the logical sector number. register. And the two tables are always matched.

【0015】次に本実施例の動作について説明する。図
3は制御部3が行うエラー検出とエラー処理の流れ図で
ある。ホストからデータの読み出しを行う場合、ホスト
が指定する論理セクタ番号をもとに制御部3は第一のテ
ーブル1から物理セクタ番号を読みだす(301)。こ
の読みだした物理セクタ番号を用い第二のテーブル2か
ら論理セクタ番号を読み出す(302)。ホストが指定
した論理セクタ番号と第2のテーブル2から読み出した
論理セクタ番号が一致すれば第一及び第二のテーブルの
値は正常である。しかし、不一致と成れば、第一か第二
の管理テーブルのうちどちらかが間違った値であること
が判断でき(303)、エラー訂正処理を行う。まず初
めに第一のテーブル1が壊れていると仮定し、第二のテ
ーブル2から該当する論理セクタ番号を検索する(30
4,305,306)。ここで第二のテーブル2から該
当する論理セクタ番号が見つかれば(305)仮定した
通り第一のテーブル1の内容が壊れていることであり、
第一のテーブル1を書き換える(308)。しかし、第
二のテーブル2の全領域から該当する論理セクタ番号が
見つからない場合(306)、第一のテーブル1の値は
正常であるということが明らかであり、第一のテーブル
1の内容の物理セクタ番号が指す第二のテーブル2の内
容を書き換える(307)。これにより第一のテーブル
1或いは第二のテーブル2の内容が壊れていても完全に
訂正することができる。
Next, the operation of this embodiment will be described. FIG. 3 is a flow chart of error detection and error processing performed by the control unit 3. When reading data from the host, the control unit 3 reads the physical sector number from the first table 1 based on the logical sector number designated by the host (301). A logical sector number is read from the second table 2 using the read physical sector number (302). If the logical sector number designated by the host and the logical sector number read from the second table 2 match, the values in the first and second tables are normal. However, if they do not match, it can be determined that either the first or second management table has an incorrect value (303), and error correction processing is performed. First, assuming that the first table 1 is broken, the corresponding logical sector number is searched from the second table 2 (30
4,305,306). If the corresponding logical sector number is found from the second table 2 (305), it means that the contents of the first table 1 are corrupted as assumed,
The first table 1 is rewritten (308). However, when the corresponding logical sector number is not found in the entire area of the second table 2 (306), it is clear that the values of the first table 1 are normal, and the contents of the first table 1 are The contents of the second table 2 indicated by the physical sector number are rewritten (307). As a result, even if the contents of the first table 1 or the second table 2 are corrupted, they can be completely corrected.

【0016】また、第一のテーブル1或いは第二のテー
ブル2または両方のテーブルにパリティビットを付加し
パリティチェック機能を持たせることで更に信頼性が向
上させることができる。例えば、第一のテーブル1がパ
リティエラーの場合、第一のテーブル1から読み出した
物理セクタ番号が壊れていることが容易に判断でき、第
2のテーブル2を読みだし、正常な物理セクタ番号を求
める。この正常な物理セクタ番号を第一のテーブル1に
書き込むことで壊れている第一のテーブル1の訂正が可
能である。逆に、第二のテーブル2がパリティエラーの
場合、第二のテーブル2から読み出した論理セクタ番号
が壊れていることが容易に判断でき、ホストから指定さ
れた論理セクタ番号を第二のテーブル2の該当する領域
に書き込みを行うことで訂正が可能である。
Further, the reliability can be further improved by adding a parity bit to the first table 1 or the second table 2 or both tables to provide a parity check function. For example, when the first table 1 has a parity error, it can be easily determined that the physical sector number read from the first table 1 is broken, the second table 2 is read, and the normal physical sector number is read. Ask. By writing this normal physical sector number in the first table 1, the broken first table 1 can be corrected. On the other hand, when the second table 2 has a parity error, it can be easily determined that the logical sector number read from the second table 2 is broken, and the logical sector number designated by the host is used as the second table 2 It is possible to correct by writing in the corresponding area of.

【0017】[0017]

【発明の効果】本発明は、以上のように処理すること
で、補助記憶装置のデータ領域を示すテーブルのエラー
訂正が可能であり、高信頼性な補助記憶装置を提供でき
る。
As described above, according to the present invention, it is possible to correct the error in the table showing the data area of the auxiliary storage device by the above processing, and to provide a highly reliable auxiliary storage device.

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

【図1】本発明のメモリデータ訂正方式を用いた外部記
憶装置のブロック図である。
FIG. 1 is a block diagram of an external storage device using a memory data correction method of the present invention.

【図2】2つのテーブルとデータ領域の関係を示す図で
ある。
FIG. 2 is a diagram showing a relationship between two tables and a data area.

【図3】本発明のメモリデータ訂正方式の流れ図であ
る。
FIG. 3 is a flow chart of a memory data correction method of the present invention.

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

1…第一のテーブル、2…第二のテーブル、3…制御
部、4…データ記憶領域、5…ローカルバス、6…ホス
トインタフェース部、7…ホストバス。
1 ... 1st table, 2 ... 2nd table, 3 ... control part, 4 ... data storage area, 5 ... local bus, 6 ... host interface part, 7 ... host bus.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データの論理的な位置を表す論理パス名に
対して、外部記憶装置内のデータの物理的な位置を表す
物理パスを設定する設定手段と、前記論理パス名を記憶
する第一の記憶手段と、前記物理パス名を記憶する第二
の記憶手段とを備えた外部記憶装置において、前記第一
の記憶手段と前記第二の記憶手段とを比較する比較手段
と、前記比較手段で異なる結果となったとき第一あるい
は第二の記憶手段を検索する検索手段と、前記検索手段
の検索結果から第一あるいは第二の記憶手段を訂正する
訂正手段とを備えたことを特徴とする外部記憶装置。
1. Setting means for setting a physical path representing a physical position of data in an external storage device for a logical path name representing a logical position of data, and a first means for storing the logical path name. In an external storage device comprising one storage means and second storage means for storing the physical path name, comparison means for comparing the first storage means and the second storage means, and the comparison And a correction means for correcting the first or second storage means from the search result of the search means when the results differ from each other. And an external storage device.
JP5044872A 1993-03-05 1993-03-05 External storage device Pending JPH06259335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5044872A JPH06259335A (en) 1993-03-05 1993-03-05 External storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5044872A JPH06259335A (en) 1993-03-05 1993-03-05 External storage device

Publications (1)

Publication Number Publication Date
JPH06259335A true JPH06259335A (en) 1994-09-16

Family

ID=12703592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5044872A Pending JPH06259335A (en) 1993-03-05 1993-03-05 External storage device

Country Status (1)

Country Link
JP (1) JPH06259335A (en)

Similar Documents

Publication Publication Date Title
US6085339A (en) System for memory error handling
US6009542A (en) Method for preventing transfer of data to corrupt addresses
JP2772391B2 (en) Bad data algorithm
US6681299B1 (en) Cache-tag control method in information processing apparatus having cache, with error checking mechanism in cache tag, and information processing apparatus using this control method
JPH086862A (en) Method and related system for enhancement of preservation ofdata stored in storage medium
JP2606862B2 (en) Single error detection and correction method
US6901551B1 (en) Method and apparatus for protection of data utilizing CRC
JPS6129024B2 (en)
JPH06259335A (en) External storage device
KR860002027B1 (en) Key memory error processing system
JPH0816483A (en) Control system for memory device
JP3130796B2 (en) Control storage device
JPH0756640B2 (en) Storage device
US7831889B2 (en) Method and device for error detection for a cache memory and corresponding cache memory
JPH0441375B2 (en)
JPS6051142B2 (en) Logging error control method
JPH01194046A (en) Memory access system
EP0371274A2 (en) Handling of errors in a storage key
JPH0756816A (en) Controller for memory
JPS58213349A (en) Information processor
JPH054266U (en) Memory device
JPS63271555A (en) Storage control system
JPH02143352A (en) Memory error detection and correction system
JPH03290745A (en) Memory error detecting/correcting method
JPH0373014B2 (en)