JPH0368016A - Auxiliary storage controller - Google Patents

Auxiliary storage controller

Info

Publication number
JPH0368016A
JPH0368016A JP20499089A JP20499089A JPH0368016A JP H0368016 A JPH0368016 A JP H0368016A JP 20499089 A JP20499089 A JP 20499089A JP 20499089 A JP20499089 A JP 20499089A JP H0368016 A JPH0368016 A JP H0368016A
Authority
JP
Japan
Prior art keywords
recording format
floppy disk
data
detecting
recording
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
JP20499089A
Other languages
Japanese (ja)
Inventor
Fumitaka Sakai
文隆 酒井
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP20499089A priority Critical patent/JPH0368016A/en
Publication of JPH0368016A publication Critical patent/JPH0368016A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute write to plural mediums of different recording formats by the same method by detecting automatically the recording format of an inserted storage medium, and converting a request for writing data to a format conforming therewith. CONSTITUTION:When it is detected by a state monitor that a floppy disk is inserted into an FD driving device 4, a detecting device 7 outputs an instruction for detecting a size of a physical sector to the FD driving device 4 and checks a recording format, and stores it in a recording format store table 8. When a data read/write request from an application program 2 is generated, a converter 9 fetches the recording format from the recording format store table 8, converts that data by using a converting information table 10 in accordance therewith and executes read and write.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、電子計算機などのデータ処理装置における、
補助記憶制御装置に関する。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a data processing device such as an electronic computer,
The present invention relates to an auxiliary storage control device.

[従来の技術] 補助記憶制御装置において、従来はアプリケーションプ
ログラムからのデータの読み書きの要求を、無条件に補
助記憶駆動装置の動作命令に変換することにより、デー
タの読み書きを行っていた。
[Prior Art] Conventionally, an auxiliary storage control device reads and writes data by unconditionally converting a data read/write request from an application program into an operation command for the auxiliary storage drive device.

〔発明が解決しようとする課題] しかしながら従来技術では、読み書きの対象となる記録
形式を固定化しているため、複数の異なる記録形式の記
憶媒体を同時に使用することができないという問題点を
有する。
[Problems to be Solved by the Invention] However, in the prior art, since the recording formats to be read and written are fixed, there is a problem that storage media with a plurality of different recording formats cannot be used simultaneously.

本発明はこのような問題点を解決するもので、使用され
る記憶媒体が補助記憶駆動装置に挿入された時に、記録
形式を自動的に検出し、各補助記憶駆動装置ごとに用意
されたテーブルに格納し、アプリケーションプログラム
からのデータの読み書きの要求が発生した時、前記テー
ブルから取り出した記録形式に基づいて各補助記憶駆動
装置を動作させることにより、複数の異なる記録形式の
記憶媒体に対して同時に、かつ同一の方法によるデータ
の読み書きが行える手段を提供することを目的とする。
The present invention solves these problems by automatically detecting the recording format when the storage medium to be used is inserted into the auxiliary storage drive, and creating a table prepared for each auxiliary storage drive. When a request for reading or writing data from an application program occurs, each auxiliary storage drive device is operated based on the recording format retrieved from the table, so that data can be stored in multiple storage media with different recording formats. It is an object of the present invention to provide a means for reading and writing data simultaneously and using the same method.

[課題を解決するための手段] 本発明の補助記憶制御装置は、記憶媒体の挿入、排出を
検出するための監視手段と、挿入された記憶媒体の記録
形式を検出するための検出手段と、前記検出手段により
検出された記録形式を記憶する記憶手段と、前記記憶手
段に記憶された記録形式に基づいて補助記憶駆動装置の
動作命令に変換する変換手段を有することを特徴とする
[Means for Solving the Problems] The auxiliary storage control device of the present invention includes: monitoring means for detecting insertion and ejection of a storage medium; detection means for detecting the recording format of the inserted storage medium; The apparatus is characterized by comprising a storage means for storing the recording format detected by the detection means, and a conversion means for converting into an operation command for the auxiliary storage drive device based on the recording format stored in the storage means.

[実施例] 以下、本発明について実施例に基づいて詳細に説明する
[Examples] Hereinafter, the present invention will be described in detail based on Examples.

第1図は、本発明の補助記憶制御装置を適用したフロッ
ピーディスク制御装置が接続されたシステムの構成を示
す機能ブロック図である。
FIG. 1 is a functional block diagram showing the configuration of a system to which a floppy disk control device to which an auxiliary storage control device of the present invention is applied is connected.

