JPH06124173A - Disk controller - Google Patents

Disk controller

Info

Publication number
JPH06124173A
JPH06124173A JP4271547A JP27154792A JPH06124173A JP H06124173 A JPH06124173 A JP H06124173A JP 4271547 A JP4271547 A JP 4271547A JP 27154792 A JP27154792 A JP 27154792A JP H06124173 A JPH06124173 A JP H06124173A
Authority
JP
Japan
Prior art keywords
count
data
disk device
storage buffer
host processor
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
JP4271547A
Other languages
Japanese (ja)
Inventor
Akihiro Asano
聡宏 浅野
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4271547A priority Critical patent/JPH06124173A/en
Publication of JPH06124173A publication Critical patent/JPH06124173A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the processing time of data when a reading error is generated on a count part. CONSTITUTION:This device is equipped with a count part storage buffer which houses the content of a count part. At that time, when the reading error is detected at a count part 530 of a block N, the content of the count part 530 is read, and stored in the count part storage buffer. Next, a microprocessor corrects the error of the content stored in the count part storage buffer, writes the corrected content of the count part storage buffer in the count part 530, and operates the processing of a data part 540.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ書き込み時にカ
ウント部の内容の誤り訂正を行うディスク制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk controller for correcting errors in the contents of a count section when writing data.

【0002】[0002]

【従来の技術】従来のディスク制御装置の構成を図4に
示す。従来のディスク制御装置2は、ホストプロセッサ
1からのデータの受け取り及びホストプロセッサ1への
データの転送を行うホストインターフェース3と、ホス
トプロセッサ1,ディスク装置7間とのデータ転送の制
御を行うホストプロセッサ4とを有している。
2. Description of the Related Art The structure of a conventional disk controller is shown in FIG. A conventional disk controller 2 is a host interface 3 that receives data from the host processor 1 and transfers data to the host processor 1, and a host processor that controls data transfer between the host processor 1 and the disk device 7. 4 and.

【0003】ディスク装置7のトラックは、一般に図5
(a)に示すようになっている。トラックはセクタとい
う単位に区切られ、セクタは更にカウント部とデータ部
とに分けられる。そして、ホストプロセッサから書き込
みを命じられたデータは520のデータ部の上に書かれ
ている。また、カウント部510はデータ部を管理する
ための情報が書かれている。ここで、セクタNの読み取
り/書き込みを行う場合、まず、カウント部の比較を行
い、それが目的のセクタかどうかを調べ、目的のセクタ
ならば続くデータ部に対して読み取り/書き込みを行
う。
The tracks of the disk device 7 are generally shown in FIG.
It is as shown in (a). The track is divided into units called sectors, and the sector is further divided into a count section and a data section. The data instructed to be written by the host processor is written on the data section 520. In addition, the count section 510 has written therein information for managing the data section. Here, when reading / writing the sector N, first, the count units are compared, it is checked whether or not it is the target sector, and if it is the target sector, the reading / writing is performed on the subsequent data unit.

【0004】次に、図5(a)〜同図(d)を用いてセ
クタNのカウント部530の読み取りにエラーが発生し
た場合の処理について説明する。
Next, the processing when an error occurs in the reading of the counting section 530 of the sector N will be described with reference to FIGS. 5 (a) to 5 (d).

【0005】セクタNのカウント部530にエラーデー
タがあると、マイクロプロセッサ4は読み取りエラーを
検出する(図5(a)参照)。次に、マイクロプロセッ
サ4はエラーを検出したカウント部530以後のデータ
部の内容を読み取り、それを記憶する(図5(b)参
照)。更に、マイクロプロセッサ4はエラーを検出した
カウント部530の書き換えを行い、以後のセクタを消
去する(図5(c)参照)。そして最後に、マイクロプ
ロセッサ4は記憶しておいたデータと、エラーを起こし
たカウント部530位後のカウント部とを書き込む(図
5(d)参照)。以上の動作が終了すると改めてデータ
の処理を行う。
When the count portion 530 of the sector N has error data, the microprocessor 4 detects a read error (see FIG. 5A). Next, the microprocessor 4 reads the contents of the data part after the count part 530 in which the error is detected and stores it (see FIG. 5B). Further, the microprocessor 4 rewrites the count unit 530 that has detected the error and erases the subsequent sectors (see FIG. 5C). Finally, the microprocessor 4 writes the stored data and the counting unit after the 530th counting unit in which the error occurred (see FIG. 5D). When the above operation is completed, the data is processed again.

【0006】[0006]

