JPH02179965A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH02179965A
JPH02179965A JP63335597A JP33559788A JPH02179965A JP H02179965 A JPH02179965 A JP H02179965A JP 63335597 A JP63335597 A JP 63335597A JP 33559788 A JP33559788 A JP 33559788A JP H02179965 A JPH02179965 A JP H02179965A
Authority
JP
Japan
Prior art keywords
sector
magnetic disk
data
read
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.)
Granted
Application number
JP63335597A
Other languages
Japanese (ja)
Other versions
JP2689559B2 (en
Inventor
Shigeru Oshima
茂 大島
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 JP63335597A priority Critical patent/JP2689559B2/en
Publication of JPH02179965A publication Critical patent/JPH02179965A/en
Application granted granted Critical
Publication of JP2689559B2 publication Critical patent/JP2689559B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To separately set an unreadable/unwritable sector, a read-only sector and a readable/writable sector by determining the possibility/impossibility of access to a data part by a comparing means. CONSTITUTION:A microprocessor circuit 30 outputs a seek instruction to an instructed cylinder, and when seeking operation is completed, the microprocessor circuit 30 reads data from the address of a main storage device 500, a SYNC byte and a CRC are added by a magnetic disk control circuit 20, and the data are written and formatted as an ID part to the magnetic disk device 200 with the data from the main storage part 500 as a FLAG byte, a sealing number, a track number and a sector number. In such a case, a value (a) is written when read/write is always permitted as the value of the FLAG byte, a value (b) is written when only read is permitted in a normal access level, and a value (c) is written when neither read nor write is permitted in the normal access level. Thus the sector which can be read only by a specific high-order device can be separately set.

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.

従来の技術 従来、各セクタを識別するためのセクタTDを有する固
定セクタ方式の磁気ディスク装置に対するリード及びラ
イト動作成いはライト又はリード動作の許可のチェック
方式としては、ソフトウェアのドライバ部分により要求
されたセクタに対するリード及びライト動作成いはライ
ト又はリード動作の可、不可をメモリ上に展開した磁気
ディスク装置のマツプ情報によりチェックする第一の方
式、或いは磁気ディスク装置のプロテクトスイッチを°
’ON”にして磁気ディスク装置全体を書込禁止にする
第2の方式が知られていた。
2. Description of the Related Art Conventionally, a method for performing read and write operations or checking permission for write or read operations for a fixed sector type magnetic disk device having a sector TD for identifying each sector has been requested by a driver section of software. The first method is to check whether a read or write operation or a write or read operation is possible or not for a sector that has been written, using map information of the magnetic disk device expanded on the memory, or by setting a protect switch of the magnetic disk device.
A second method has been known in which the entire magnetic disk device is write-protected by turning it on.

発明が解決しようとする課題 しかしながら、上述した磁気ディスク制御装置の第1の
方式では、異なるソフトウェアを使用すると、磁気ディ
スク装置のマツプ情報の管理方式が異なるために、要求
されたセクタに対するリード及びライト動作の可、不可
をチェック出来ないという欠点があり、上述した第2の
方式では磁気ディスク装置のプロテクトスイッチを“O
N゛にすると磁気ディスク装置全体が書込禁止になり、
−部だけ書込禁止に出来ないという欠点があった。
Problems to be Solved by the Invention However, in the first method of the magnetic disk control device described above, when different software is used, the management method of the map information of the magnetic disk device is different, so that reading and writing to the requested sector is difficult. The disadvantage of the above-mentioned second method is that it is not possible to check whether the operation is possible or not.
If you set it to N, the entire magnetic disk drive will be write-protected.
There was a drawback that only the - section could not be write-protected.

本発明は従来の上記実蛸に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記諸欠
点を解消することを可能とした新規な磁気ディスク制御
装置を提供することにある。
The present invention was made in view of the conventional octopus described above,
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内のフラグの部分に正常にリード、
ライト可能なデータ部へのアクセスの可、不可を決定す
るためのアクセスレベルを書込む手段と、上位装置から
の命令により上記アクセスレベルを決定し上記アクセス
レベルを記憶する手段と、リード又はライト動作時にセ
クタID内のフラグの部分を読出し、上記アクセスレベ
ルを記憶する手段の内容と比較する手段と、上記比較手
段により比較した結果、同一セクタ内の正常にリード、
ライト可能なデータ部へのアクセスの可、不可を決定す
る手段とを備えて構成されるか、又は、各セクタを識別
するためのセクタ!Dを有する固定セクタ方式の磁気デ
ィスク装置に対し、フォーマット時にセクタID内のフ
ラグの部分に正常にライト可能なデータ部への書込動作
の可、不可を決定するための書込許可ビットを書込む手
段と、上位装置からの命令により、上記書込許可ビット
がリセットされていた時の同じセクタのデータ部への書
込動作の可、不可を記憶する手段と、ライト動作時にセ
クタID内のフラグの部分を読出し、上記書込許可ビッ
トがリセットされていた時に上記記憶する手段により記
憶された内容と比較する手段と、上記比較手段により比
較した結果、同一セクタ内の正常にライト可能なデータ
部への書込動作の可、不可を決定する手段とを備えて構
成されるか、或いは、各セクタを識別するためのセクタ
IDを有する固定セクタ方式の磁気ディスク装置に対し
上位装置からの書込命令により上位装置のIDデータを
データ部の先頭に書込み後データを書込む手段と、上位
装置からの読出命令により、目的のセクタがID部のチ
ェックにより検出された時に、データ部を読出し上記手
段により書込まれた上位装置のIDデータと読出命令を
要求した上位装置のIDとを比較する手段と、上記比較
手段により比較した結果、一致した場合にはデータの読
出動作を実行し、不一致の場合にはデータの読出動作を
中止する手段とを備えて構成される。
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. successfully leads to the flag part within,
means for writing an access level for determining whether access to a writable data section is possible; means for determining the access level according to a command from a host device and storing the access level; and a read or write operation. At the same time, the flag part in the sector ID is read and the access level is compared with the contents of the means for storing the access level.
A sector for identifying each sector! When formatting a fixed sector type magnetic disk device with D, a write permission bit is written in the flag part of the sector ID to determine whether or not a write operation to the normally writable data area is possible. means for storing whether or not a write operation to the data portion of the same sector is possible when the write permission bit is reset by a command from a host device; Means for reading the flag part and comparing it with the contents stored by the above-mentioned storing means when the above-mentioned write permission bit was reset, and as a result of the comparison by the above-mentioned comparing means, data in the same sector that can be written normally is found. or a fixed-sector type magnetic disk device that has a sector ID for identifying each sector. A read command from the host device reads the data field when the target sector is detected by checking the ID field, and reads the above data. means for comparing the ID data of the higher-level device written by the means with the ID of the higher-level device that requested the read command, and if the result of the comparison by the comparison means matches, a data read operation is executed, and a mismatch is detected. In this case, the data reading operation is stopped.

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

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

第1図を参照するに、磁気ディスク制御装置ID0は、
バス制御回路ID、磁気ディスク制御回路20、マイク
ロプロセッサ回路30、フラグ比較回路50、アクセス
レベル記憶回路60より構成されている。
Referring to FIG. 1, the magnetic disk control device ID0 is
It is composed of a bus control circuit ID, a magnetic disk control circuit 20, a microprocessor circuit 30, a flag comparison circuit 50, and an access level storage circuit 60.

又、磁気ディスク制御装z iooは、磁気ディスク2
00と接続されると共に、バス300を介して中央処理
袋2400及び主記憶装置500と接続されている。
In addition, the magnetic disk controller z ioo controls the magnetic disk 2
00, and also connected to the central processing bag 2400 and the main storage device 500 via the bus 300.

この様に構成された磁気ディスク制御装置の動作は次の
通りである。
The operation of the magnetic disk control device configured in this manner is as follows.

中央処理装置400よりバス300を介して磁気ディス
ク制御装置ID0に磁気ディスク装置200に対するフ
ォーマット命令が入力されると、マイクロプロセッサ回
路30は、磁気ディスク制御回路20を介して磁気ディ
スク装置200に対し中央処理装置400から指示され
たシリンダへのシーク命令を出力する。シーク動作が終
了すると、マイクロプロセッサ回路30は、中央処理装
置400から指示された主記憶装置500のアドレスよ
りデータを読み出し、磁気ディスク制御回路20で第2
図に示す5YNCバイト及びCRCを付加し、主記憶装
置500より読み出したデータをFLAGバイト、シリ
ンダ番号、トラック番号、セクタ番号として磁気ディス
ク装置t 200にID部として書込みフォーマットす
る。この場合、主記憶装置500に書込まれたFLAG
バイトの値として常にリード及びライトを許可する場合
には値aを、普通のアクセスレベルではリードのみ許可
する場合には値すを、普通のアクセスレベルではリード
もライトも許可しない場合には値Cを書き込む、ここで
;A、b、cの値としてはc>b>aを設定する。この
様にして全てのシリンダに対するフォーマット動作が完
了した状態で、中央処理装置400よりバス300を介
して磁気ディスク制御装置ID0に対しアクセスレベル
a″でライト命令が入力されたとすると、マイクロプロ
セッサ回路30は、磁気ディスク制御回路20を介して
磁気ディスク装W、200に対し中央処理袋W400か
ら指示されたシリンダへのシーク命令を出力すると共に
、アクセスレベル記憶回路60ヘアクセスレベルとして
a″をセットする。シーク動作が終了すると、マイクロ
プロセッサ回路30は、磁気ディスク制御回路20に対
して磁気ディスク装置200から読出されたデータのサ
ーチ動作を開始する。第2図に示す5YNCバイトが磁
気ディスク制御回路20で検出されると、磁気ディスク
制御回路20はFLAGバイト検出動作を起動する。磁
気ディスク制御回路20がFLAGバイトを検出し、そ
の値をフラグ比較回路50へ出力すると、フラグ比較回
路50は、入力されたFLAGバイトデータとアクセス
レベル記憶回路60から入力されるアクセスレベルとを
比較する動作を開始する。フラグ比較回路50で比較さ
れた結果は、磁気ディスク制御回路20へ通知され、磁
気ディスク制御回路20はその通知された結果が、“F
LAGバイト”〉アクセスレベルa′である場合には、
そのセクタを読みとばして次のセクタのサーチ動作を続
行し、“FLAGバイト”≦アクセスレベル“a”であ
る場合には、磁気ディスク制御回路20で、磁気ディス
ク装置200からのり−ドデータとシリンダ番号、トラ
ック番号、セクタ番号との比較動作とCRCデータのチ
ェック作業を続行する。その結果、マイクロプロセッサ
回路30は、目的のセクタであり、CRCが0にの場合
には、データ部への書込み動作を開始し、それ以外の場
合には、そのセクタを読みとばし次のセクタのサーチ動
作を続行する。
When a format command for the magnetic disk device 200 is input from the central processing unit 400 to the magnetic disk control device ID0 via the bus 300, the microprocessor circuit 30 centrally sends a format instruction to the magnetic disk device 200 via the magnetic disk control circuit 20. A seek command to the cylinder specified by the processing device 400 is output. When the seek operation is completed, the microprocessor circuit 30 reads the data from the address of the main storage device 500 instructed by the central processing unit 400, and the magnetic disk control circuit 20 reads the data from the second
The 5YNC bytes and CRC shown in the figure are added, and the data read from the main storage device 500 is written and formatted as a FLAG byte, cylinder number, track number, and sector number in the magnetic disk device t200 as an ID section. In this case, the FLAG written in the main storage device 500
As a byte value, set the value a to always allow reading and writing, value C to allow only reading at the normal access level, value C when neither reading nor writing is allowed at the normal access level. Here, the values of A, b, and c are set as c>b>a. Suppose that a write command is input from the central processing unit 400 to the magnetic disk control device ID0 via the bus 300 at access level a'' with the formatting operation for all cylinders completed in this way. outputs a seek command to the cylinder specified from the central processing bag W400 to the magnetic disk unit W, 200 via the magnetic disk control circuit 20, and sets a'' as the access level in the access level storage circuit 60. . When the seek operation is completed, the microprocessor circuit 30 starts a search operation for the magnetic disk control circuit 20 for data read from the magnetic disk device 200. When the 5YNC byte shown in FIG. 2 is detected by the magnetic disk control circuit 20, the magnetic disk control circuit 20 starts a FLAG byte detection operation. When the magnetic disk control circuit 20 detects the FLAG byte and outputs its value to the flag comparison circuit 50, the flag comparison circuit 50 compares the input FLAG byte data with the access level input from the access level storage circuit 60. Start the action. The results compared by the flag comparison circuit 50 are notified to the magnetic disk control circuit 20, and the magnetic disk control circuit 20 receives the results as “F”.
LAG byte"> access level a',
The sector is skipped and the search operation for the next sector is continued, and if “FLAG byte”≦access level “a”, the magnetic disk control circuit 20 uses the read data from the magnetic disk device 200 and the cylinder number. , track number, sector number, and CRC data checking. As a result, the microprocessor circuit 30 starts a write operation to the data portion if the target sector is the target sector and the CRC is 0; otherwise, the microprocessor circuit 30 skips that sector and starts writing to the next sector. Continue search operation.

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

第3図を参照するに、磁気ディスク制、御装置ID1は
、バス制御回路ID、磁気ディスク制御回路20、マイ
クロプロセッサ回路30、フラグ比較回路50、書込レ
ベル記憶回路61により構成されている。
Referring to FIG. 3, the magnetic disk control device ID1 is composed of a bus control circuit ID, a magnetic disk control circuit 20, a microprocessor circuit 30, a flag comparison circuit 50, and a write level storage circuit 61.

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

この様に構成された磁気ディスク制御装置の動作は次の
通りである。
The operation of the magnetic disk control device configured in this manner is as follows.

中央処理装置400よりバス300を介して磁気ディス
ク制御装置ID1に磁気ディスク装置200に対するフ
ォーマット命令が入力されると、マイクロプロセッサ回
路30は、磁気ディスク制御回路20を介して磁気ディ
スク装置200に対し中央処理装置t 400から指示
されたシリンダへのシーク命令を出力する。シーク動作
が終了すると、マイクロプロセッサ回n30は、中央処
理装置400から指示された主記憶装置500のアドレ
スよりデータを読み出し、磁気ディスク制御回路20で
第2図に示す5YNCバイト及びCRCを付加し、主記
憶装置500より読み出したデータをFLAGバイト、
シリンダ番号、トラック番号、セクタ番号として磁気デ
ィスク装置200にID部として書込みフォーマットす
る。この場合、主記憶装置l& 500に書込まれたF
LAGバイトの値として常にライトを許可する場合には
、値“1″を、普通のアクセスレベルではり−ドのみ許
可する場合には、値“0パを書き込む。
When a format command for the magnetic disk device 200 is input from the central processing unit 400 to the magnetic disk control device ID1 via the bus 300, the microprocessor circuit 30 sends a format instruction to the magnetic disk device 200 via the magnetic disk control circuit 20. The processing device t 400 outputs a seek command to the designated cylinder. When the seek operation is completed, the microprocessor n30 reads the data from the address of the main storage device 500 instructed by the central processing unit 400, adds 5YNC bytes and CRC shown in FIG. 2 in the magnetic disk control circuit 20, and The data read from the main storage device 500 is FLAG byte,
The cylinder number, track number, and sector number are written and formatted as an ID part in the magnetic disk device 200. In this case, the F written in main memory l&500
When writing is always permitted as the value of the LAG byte, the value "1" is written, and when only reading is permitted at the normal access level, the value "0" is written.

この様にして全てのシリンダに対するフォーマット動作
が完了した状態で、中央処理装置400よりバス300
を介して磁気ディスク制御装置ID1に対しフラグ内の
書込許可ビットがリセットされていた時に、ライト動作
を許可しないモードのライト命令が入力されたとすると
、マイクロプロセッサ回路30は、磁気ディスク制御回
路20を介して磁気ディスク装! 200に対し中央処
理装rf1400から指示されたシリンダへのシーク命
令を出力すると共仁、書込レベル記憶回路61をセット
する。シーク動作が終了すると、マイクロプロセッサ回
路30は、磁気ディスク制御回路20に対して磁気ディ
スク装置200から読出されたデータのサーチ動作を開
始する。第2図に示す5YNCバイトが磁気ディスク制
御回路20で検出されると、磁気ディスク制御回路20
はFLAGバイト検出動作を起動する。磁気ディスク制
御回路20がFLAGバイトを検出し、その値をフラグ
比較回路50へ出力すると、フラグ比較回路50は、入
力されたFLAGバイトデータと書込レベル記憶回路6
1から入力される書込許可ビットとを比較する動作を開
始する。フラグ比較回路50で比較された結果は、磁気
ディスク制御回路20へ通知され、磁気ディスク制御回
路20はその通知された結果、書込が許可されない状態
である場合には、そのセクタを読みとばし次のセクタの
サーチ動作を続行し、書込が許可された状態である場合
には、磁気ディスク制御回路20で、磁気ディスク装置
200からのリードデータとシリンダ番号、トラック番
号、セクタ番号との比較動作とCRCデータのチェック
作業を続行する。その結果、マイクロプロセッサ回路3
0は、目的のセクタであり、CRCがOKの場合にはデ
ータ部への書込み動作を開始し、それ以外の場合にはそ
のセクタを読みとばして次のセクタのサーチ動作を続行
する。
When the formatting operation for all cylinders is completed in this way, the central processing unit 400 sends the bus 300
If a write command in a mode that does not permit write operations is input when the write permission bit in the flag has been reset for the magnetic disk control device ID1 via the Magnetic disk storage via! When the CPU 200 outputs a seek command to the cylinder specified by the central processing unit rf1400, the write level storage circuit 61 is set. When the seek operation is completed, the microprocessor circuit 30 starts a search operation for the magnetic disk control circuit 20 for data read from the magnetic disk device 200. When the 5YNC byte shown in FIG. 2 is detected by the magnetic disk control circuit 20, the magnetic disk control circuit 20
starts the FLAG byte detection operation. When the magnetic disk control circuit 20 detects the FLAG byte and outputs its value to the flag comparison circuit 50, the flag comparison circuit 50 compares the input FLAG byte data with the write level storage circuit 6.
The operation of comparing the input write permission bit with the input write permission bit starts from 1. The result of the comparison by the flag comparison circuit 50 is notified to the magnetic disk control circuit 20, and if the notified result indicates that writing is not permitted, the magnetic disk control circuit 20 skips reading that sector and performs the next operation. The search operation for the sector continues, and if writing is permitted, the magnetic disk control circuit 20 compares the read data from the magnetic disk device 200 with the cylinder number, track number, and sector number. and continues checking the CRC data. As a result, microprocessor circuit 3
0 is the target sector, and if the CRC is OK, a write operation to the data portion is started; otherwise, the sector is skipped and the search operation for the next sector is continued.

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

第4図において、磁気ディスク制御装置ff ID2は
、バス制御回路ID、磁気ディスク制御回路20、マイ
クロプロセッサ30、チャネルID比較回路51、チャ
ネルID記憶回路62より構成されている。又、磁気デ
ィスク制御装fiID2は、磁気ディスク200と接続
されると共に、バス300を介して中央処理装置400
及び主記憶装置]! 500と接続されている。
In FIG. 4, the magnetic disk control device ff ID2 is composed of a bus control circuit ID, a magnetic disk control circuit 20, a microprocessor 30, a channel ID comparison circuit 51, and a channel ID storage circuit 62. Further, the magnetic disk control device fiID2 is connected to the magnetic disk 200 and connected to the central processing unit 400 via the bus 300.
and main memory]! 500 is connected.

