JPH04273318A - Data updating system for magnetic disk controller - Google Patents

Data updating system for magnetic disk controller

Info

Publication number
JPH04273318A
JPH04273318A JP3033769A JP3376991A JPH04273318A JP H04273318 A JPH04273318 A JP H04273318A JP 3033769 A JP3033769 A JP 3033769A JP 3376991 A JP3376991 A JP 3376991A JP H04273318 A JPH04273318 A JP H04273318A
Authority
JP
Japan
Prior art keywords
data
magnetic disk
updated
buffer memory
original
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
JP3033769A
Other languages
Japanese (ja)
Inventor
Toshiaki Takagi
敏彰 高木
Masahiko Kadota
門田 昌彦
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 JP3033769A priority Critical patent/JPH04273318A/en
Publication of JPH04273318A publication Critical patent/JPH04273318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the reliability of data without causing any unrecoverable error. CONSTITUTION:A reading means 7 reads the updating object data out of a magnetic disk device 3 and sends them to a buffer memory 4, and a comparison means A5 compares the read updating object data with the original updating object data. Then a reception means 8 receives the updating data from a host processor 1 and sends them to the memory 4 to update the data. A comparison means B6 compares the updated data with the original updating data. A writing means 9 writes updated data stored in the memory 4 into the device 3, and the means A5 compares the written updated data with the original updated data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はデータ更新要求により磁
気ディスク装置に更新データを書き込む磁気ディスク制
御装置のデータ更新方式に関し、特に更新データの信頼
性向上をはかったデータ更新方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data update method for a magnetic disk control device that writes updated data to a magnetic disk device in response to a data update request, and more particularly to a data update method that improves the reliability of updated data.

【0002】0002

【従来の技術】従来、データを更新する場合、磁気ディ
スク装置では物理セクタ単位でしかデータの読み書きが
不可能であり、そのため、物理セクタ内の論理セクタ単
位のデータ更新においては、図4及び図5に示すように
、まず、磁気ディスク装置から磁気ディスク制御装置の
バッファメモリ上の物理セクタ単位のデータを読み出し
(矢印41,ステップ51参照)、次に、ホストプロセ
ッサのデータ(論理セクタ単位)によりバッファメモリ
上のデータを更新し(矢印42,ステップ52参照)、
更新された論理セクタを含む物理セクタ単位のデータを
磁気ディスク装置に書き込んでいた(矢印43,ステッ
プ53参照)。
2. Description of the Related Art Conventionally, when updating data, magnetic disk devices can only read and write data in units of physical sectors. Therefore, when updating data in units of logical sectors within physical sectors, 5, first, the data in physical sector units on the buffer memory of the magnetic disk controller is read from the magnetic disk device (see arrow 41, step 51), and then data is read out from the host processor (in logical sector units). Update the data on the buffer memory (see arrow 42, step 52),
Data in units of physical sectors including updated logical sectors was written to the magnetic disk device (see arrow 43, step 53).

【0003】0003

【発明が解決しようとする課題】上述した従来の磁気デ
ィスク装置への論理セクタ単位によるデータ更新は、図
5に示す各ステップにおいて、書込む以前のデータが誤
っていた場合には、真のデータに回復することが不可能
となり、データの信頼性が低下するという欠点がある。
[Problems to be Solved by the Invention] In the above-described conventional data update in a magnetic disk device in units of logical sectors, if the data before writing is incorrect in each step shown in FIG. The disadvantage is that it becomes impossible to recover the data and the reliability of the data decreases.

【0004】0004