【発明が解決しようとする課題】上述した従来のディス
ク制御装置では、カウント部の内容が読み取りエラーを
起こした場合は、そのセクタのデータの処理に時間がか
かるという欠点があった。
The above-mentioned conventional disk control device has a drawback that it takes time to process the data of the sector when the content of the count section causes a read error.

【0007】[0007]

【課題を解決するための手段】本発明のディスク制御装
置では、ホストプロセッサからのデータの受け取り及び
ホストプロセッサへのデータの転送を行うホストインタ
ーフェースと、ディスク装置上のカウント部の内容を格
納するカウント部格納バッファと、ホストプロセッサ,
ディスク装置及びカウント部格納バッファの相互間のデ
ータ転送を行うデータ転送手段と、ホストプロセッサか
らディスク装置に対してデータ書き込み行う際にディス
ク装置のカンウト部に読み取りエラーが発生したとき、
読み取りエラーが発生したカウント部の内容をカウント
部格納バッファに格納し、誤り訂正を行った後再びディ
スク装置に対してカウント部の内容を書き込み、続いて
データ部の書き込みを行う一連の動作の制御を行うマイ
クロプロセッサとを備えている。
In a disk controller of the present invention, a host interface for receiving data from a host processor and transferring data to the host processor, and a count for storing the contents of a count section on the disk device. Part storage buffer, host processor,
A data transfer means for transferring data between the disk device and the count part storage buffer, and when a read error occurs in the count part of the disk device when writing data from the host processor to the disk device,
Storing the contents of the count part where the read error occurred in the count part storage buffer, performing error correction, writing the contents of the count part to the disk device again, and then writing the data part. And a microprocessor for performing.

【0008】[0008]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0009】図1は本発明の一実施例の構成を示すブロ
ック図であり、図4の従来例と同じ部分は同一符号で示
してある。本実施例において従来例と異なる点は、ディ
スク装置上のカウント部の内容を格納するカウント部格
納バッファ6を備えたことにある。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and the same parts as those in the conventional example of FIG. 4 are designated by the same reference numerals. The present embodiment is different from the conventional example in that a count unit storage buffer 6 for storing the contents of the count unit on the disk device is provided.

【0010】次に、図2を(a)〜同図(c)を用いて
セクタNのカウント部で読み取りエラーが発生した場合
のトラックのイメージを説明する。
Next, an image of a track when a read error occurs in the count portion of the sector N will be described with reference to FIGS. 2A to 2C.

【0011】セクタNのカウント部530にエラーがあ
る場合、1周目でマイクロプロセッサ4はカウント部5
30の読み取りエラーを検出する(図2(a)参照)。
次に、読み取りエラーを検出するとマイクロプロセッサ
4は2周目でセクタNのカウント部530の内容を読み
取り、カウント部格納バッファ6に格納する指示をデー
タ転送手段5に出す(図2(b)参照)。更に、マイク
ロプロセッサ4はカウント部格納バッファ6に格納した
セクタNのカウント部530の内容を誤り訂正し、3周
目でセクタNのカウント部530に誤り訂正した内容を
書き込み、続いてデータ部540の処理を行う(図2
(c)参照)。
When there is an error in the count unit 530 of the sector N, the microprocessor 4 causes the count unit 5 to perform the first cycle.
A reading error of 30 is detected (see FIG. 2A).
Next, when a read error is detected, the microprocessor 4 reads the contents of the count unit 530 of the sector N in the second round, and issues an instruction to store it in the count unit storage buffer 6 to the data transfer means 5 (see FIG. 2B). ). Further, the microprocessor 4 error-corrects the contents of the count unit 530 of the sector N stored in the count-unit storage buffer 6, writes the error-corrected contents in the count unit 530 of the sector N in the third round, and then the data unit 540. Process (Fig. 2
(See (c)).

【0012】次に、図3を用いてディスク装置上の目的
のセクタNのカウント部とデータ部との処理について説
明する。
Next, the processing of the count section and the data section of the target sector N on the disk device will be described with reference to FIG.

【0013】まず、目的のセクタNのカウント部に対
し、マイクロプロセッサ4は本当に目的のセクタなのか
確認を行う(ステップ100)。次に、マイクロプロセ
ッサ4はセクタNのカウント部について読み取りエラー
が発生したかをチェックする(ステップ110)。そし
て、ステップ110において読み取りエラーがなかった
場合、マイクロプロセッサはデータ転送手段に対し、デ
ィスク装置7のセクタNのデータ部の読み取り/書き込
みを指示し、セクタNのデータ処理は終了する(ステッ
プ120)。
First, the microprocessor 4 confirms with respect to the counting section of the target sector N whether the sector is really the target sector (step 100). Next, the microprocessor 4 checks whether or not a read error has occurred in the count portion of the sector N (step 110). Then, if there is no read error in step 110, the microprocessor instructs the data transfer means to read / write the data portion of the sector N of the disk device 7, and the data processing of the sector N ends (step 120). .

【0014】また、ステップ100において読み取りエ
ラーが発生した場合、マイクロプロセッサ4はデータ転
送手段5に対し、セクタNのカウント部の内容を読み取
り、カウント部格納バッファ6に格納する指示を出す
(ステップ130)。
When a read error occurs in step 100, the microprocessor 4 issues an instruction to the data transfer means 5 to read the contents of the count part of the sector N and store the contents in the count part storage buffer 6 (step 130). ).