この様に構成された磁気ディスク制御装置の動作は次の
通りである。
The operation of the magnetic disk control device configured in this manner is as follows.

中央処理装置ff 400よりバス300を介して磁気
ディスク制御装2ID0に対し書込命令が入力されたと
すると、マイクロプロセッサ回路30は、磁気ディスク
制御回路20を介して磁気ディスク装置200に対し中
央処理装置400から指示されたシリンダへのシーク命
令を出力する。シーク動作が終了すると、マイクロプロ
セッサ回路30は、磁気ディスク制御回路20に対して
磁気ディスク装置200から目的のセクタをサーチする
−ためのサーチ動作を開始する。サーチ動作が完了した
との通知が磁気ディスク制御回路20から入力されると
、マイクロプロセッサ回路30は、磁気ディスク制御回
路20に対し、第5図に示す様にまず5YNCバイトを
出力し、次に書込命令を出力した中央処理装置400の
IDコードを出力し、次に媒体上に書込むデータを主記
憶装置500よりバス300、バス制御回路IDをを介
して出力する。磁気ディスク制御回路20は1セクタの
全てのデータが書込まれると、FCCデータを書込み書
込動作を終了する。
Assuming that a write command is input from the central processing unit ff 400 to the magnetic disk control unit 2ID0 via the bus 300, the microprocessor circuit 30 sends the central processing unit to the magnetic disk unit 200 via the magnetic disk control circuit 20. 400 outputs a seek command to the designated cylinder. When the seek operation is completed, the microprocessor circuit 30 starts a search operation for the magnetic disk control circuit 20 to search for a target sector from the magnetic disk device 200. When the notification that the search operation is completed is input from the magnetic disk control circuit 20, the microprocessor circuit 30 first outputs 5YNC bytes to the magnetic disk control circuit 20 as shown in FIG. The ID code of the central processing unit 400 that outputs the write command is output, and then the data to be written on the medium is output from the main storage device 500 via the bus 300 and the bus control circuit ID. When all the data of one sector is written, the magnetic disk control circuit 20 writes the FCC data and ends the write operation.

