JPH0424823A - Magnetic disk device and its control system - Google Patents

Magnetic disk device and its control system

Info

Publication number
JPH0424823A
JPH0424823A JP2129068A JP12906890A JPH0424823A JP H0424823 A JPH0424823 A JP H0424823A JP 2129068 A JP2129068 A JP 2129068A JP 12906890 A JP12906890 A JP 12906890A JP H0424823 A JPH0424823 A JP H0424823A
Authority
JP
Japan
Prior art keywords
data
disk
buffer
power
sector
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
JP2129068A
Other languages
Japanese (ja)
Inventor
Hiroyuki Mochida
持田 博之
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 JP2129068A priority Critical patent/JPH0424823A/en
Publication of JPH0424823A publication Critical patent/JPH0424823A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Magnetic Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent the erasion of data caused by the cut-off of a power supply, etc., by writing the data stored in the data buffer backed up by a power supply different from that of a disk device and having the capacity equivalent to one sector or more onto the disk surface in a state separated from a host system device. CONSTITUTION:A data buffer 120 is backed up by a power supply 130 different from that of a disk device 1 and the data stored in the buffer 120 are stored as they are even if the power supply of the device 1 is cut off. Then the data are written onto the disk surface from the buffer 120 after the data equivalent to one sector or more are transferred to the buffer 120 from a host system device. As a result, the data written onto the disk surface are always secured for each sector. Furthermore a flag register 108 is also backed up like the buffer 120 and consists of a flag showing the executing mode of a write command and a flag showing that the data stored in the buffer 120 are valid by an amount equivalent to one sector or more. Thus the data destroyed by the interruption of the writing action can be recovered and the reliability of the disk is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、磁気ディスク装置、フロッピーディスク装置
等のディスク装置に係り、特にディスク装置の信頼性の
向上に好適な制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to disk devices such as magnetic disk devices and floppy disk devices, and particularly to a control method suitable for improving the reliability of disk devices.

〔従来の技術〕[Conventional technology]

従来の装置は、特開昭60−157629号公報に記載
の様に、保護回路を設けて書込み許可信号(WG)が書
込み処理中に無効にならない様にし、データの不完全記
録を防止していた。
As described in Japanese Unexamined Patent Publication No. 157629/1980, conventional devices are equipped with a protection circuit to prevent the write permission signal (WG) from becoming invalid during the write process, thereby preventing incomplete recording of data. Ta.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、電源遮断によるディスクを回転させる
駆動モータの停止については配慮されておらず、該モー
タが停止した場合は、書込み中のデータが消失するとい
う問題があった。
The above-mentioned conventional technology does not take into consideration the possibility that the drive motor that rotates the disk will stop due to power cutoff, and if the motor stops, there is a problem that the data being written will be lost.

本発明の目的は、電源遮断等でデータが消失する事を防
ぎ、ディスク装置の信頼性を向上する事にある。
An object of the present invention is to prevent data from being lost due to a power cut, etc., and to improve the reliability of a disk device.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、磁気ディスク装置内に、装置
の電源とは別の電源によってバックアップされた1セク
タ分以上の容量をもつデータバッファ及び装置電源切断
時における装置の動作状態を記憶するフラグレジスタを
設け、該データバッファのデータを上位システム装置と
は切り離された状態でディスク面に書込む機能を付加す
る。
In order to achieve the above purpose, a data buffer with a capacity of one sector or more that is backed up by a power supply separate from the power supply of the device and a flag register that stores the operating state of the device when the device power is turned off are installed in the magnetic disk device. A function is added to write the data in the data buffer onto the disk surface in a state separated from the host system device.

前記磁気ディスク装置の電源投入時に前記フラグレジス
タを参照し、該磁気ディスク装置が前回電源切断時に書
込み動作中であれば、前記データバッファのデータをデ
ィスク面に書込む事によりデータの破壊、損失を防ぎ、
ディスク装置の信頼性を向上したものである。
When the magnetic disk device is powered on, the flag register is referred to, and if the magnetic disk device was in a writing operation when the power was last turned off, the data in the data buffer is written to the disk surface to prevent data destruction or loss. prevent,
This improves the reliability of the disk device.

〔作用〕[Effect]

上位システム装置からディスク装置に転送されたデータ
のディスク板面への書込みは、データバッファを介して
行なう。
Data transferred from the host system to the disk device is written onto the disk surface via a data buffer.