1は、システム全体の制御を行う中央処理装置であり、
2は、フロッピーディスクに対してデータの読み書きを
行うアプリケーションプログラムであり、3は、フロッ
ピーディスクから読み出したデータを格納したり、書き
込むデータを保持する主記憶装置であり、4は、フロッ
ピーディスクを駆動し、読み書きするためq機構を備え
たフロッピーディスク駆動装置である。
1 is a central processing unit that controls the entire system;
2 is an application program that reads and writes data to and from the floppy disk; 3 is a main storage device that stores data read from the floppy disk; and holds data to be written; and 4 is an application program that drives the floppy disk. It is a floppy disk drive equipped with a q mechanism for reading and writing.

5は、本発明の特徴部分をなすフロッピーディスク制御
装置で、フロッピーディスクの挿入、排出を監視する状
態監視装置6、記録形式を調べる検出装置7、検出され
た記録形式を格納するために各フロッピーディスク駆動
装置ごとに用意された記録形式格納テーブル8、アプリ
ケーションプログラム2からのデータの読み書きの要求
をフロッピーディスク駆動装置4の動作命令に変換する
変換装置9、および変換のための情報が格納された変換
情報テーブル10から成り立っている。
Reference numeral 5 denotes a floppy disk control device which is a characteristic part of the present invention, including a status monitoring device 6 for monitoring insertion and ejection of the floppy disk, a detection device 7 for checking the recording format, and a floppy disk control device for storing the detected recording format. A recording format storage table 8 prepared for each disk drive, a conversion device 9 that converts data read/write requests from the application program 2 into operating instructions for the floppy disk drive 4, and information for conversion are stored. It consists of a conversion information table 10.

検出装置7は、検出した記録形式を記録形式格納テーブ
ル8に格納し、変換装置i9は、記録形式格納テーブル
8から取り出した記録形式に対応する変換情報を変換情
報テーブル10から取り出して、フロッピーディスク駆
動装置4の動作命令への変換を行うように構成されてい
る。
The detecting device 7 stores the detected recording format in the recording format storage table 8, and the converting device i9 retrieves the conversion information corresponding to the recording format taken out from the recording format storage table 8 from the conversion information table 10, and converts it into a floppy disk. It is configured to convert into operation commands for the drive device 4.

第2図は、変換情報テーブル10め構成を示す説明図で
ある。
FIG. 2 is an explanatory diagram showing the structure of the tenth conversion information table.

アプリケーションプログラム2によるデータの読み書き
の要求は、論理セクタ番号により行われる。
Data read/write requests by the application program 2 are made using logical sector numbers.

論理セクタとは、フロッピーディスクの読み書きの要求
の最小単位となるデータの集まりで、本実施例では、2
56バイトのデータの集まりを1論理セクタと定義して
いる。
A logical sector is a collection of data that is the minimum unit of a floppy disk read/write request.
A collection of 56 bytes of data is defined as one logical sector.

論理セクタ番号とは、フロッピーディスクの先頭から、
未使用領域を除いて論理セクタを連続的に割り当てたと
きの順番を表している。
The logical sector number is the number from the beginning of the floppy disk.
This represents the order in which logical sectors are allocated consecutively, excluding unused areas.

変換情報テーブルは、前記論理セクタ番号により定義さ
れており、21は、フロッピーディスクの先頭の未使用
領域の大きさを表す論理セクタ数(以下これをGAPと
略す)であり、22は、1シリンダあたりの論理セクタ
数(以下これをN。
The conversion information table is defined by the logical sector number, where 21 is the number of logical sectors (hereinafter abbreviated as GAP) representing the size of the unused area at the beginning of the floppy disk, and 22 is the number of 1 cylinder. Number of logical sectors per unit (hereinafter referred to as N).

Sと略す)であり、23は、シリンダ片面における論理
セクタ数(以下これをNOHと略す)であり、24は、
フロッピーディスクにおける実際のセクタである物理セ
クタあたりの論理セクタ数(以下これをNOPと略す)
である。
23 is the number of logical sectors on one side of the cylinder (hereinafter abbreviated as NOH), and 24 is
Number of logical sectors per physical sector, which is the actual sector on a floppy disk (hereinafter abbreviated as NOP)
It is.

第3図は、第2図の具体例である。FIG. 3 is a specific example of FIG. 2.