次に中央処理装置400よりバス300を介して磁気デ
ィスク制御装置ID2に対して読出命令が入力されたと
すると、マイクロプロセッサ回路30は、チャネルID
記憶回路62に中央処理装置400のチャネルIDを記
憶させると共に、磁気ディスク制御回路20を介して磁
気ディスク装置200に対し中央処理装置400から指
示されたシリンダへのシーク命令を出力する。シーク動
作が終了すると、マイクロプロセッサ回路30は磁気デ
ィスク制御回路20に対して磁気ディスク装置200か
ら目的のセクタをサーチするためのサーチ動作を開始す
る。
Next, if a read command is input from the central processing unit 400 to the magnetic disk controller ID2 via the bus 300, the microprocessor circuit 30 inputs the channel ID
The channel ID of the central processing unit 400 is stored in the storage circuit 62, and a seek command to the cylinder designated by the central processing unit 400 is output to the magnetic disk device 200 via the magnetic disk control circuit 20. When the seek operation is completed, the microprocessor circuit 30 starts a search operation for the magnetic disk control circuit 20 to search the magnetic disk device 200 for a target sector.

サーチ動作が完了したとの通知が磁気ディスク制御回路
20から入力されると、マイクロプロセッサ30は磁気
ディスク制御回路20に対し5YNCバイトサ一チ動作
を指示する。 5YNCバイトのサーチ動作が完了しチ
ャネルIDが媒体上より読出され、磁気ディスク制御回
路20より出力されると、マイクロプロセッサ回路30
は、チャネルID記憶回路62より出力されたチャネル
IDと、磁気ディスク制御回路20より出力されたチャ
ネルIDをチャネルID比較回路51により比較する動
作を開始する。マイクロプロセッサ回路30は、比較し
た結果、一致していた場合にはチャネルIDの後ろに書
かれたデータをリードデータとして読出し、バス制御回
路ID、バス300、主記憶装置!E 500へデータ
を転送する。
When a notification that the search operation is completed is input from the magnetic disk control circuit 20, the microprocessor 30 instructs the magnetic disk control circuit 20 to perform a 5YNC byte search operation. When the search operation for 5YNC bytes is completed and the channel ID is read from the medium and output from the magnetic disk control circuit 20, the microprocessor circuit 30
starts an operation in which the channel ID comparison circuit 51 compares the channel ID output from the channel ID storage circuit 62 and the channel ID output from the magnetic disk control circuit 20. As a result of the comparison, if they match, the microprocessor circuit 30 reads out the data written after the channel ID as read data, and reads out the data written after the channel ID, the bus control circuit ID, the bus 300, and the main memory! Transfer data to E500.