【0015】次に、マイクロプロセッサ4はカウント部
格納バッファに格納されたセクタNのカウント部の内容
の誤り訂正を行う(ステップ140,150)。
Next, the microprocessor 4 performs error correction on the contents of the count part of the sector N stored in the count part storage buffer (steps 140 and 150).

【0016】ステップ150においてカウント部の誤り
訂正が行えない場合、マイクロプロンセッサ4はセクタ
N−1を目的としてカウント部の比較を行う(ステップ
160)。このとき、マイクロプロセッサ4はセクタN
−1のカウント部で読み取りエラーが発生したかチェッ
クする(ステップ170)。
When the error correction of the count part cannot be performed in step 150, the microprocessor 4 compares the count parts for the purpose of the sector N-1 (step 160). At this time, the microprocessor 4 determines that the sector N
It is checked whether a reading error has occurred in the count unit of -1 (step 170).

【0017】ステップ170において読み取りエラーが
発生しない場合、マイクロプロセッサ4はデータ転送手
段5に対し、セクタN−1のデータ部及びセクタNのカ
ウント部をスキップする命令を出し、ステップ120に
移行する(ステップ180)。そして、ステップ170
において読み取りエラーが発生した場合、マイクロプロ
セッサ4はホストインターフェース3を介してホストプ
ロセッサ1にエラー報告を行い一連の動作を終了する
(ステップ190)。
When no read error occurs in step 170, the microprocessor 4 issues an instruction to the data transfer means 5 to skip the data part of the sector N-1 and the count part of the sector N, and the process proceeds to step 120 (step 120). Step 180). And step 170
If a read error occurs in, the microprocessor 4 reports an error to the host processor 1 via the host interface 3 and ends a series of operations (step 190).

【0018】また、ステップ150においてカウント部
の誤り訂正が行える場合は、誤り訂正したセクタNのカ
ウント部の内容をディスク装置に書き込みステップ10
0に移行する(ステップ200)。
If it is possible to correct the error in the count portion in step 150, the contents of the count portion in the sector N in which the error has been corrected are written in the disk device.
The process proceeds to 0 (step 200).

【0019】[0019]

【発明の効果】以上説明したように本発明のディスク制
御装置では、ホストプロセッサからのデータの受け取り
及びホストプロセッサへのデータの転送を行うホストイ
ンターフェースと、ディスク装置上のカウント部の内容
を格納するカウント部格納バッファと、ホストプロセッ
サ,ディスク装置及びカウント部格納バッファの相互間
のデータ転送を行うデータ転送手段と、ホストプロセッ
サからディスク装置に対してデータ書き込みを行う際
に、ディスク装置のカウント部に読み取りエラーが発生
したときに、読み取りエラーが発生したカウント部の内
容をカウント部格納バッファに格納し、訂正を行った後
再びディスク装置にカウント部の内容を書き込み、続い
てデータ部の書き込みを行う一連の動作の制御を行うマ
イクロプロセッサとを備え、カウント部の内容を書き込
むときに書き込みエラーを起こした場合でも、次の同じ
セクタを処理する際にカウント部の内容を訂正して書き
直すようにしたため、以後そのセクタのデータの処理を
時間を短縮できるという効果がある。
As described above, in the disk control device of the present invention, the host interface for receiving data from the host processor and transferring the data to the host processor and the contents of the count section on the disk device are stored. A count unit storage buffer, a data transfer unit that transfers data between the host processor, the disk device, and the count unit storage buffer, and a count unit of the disk device when writing data from the host processor to the disk device. When a read error occurs, the contents of the count part in which the read error occurred are stored in the count part storage buffer, after correction, the contents of the count part are written again to the disk device, and then the data part is written. With a microprocessor that controls a series of operations Even if a write error occurs when writing the contents of the count section, the contents of the count section are corrected and rewritten when the next same sector is processed. There is an effect that it can be shortened.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本実施例におけるセクタNのカウント部で読み
取りエラーが発生した場合のトラックのイメージ図であ
る。
FIG. 2 is an image diagram of a track when a reading error occurs in a count section of a sector N in this embodiment.

