JPH02206063A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH02206063A
JPH02206063A JP1026170A JP2617089A JPH02206063A JP H02206063 A JPH02206063 A JP H02206063A JP 1026170 A JP1026170 A JP 1026170A JP 2617089 A JP2617089 A JP 2617089A JP H02206063 A JPH02206063 A JP H02206063A
Authority
JP
Japan
Prior art keywords
magnetic disk
write
sector
flag
disk device
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
JP1026170A
Other languages
Japanese (ja)
Inventor
Shogo Kido
城戸 省吾
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 JP1026170A priority Critical patent/JPH02206063A/en
Publication of JPH02206063A publication Critical patent/JPH02206063A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To execute a control by two sets or more of host devices without being aware of a data area by writing a write permitting bit corresponding to each of two sets or more of host devices in the part of a flag in a sector ID at the time of format to a magnetic disk device. CONSTITUTION:When a format instruction to a magnetic disk device 200 is inputted to a magnetic disk controller 100 from a central processing unit 400 or 500, data is read out of the address of a main storage device 600 instructed from the central processing unit 400 or 500 and formatted as an ID to the magnetic disk device 200. In this case, in the case of permitting write in a bit position corresponding to each system as the value of a flag byte written in the main memory device 600, a value '0' is written. A flag part in the ID which is read out of the magnetic disk device 200 is compared with a write permitting bit inputted from a write level memory circuit 60 by a flag comparator 50, by which two sets or more of host devices can execute a control without being aware of each data area by utilizing one set of magnetic disk controller.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は情報処理装置に使用する磁気ディスク制御装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a magnetic disk control device used in an information processing device.

従来の技術 従来、各セクタを識別する為のセクタIDを有する固定
セクタ方式の磁気ディスク装置に対するライト動作の許
可のチェック方式としては、ソフトウェアのドライバ部
分により要求されたセクタに対するライト動作の可不可
をメモリ上に展開した磁気ディスク装置のマツプ情報に
よりチェックする第一の方式やあるいは磁気ディスク装
置のプロテクトスイッチをONにして磁気ディスク装置
全体を書込禁止にする第二の方式が知られていた。
2. Description of the Related Art Conventionally, as a method for checking permission for a write operation on a fixed sector type magnetic disk device having a sector ID for identifying each sector, a method of checking permission for a write operation to a sector requested by a software driver part is performed. A first method of checking based on map information of the magnetic disk device expanded on the memory, and a second method of turning on the protect switch of the magnetic disk device to write-protect the entire magnetic disk device are known.

発明が解決しようとする課題 しかしながら、上述した磁気ディスク制御装置の第一の
方式では、2台以上の上位装置があり、かつ各々の上位
装置が異なるソフトウェアを使用すると、磁気ディスク
装置のマツプ情報の管理方法が異なる為に、要求された
セクタに対するライト動作の可不可をチェックできない
という欠点があり、上述した第二の方式では、磁気ディ
スク装置のプロテクトスイッチをONにすると磁気ディ
スク装置全体が書込禁止になり、一部だけ書込禁止にで
きないという欠点があった。
Problems to be Solved by the Invention However, in the first method of the magnetic disk control device described above, if there are two or more host devices and each host device uses different software, the map information of the magnetic disk devices is Since the management methods are different, there is a drawback that it is not possible to check whether a write operation can be performed on the requested sector.In the second method mentioned above, when the protect switch of the magnetic disk device is turned on, the entire magnetic disk device is unable to perform write operations. There was a drawback that it was not possible to set write protection to only a portion of the data.

本発明は従来の上記実情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記諸欠
点を解消する事を可能とした新規な磁気ディスク制御装
置を提供することにある。
The present invention has been made in view of the above-mentioned conventional situation,
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a novel magnetic disk control device that makes it possible to eliminate the above-mentioned drawbacks inherent in the conventional technology.

