JPH0235664A - Logic sector write system for magnetic disk controller - Google Patents
Logic sector write system for magnetic disk controllerInfo
- Publication number
- JPH0235664A JPH0235664A JP18622788A JP18622788A JPH0235664A JP H0235664 A JPH0235664 A JP H0235664A JP 18622788 A JP18622788 A JP 18622788A JP 18622788 A JP18622788 A JP 18622788A JP H0235664 A JPH0235664 A JP H0235664A
- Authority
- JP
- Japan
- Prior art keywords
- sector
- write operation
- logical sector
- magnetic disk
- write
- 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
Links
- 238000000034 method Methods 0.000 claims description 9
- 230000002159 abnormal effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は情報処理装置に使用される磁気ディスク制御装
置の論理セクタ書込方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a logical sector writing method for a magnetic disk control device used in an information processing device.
従来の磁気ディスク制御装置の論理セクタ書込方式は、
上位装置から論理セクタへの書込動作指示があると、常
にこの論理セクタが存在する磁気ディスク装置の物理セ
クタに対して読出動作を行い、読出した物理セクタ内の
論理セクタを書込動作指示のあった書込データで更新し
、更新された論理セクタを磁気ディスク装置の物理セク
タへ書込む動作を行っていた。The logical sector writing method of conventional magnetic disk controllers is
When there is a write operation instruction from a host device to a logical sector, a read operation is always performed on the physical sector of the magnetic disk device where this logical sector exists, and the logical sector within the read physical sector is used as the write operation instruction. The existing write data is updated and the updated logical sector is written to the physical sector of the magnetic disk device.
上述した従来の磁気ディスク制御装置の論理セクタ書込
方式は、上位装置からの論理セクタへの書込動作指示が
あるたびに、磁気ディスク装置の物理セクタに対して読
出動作を行うので、磁気ディスク装置への書込動作が何
らかの原因により中断した場合には物理セクタにエラー
コードが記録されるため、上位装置から続けて同一の論
理セクタへの書込動作指示がくると、この論理セクタが
存在する物理セクタの読出動作で必ず異常終了となると
いう問題点がある。The above-mentioned conventional logical sector write method for magnetic disk controllers performs a read operation on the physical sector of the magnetic disk device every time there is a write operation instruction to the logical sector from the host device. If a write operation to the device is interrupted for some reason, an error code is recorded in the physical sector, so if a write operation instruction to the same logical sector is received from the host device in succession, this logical sector will not exist. There is a problem in that a read operation of a physical sector always ends abnormally.
本発明の目的は、磁気ディスク装置の物理セクタへの書
込動作が何らかの原因により中断した場合でも、上位装
置から続けて同一の論理セクタへ書込動作を行った場合
に磁気ディスク装置への読出動作で異常終了となること
がない磁気ディスク制御装置の論理セクタ書込方式を提
供することにある。An object of the present invention is to prevent read operations from a magnetic disk device even if a write operation to a physical sector of a magnetic disk device is interrupted for some reason, when a host device continues to perform a write operation to the same logical sector. An object of the present invention is to provide a logical sector writing method for a magnetic disk control device that does not cause abnormal termination of operation.
本発明の磁気ディスク制御装置の論理セクタ書込方式は
、論理セクタが物理セクタ内に存在する磁気ディスク装
置の論理セクタ単位の書込動作を制御する磁気ディスク
制御装置の論理セクタ書込方式において、上位装置から
の論理セクタへの書込動作が一つ前に実行した論理セク
タへの書込動作と同じ論理セクタへの書込動作か否かを
チェックするチェック手段と、前記チェック手段により
前記−つ前に実行した論理セクタへの書込動作と異なる
論理セクタへの書込動作ならば前記論理セクタが存在す
る磁気ディスク装置の物理セクタの読出し動作を行う読
出し手段と、前記読出し手段で読出した物理セクタ内の
論理セクタを前記論理セクタへの書込動作の書込データ
で更新する新更新手段と、前記読出し手段で読出した物
理セクタデータを前記論理セクタが存在する磁気ディス
ク装置の物理セクタへ書き込む書込手段と、前記チェッ
ク手段により前記−つ前に実行した論理セクタへの書込
動作と同じ論理セクタへの書込動作ならば一つ前に実行
した論理セクタへの書込動作により磁気ディスク装置の
物理セクタへの読出し動作で読出した物理セクタ内の論
理セクタを前記論理セクタへの書込動作の書込データで
更新する続更新手段とを含む。A logical sector write method for a magnetic disk control device according to the present invention is a logical sector write method for a magnetic disk control device that controls a write operation in logical sector units of a magnetic disk device in which a logical sector exists within a physical sector. checking means for checking whether a write operation to a logical sector from a host device is a write operation to the same logical sector as a write operation to a logical sector executed immediately before; If the write operation is to a logical sector different from the previously executed write operation to the logical sector, read means for reading the physical sector of the magnetic disk device in which the logical sector exists; a new updating means for updating a logical sector in a physical sector with write data of a write operation to the logical sector; and a new updating means for updating the physical sector data read by the reading means to a physical sector of a magnetic disk device in which the logical sector exists. If the write operation to the same logical sector as the write operation to the logical sector executed one time ago is performed by the write means to write and the check means, the write operation to the logical sector executed one time ago causes the magnetic and continuous updating means for updating a logical sector in a physical sector read by a read operation to a physical sector of the disk device with write data of a write operation to the logical sector.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明を使用した情報処理装置の一実施例のブ
ロック図であり、この図を使用し構成を説明する。上位
装置1はプログラムの制御を行い、そのプログラムを格
納するメモリ2と、操作者とプログラムとのインタフェ
ースを司どるシステムコンソール3と2本発明を適用し
た磁気ディスク制御装置4とが接続され、さらに磁気デ
ィスク制御装置4には磁気ディスク装置5が接続されて
いる。FIG. 1 is a block diagram of an embodiment of an information processing apparatus using the present invention, and the configuration will be explained using this diagram. The host device 1 controls a program, and is connected to a memory 2 for storing the program, a system console 3 for controlling the interface between the operator and the program, and a magnetic disk control device 4 to which the present invention is applied. A magnetic disk device 5 is connected to the magnetic disk control device 4 .
第2図は本発明の一実施例の流れ図である。上位装置1
からの論理セクタへの書込動作指示があると、ステップ
S1でチェック手段により一つ前に実行した論理セクタ
の書込動作と同じ論理セクタへの書込動作か否かをチェ
ックし、異なる論理セクタへの書込動作ならば、ステッ
プS2で読出し手段により論理セクタが存在する磁気デ
ィスク装置4の物理セクタへの読出し動作を実行する。FIG. 2 is a flow diagram of one embodiment of the present invention. Upper device 1
When a write operation is instructed to a logical sector from If the write operation is to a sector, the read means executes a read operation to the physical sector of the magnetic disk device 4 in which the logical sector exists in step S2.
読出し手段の後、ステップS3で更新手段により上記の
読出し手段で読出した物理セクタ内の論理セクタを論理
セクタへの書込動作の書込データで更新する。その後、
ステップS4で新書込手段により更新された物理セクタ
への読出し動作が読出した物理セクタデータを論理セク
タが存在する磁気ディスク装置5の物理セクタへの書き
込みを実行し処理を終了する。After the reading means, in step S3, the updating means updates the logical sector in the physical sector read by the reading means with the write data of the write operation to the logical sector. after that,
In step S4, the read operation to the physical sector updated by the new writing means writes the read physical sector data to the physical sector of the magnetic disk device 5 where the logical sector exists, and the process ends.
一方、ステップS1で一つ前に実行した論理セクタの書
込動作と同じ論理セクタの書込動作ならば、ステップS
5で続書込手段により一つ前に実行した論理セクタへの
書込動作が磁気ディスク装置5への読出し動作で読出し
た物理セクタ内の論環セクタを論理セクタへの書込動作
の書込データで更新し、その後はステ・ツブS4へ飛ぶ
。On the other hand, if the write operation of the same logical sector as the write operation of the logical sector executed previously in step S1, step S1
5, the write operation to the logical sector executed previously by the continuation writing means is performed to write the logical sector in the physical sector read by the read operation to the magnetic disk device 5 to the logical sector. Update with data and then fly to Ste-Tsubu S4.
以上説明したように本発明は、上位装置からの論理セク
タへの書込動作指示について一つ前に実行した論理セク
タへの書込動作と同じ論理・セクタへの書込動作か否か
をチェックし、同じ論理セクタへの書込動作ならばその
論理セクタが存在する物理セクタへの読出し動作を行わ
ずに一つ前に実行した時の磁気ディスク装置から読出し
た物理セクタデータを使用することにより、磁気ディス
ク装置の物理セクタへの書込動作が何らかの原因により
中断した場合でも、上位装置より続けて同一の論理セク
タへの書込動作を行っても磁気ディスク装置への読出し
動作で異常終了となることがないという効果を有する。As explained above, the present invention checks whether or not the write operation to the logical sector is the same as the write operation to the logical sector that was previously executed in response to a write operation instruction from the host device to the logical sector. However, if the write operation is to the same logical sector, the read operation to the physical sector where the logical sector exists is not performed, but by using the physical sector data read from the magnetic disk device at the time of the previous execution. Even if a write operation to a physical sector of a magnetic disk device is interrupted for some reason, even if the host device continues to write to the same logical sector, the read operation to the magnetic disk device will end abnormally. It has the effect of never becoming.
る。Ru.
1・・・上位装置、2・・・メモリ、3・・・システム
コンソール、4・・・磁気ディスク制御装置、5・・・
磁気ディスク装置。DESCRIPTION OF SYMBOLS 1... Host device, 2... Memory, 3... System console, 4... Magnetic disk control device, 5...
Magnetic disk device.
Claims (1)
の論理セクタ単位の書込動作を制御する磁気ディスク制
御装置の論理セクタ書込方式において、上位装置からの
論理セクタへの書込動作が一つ前に実行した論理セクタ
への書込動作と同じ論理セクタへの書込動作か否かをチ
ェックするチェック手段と、前記チェック手段により前
記一つ前に実行した論理セクタへの書込動作と異なる論
理セクタへ書込動作ならば前記論理セクタが存在する磁
気ディスク装置の物理セクタの読出し動作を行う読出し
手段と、前記読出し手段で読出した物理セクタ内の論理
セクタを前記論理セクタへの書込動作の書込データで更
新する新更新手段と、前記読出し手段で読出した物理セ
クタデータを前記論理セクタが存在する磁気ディスク装
置の物理セクタへ書き込む書込手段と、前記チェック手
段により前記一つ前に実行した論理セクタへの書込動作
と同じ論理セクタへの書込動作ならば一つ前に実行した
論理セクタへの書込動作により磁気ディスク装置の物理
セクタへの読出し動作で読出した物理セクタ内の論理セ
クタを前記論理セクタへの書込動作の書込データで更新
する続更新手段とを含むことを特徴とする磁気ディスク
制御装置の論理セクタ書込方式。In the logical sector write method of a magnetic disk control unit that controls write operations in units of logical sectors in a magnetic disk unit in which logical sectors exist within physical sectors, a write operation to a logical sector from a host device is performed immediately before the previous write operation. checking means for checking whether or not the write operation to the logical sector is the same as the write operation to the logical sector executed previously; In the case of a write operation to a sector, a read means for reading a physical sector of a magnetic disk device in which the logical sector exists, and a read means for reading a logical sector in the physical sector read by the read means for a write operation to the logical sector. a new update means for updating with write data; a write means for writing the physical sector data read by the read means into the physical sector of the magnetic disk device where the logical sector exists; and a new update means for updating the data by the check means. If the write operation is to the same logical sector as the write operation to the previously executed logical sector, the data in the physical sector that was read by the read operation to the physical sector of the magnetic disk device due to the write operation to the logical sector executed immediately before is 1. A logical sector write method for a magnetic disk control device, comprising: continuous updating means for updating a logical sector with write data of a write operation to the logical sector.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18622788A JPH0235664A (en) | 1988-07-25 | 1988-07-25 | Logic sector write system for magnetic disk controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18622788A JPH0235664A (en) | 1988-07-25 | 1988-07-25 | Logic sector write system for magnetic disk controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0235664A true JPH0235664A (en) | 1990-02-06 |
Family
ID=16184584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18622788A Pending JPH0235664A (en) | 1988-07-25 | 1988-07-25 | Logic sector write system for magnetic disk controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0235664A (en) |
-
1988
- 1988-07-25 JP JP18622788A patent/JPH0235664A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0235664A (en) | Logic sector write system for magnetic disk controller | |
JPH0793101A (en) | Data backup device | |
JPH05181613A (en) | Information processor | |
JPS63112861A (en) | Magnetic disk control system | |
KR100189927B1 (en) | Hard disk drive controller and its method | |
JPH09161415A (en) | Control method for magnetic tape device | |
JPH02307117A (en) | Storage controller | |
JPH05298029A (en) | Disk device control method | |
JPS5927303A (en) | Program correction device | |
JPS5935455B2 (en) | Seigiyo Souchi | |
JPH0454649A (en) | Logging method for information processing equipment | |
JPH04311217A (en) | External storage controller | |
JPS61110246A (en) | Rewriting system of memory | |
JPH0578107B2 (en) | ||
JPH05216718A (en) | Debugging method | |
JPS63208960A (en) | Peripheral controller | |
JPH03147130A (en) | Operating system correcting system | |
JPS60160466A (en) | Device for controlling hierarchical sequence | |
JPH0527922A (en) | Disk controller | |
JPH0520136A (en) | Dump processing system | |
JPS617965A (en) | Input/output control device | |
JPH04260115A (en) | Error recovery system | |
JPH04282741A (en) | Control device identification system | |
JPH01251375A (en) | Magnetic disk controller | |
JPH01279330A (en) | Error processing system |