【図3】本実施例におけるセクタNのカウント部とデー
タ部との処理を示すフローチャートである。
FIG. 3 is a flow chart showing processing of a count part and a data part of a sector N in this embodiment.

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

【図5】従来例におけるセクタNのカウント部で読み取
りエラーが発生した場合のトラックのイメージ図であ
る。
FIG. 5 is an image diagram of a track when a reading error occurs in a count section of a sector N in a conventional example.

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

1 ホストプロセッサ 2 ディスク制御装置 3 ホストインターフェース 4 マイクロプロセッサ 5 データ転送手段 6 カウント部格納バッファ 7 ディスク装置 1 Host Processor 2 Disk Control Device 3 Host Interface 4 Microprocessor 5 Data Transfer Means 6 Counting Unit Storage Buffer 7 Disk Device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ホストプロセッサと複数のファイルを記
録するディスク装置とに接続されるディスク制御装置に
おいて、前記ホストプロセッサからのデータの受け取り
及び前記ホストプロセッサへのデータの転送を行うホス
トインターフェースと、前記ディスク装置上のカウント
部の内容を格納するカウント部格納バッファと、前記ホ
ストプロセッサ,前記ディスク装置及び前記カウント部
格納バッファの相互間のデータ転送を行うデータ転送手
段と、前記ホストプロセッサから前記ディスク装置に対
してデータ書き込みを行う際に前記ディスク装置の前記
カウント部に読み取りエラーが発生したとき、読み取り
エラーが発生したカウント部の内容を前記カウント部格
納バッファに格納し、誤り訂正を行った後、再び前記デ
ィスク装置に対してカウント部の内容を書き込み、続い
てデータ部の書き込みを行う一連の動作の制御を行うマ
イクロプロセッサとを備えることを特徴とするディスク
制御装置。
1. A disk controller connected to a host processor and a disk device for recording a plurality of files; a host interface for receiving data from the host processor and transferring data to the host processor; A count unit storage buffer that stores the contents of a count unit on the disk device, a data transfer unit that transfers data between the host processor, the disk device, and the count unit storage buffer, and the host processor to the disk device. When a read error occurs in the count unit of the disk device when writing data to, the content of the count unit in which the read error occurs is stored in the count unit storage buffer, and after error correction, Again for the disk device A disk control device comprising: a microprocessor for controlling a series of operations for writing the contents of the count portion and subsequently writing the data portion.
JP4271547A 1992-10-09 1992-10-09 Disk controller Pending JPH06124173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4271547A JPH06124173A (en) 1992-10-09 1992-10-09 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4271547A JPH06124173A (en) 1992-10-09 1992-10-09 Disk controller

Publications (1)

Publication Number Publication Date
JPH06124173A true JPH06124173A (en) 1994-05-06

Family

ID=17501591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4271547A Pending JPH06124173A (en) 1992-10-09 1992-10-09 Disk controller

Country Status (1)

Country Link
JP (1) JPH06124173A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57111809A (en) * 1980-12-29 1982-07-12 Fujitsu Ltd Retry control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57111809A (en) * 1980-12-29 1982-07-12 Fujitsu Ltd Retry control system

Similar Documents

Publication Publication Date Title
US6625096B1 (en) Optical disk recording and reproduction method and apparatus as well as medium on which optical disk recording and reproduction program is recorded
JP2848528B2 (en) Optical disk drive
JP2003516598A (en) Error correction device
JPH06124173A (en) Disk controller
JP3264528B2 (en) Information replacement processing method for write-protected information recording medium
JPH0520789A (en) Recording and reproducing device
JPH04311218A (en) External storage controller
JP4004102B2 (en) Code error correction detection device
JP2614130B2 (en) Magnetic tape unit
JP3335969B2 (en) Magnetic disk drive
JPH04311217A (en) External storage controller
JPH0628779A (en) Method for recording and controlling data in disk device
JPH02236865A (en) Information recording and reproducing device
JPH025274A (en) Optical disk processor
JPH0440794B2 (en)
JP2002298512A (en) Device and method for controlling disk access
JP2779540B2 (en) Magnetic tape unit
JPS63195877A (en) Data recording and reproducing system
JPH0833803B2 (en) Storage controller
JPH0594672A (en) Information recording and reproducing device
JPH0528667A (en) Magnetic disk control part
JPH01122073A (en) Control system for magnetic disk device
JPS6363990B2 (en)
JPH04170764A (en) Controlling method for magnetic tape device
JPS60247863A (en) Optical disk controlling device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980707