課題を解決するための手段 上記目的を達成する為に、本発明に係る磁気ディスク制
御装置は、各セクタを識別する為のセクタIDを有する
固定セクタ方式の磁気ディスク装置に対してフォーマッ
ト時にセクタID内のフラグの部分に2台以上の上位装
置の各々に対応し正常にライト可能なデータ部への書込
動作の可不可を決定する為の各上位装置に対応した書込
許可ビットを書込む書込手段と、上位装置よりの命令に
よりどの上位装置に対する書込許可ビットをチェックす
るかを記憶する記憶手段と、ライト動作時に、セクタI
D内のフラグの部分を読出し上記書込許可ビットがセッ
トされている位置と上記記憶手段により記憶されたチェ
ックすべき上記書込許可ビ・ントのビット位置を比較す
る比較手段と、上記比較手段により比較した結果同一セ
クタ内の正常にライト可能なデータ部への書込動作の可
不可を決定する手段とを備えて構成される。
Means for Solving the Problems In order to achieve the above object, a magnetic disk control device according to the present invention provides a fixed sector type magnetic disk device having a sector ID for identifying each sector. Write a write permission bit corresponding to each upper-level device to determine whether or not a write operation to the normally writable data section is possible for each of two or more upper-level devices in the flag part of a writing means, a storage means for storing the write permission bit for which higher-order device is to be checked according to a command from the higher-order device, and
Comparing means for reading the flag part in D and comparing the position where the write permission bit is set and the bit position of the write permission bit to be checked stored in the storage means, and the comparing means and means for determining, as a result of the comparison, whether or not a write operation to a normally writable data portion in the same sector is possible.

実施例 次に本発明をその好ましい一実施例について図面を参照
して具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図は本発明の一実施例を示す概念的ブロック構成図
である。
FIG. 1 is a conceptual block diagram showing an embodiment of the present invention.

第1図において、本発明に係る磁気ディスク制御装置1
00は、バス制御回路10、磁気ディスク制御回路20
、マイクロプロセッサ30、フラグ比較回路50、書込
レベル記憶回路60より構成されている。
In FIG. 1, a magnetic disk control device 1 according to the present invention
00 is bus control circuit 10, magnetic disk control circuit 20
, a microprocessor 30, a flag comparison circuit 50, and a write level storage circuit 60.

又、磁気ディスク制御装v tooは、磁気ディスク2
00と接続されると共に、バス300を介して中央処理
装置400.500及び主記憶装置600と接続されて
いる。
Further, the magnetic disk controller v too controls the magnetic disk 2
00, and is also connected to the central processing units 400 and 500 and the main storage device 600 via the bus 300.

この様に構成された磁気ディスク制御部の動作は次の通
りである。中央処理装置400よりバス300を介して
磁気ディスク制御装置100に磁気ディスク装置200
に対するフォーマット命令が入力されると、マイクロプ
ロセッサ回路30は磁気ディスク制御回路20を介して
磁気ディスク装置200に対し、中央処理袋W400か
ら指示されたシリンダへのシーク命令を出力する。シー
ク動作が終了すると、マイクロプロセッサ回路30は、
中央処理装置400から指示された主記憶装置600の
アドレスよりデータを読出し、磁気ディスク制御回路2
0で第2図に示す5YNCバイト及びCRCを付加し、
主記憶装置600より読出したデータをFLAGバイト
、シリンダ番号、トラック番号、セクタ番号として、磁
気ディスク装置200にID部として書込みフォーマッ
トする。主記憶装置600に書込まれたFLAGバイト
の値として、中央処理袋!4.oOにあらかじめ決めら
れたビット位置にライトを許可する場合には値゛′1′
′を、リードのみ許可する場合には値“0″を書込む。
The operation of the magnetic disk control section configured in this way is as follows. The magnetic disk device 200 is connected to the magnetic disk control device 100 from the central processing unit 400 via the bus 300.
When a formatting command is input to the microprocessor circuit 30, the microprocessor circuit 30 outputs a seek command to the designated cylinder from the central processing bag W400 to the magnetic disk device 200 via the magnetic disk control circuit 20. When the seek operation is completed, the microprocessor circuit 30
Data is read from the address of the main storage device 600 instructed by the central processing unit 400, and the magnetic disk control circuit 2
0, add 5YNC bytes and CRC shown in Figure 2,
The data read from the main storage device 600 is written and formatted as a FLAG byte, cylinder number, track number, and sector number in the magnetic disk device 200 as an ID section. As the value of the FLAG byte written to the main storage device 600, the central processing bag! 4. To allow writing to a predetermined bit position in oO, use the value ``'1''
', and when only reading is permitted, write the value "0".