又、比較した結果、不一致の場合には、マイクロプロセ
ッサ回路30は中央処理装置400に対して不一致であ
ったとの通知をして動作を終了する。
If the comparison results in a mismatch, the microprocessor circuit 30 notifies the central processing unit 400 that there is a mismatch and ends the operation.

発明の詳細 な説明したように、本第1の発明に係る磁気ディスク制
御装置を採用することにより、あらがじめフォーマット
により磁気ディスク装置内の各セクタのアクセスレベル
を決定しておけば、上記装置よりの命令のアクセスレベ
ルにより、リード及びライト不可のセクタとリードのみ
可能なセクタと、リード及びライト可能なセクタとを個
別に設定することが可能となる。
As described in detail of the invention, by employing the magnetic disk control device according to the first invention, if the access level of each sector in the magnetic disk device is determined in advance by formatting, the above-mentioned Depending on the access level of the command from the device, it is possible to individually set sectors that are not readable and writable, sectors that are only readable, and sectors that are readable and writable.

ス、本第2の発明に係る磁気ディスク制御装置を採用す
ることにより、あらかじめフォーマットにより磁気ディ
スク装置内の各セクタのフラグの書込許可ビットのセッ
ト、リセットを決定しておけば、上記装置よりの命令に
より、リードのみ可能なセクタと、リード及びライト可
能なセクタとを個別に設定することが可能となる。
By adopting the magnetic disk control device according to the second aspect of the present invention, if the setting or resetting of the write permission bit of the flag of each sector in the magnetic disk device is determined in advance by formatting, the above device can With this command, read-only sectors and read/writable sectors can be individually set.

