JPH036614A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH036614A
JPH036614A JP1141461A JP14146189A JPH036614A JP H036614 A JPH036614 A JP H036614A JP 1141461 A JP1141461 A JP 1141461A JP 14146189 A JP14146189 A JP 14146189A JP H036614 A JPH036614 A JP H036614A
Authority
JP
Japan
Prior art keywords
magnetic disk
data
physical device
device number
physical
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
JP1141461A
Other languages
Japanese (ja)
Inventor
Tatsuji Okubo
大窪 龍児
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 JP1141461A priority Critical patent/JPH036614A/en
Publication of JPH036614A publication Critical patent/JPH036614A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the transformation of data by reading the data when the coincidence is obtained between the physical device number of a magnetic disk device which is written by a data writing means with the physical device number of the magnetic disk device which is pointed by a reading instruction issued from a host device. CONSTITUTION:A microprocessor circuit 30 compares the physical device number received from a physical device number storage circuit 60 with the physical device number received from a magnetic disk control circuit 20 via a physical device number comparator 50. When the coincidence is obtained between both device numbers, the data written after the physical device numbers are read out as the read data and sent to a bus control circuit 10, a bus 300, and a main storage 500. Thus it is possible to prevent such a case where a host device reads data out of an undesired magnetic disk device 200, i.e., the transformation of data.

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を有する固定
セクタ方式の磁気ディスク装置に対する読出動作のチェ
ック方式としては、上位装置から指示された磁気ディス
ク装置のデバイス番号で、磁気ディスク装置の選択動作
を行い、これに対して、磁気ディスク装置から選択され
たことを示す信号を受は取ることによりチェックする方
式が知られていた。
2. Description of the Related Art Conventionally, as a method for checking read operations on a fixed sector type magnetic disk device that has a sector ID for identifying each sector, the device number of the magnetic disk device instructed by the host device is used to check the read operation of the magnetic disk device. A method is known in which a selection operation is performed and this is checked by receiving and receiving a signal indicating that the selection has been made from the magnetic disk device.

発明が解決しようとする課題 しかしながら、上述した磁気ディスク制御装置の方式で
は、障害により上位装置から指示された磁気ディスク装
置のデバイス番号以外のデバイス番号の磁気ディスク装
置が選択されたことを示す信号を出し、選択された場合
に、希望した磁気ディスク装置以外の装置からのデータ
をリードしてしまう、つまり、データ化けが発生する可
能性があるという欠点があった。
Problems to be Solved by the Invention However, in the above-mentioned magnetic disk control device system, a signal indicating that a magnetic disk device with a device number other than the device number of the magnetic disk device instructed by the host device is selected due to a failure. There is a drawback that when a magnetic disk device is selected and data is read from a device other than the desired magnetic disk device, data may be garbled.

本発明は従来の上記実情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記欠点
を解消し、上記いわゆるデータ化けを防止することを可
能とした新規な磁気ディスク制御装置を提供することに
ある。
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 eliminates the above-mentioned drawbacks inherent in the conventional technology and makes it possible to prevent the so-called data corruption.

課題を解決するための手段 上記目的を達成する為に、本発明に係る磁気ディスク制
御装置は、各セクタを識別する為のセクタ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. A means for writing data after writing the physical device number of the magnetic disk device to the beginning of the data section by a write command, and a means for writing data after a write command writes the physical device number of the magnetic disk device to the beginning of the data section, and a means for writing the data section when the target sector is detected by checking the ID section by a read command from the host device. Read A means for comparing the physical device number of the magnetic disk drive written by the data writing means with the physical device number of the magnetic disk drive instructed by the read command from the host device, and the result of the comparison by the comparison means. If they match, the data is read out, and if they do not match, the data reading operation is stopped.

実施例 次に本発明をその好ましい一実施例について図面を参照
して具体的に説明する。
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
100は、バス制御回路lO1磁気デーイスク制御回路
20、マイクロプロセッサ回路30、物理デバイス番号
比較回路50、物理デバイス番号記憶回路60より構成
されている。
In FIG. 1, a magnetic disk control device 1 according to the present invention
100 is composed of a bus control circuit lO1 magnetic disk control circuit 20, a microprocessor circuit 30, a physical device number comparison circuit 50, and a physical device number storage circuit 60.

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