(a)は、物理セクタの大きさが256バイト、(シリ
ンダ当りの物理セクタ数が52、両面仕様のフロッピー
ディスクに対する変換情報テーブルであり、 (b)は、物理セクタの大きさが1024バイト、1シ
リンダ当りの物理セクタ数が16、両面仕様のフロッピ
ーディスクに対する変換情報テーブルである。
(a) is a conversion information table for a double-sided floppy disk with a physical sector size of 256 bytes (52 physical sectors per cylinder); (b) is a conversion information table for a double-sided floppy disk with a physical sector size of 1024 bytes, This is a conversion information table for a double-sided floppy disk with 16 physical sectors per cylinder.

次に、このように構成された装置の動作を第4図、第5
図に示したフローチャートに基づいて説明する。
Next, the operation of the device configured in this way is shown in FIGS. 4 and 5.
This will be explained based on the flowchart shown in the figure.

第4図は、状態監視装置6、および検出装置7の動作を
示すフローチャートであり、第5図は、変換装置9の動
作を示すフローチャートである。
FIG. 4 is a flowchart showing the operation of the condition monitoring device 6 and the detection device 7, and FIG. 5 is a flowchart showing the operation of the converting device 9.

状態監視装置6は、フロッピーディスク駆動装置4にフ
ロッピーディスクが挿入されたか否かを監視している(
42)。フロッピーディスクが挿入されると、検出装置
7に制御を移す。
The status monitoring device 6 monitors whether a floppy disk is inserted into the floppy disk drive device 4 (
42). When the floppy disk is inserted, control is transferred to the detection device 7.

検出装置7は、フロッピーディスク駆動装置4に対して
物理セクタの大きさを検出する命令を実行することによ
り記録形式を調べ(43)、その結果を、各記録形式に
割り当てられた識別子に変換した後(44)、記録形式
格納テーブル8に格納する(45)。また、フロッピー
ディスク駆動装置4が使用可能な状態になったことを示
す値を記録形式格納テーブル8に格納する(46)。
The detection device 7 checked the recording format by executing a command to detect the size of the physical sector on the floppy disk drive device 4 (43), and converted the result into an identifier assigned to each recording format. After that (44), it is stored in the recording format storage table 8 (45). Further, a value indicating that the floppy disk drive device 4 is ready for use is stored in the recording format storage table 8 (46).

変換装置9では、アプリケーションプログラム2による
データの読み書き要求が発生したか否かを監視している
(52)。要求が発生すると、次に46において格納し
た値を判定することにより、対象となるフロッピーディ
スク駆動装置4が使用可能な状態になっているかを調べ
る(53)。使用可能な状態になっていない場合は、ア
プリケーションプログラム2に要求が破棄されたことを
通知する(60)。
The conversion device 9 monitors whether a data read/write request by the application program 2 has occurred (52). When a request is generated, it is checked whether the target floppy disk drive 4 is ready for use by determining the value stored in 46 (53). If the request is not available, the application program 2 is notified that the request has been discarded (60).

使用可能な状態になっている場合は、45において格納
した、記録形式の識別子を格納テーブル8から取り出し
く54)、その識別子に対応する変換情報を変換情報テ
ーブル10から取り出す(55)。アプリケーションプ
ログラム2から与えられた、読み書きの部分を示す論理
セクタ番号は、変換情報によってフロッピーディスク上
の位置に変換される(56)。変換の過程を詳しく述べ
ると、まず、要求された論理セクタ番号にGAPが加算
され、フロッピーディスク上の論理セクタ番号が求めら
れる。次に、NO8で除算が行われる。
If it is in a usable state, the identifier of the recording format stored in step 45 is retrieved from the storage table 8 (54), and the conversion information corresponding to the identifier is retrieved from the conversion information table 10 (55). The logical sector number indicating the read/write part given by the application program 2 is converted to a position on the floppy disk by the conversion information (56). Describing the conversion process in detail, first, GAP is added to the requested logical sector number to obtain the logical sector number on the floppy disk. Next, division is performed at NO8.

この結果得られた商がシリンダ番号である。剰余に対し
てNOHで除算を行い、得られる商がヘッド番号となり
、得られる剰余に対してはさらにNoPで除算を行い、
得られる商が物理セクタ番号となる。以上の変換によっ
て得られたシリンダ番号、ヘッド番号、物理セクタ番号
を使用してフロッピーディスク駆動装置4への動作命令
が生成され(57)、実行される(58)ことにより、
データの読み書きが行われる。
The resulting quotient is the cylinder number. The remainder is divided by NOH, the resulting quotient becomes the head number, the resulting remainder is further divided by NoP,
The resulting quotient becomes the physical sector number. By using the cylinder number, head number, and physical sector number obtained through the above conversion, an operation command to the floppy disk drive 4 is generated (57) and executed (58).
Data is read and written.