更に又、本第3の発明に係る磁気ディスク制御装置を採
用することにより、特定の上位装置でのみリード可能な
セクタをセクタごとに個別に設定することが可能となる
Furthermore, by employing the magnetic disk control device according to the third invention, it becomes possible to individually set sectors that can be read only by a specific host device.

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

第1図は第1の発明の一実施例を示すブロック構成図、
第2図はセクタIDのフォーマット型式の例を示す図、
第3図は第2の発明の一実施例を示すブロック構成図、
第4図は第3の発明の一実施例を示すブロック構成図、
第5図はデータ部のフォーマット型式の一例を示す図で
ある。 ID・・・バス制御回路、2o・・・磁気ディスク制御
回路、30・・・マイクロプロセッサ回路、5o・・・
フラグ比較回路、51・・・チャネルID比較回路、6
o・・・アクセスレベル記憶回路、61・・・書込レベ
ル記憶回路、62・・・チャネルID記憶回路、ID0
.ID1.ID2・・・磁気ディスク制御装置、200
・・・磁気ディスク装置、300・・・バス、400・
・・中央処理装置、500・・・主記憶装置特許出願人
  日本電気株式会社 代 理 人  弁理士 熊谷雄太部 第1図
FIG. 1 is a block diagram showing an embodiment of the first invention;
Figure 2 is a diagram showing an example of the sector ID format,
FIG. 3 is a block diagram showing an embodiment of the second invention;
FIG. 4 is a block diagram showing an embodiment of the third invention;
FIG. 5 is a diagram showing an example of the format of the data section. ID...Bus control circuit, 2o...Magnetic disk control circuit, 30...Microprocessor circuit, 5o...
Flag comparison circuit, 51...Channel ID comparison circuit, 6
o...Access level storage circuit, 61...Write level storage circuit, 62...Channel ID storage circuit, ID0
.. ID1. ID2...Magnetic disk control device, 200
...Magnetic disk device, 300...Bus, 400...
...Central processing unit, 500...Main storage device Patent applicant NEC Corporation Representative Yutabe Kumagai Figure 1