この様にして、中央処理装置400に対するフォマット
動作が完了した状態で中央処理装置400より、バス3
00を介して磁気ディスク制御装置100に対して、書
込レベル記憶回路60に中央処理装置400に対応した
予め決められたビット位置をセットする命令を実行させ
たあと、ライト命令が入力されたとすると、マイクロプ
ロセッサ回路30は、磁気ディスク制御回路20を介し
て磁気ディスク装置200に対し、中央処理装置400
から指示されたシリンダへのシーク命令を出力する。
In this way, when the formatting operation for the central processing unit 400 is completed, the central processing unit 400 sends the data to the bus 3.
Suppose that a write command is input after the magnetic disk control device 100 executes a command to set a predetermined bit position corresponding to the central processing unit 400 in the write level storage circuit 60 via 00. , the microprocessor circuit 30 connects the central processing unit 400 to the magnetic disk device 200 via the magnetic disk control circuit 20.
Outputs a seek command to the specified cylinder.

シーク動作が終了すると、マイクロプロセッサ回路30
は磁気ディスク制御回路20に対して磁気ディスク装W
2O0から読み出されたデータのサーチ動作を開始する
。第2図に示す5YNCバイトが磁気ディスク制御回路
20で検出されると、磁気ディスク制御回路20はFL
AGバイト検出動作を起動する。
When the seek operation is completed, the microprocessor circuit 30
is a magnetic disk drive W for the magnetic disk control circuit 20.
A search operation for data read from 2O0 is started. When the 5YNC byte shown in FIG. 2 is detected by the magnetic disk control circuit 20, the magnetic disk control circuit 20
Start AG byte detection operation.

磁気ディスク制御回路20がFLAGバイトを検出し、
その値をフラグ比較回路50へ出力すると2フラグ比較
回路50は、入力されたFLAGバイトデータと書込レ
ベル記憶回路60から入力される書込許可ピッ1〜とを
比較する動作を開始する。フラグ比較回路50で比較さ
れた結果は磁気ディスク制御回1¥820へ通知され、
磁気ディスク制御回路20は、その通知された結果、書
込が許可されない状態である場合にはそのセクタをJ売
みとは゛し、ン欠のセクタのサーチ動作を続行し、書込
が許可された状態である場合には磁気ディスク制御回路
20で磁気ディスク装置200からのリードデータとシ
リンダ番号、トラック番号、セクタ番号との比較動作と
CRCデータのチェック作業を続行する。その結果、マ
イクロプロセッサ回路30は、目的のセクタであり、 
CRCが“”OK”の場合にはデータ部への書込動作を
開始し、それ以外の場合にはそのセクタを読みとばして
次のセクタのサーチ動作を続行する。
The magnetic disk control circuit 20 detects the FLAG byte,
When the value is output to the flag comparison circuit 50, the two-flag comparison circuit 50 starts comparing the input FLAG byte data with the write permission pins 1 to 1 inputted from the write level storage circuit 60. The results compared by the flag comparison circuit 50 are notified to the magnetic disk control circuit 1 ¥820,
As a result of the notification, if the magnetic disk control circuit 20 is in a state in which writing is not permitted, it marks the sector as J-sell, continues the search operation for the missing sector, and returns to a state in which writing is permitted. If so, the magnetic disk control circuit 20 continues to compare the read data from the magnetic disk device 200 with the cylinder number, track number, and sector number and to check the CRC data. As a result, the microprocessor circuit 30 is the target sector;
If the CRC is "OK", a write operation to the data section is started; otherwise, the sector is skipped and the search operation for the next sector is continued.

発明の詳細 な説明したように、本発明の磁気ディスク制御装置を採
用することにより、2台以上の上位装置が1台の磁気デ
ィスク装置を使用する場合に、お互いのデータ領域を意
識しないで制御出来る効果が得られる。
As described in detail, by employing the magnetic disk control device of the present invention, when two or more host devices use one magnetic disk device, they can control each other without being aware of each other's data areas. You can get the desired effect.

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