このように構成された磁気ディスク制御装置の動作は次
の通りである。中央処理装置400よりバス300を介
して磁気ディスク制御装置100に対して書込命令が入
力されたとすると、マイクロプロセッサ回#I30は磁
気ディスク制御回路20を介して磁気ディスク装置20
0に対し中央処理装置400から指示されたシリンダへ
のシーク命令を出力する。
The operation of the magnetic disk control device configured as described above is as follows. Assuming that a write command is input from the central processing unit 400 to the magnetic disk control device 100 via the bus 300, the microprocessor #I30 inputs the write command to the magnetic disk device 20 via the magnetic disk control circuit 20.
0, outputs a seek command to the cylinder specified by the central processing unit 400.

シーク動作が終了すると、マイクロプロセッサ回路30
は、磁気ディスク制御回路2oに対して磁気ディスク装
置200から目的のセクタをサーチする為のサーチ動作
を開始する。
When the seek operation is completed, the microprocessor circuit 30
starts a search operation for the magnetic disk control circuit 2o to search for a target sector from the magnetic disk device 200.

サーチ動作が完了したとの通知が磁気ディスク制御回路
20から入力されると、マイクロプロセッサ回路30は
、磁気ディスク制御回路2oに対し、第2図に示すよう
に先ず5YNCバイトを出力し、次に書込命令により指
定された磁気ディスク装置200の物理デバイス番号を
出力し、次に媒体上に書込むデータを主記憶装置j 5
00よりバス3oo、バス制御回路10を介して出力す
る。磁気ディスク制御回路20は1セクタの全てのデー
タが書き込まれると、FCCデータを書込み書込動作を
終了する。
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 2o as shown in FIG. The physical device number of the magnetic disk device 200 specified by the write command is output, and the data to be written on the medium is then written to the main storage device j5.
00, the signal is output via the bus 3oo and the bus control circuit 10. 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を介して磁気デ
ィスク制御装置100に対して読出命令が入力されると
、マイクロプロセッサ回路3oは、物理デバイス番号記
憶回路60に、読出命令で指示された物理デバイス番号
を記憶させると共に磁気ディスク制御回路20を介して
磁気ディスク装置200に対し中央処理装置400から
指示されたシリンダへのシーク命令を出力する。シーク
動作が終了すると、マイクロプロセッサ回路30は磁気
ディスク制御回路20に対して磁気ディスク装置200
から目的のセクタをサーチする為のサーチ動作を開始す
る。
Next, when a read command is input from the central processing unit 400 to the magnetic disk control device 100 via the bus 300, the microprocessor circuit 3o instructs the physical device number storage circuit 60 to identify the physical device designated by the read command. It memorizes the number and outputs a seek command to the cylinder instructed by the central processing unit 400 to the magnetic disk device 200 via the magnetic disk control circuit 20. When the seek operation is completed, the microprocessor circuit 30 instructs the magnetic disk control circuit 20 in the magnetic disk drive 200.
The search operation for searching for the target sector is started from there.

サーチ動作が完了したとの通知が磁気ディスク制御回路
20から入力されると、マイクロプロセッサ30は磁気
ディスク制御回路2oに対し5YNCバイトサ一チ動作
を指示する。 5YNCバイトのサーチ動作が完了し物
理デバイス番号が媒体上より読出され、磁気ディスク制
御回路20より出力されると、マイクロプロセッサ回路
3oは、物理デバイス番号記憶回路60より出力された
物理デバイス番号と、磁気ディスク制御回路20より出
力された物理デバイス番号を物理デバイス番号比較回路
5oにより比較する動作を開始する。マイクロプロセッ
サ回路30は、物理デバイス番号比較回路50により比
較した結果、一致していた場合には物理デバイス番号の
後に書かれたデータをリードデータとして読出し、バス
制御回路10、バス300、主記憶装置500ヘデータ
を転送する。また、比較した結果、不一致の場合には、
マイクロプロセッサ回路30は、中央処理装置400に
対して不一致であったことを通知し、リード動作を開始
せずに動作を終了する。
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 2o to perform a 5YNC byte search operation. When the search operation for 5YNC bytes is completed and the physical device number is read from the medium and output from the magnetic disk control circuit 20, the microprocessor circuit 3o stores the physical device number output from the physical device number storage circuit 60, and The operation of comparing the physical device numbers output from the magnetic disk control circuit 20 by the physical device number comparison circuit 5o is started. The microprocessor circuit 30 reads out the data written after the physical device number as read data if they match as a result of the comparison by the physical device number comparison circuit 50, and reads out the data written after the physical device number as read data, and reads the data written after the physical device number as read data, Transfer data to 500. In addition, if there is a discrepancy as a result of the comparison,
The microprocessor circuit 30 notifies the central processing unit 400 of the mismatch, and ends the operation without starting the read operation.