Claims (3)

【特許請求の範囲】[Claims] (1)、各セクタを識別するためのセクタIDを有する
固定セクタ方式の磁気ディスク装置に対しフォーマット
時にセクタID内のフラグの部分に正常にリード、ライ
ト可能な、データ部へのアクセスの可、不可を決定する
ためのアクセスレベルを書込む手段と、上位装置からの
命令により上記アクセスレベルを決定し上記アクセスレ
ベルを記憶する手段と、リード又はライト動作時にセク
タID内のフラグの部分を読出して該フラグ部分と上記
アクセスレベルを記憶する手段の内容とを比較する手段
と、上記比較手段により比較した結果同一セクタ内の正
常にリード、ライト可能なデータ部へのアクセスの可、
不可を決定する手段とを有することを特徴とする磁気デ
ィスク制御装置。
(1) For a fixed sector type magnetic disk device that has a sector ID for identifying each sector, when formatting, the flag part in the sector ID can be read and written normally, and the data part can be accessed. means for writing an access level to determine whether or not to be permitted; means for determining the access level based on a command from a host device and storing the access level; and reading a flag portion in the sector ID during a read or write operation. means for comparing the flag part with the contents of the means for storing the access level; and as a result of the comparison by the comparison means, it is possible to access the data part in the same sector that can be read and written normally;
1. A magnetic disk control device comprising means for determining whether or not the disk is prohibited.
(2)、各セクタを識別するためのセクタIDを有する
固定セクタ方式の磁気ディスク装置に対しフォーマット
時にセクタID内のフラグの部分に正常にライト可能な
データ部への書込動作の可、不可を決定するための書込
許可ビットを書込む手段と、上位装置からの命令により
上記書込許可ビットがリセットされていた時の同じセク
タのデータ部への書込動作の可、不可を記憶する手段と
、ライト動作時にセクタID内のフラグの部分を読出し
上記書込許可ビットがリセットされていた時に上記記憶
する手段により記憶された内容と比較する手段と、上記
比較手段により比較した結果同一セクタ内の正常にライ
ト可能なデータ部への書込動作の可、不可を決定する手
段とを有することを特徴とする磁気ディスク制御装置。
(2) For a fixed sector type magnetic disk device that has a sector ID to identify each sector, it is possible or impossible to write to the data section that can be normally written to the flag part in the sector ID during formatting. means for writing a write permission bit to determine the write permission bit, and storing whether a write operation to the data portion of the same sector is possible or not when the write permission bit is reset by a command from the host device. means for reading the flag part in the sector ID during a write operation and comparing it with the content stored by the storing means when the write permission bit was reset; 1. A magnetic disk control device comprising means for determining whether or not a write operation to a normally writable data portion of the magnetic disk is permitted or prohibited.
(3)、各セクタを識別するためのセクタIDを有する
固定セクタ方式の磁気ディスク装置に対し上位装置から
の書込命令により上位装置のIDデータをデータ部の先
頭に書込み後にデータを書込む手段と、上位装置からの
読出命令により目的のセクタがID部のチェックにより
検出された時にデータ部を読出し上記手段により書込ま
れた上位装置のIDデータと読出命令を要求した上位装
置のIDとを比較する手段と、上記比較手段により比較
した結果一致した場合にはデータの読出動作を実行し不
一致の場合にはデータの読出動作を中止する手段とを有
することを特徴とする磁気ディスク制御装置。
(3) Means for writing data after writing the ID data of the host device to the beginning of the data section in response to a write command from the host device in a fixed sector type magnetic disk device having a sector ID for identifying each sector. Then, when the target sector is detected by checking the ID field due to a read command from the host device, the data field is read and the ID data of the host device written by the above means and the ID of the host device that requested the read command are read. A magnetic disk control device comprising: means for comparing; and means for executing a data read operation if the results of the comparison by the comparison means match, and stopping the data read operation if they do not match.
JP63335597A 1988-12-29 1988-12-29 Magnetic disk controller Expired - Lifetime JP2689559B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63335597A JP2689559B2 (en) 1988-12-29 1988-12-29 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63335597A JP2689559B2 (en) 1988-12-29 1988-12-29 Magnetic disk controller

