JPS63249975A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPS63249975A
JPS63249975A JP8442287A JP8442287A JPS63249975A JP S63249975 A JPS63249975 A JP S63249975A JP 8442287 A JP8442287 A JP 8442287A JP 8442287 A JP8442287 A JP 8442287A JP S63249975 A JPS63249975 A JP S63249975A
Authority
JP
Japan
Prior art keywords
write
track
circuit
magnetic disk
inhibit
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
JP8442287A
Other languages
Japanese (ja)
Inventor
Masami Tomioka
富岡 政美
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 JP8442287A priority Critical patent/JPS63249975A/en
Publication of JPS63249975A publication Critical patent/JPS63249975A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent data from being destroyed with write to a program area or the like due to a software bug by providing a write inhibit track setting circuit, a write track designating circuit, and a comparator circuit. CONSTITUTION:First, a write inhibit track is set to a write inhibit track setting circuit 201 and write inhibition is indicated. In the case of write access to a magnetic disk device 101 by higher software from a higher controller 102, the track is outputted to a write track designating circuit 202. If the output result coincides with the inhibit track set to the write inhibit track setting circuit 201, the output indicating this coincidence is outputted from a comparator circuit 203 and an inhibit indication, namely, write inhibit flag is set to a write inhibit flag circuit. Thus, destruction of data important with respect to hardware is prevented.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、磁気ディスク制御装置に関し、特に既にデー
タを書込んである任意の指定トラック(又はセクタ)に
新しいデータを重ねて書込むことを禁止できる磁気ディ
スク制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk control device, and particularly to a magnetic disk control device that allows new data to be superimposed on any designated track (or sector) on which data has already been written. This relates to a magnetic disk control device that can be prohibited.

[従来の技術] 従来、この種の磁気ディスク制御装置は、ソフトによる
書込み許可コマンドの発行によって書込みの許可を行な
っていた。従って、既にデータ、あるいはプログラムが
書込まれている指定トラックと同じ指定トラックに新し
いデータ等を書込もうとした場合、ソフト上書込み許可
コマンドが発行されていれば、新しいデータは指定トラ
ックの古いデータ、プログラムを消してその指定トラッ
ク内にセーブされる。
[Prior Art] Conventionally, this type of magnetic disk control device has permitted writing by issuing a write permission command using software. Therefore, if you try to write new data to the same specified track where data or programs have already been written, if a write permission command has been issued on the software, the new data will be written to the old specified track. Data and programs are erased and saved within the specified track.

[解決すべき問題点] 上述したように、従来の磁気ディスク制御装置は、ソフ
トによる書込み許可があれば、任意の指定トラックへの
書込みが可能であるため、ソフトウェアのバグによって
貴重なデータが破壊されることがありうるという欠点が
あった。
[Problems to be solved] As mentioned above, with conventional magnetic disk control devices, it is possible to write to any designated track if write permission is granted by software, so a software bug can cause valuable data to be destroyed. The disadvantage was that it could be damaged.

[問題点の解決手段] 上述した従来技術の問題点を解決する本発明の磁気ディ
スク制御装置は、任意の指定トラックに対する書込み禁
止トラック設定回路と、ソフトからの指示に基づき動作
する書込みトラック指定回路と、前記書込み禁止トラッ
ク設定回路により指定された指定トラックと前記書込み
トラック指定回路により指定された書込みトラックとを
比較する比較回路と、そして、前記比較回路において両
トラックが同一であったとき禁止フラグを立てる書込み
禁止フラグ回路と、を備えており、これにより、前記書
込み禁止トラックへの書込みを防止することを特徴とし
ている。
[Means for Solving Problems] A magnetic disk control device of the present invention that solves the problems of the prior art described above includes a write-inhibited track setting circuit for any designated track, and a write track designation circuit that operates based on instructions from software. and a comparison circuit that compares the specified track specified by the write-inhibited track setting circuit with the write track specified by the write-track designation circuit, and a prohibition flag when both tracks are the same in the comparison circuit. and a write-inhibit flag circuit for setting the write-inhibited track, thereby preventing writing to the write-inhibited track.

[実施例] 次に、本発明について図面を参照して説明する。[Example] Next, the present invention will be explained with reference to the drawings.

第1図は本発明の磁気ディスク制御装置の一実施例のブ
ロック図である。
FIG. 1 is a block diagram of an embodiment of a magnetic disk control device of the present invention.