データバッファは装置電源とは別の電源によってバック
アップされており、装置の電源を切断してもその中のデ
ータは保持される。
The data buffer is backed up by a power source separate from the device power supply, and the data therein is retained even when the device power is turned off.

データバッファからディスク板面への書込みは上位シス
テム装置からデータバッファに1セクタ分以上のデータ
が転送されてから行なう事で、ディスク板面に書込み中
のデータは常にセクタ単位で確保しておく。
Writing from the data buffer to the disk surface is performed after one sector or more of data has been transferred from the host system to the data buffer, so that the data being written to the disk surface is always secured in sector units.

フラグレジスタも前記データバッファと同様にバックア
ップされ、ライトコマンド実行中である事を示すフラグ
と、データバッファ内のデータが1セクタ分以上有効で
ある事を示すフラグから成る。
The flag register is also backed up like the data buffer, and consists of a flag indicating that a write command is being executed and a flag indicating that the data in the data buffer is valid for one sector or more.

ディスク装置は電源投入時にイニシャル動作として、フ
ラグレジスタを参照し、前回装置の電源を切った時の動
作がライトでかつバッファのデータが有効であればデー
タバッファのデータをディスク板面へ書込む。
As an initial operation when the disk device is powered on, it refers to the flag register and writes the data in the data buffer to the disk surface if the operation when the device was previously powered off was write and the data in the buffer is valid.

こうする事により書込中断によるデータ破壊は回復され
ディスクの信頼性が向上する。
By doing this, data corruption caused by write interruption can be recovered and the reliability of the disk can be improved.

〔実施例〕〔Example〕

以下、本発明の一実施例を図により説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明を用いたディスク装置の構成例である。FIG. 1 shows an example of the configuration of a disk device using the present invention.

図中のデータバッファ120は蓄電池130でバックア
ップされており、ディスク装置1の電源を切っても、そ
の内容は保存される。
The data buffer 120 shown in the figure is backed up by a storage battery 130, and its contents are saved even if the power to the disk device 1 is turned off.

上位システム装置がディスクインターフェースバスaを
介してディスク装置1に起動を要求すると、マイクロプ
ロセッサ101はインタフェース制御回路104からの
割込み信号により、上位システム装置からの起動要求を
検出する。起動要求を検出するとマイクロプロセッサ1
01は、インターフェース制御回路内のレジスタにセッ
トされているコマンドパラメータ2のコマンドコード2
01を解読する。コマンドがライト処理の場合、マイク
ロプロセッサ101は第3図のフローに従い以下の様に
ライト処理を実行する。
When a higher-level system device requests activation of the disk device 1 via the disk interface bus a, the microprocessor 101 detects the activation request from the higher-level system device based on an interrupt signal from the interface control circuit 104. When a startup request is detected, microprocessor 1
01 is command code 2 of command parameter 2 set in the register in the interface control circuit.
Decipher 01. If the command is a write process, the microprocessor 101 executes the write process as follows according to the flow shown in FIG.