Publications (2)

Publication Number Publication Date
JPH02179965A true JPH02179965A (en) 1990-07-12
JP2689559B2 JP2689559B2 (en) 1997-12-10

Family

ID=18290365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63335597A Expired - Lifetime JP2689559B2 (en) 1988-12-29 1988-12-29 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JP2689559B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09138733A (en) * 1995-11-14 1997-05-27 Hokkaido Nippon Denki Software Kk Protective system for magnetic disk device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6139263A (en) * 1984-07-27 1986-02-25 Nec Corp Magnetic disc device
JPS63224067A (en) * 1987-03-13 1988-09-19 Sony Corp Disk recording and reproducing device
JPS63317975A (en) * 1987-06-22 1988-12-26 Hitachi Ltd Right protecting mechanism for magnetic disk device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6139263A (en) * 1984-07-27 1986-02-25 Nec Corp Magnetic disc device
JPS63224067A (en) * 1987-03-13 1988-09-19 Sony Corp Disk recording and reproducing device
JPS63317975A (en) * 1987-06-22 1988-12-26 Hitachi Ltd Right protecting mechanism for magnetic disk device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09138733A (en) * 1995-11-14 1997-05-27 Hokkaido Nippon Denki Software Kk Protective system for magnetic disk device

Also Published As