図面中、100は磁気ディスク制御装置であり、200
は制御回路、201は任意の指定トラックに対する書込
み禁止トラック設定回路、202はソフトからの指示に
基づき動作する書込みトラック指定回路、203は書込
み禁止トラック設定回路201により指定された指定ト
ラックと書込みトラック指定回路202により指定され
た書込みトラックとが同一であるか否かを比較する比較
回路、そして、204は比較回路203において両トラ
ックが同一でありだとき禁止フラグを立てる書込み禁止
フラグ回路である。
In the drawing, 100 is a magnetic disk control device, and 200 is a magnetic disk control device.
201 is a control circuit, 201 is a write-inhibited track setting circuit for any designated track, 202 is a write-track designation circuit that operates based on instructions from software, and 203 is a designated track designated by the write-inhibited track setting circuit 201 and write-track designation. A comparison circuit 204 compares whether or not the write track specified by the circuit 202 is the same, and a write prohibition flag circuit 204 sets a prohibition flag when the two tracks are the same in the comparison circuit 203.

次に、本発明の磁気ディスク制御装置の動作を説明する
。初めに、書込み禁止トラック設定回路201に書込み
禁止トラックを設定し、書込み禁止指示を行なう。上位
制御装置102からの上位ソフトにより、磁気ディスク
装置101への書込みアクセスがあった場合には、その
トラックが書込みトラック指定回路202に出力される
。該出力結果が、書込み禁止トラック設定回路201の
禁止トラックと一致すると比較回路203よりその旨の
出力がなされ、書込み禁止フラグ回路に禁止表示、すな
わち書込み禁止フラグがセットされる。磁気ディスク制
御装置100は、この書込み禁止フラグの検出によって
、上位制御装置102へ「書込み禁止エリアへのアクセ
スであった」ことを通知するとともに、磁気ディスク装
置101への書込みをやめる。このようにして、本発明
の磁気ディスク制御装置では、ハード的に貴重なデータ
の破壊を防止している。
Next, the operation of the magnetic disk control device of the present invention will be explained. First, a write-inhibited track is set in the write-inhibited track setting circuit 201, and a write-inhibited instruction is issued. When there is a write access to the magnetic disk device 101 by higher-level software from the higher-level control device 102, that track is output to the write track designation circuit 202. When the output result matches the prohibited track of the write prohibited track setting circuit 201, the comparison circuit 203 outputs an output to that effect, and a write prohibited flag is displayed in the write prohibited flag circuit, that is, a write prohibited flag is set. Upon detection of this write-inhibited flag, the magnetic disk control device 100 notifies the higher-level control device 102 that "an access was made to a write-inhibited area" and stops writing to the magnetic disk device 101. In this manner, the magnetic disk control device of the present invention prevents valuable hardware data from being destroyed.

尚、書込み禁止トラック設定回路201、書込みトラッ
ク指定回路202及び比較回路203をROM等によっ
て共通化することも可能である。
Note that it is also possible to share the write-inhibited track setting circuit 201, the write track designation circuit 202, and the comparison circuit 203 using a ROM or the like.

[発明の効果] 以上説明したように本発明の磁気ディスク制御装置は、
任意の指定トラックに対する書込み禁止トラック設定回
路と、ソフトからの指示に基づき動作する書込みトラッ
ク指定回路と、前記書込み禁止トラック設定回路により
指定された指定トラックと前記書込みトラック指定回路
により指定された書込みトラックとを比較する比較回路
と、そして、前記比較回路において両トラックが同一で
あったとき禁止フラグを立てる書込み禁止フラグ回路と
を有することにより、ハード的に禁止トラックへの書込
みを防止し、従ってソフトバダによるプログラムエリア
等への書込みでのデータ破壊を防止する効果がある。
[Effects of the Invention] As explained above, the magnetic disk control device of the present invention has the following effects:
A write-protected track setting circuit for any specified track, a write-track designation circuit that operates based on instructions from software, a specified track specified by the write-protected track setting circuit, and a write track specified by the write-track designation circuit. By having a comparison circuit that compares the two tracks, and a write prohibition flag circuit that sets a prohibition flag when both tracks are the same in the comparison circuit, it is possible to prevent writing to the prohibited track in terms of hardware, and therefore prevent software bad data. This has the effect of preventing data destruction due to writing to the program area, etc.

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