第1図は本発明の一実施例を示すブロック構成図、第2
図はセクターDのフォーマット型式の例を示す図である
。 10・・・バス制御回路、20・・・磁気ディスク制御
回路、30・・・マイクロプロセッサ回路、5o・・フ
ラグ比較回路、60・・・書込レベル記憶回路、100
・・・磁気ディスク制御装置、200・・・磁気ディス
ク装置、300・・・バス、400.500・・・中央
処理装置、600・・・主記憶装置 特許出願人  日本電気株式会社 代 理 人  弁理士 熊谷雄太部
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure shows an example of the format of sector D. DESCRIPTION OF SYMBOLS 10... Bus control circuit, 20... Magnetic disk control circuit, 30... Microprocessor circuit, 5o... Flag comparison circuit, 60... Write level storage circuit, 100
...Magnetic disk control device, 200...Magnetic disk device, 300...Bus, 400.500...Central processing unit, 600...Main storage device Patent applicant NEC Corporation Representative Patent attorney Master Yutabe Kumagai

Claims (1)

【特許請求の範囲】[Claims] 各セクタを識別する為のセクタIDを有する固定セクタ
方式の磁気ディスク装置に対しフォーマット時にセクタ
ID内のフラグの部分に2台以上の上位装置の各々に対
応し正常にライト可能なデータ部への書込動作の可不可
を決定する為の各上位装置に対応した書込許可ビットを
書込む書込手段と、上位装置からの命令によりどの上位
装置に対する書込許可ビットをチェックするかを記憶す
る記憶手段と、ライト動作時にセクタID内のフラグの
部分を読出し上記書込許可ビットがセットされている位
置と上記記憶手段により記憶されたチェックすべき上記
書込許可ビット位置を比較する比較手段と、上記比較手
段により比較した結果同一セクタ内の正常にライト可能
なデータ部への書込動作の可不可を決定する手段とを有
することを特徴とする磁気ディスク制御装置。
When formatting a fixed-sector type magnetic disk device that has a sector ID to identify each sector, the flag part in the sector ID corresponds to each of two or more host devices, and the data part that can be written normally is written. A writing means for writing a write permission bit corresponding to each host device to determine whether a write operation is possible or not, and a memory for which write permission bit is to be checked for which host device based on a command from the host device. a storage means, and a comparison means for reading a flag part in a sector ID during a write operation and comparing the position where the write permission bit is set and the write permission bit position to be checked stored by the storage means; and means for determining whether or not a write operation to a normally writable data portion in the same sector is possible as a result of the comparison by the comparison means.
JP1026170A 1989-02-03 1989-02-03 Magnetic disk controller Pending JPH02206063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1026170A JPH02206063A (en) 1989-02-03 1989-02-03 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1026170A JPH02206063A (en) 1989-02-03 1989-02-03 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH02206063A true JPH02206063A (en) 1990-08-15

Family

ID=12186069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1026170A Pending JPH02206063A (en) 1989-02-03 1989-02-03 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH02206063A (en)

Similar Documents

Publication Publication Date Title
US20030023966A1 (en) Method of software installation and updating firmware, recording and reading device, and recording medium therefor
JP3178794B2 (en) Information storage medium copy control method and information storage medium copy apparatus
JPH0652694A (en) System for detecting life of flash memory
US5774742A (en) Peripheral device using two microprocessors and two buses for automatically updating program after judging that update data is stored in a portable recording medium
US4907226A (en) Disk write error recovery system
JP3194900B2 (en) Memory management method for computer having hard disk drive
JPH0316712B2 (en)
US5428755A (en) Method for automatically modifying program in a flash memory of a magnetic tape unit
JPH02206063A (en) Magnetic disk controller
JP3244203B2 (en) Information processing device
JP2689559B2 (en) Magnetic disk controller
JPH02206062A (en) Magnetic disk controller
JPS6240556A (en) Information processor
JPH0441375B2 (en)
US7409598B2 (en) Information storage system
JPH0464985A (en) Recorder
JPH0514353Y2 (en)
JPS6013360A (en) Storage device
JP2950685B2 (en) Channel device for optical disk
JP2972365B2 (en) Access control method for magnetic tape storage
JPS6346461B2 (en)
JPH04152421A (en) Disk filing device
JPH02294816A (en) Discrimination system for kind of magnetic disk device
JPH0570864B2 (en)
JPS6046746B2 (en) Large memory controller with data protection function