発明の詳細 な説明したように、本発明に係る磁気ディスク制御装置
を採用することにより、上位装置が意図しなかった磁気
ディスク装置からデータを読込むことつまり、データ化
けを防止することが可能となる。
As described in detail, by employing the magnetic disk control device according to the present invention, it is possible to prevent a host device from reading data from an unintended magnetic disk device, that is, to prevent data corruption. Become.

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

第1図は本発明の一実施例を示すブロック構成図、第2
図はデータ部のフォーマツ1−形式の例を示す図である
。 10・・・バス制御回路、20・・・磁気ディスク制御
回路、30・・・マイクロプロセッサ回路、50・・・
物理デバイス番号比較回路、60・・・物理デバイス番
号記憶回路、100・・・磁気ディスク制御部、200
・・・磁気ディスク装置、300・・・バス、400・
・・中央処理装置、500・・・主記憶装置
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure shows an example of the format 1-format of the data section. DESCRIPTION OF SYMBOLS 10... Bus control circuit, 20... Magnetic disk control circuit, 30... Microprocessor circuit, 50...
Physical device number comparison circuit, 60... Physical device number storage circuit, 100... Magnetic disk control unit, 200
...Magnetic disk device, 300...Bus, 400...
・Central processing unit, 500 ・Main memory

Claims (1)

【特許請求の範囲】[Claims] 各セクタを識別する為のセクタIDを有する固定セクタ
方式の磁気ディスク装置に対し上位装置からの書込命令
により磁気ディスク装置の物理デバイス番号をデータ部
の先頭に書込み後にデータを書込む手段と、上位装置か
らの読出命令により目的のセクタがID部のチェックに
より検出されたときにデータ部を読出し上記データ書込
手段により書込まれた磁気ディスク装置の物理デバイス
番号と上位装置からの読出命令により指示された磁気デ
ィスク装置の物理デバイス番号とを比較する手段と、上
記比較手段により比較した結果一致した場合にはデータ
読出しを実行し不一致の場合にはデータの読出動作を中
止する手段とを有することを特徴とする磁気ディスク制
御装置。
means for writing data after writing a physical device number of a magnetic disk device to the beginning of a data section in accordance with a write command from a host device to a fixed sector type magnetic disk device having a sector ID for identifying each sector; When the target sector is detected by checking the ID section according to a read command from the host device, the data section is read out, and according to the physical device number of the magnetic disk device written by the data writing means and the read command from the host device. It has means for comparing the physical device number of the designated magnetic disk device, and means for executing the data read operation if the result of the comparison by the comparison means is a match, and if it is a mismatch, stopping the data read operation. A magnetic disk control device characterized by:
JP1141461A 1989-06-02 1989-06-02 Magnetic disk controller Pending JPH036614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1141461A JPH036614A (en) 1989-06-02 1989-06-02 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1141461A JPH036614A (en) 1989-06-02 1989-06-02 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH036614A true JPH036614A (en) 1991-01-14

Family

ID=15292425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1141461A Pending JPH036614A (en) 1989-06-02 1989-06-02 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH036614A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003201309B2 (en) * 2002-03-18 2007-05-24 Elmex Limited Swab Testing Device and Method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003201309B2 (en) * 2002-03-18 2007-05-24 Elmex Limited Swab Testing Device and Method

Similar Documents

Publication Publication Date Title
US4262332A (en) Command pair to improve performance and device independence
US5627946A (en) Hard disk format using frames of sectors to optimize location of servo bursts
US5887128A (en) Method and apparatus for redundant disk storage system with offset
US4918651A (en) Method and disk controller architecture for zero latency data read
JPH036614A (en) Magnetic disk controller
US5091909A (en) Method for writing/reading of data in magnetic disk subsystem
JPH03176855A (en) Magnetic disk controller
JPH03176868A (en) Magnetic disk controller
JPS6050672A (en) Read control system of rotary memory
EP0417900B1 (en) Disk storage system with access control
JPS6041124A (en) Magnetic disc control device
JPH05181613A (en) Information processor
JPS61283091A (en) Recording data access system for file device
JPH0668876B2 (en) Magnetic disk controller
JPH0578107B2 (en)
JPS6381664A (en) Detecting system format error
JPS6381663A (en) Data checking system for magnetic disk
JPH02195443A (en) Collation recording system for output device
JPS59121560A (en) Read control system of floppy disc
JPS60169929A (en) Access control system
JPS6278625A (en) Magnetic disk controller
JPH02297619A (en) Disk controller with parallel transfer
JPS59176855A (en) Memory controller
JPH02304620A (en) Peripheral controller
JPS5953566B2 (en) channel device