第1図は本発明の磁気ディスク制御装置の一実施例のブ
ロック図である。 100:磁気ディスク制御装置 101:磁気ディスク装置 102:上位制御装置 200:制御回路 201:書込み禁止トラック設定回路 202:書込みトラック指定回路 203:比較回路 204:書込み禁止フラグ回路
FIG. 1 is a block diagram of an embodiment of a magnetic disk control device of the present invention. 100: Magnetic disk control device 101: Magnetic disk device 102: Upper control device 200: Control circuit 201: Write-inhibited track setting circuit 202: Write-in track designation circuit 203: Comparison circuit 204: Write-inhibited flag circuit

Claims (1)

【特許請求の範囲】[Claims] 任意の指定トラックに対する書込み禁止トラック設定回
路と、ソフトからの指示に基づき動作する書込みトラッ
ク指定回路と、前記書込み禁止トラック設定回路により
指定された指定トラックと前記書込みトラック指定回路
により指定された書込みトラックとを比較する比較回路
と、そして、前記比較回路において両トラックが同一で
あったとき禁止フラグを立てる書込み禁止フラグ回路と
、を備えており、これにより、前記書込み禁止トラック
への書込みを防止することを特徴とする磁気ディスク制
御装置。
A write-protected track setting circuit for any specified track, a write-track designation circuit that operates based on instructions from software, a specified track specified by the write-protected track setting circuit, and a write track specified by the write-track designation circuit. and a write prohibition flag circuit that sets a prohibition flag when both tracks are the same in the comparison circuit, thereby preventing writing to the write prohibited track. A magnetic disk control device characterized by:
JP8442287A 1987-04-06 1987-04-06 Magnetic disk controller Pending JPS63249975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8442287A JPS63249975A (en) 1987-04-06 1987-04-06 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8442287A JPS63249975A (en) 1987-04-06 1987-04-06 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPS63249975A true JPS63249975A (en) 1988-10-17

Family

ID=13830148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8442287A Pending JPS63249975A (en) 1987-04-06 1987-04-06 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPS63249975A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04233624A (en) * 1990-07-23 1992-08-21 Internatl Business Mach Corp <Ibm> Apparatus for protecting system utility in personal computer system
JPH05198095A (en) * 1991-08-29 1993-08-06 Nec Corp Floppy disk controller
JP2006178849A (en) * 2004-12-24 2006-07-06 Hitachi Ltd Data processing system and method
US7987329B2 (en) 2004-10-28 2011-07-26 Hitachi, Ltd. Storage system and method of controlling the same
JP2013503409A (en) * 2009-08-27 2013-01-31 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, data storage drive, and program for protecting against data overwriting of a rewritable non-WORM data storage cartridge

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04233624A (en) * 1990-07-23 1992-08-21 Internatl Business Mach Corp <Ibm> Apparatus for protecting system utility in personal computer system
JPH05198095A (en) * 1991-08-29 1993-08-06 Nec Corp Floppy disk controller
US7987329B2 (en) 2004-10-28 2011-07-26 Hitachi, Ltd. Storage system and method of controlling the same
JP2006178849A (en) * 2004-12-24 2006-07-06 Hitachi Ltd Data processing system and method
JP4618785B2 (en) * 2004-12-24 2011-01-26 株式会社日立製作所 Data processing system and method
JP2013503409A (en) * 2009-08-27 2013-01-31 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, data storage drive, and program for protecting against data overwriting of a rewritable non-WORM data storage cartridge

Similar Documents

Publication Publication Date Title
JPH0844630A (en) Device for controlling file access and method thereof
JPS63249975A (en) Magnetic disk controller
JPS63317975A (en) Right protecting mechanism for magnetic disk device
JPS59175064A (en) Magnetic disk control system
JPS62160554A (en) Device for preventing wrong access to memory
JPS62276648A (en) Copy prevention system for floppy disk
JPS6139263A (en) Magnetic disc device
JPH02183461A (en) Data input/output device
JPS59167873A (en) Device for protecting data of magnetic disc device
JPS62278650A (en) File protection system
JPS6139262A (en) Magnetic disc device
JPH03164925A (en) Hard disk interface circuit
JPS613360A (en) Magnetic storing device
JPS5845699A (en) Memory protection circuit
JPS60142452A (en) Storage protecting system
JPH0676134A (en) Ic card
JPS61228544A (en) Write protection system
JPS61131125A (en) Information processing unit
JPS6074060A (en) Storage protecting device
JPS63251964A (en) System for protecting magnetic disk memory
JPS6029853A (en) File access control system
JPS63106961A (en) System for preventing breakdown of recording format
JPH04347788A (en) Ic memory card
JPS60230248A (en) Memory protecting system
JPH03165369A (en) Data protection system for disk device