【課題を解決するための手段】本発明は、バッファメモ
リを有する磁気ディスク制御装置のデータ更新方式であ
って、磁気ディスク装置から前記バッファメモリに更新
対象データを読み出す読み出し手段と、前記バッファメ
モリ上に読み出された前記更新対象データと元の前記更
新対象データとを比較照合する第1の比較手段と、上位
装置から更新データを受け取り前記バッファメモリ上の
前記更新対象データを更新する受け取り手段と、前記バ
ッファメモリ上の更新済みデータと元の前記更新データ
とを比較照合する第2の比較手段と、前記バッファメモ
リ上の前記更新済みデータを前記磁気ディスク装置に書
き込む書き込み手段とを備える共に、前記第1の比較手
段により前記磁気ディスク装置に書き込まれた前記更新
済みデータと元の前記更新済みデータとを比較照合する
ことを特徴とする。
[Means for Solving the Problems] The present invention provides a data update method for a magnetic disk control device having a buffer memory, which comprises: a reading means for reading data to be updated from the magnetic disk device into the buffer memory; a first comparing means for comparing and comparing the update target data read out with the original update target data; a receiving means for receiving update data from a host device and updating the update target data on the buffer memory; , comprising a second comparison means for comparing and collating the updated data on the buffer memory with the original update data, and a writing means for writing the updated data on the buffer memory into the magnetic disk device, The first comparing means compares and checks the updated data written in the magnetic disk device with the original updated data.

【0005】[0005]

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

【0006】図1は本発明の一実施例を示すブロック図
である。図1において、本実施例の磁気ディスク制御装
置2はバッファメモリ4と、上位装置であるホストプロ
セッサ1からバッファメモリ4上にデータを受け取る受
け取り手段8と、受け取ったデータを比較照合する比較
手段B6と、バッファメモリ4に書き込まれるデータの
アドレスを指示するアドレス手段10と、磁気ディスク
装置3からバッファメモリ4上にデータを読み出す読み
出し手段7と、バッファメモリ4上にデータを磁気ディ
スク装置に書き込む書き込み手段9と、磁気ディスク装
置に対する読み出し及び書き込みデータを比較照合する
比較手段A5と、これらの各手段を制御するマイクロプ
ロセッサ11とを含んで構成される。
FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, the magnetic disk control device 2 of this embodiment includes a buffer memory 4, a receiving means 8 for receiving data onto the buffer memory 4 from a host processor 1 which is a host device, and a comparing means B6 for comparing and collating the received data. , an address means 10 for instructing the address of data to be written in the buffer memory 4, a reading means 7 for reading data from the magnetic disk device 3 onto the buffer memory 4, and a writing device for writing data on the buffer memory 4 into the magnetic disk device. 9, comparison means A5 for comparing and collating data read and written to the magnetic disk device, and a microprocessor 11 for controlling each of these means.

【0007】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

【0008】図2は本実施例による更新手順を説明する
図である。
FIG. 2 is a diagram illustrating the update procedure according to this embodiment.