Publication number Publication date
JP2689559B2 (en) 1997-12-10

Similar Documents

Publication Publication Date Title
US5537552A (en) Apparatus for selectively comparing pointers to detect full or empty status of a circular buffer area in an input/output (I/O) buffer
JP3178794B2 (en) Information storage medium copy control method and information storage medium copy apparatus
JP2848528B2 (en) Optical disk drive
WO1998025199A1 (en) Method and apparatus for adding to the reserve area of a disk drive
JP2575988B2 (en) Optical disk copy prevention method, optical disk and optical disk apparatus
JP4678083B2 (en) Memory device and memory access restriction method
JP3194900B2 (en) Memory management method for computer having hard disk drive
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
US5428755A (en) Method for automatically modifying program in a flash memory of a magnetic tape unit
JPH02179965A (en) Magnetic disk controller
JPH02206062A (en) Magnetic disk controller
JPH02206063A (en) Magnetic disk controller
JPS58219658A (en) Magnetic disk controller
JP2950685B2 (en) Channel device for optical disk
JPH09198846A (en) Magneto-optical recording device
JPH04188466A (en) Data recording apparatus
JPS6013360A (en) Storage device
US7409598B2 (en) Information storage system
JPH0337710A (en) Optical disk controller
JPS5971560A (en) Disc controller
JPH0191375A (en) Magnetic disk controller
JPH04152421A (en) Disk filing device
JPH02236865A (en) Information recording and reproducing device
JPH07191843A (en) Computer system
JPH01256070A (en) Disk and file copy protecting system