マイクロプロセッサ101はまず、ライト処理中である
事を示すフラグレジスタ108のライトビジービット(
以下WBBと称す)を立てる。次に前記コマンドパラメ
ータ2の処理開始アドレス202をデータバッファ12
0のアドレスレジスタ109に退避する。次にセクタデ
ータバッファ110が有効である事を示すフラグレジス
タ108のデータコンプリートビット(以下DCBと称
す)をクリア1.データバッファ制御回路105と一イ
ンクーフェス制御回路104によって上位システム装置
からのデータをセクタデータバッファ110に転送する
。該セクタデータバッファ110へ1セクタ分のデータ
が転送されると、前記DCBを立てリード/ライト制御
回路106と、シリアル/パラレル変換回路107によ
り該セクタデータバッファ110のデータをディスク1
03の板面へ書込む。
The microprocessor 101 first sets the write busy bit (
(hereinafter referred to as WBB). Next, the processing start address 202 of the command parameter 2 is transferred to the data buffer 12.
0 address register 109. Next, clear the data complete bit (hereinafter referred to as DCB) of the flag register 108, which indicates that the sector data buffer 110 is valid. The data buffer control circuit 105 and the one-interface control circuit 104 transfer data from the upper system device to the sector data buffer 110. When one sector worth of data is transferred to the sector data buffer 110, the DCB is set and the data in the sector data buffer 110 is transferred to the disk 1 by the read/write control circuit 106 and the serial/parallel conversion circuit 107.
Write on the board surface of 03.

該ディスク板面へセクタデータバッファ110のデータ
を書き終えると、前記DCBをクリアする。
When the data in the sector data buffer 110 has been written to the disk surface, the DCB is cleared.

ここで前記コマンドパラメータの処理セクタ数分の処理
が終われば、前記WBBをクリアし、処理終了をインタ
ーフェース制御回路により、上位システム装置に報告し
、未処理のセクタが残っていると、アドレスレジスタの
内容をインクリメントし、上位システム装置からセクタ
データバッファ110への転送よりの前記処理を繰り返
す。
When the processing for the number of sectors specified by the command parameter is completed, the WBB is cleared and the interface control circuit reports the completion of the processing to the higher-level system device. If there are still unprocessed sectors, the address register is The contents are incremented and the above-mentioned process starting from transfer from the host system device to the sector data buffer 110 is repeated.

第4図は電源投入時の処理フローである。FIG. 4 shows the processing flow when the power is turned on.

ディスク装置1の電源が投入されると、マイクロプロセ
ッサ101は、フラグレジスタ108のWBEとDCB
を参照し、両方のビットが立っていればディスク103
の板面ヘデータを書込んでいる時に電源が切られたと判
断し、セクタデータバッファに保持されたデータをアド
レスレジスタ109が示すディスク103上のアドレス
に書込む。該書込みが終了するとWBB、DCBをクリ
アし、上位システム装置にディスク装置が、準備完であ
る事を報告する。
When the power of the disk device 1 is turned on, the microprocessor 101 writes WBE and DCB of the flag register 108.
If both bits are set, disk 103 is selected.
It is determined that the power is turned off while data is being written to the disk surface, and the data held in the sector data buffer is written to the address on the disk 103 indicated by the address register 109. When the writing is completed, the WBB and DCB are cleared and the host system unit is notified that the disk device is ready.

尚、蓄電池103は、ディスク装置1の電fl投入中に
充電される。
Note that the storage battery 103 is charged while the disk device 1 is powered on.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、システム装置の不当な電源オフや、シ
ステム障害等によりディスク装置の書込み処理が中断し
ても、電源投入時に再び書込み処理を行なうので、書込
み処理中断による不良セクタが回復できディススフ信頼
性が向上する。
According to the present invention, even if the write process of the disk device is interrupted due to an inappropriate power off of the system unit or a system failure, the write process is performed again when the power is turned on, so that bad sectors caused by the write process interruption can be recovered and the disk drive is Improved reliability.

また、データ保持用のバッファと、データバッファが兼
用できる為、ハードウェアの増大を防ぐ事が出来る。
Furthermore, since the buffer for holding data and the data buffer can be used in common, it is possible to prevent an increase in hardware.

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

第1図は本発明を用いたディスク装置の概略構成図、第
2図はディスク装置へのコマンドパラメータを示す図、
第3図はディスク書込み処理フロー図、第4図は電源投
入時のディスクの処理フロー図である。 1・・・ディスク装置、 101・・・マイクロプロセッサ。 102・・・制御データRAM、 103・・・ディスク、 104・・・インターフェース制御回路、105・・・
データバッファ制御回路、106・・・リード/ライト
制御回路、107・・・シリアル/パラレル変換回路、
108・・・フラグレジスタ。 109・・・アドレスレジスタ、 110・・・セクタデータバッファ、 120・・・データバッファ、 130・・・蓄電池。 a・・・ディスクインターフェースバス、b・・・マイ
クロプロセッサバス、 2・・・コマンドパラメータ、 201・・・コマンドコード、 202・・・処理開始アドレス、 203・・・処理セクタ数。 ヨさ 稟 図 θ 纂 図 コマンドパラメータ 嵩 図 纂 + 図
FIG. 1 is a schematic configuration diagram of a disk device using the present invention, FIG. 2 is a diagram showing command parameters to the disk device,
FIG. 3 is a flow diagram of a disk write process, and FIG. 4 is a flow diagram of a disk process when the power is turned on. 1... Disk device, 101... Microprocessor. 102... Control data RAM, 103... Disk, 104... Interface control circuit, 105...
Data buffer control circuit, 106... Read/write control circuit, 107... Serial/parallel conversion circuit,
108...Flag register. 109...Address register, 110...Sector data buffer, 120...Data buffer, 130...Storage battery. a...Disk interface bus, b...Microprocessor bus, 2...Command parameters, 201...Command code, 202...Processing start address, 203...Number of sectors to be processed. Horizontal drawing θ Drawing command parameter Bulk drawing + Figure

Claims (1)

【特許請求の範囲】 1、ディスク装置内に本体電源とは別の電源によってバ
ックアップされ、本体の電源を切ってもその内容が保持
できるメモリと、装置電源を切った時の装置の動作状態
を記憶する機構と、上位装置より切り離された状態で、
データバッファよりディスク板面への書込みを行なうコ
マンド又は、動作モードを有する事を特徴とする磁気デ
ィスク装置。 2、請求項1記載の磁気ディスクを使用した計算機シス
テムにおいて、電源投入時に前回電源を切った時のディ
スクの動作状態を調べ、書込み動作中に電源が切られた
のであれば、データバッファに保持されたデータをディ
スク板面へ書込む事を特徴とする磁気ディスク制御方式
[Claims] 1. A memory that is backed up by a power supply separate from the power supply of the main unit in the disk device and whose contents can be retained even when the power of the main body is turned off, and a memory that stores the operating state of the device when the power of the device is turned off. The storage mechanism is separated from the host device,
A magnetic disk device characterized by having a command or operation mode for writing from a data buffer to a disk surface. 2. In a computer system using a magnetic disk according to claim 1, when the power is turned on, the operating state of the disk when the power was last turned off is checked, and if the power was turned off during a write operation, it is stored in the data buffer. A magnetic disk control method characterized by writing the generated data onto the disk surface.
JP2129068A 1990-05-21 1990-05-21 Magnetic disk device and its control system Pending JPH0424823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2129068A JPH0424823A (en) 1990-05-21 1990-05-21 Magnetic disk device and its control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2129068A JPH0424823A (en) 1990-05-21 1990-05-21 Magnetic disk device and its control system

Publications (1)

Publication Number Publication Date
JPH0424823A true JPH0424823A (en) 1992-01-28

Family

ID=15000292

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2129068A Pending JPH0424823A (en) 1990-05-21 1990-05-21 Magnetic disk device and its control system

Country Status (1)

Country Link
JP (1) JPH0424823A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07319637A (en) * 1994-05-26 1995-12-08 Mitsubishi Electric Corp Controller and control method for disk device
US6697314B2 (en) 2000-07-13 2004-02-24 Fujitsu Limited Information reproducing apparatus for reproducing information from an information storage medium in which a storage area is divided into physical sectors

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07319637A (en) * 1994-05-26 1995-12-08 Mitsubishi Electric Corp Controller and control method for disk device
US6697314B2 (en) 2000-07-13 2004-02-24 Fujitsu Limited Information reproducing apparatus for reproducing information from an information storage medium in which a storage area is divided into physical sectors

Similar Documents

Publication Publication Date Title
US6016536A (en) Method for backing up the system files in a hard disk drive
US5524203A (en) Disk cache data maintenance system
JPH02297770A (en) Optical disk device
US20030037207A1 (en) Disk array apparatus
JPH0424823A (en) Magnetic disk device and its control system
JPH01235075A (en) Disk memory controller
JPH04111113A (en) Hard disk emulator
JPH0793101A (en) Data backup device
JP3074817B2 (en) File backup circuit
JPH10254780A (en) Disk cache control system
JPS61127026A (en) Optical disk controller
JPH09330253A (en) Memory dump method and memory damp system applying the same
JP2603856B2 (en) Interface restoration method
JP4009401B2 (en) Disk control apparatus and recording medium recording program
JPS58211257A (en) Write controlling system of magnetic disk device
JPH1196083A (en) Semiconductor disk device
JP2634025B2 (en) Format write control method for magnetic disk controller
JPS63251964A (en) System for protecting magnetic disk memory
JPH0731640B2 (en) Disk access control method
JPH039449A (en) Electronic disk subsystem
JP2501393B2 (en) Direct memory access device
JPS6269342A (en) Semiconductor disk device
JPS6265152A (en) Memory device
JPH0820934B2 (en) Disk cache control method
JPS6332642A (en) Information processor