【0009】図3は本実施例による処理を示すフローチ
ャートである。図2及び図3において、磁気ディスク制
御装置2は、ホストプロセッサ1より磁気ディスク装置
のデータ更新命令、例えば、論理セクタ27のデータ更
新の要求があると、まず、読み出し手段7介して磁気デ
ィスク装置3より更新対象の論理セクタを含む物理セク
タ単位のデータをバッファメモリ4上に読み出す(矢印
21,ステップ31参照)。次に、バッファメモリ4上
のデータと元の磁気ディスク装置3のデータとを比較手
段A5により比較チェック(排他的論理和回路によるチ
ェック)を行い、それらが同一か判定する(矢印22,
ステップ32参照)。そして、同一の場合は、次の処理
へ進み、異る場合は再度ステップ31〜32の処理を繰
り返す。
FIG. 3 is a flowchart showing the processing according to this embodiment. In FIGS. 2 and 3, when the host processor 1 receives a data update command for the magnetic disk device, for example, a request to update data in the logical sector 27, the magnetic disk control device 2 first sends the data to the magnetic disk device via the reading means 7. 3, data in units of physical sectors including the logical sector to be updated is read onto the buffer memory 4 (see arrow 21 and step 31). Next, the data on the buffer memory 4 and the data on the original magnetic disk device 3 are compared and checked by the comparison means A5 (check by exclusive OR circuit), and it is determined whether they are the same (arrow 22,
(See step 32). If they are the same, proceed to the next process; if they are different, the processes of steps 31 and 32 are repeated again.

【0010】続いて、アドレス手段10によりバッファ
メモリ4のアドレスを指示し、受け取り手段8を介して
ホストプロセッサ1から更新データをバッファメモリ4
上に移しデータを更新する(矢印23,ステップ33参
照)。更新したデータと元のホストプロセッサ1のデー
タとを比較手段B6により比較チェック(排他的論理和
回路によるチェック)を行い、それらが同一か判定する
(矢印24,ステップ34参照)。そして、同一の場合
は、次の処理へ進み、異る場合は再度ステップ33〜3
4の処理を繰り返す。
Subsequently, the address means 10 specifies the address of the buffer memory 4, and the update data is sent from the host processor 1 to the buffer memory 4 via the receiving means 8.
Move up and update the data (see arrow 23, step 33). The updated data and the original data of the host processor 1 are compared and checked by the comparing means B6 (check by exclusive OR circuit) to determine whether they are the same (see arrow 24, step 34). If they are the same, proceed to the next process; if they are different, repeat steps 33 to 3.
Repeat step 4.

【0011】更に、バッファメモリ4上にある更新され
たデータは、書き込み手段9を介して磁気ディスク装置
3に書き込みを行う(矢印25,ステップ35参照)。 書き込まれたデータと元のバッファメモリ4上のデータ
とを比較手段A5により比較チェック(排他的論理和回
路によるチェック)を行い、それらが同一か判定する(
矢印26,ステップ36参照)。そして、同一の場合は
、次の処理へ進み、異る場合は再度ステップ35〜36
の処理を繰り返す。
Furthermore, the updated data on the buffer memory 4 is written to the magnetic disk device 3 via the writing means 9 (see arrow 25, step 35). The written data and the data on the original buffer memory 4 are compared and checked by the comparison means A5 (checked by an exclusive OR circuit), and it is determined whether they are the same (
(see arrow 26, step 36). If they are the same, proceed to the next process; if they are different, repeat steps 35 to 36.
Repeat the process.

【0012】これにより、磁気ディスク装置に対して誤
りのないデータ更新が行われる。
[0012] As a result, error-free data updating is performed on the magnetic disk device.

【0013】[0013]

【発明の効果】以上説明したように、本発明の磁気ディ
スク制御装置は、データを移動させる都度、常に元のデ
ータと比較照合を行うため、回復不可能な誤りの発生を
避けることができ、データの信頼性を向上させるという
効果がある。
[Effects of the Invention] As explained above, the magnetic disk control device of the present invention always compares and verifies data with the original data each time data is moved, so that it is possible to avoid the occurrence of irrecoverable errors. This has the effect of improving data reliability.

【図面の簡単な説明】[Brief explanation of the drawing]

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

【図2】本実施例による更新手順を説明する図である。FIG. 2 is a diagram illustrating an update procedure according to this embodiment.

【図3】本実施例による処理を示すフローチャートであ
る。
FIG. 3 is a flowchart showing processing according to this embodiment.

【図4】従来の更新手順を説明する図である。FIG. 4 is a diagram illustrating a conventional update procedure.

【図5】従来の処理を示すフローチャートである。FIG. 5 is a flowchart showing conventional processing.

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

1    ホストプロセッサ 2    磁気ディスク制御装置 3    磁気ディスク装置 4    バッファメモリ 5    比較手段A 6    比較手段B 7    読み出し手段 8    受け取り手段 9    書き込み手段 10    アドレス手段 11    マイクロプロセッサ 21〜26    矢印(データの流れ)27    
論理セクタ
1 Host processor 2 Magnetic disk control device 3 Magnetic disk device 4 Buffer memory 5 Comparing means A 6 Comparing means B 7 Reading means 8 Receiving means 9 Writing means 10 Addressing means 11 Microprocessors 21 to 26 Arrows (data flow) 27
logical sector

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  バッファメモリを有する磁気ディスク
制御装置のデータ更新方式であって、磁気ディスク装置
から前記バッファメモリに更新対象データを読み出す読
み出し手段と、前記バッファメモリ上に読み出された前
記更新対象データと元の前記更新対象データとを比較照
合する第1の比較手段と、上位装置から更新データを受
け取り前記バッファメモリ上の前記更新対象データを更
新する受け取り手段と、前記バッファメモリ上の更新済
みデータと元の前記更新データとを比較照合する第2の
比較手段と、前記バッファメモリ上の前記更新済みデー
タを前記磁気ディスク装置に書き込む書き込み手段とを
備える共に、前記第1の比較手段により前記磁気ディス
ク装置に書き込まれた前記更新済みデータと元の前記更
新済みデータとを比較照合することを特徴とする磁気デ
ィスク制御装置のデータ更新方式。
1. A data update method for a magnetic disk control device having a buffer memory, comprising: reading means for reading update target data from a magnetic disk device into the buffer memory; and the update target data read onto the buffer memory. a first comparison means for comparing and collating data with the original data to be updated; a receiving means for receiving update data from a host device and updating the data to be updated on the buffer memory; and a first comparison means for comparing data with the original data to be updated; a second comparing means for comparing data with the original updated data; and a writing means for writing the updated data on the buffer memory into the magnetic disk device; A data update method for a magnetic disk control device, characterized in that the updated data written in the magnetic disk device is compared and verified with the original updated data.
JP3033769A 1991-02-28 1991-02-28 Data updating system for magnetic disk controller Pending JPH04273318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3033769A JPH04273318A (en) 1991-02-28 1991-02-28 Data updating system for magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3033769A JPH04273318A (en) 1991-02-28 1991-02-28 Data updating system for magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH04273318A true JPH04273318A (en) 1992-09-29

Family

ID=12395659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3033769A Pending JPH04273318A (en) 1991-02-28 1991-02-28 Data updating system for magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH04273318A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141219A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Storage system, control device, memory device, data access method, and program recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141219A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Storage system, control device, memory device, data access method, and program recording medium
US10191690B2 (en) 2014-03-20 2019-01-29 Nec Corporation Storage system, control device, memory device, data access method, and program recording medium

Similar Documents

Publication Publication Date Title
JPH0812584B2 (en) Method and apparatus for managing shadow set accessed by host processor
JP2001228980A (en) Controller for disk array
JP2000048496A (en) Optical disk recording/reproducing method, device and medium recording optical disk recording/reproducing program
JPH04273318A (en) Data updating system for magnetic disk controller
JP2665064B2 (en) Magnetic disk processing unit
JP2000357216A (en) Ic card
JP3289931B2 (en) Information recording / reproducing device
JPH04311218A (en) External storage controller
JPH04311217A (en) External storage controller
JPS60261079A (en) Maintenance system of magnetic disc
JPH0440794B2 (en)
KR100230286B1 (en) Method for buffering the data
JPH02304619A (en) Control system for storage device
JPH0944317A (en) Registering system for alternate sector
JPH1064176A (en) Magnetic disk device
JPH03129515A (en) Duplication control system for disk device
JPS6269342A (en) Semiconductor disk device
JPS62192975A (en) Hard disk control system
JPH0235664A (en) Logic sector write system for magnetic disk controller
JPS59180768A (en) System for controlling disk cache
JPH04310671A (en) Disk controller
JPH0528660A (en) Information storage device with self-diagnostic function
JPH0527922A (en) Disk controller
JP2005011454A (en) Magnetic disk device
JPH0528667A (en) Magnetic disk control part