〔発明の効果コ 以上に述べたように本発明によれば、挿入された記憶媒
体の記録形式を自動的に検出し、その結果を使用してア
プリケーションプログラムからのデータの読み書きの要
求を、要求が発生した時点で補助記憶駆動装置の動作命
令に変換したことにより、複数の異なる記録形式の記憶
媒体に対して同時に、かつ同一の方法による読み書きが
行えるという効果がある。
[Effects of the Invention] As described above, according to the present invention, the recording format of the inserted storage medium is automatically detected, and the result is used to respond to data read/write requests from application programs. By converting the information into an operation command for the auxiliary storage drive device at the time when it occurs, there is an effect that reading and writing can be performed on a plurality of storage media of different recording formats simultaneously and using the same method.

l○・;・変換情報テーブル 以上l○・;・Conversion information table that's all

Claims (1)

【特許請求の範囲】 記憶媒体の挿入、排出を検出するための監視手段と、 挿入された記憶媒体の記録形式を検出するための検出手
段と、 前記検出手段により検出された記録形式を記憶する記憶
手段と、 前記記憶手段に記憶された記録形式に基づいて補助記憶
駆動装置の動作命令に変換する変換手段、とを少なくと
も有することを特徴とする補助記憶制御装置。
[Claims] Monitoring means for detecting insertion and ejection of a storage medium; detection means for detecting a recording format of the inserted storage medium; and storing the recording format detected by the detection means. An auxiliary storage control device comprising at least a storage device, and a conversion device that converts into an operation command for an auxiliary storage drive device based on a recording format stored in the storage device.
JP20499089A 1989-08-08 1989-08-08 Auxiliary storage controller Pending JPH0368016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20499089A JPH0368016A (en) 1989-08-08 1989-08-08 Auxiliary storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20499089A JPH0368016A (en) 1989-08-08 1989-08-08 Auxiliary storage controller

Publications (1)

Publication Number Publication Date
JPH0368016A true JPH0368016A (en) 1991-03-25

Family

ID=16499648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20499089A Pending JPH0368016A (en) 1989-08-08 1989-08-08 Auxiliary storage controller

Country Status (1)

Country Link
JP (1) JPH0368016A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06302088A (en) * 1993-04-16 1994-10-28 Kyushu Totsuki Syst:Kk Centralized control device for reproducing device and interface thereof
JPH0764834A (en) * 1993-08-26 1995-03-10 Nec Corp Floppy disk device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06302088A (en) * 1993-04-16 1994-10-28 Kyushu Totsuki Syst:Kk Centralized control device for reproducing device and interface thereof
JP2594011B2 (en) * 1993-04-16 1997-03-26 株式会社グランプリ Central control device for playback equipment and interface for playback equipment
JPH0764834A (en) * 1993-08-26 1995-03-10 Nec Corp Floppy disk device

Similar Documents

Publication Publication Date Title
US5200864A (en) Combining small records into a single record block for recording on a record media
US5335328A (en) Methods for recording and reading data from a record member having data in any one of a plurality of block formats including determining length of records being transferred
KR920003286A (en) How to Perform a Background Disk Drive Sector Analysis in the Mass Memory Disk Drive Array Subsystem
JPH0368016A (en) Auxiliary storage controller
US7212363B2 (en) Magnetic disk apparatus
JP3093657B2 (en) FBA-CKD conversion method
US6088818A (en) Data read apparatus and data read method
JP3457602B2 (en) Disk unit
JPH103359A (en) Format information recording system
JPS6095762A (en) Magnetic disc controller
JP2584001B2 (en) Information processing device
JP2562605B2 (en) Magnetic disk controller
JP4422319B2 (en) Multiplexed storage controller
JPH02280221A (en) System for controlling disk
JPS58223860A (en) Magnetic disk controller
JPS63191375A (en) Self-diagnosing method for floppy disk device
JPS601672A (en) Processing method for defective block of magnetic disk device
JPH0279145A (en) Peripheral controller
JPH0429088B2 (en)
JPH04248635A (en) Probe effect eliminating method for parallel processing debugging
JPH0452548B2 (en)
JPH08227386A (en) Peripheral device
JPS59157813A (en) Controller for magnetic memory of rotor
JPS6247735A (en) Controller for external memory device
JPH0668876B2 (en) Magnetic disk controller