JPH07234832A - Scsi basic input/output system - Google Patents

Scsi basic input/output system

Info

Publication number
JPH07234832A
JPH07234832A JP2461094A JP2461094A JPH07234832A JP H07234832 A JPH07234832 A JP H07234832A JP 2461094 A JP2461094 A JP 2461094A JP 2461094 A JP2461094 A JP 2461094A JP H07234832 A JPH07234832 A JP H07234832A
Authority
JP
Japan
Prior art keywords
scsi
format information
information management
buffer
management unit
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
JP2461094A
Other languages
Japanese (ja)
Other versions
JP2861791B2 (en
Inventor
Yutaka Ikeda
豊 池田
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 JP2461094A priority Critical patent/JP2861791B2/en
Publication of JPH07234832A publication Critical patent/JPH07234832A/en
Application granted granted Critical
Publication of JP2861791B2 publication Critical patent/JP2861791B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide an SCSI BIOS which can reduce memory using amount and enables SCSI devices to be fixed for every drive. CONSTITUTION:This system has a format information management part 5 which acquires and stores format information on a SCSI device 10 in a buffer 11 secured in a memory pool 8 and registers the pointer address specifying this buffer 11 and the ID number of the SCSI device 10 in an area in a format information management table 7 which has a corresponding drive number. Further, this system has a memory resource management part 6 which secures the buffer 11 in the memory pool 8 and informs the format information management part 5 of the painter address specifying the buffer 11 and a SCSI command execution control part 4 which performs input/output control over the SCSI device 10 on the basis of the information registered in the format information management table 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、SCSI(Small
Computer System Interfac
e)バスに接続された装置(以下、SCSI装置と記載
する)の基本入出力制御システムに関し、特にSCSI
装置の入出力制御を行うフォーマット情報を登録および
管理するSCSI基本入出力システム(以下、SCSI
BIOSと記載する)に関する。
BACKGROUND OF THE INVENTION The present invention relates to SCSI (Small).
Computer System Interfac
e) Basic I / O control system for devices connected to the bus (hereinafter referred to as SCSI devices), especially SCSI
SCSI basic input / output system (hereinafter referred to as SCSI) that registers and manages format information that controls input / output of devices
(Described as BIOS).

【0002】[0002]

【従来の技術】この種の従来のSCSI BIOSは、
例えば特開平3ー116349号公報に開示されている
ように図6に示す構成を有しており、ファイルシステム
1は、SCSI装置10とのファイルデータの入出力を
行うために前記SCSI装置10のドライブ名と入出力
するファイル情報とを出力する。
2. Description of the Related Art A conventional SCSI BIOS of this type is
For example, as disclosed in Japanese Unexamined Patent Publication No. 3-116349, the file system 1 has the configuration shown in FIG. 6, and the file system 1 of the SCSI device 10 is used to input / output file data to / from the SCSI device 10. Output the drive name and file information to be input / output.

【0003】SCSIドライバ2は、前記ファイルシス
テム1から出力されたファイルデータの入出力要求であ
るドライブ名および要求されたファイル情報をSCSI
ID番号およびSCSIコマンドに変換し、これらを
SCSI BIOS12に通知する。
The SCSI driver 2 uses the drive name, which is an input / output request for the file data output from the file system 1, and the requested file information as a SCSI.
The ID number and the SCSI command are converted, and these are notified to the SCSI BIOS 12.

【0004】前記SCSI BIOS12は、固有のメ
モリエリアを有し、そのメモリエリア内のフォーマット
情報管理テーブル7には、システム起動時にドライブ
名、SCSI ID番号および前記SCSI装置10の
フォーマット情報等がドライブ数分だけ登録されてお
り、前記SCSIドライバ2から通知されるSCSI
ID番号に対応する前記フォーマット情報にしたがって
コマンド実行を行う。
The SCSI BIOS 12 has its own memory area, and the format information management table 7 in the memory area contains a drive name, a SCSI ID number, the format information of the SCSI device 10 and the like when the system is started up. SCSI that is registered only for minutes and is notified from the SCSI driver 2
The command is executed according to the format information corresponding to the ID number.

【0005】次に、この従来のSCSI BIOSの動
作について、図6、図7および図8を用いて説明する。
Next, the operation of this conventional SCSI BIOS will be described with reference to FIGS. 6, 7 and 8.

【0006】図7は、システム起動時の動作を示すフロ
ーチャートであり、まず、システム起動時において、S
CSI BIOS12に接続されるSCSI装置10に
対しフォーマット情報登録処理を行うかどうかを判定す
る(S71)。ここで、フォーマット情報登録処理を行
うべきSCSI装置10がない場合はこの登録処理を終
了する。
FIG. 7 is a flow chart showing the operation at system startup. First, at system startup, S
It is determined whether the format information registration process is performed on the SCSI device 10 connected to the CSI BIOS 12 (S71). If there is no SCSI device 10 for which the format information registration process should be performed, this registration process ends.

【0007】次に、フォーマット情報登録処理が行われ
る前記SCSI装置10が使用可能かどうか判定する
(S72)。ここで、このSCSI装置10が使用不可
能である場合は、他のSCSI装置10に対し上記S7
1の処理を行う。
Next, it is determined whether the SCSI device 10 for which the format information registration process is performed can be used (S72). If the SCSI device 10 cannot be used, the above S7
Process 1 is performed.

【0008】次に、前記SCSI装置10が使用可能で
ある場合は、このSCSI装置10のフォーマット情報
をドライブ名およびSCSI ID番号と対応させてフ
ォーマット情報管理テーブル7に登録する(S73)。
Next, when the SCSI device 10 is usable, the format information of the SCSI device 10 is registered in the format information management table 7 in association with the drive name and the SCSI ID number (S73).

【0009】このSCSI装置10のフォーマット情報
が前記フォーマット情報管理テーブル7に登録された
後、他のSCSI装置10に対しS71からの処理を行
う。
After the format information of the SCSI device 10 is registered in the format information management table 7, the other SCSI devices 10 are processed from S71.

【0010】上記手順をSCSI BIOS12に接続
される全てのSCSI装置10に対しS71の処理が行
われるまで繰り返される。
The above procedure is repeated until the process of S71 is performed for all the SCSI devices 10 connected to the SCSI BIOS 12.

【0011】次に、コマンド実行時の動作について説明
する。
Next, the operation during command execution will be described.

【0012】図8は、コマンド実行時の動作を示すフロ
ーチャートであり、ファイルシステム1およびSCSI
ドライバ2からコマンドの実行要求がなされた場合、前
記ファイルシステム1から出力されるドライブ名が前記
メモリエリア内のフォーマット情報管理テーブル7に登
録されているかどうかを判定する(S81)。
FIG. 8 is a flow chart showing the operation at the time of command execution.
When the command execution request is issued from the driver 2, it is determined whether the drive name output from the file system 1 is registered in the format information management table 7 in the memory area (S81).

【0013】前記S81の処理において、要求のあった
ドライブ名が前記フォーマット情報管理テーブル7に登
録されていない場合は、エラーメッセージを出力すると
ともに、コマンド実行処理を終了する(S82)。
In the processing of S81, if the requested drive name is not registered in the format information management table 7, an error message is output and the command execution processing is terminated (S82).

【0014】前記S81の処理において、要求のあった
ドライブ名が前記フォーマット情報管理テーブル7に登
録されている場合は、前記コマンドで指定される情報が
前記フォーマット情報管理テーブルに登録されている情
報と同一かどうかを判定する(S83)。
In the process of S81, if the requested drive name is registered in the format information management table 7, the information specified by the command is the information registered in the format information management table. It is determined whether they are the same (S83).

【0015】前記S83の処理において、前記コマンド
で指定される情報が前記フォーマット情報管理テーブル
7に登録される情報と同一ではないと判定された場合
は、前記S82の処理を行う。
When it is determined in the processing of S83 that the information designated by the command is not the same as the information registered in the format information management table 7, the processing of S82 is performed.

【0016】また、前記S83の処理において、前記コ
マンドで指定される情報が前記フォーマット情報管理テ
ーブル7に登録される情報と同一の場合は、この登録さ
れている情報にしたがってコマンドを実行(S84)
し、正常の終了処理を行う(S85)。
In the process of S83, if the information designated by the command is the same as the information registered in the format information management table 7, the command is executed according to the registered information (S84).
Then, normal termination processing is performed (S85).

【0017】[0017]

【発明が解決しようとする課題】この従来のSCSI
BIOSでは、接続されるSCSI装置のフォーマット
情報をシステム起動時に、BIOS毎に有する固有のメ
モリエリアに管理テーブルとして登録するために、シス
テム稼動中に接続されるSCSI装置を変更する場合に
システムを再起動しなければならなかった。また、使用
するドライブの数だけフォーマット情報登録用のバッフ
ァをシステム起動時に用意しなければならなかった。
[Problems to be Solved by the Invention] This conventional SCSI
In the BIOS, when the system is started, the format information of the connected SCSI device is registered as a management table in a unique memory area of each BIOS. Had to start. In addition, as many buffers for format information registration as the number of drives to be used had to be prepared at system startup.

【0018】[0018]

【課題を解決するための手段】上記問題点を解決するた
めに、本発明のSCSI BIOSは、入出力要求され
たSCSI装置のフォーマット情報を取得し、このフォ
ーマット情報をメモリプールに確保されるバッファに格
納し、このバッファを指定するポインタアドレスと前記
SCSI装置のID番号とをフォーマット情報管理テー
ブルの対応するドライブ番号のエリアに登録するフォー
マット情報管理部と、前記フォーマット情報管理部にお
いて取得された前記SCSI装置のフォーマット情報を
格納するバッファをメモリプールから確保するととも
に、このバッファを指定するポインタアドレスを前記フ
ォーマット情報管理部に通知するメモリ資源管理部と、
前記フォーマット情報管理テーブルに登録される情報に
基づいてSCSI装置の入出力制御を実行するSCSI
コマンド実行制御部とを有する。
In order to solve the above problems, the SCSI BIOS of the present invention obtains the format information of the SCSI device for which an input / output is requested, and the format information is stored in a buffer reserved in a memory pool. A format information management unit that stores the pointer address designating this buffer and the ID number of the SCSI device in the area of the corresponding drive number of the format information management table; A memory resource management unit that reserves a buffer for storing the format information of the SCSI device from the memory pool, and notifies the format information management unit of the pointer address designating this buffer,
SCSI for executing input / output control of a SCSI device based on the information registered in the format information management table
And a command execution control unit.

【0019】[0019]

【実施例】次に、本発明のSCSI BIOSの一実施
例について図面を用いて詳細に説明する。図1は、本実
施例の構成を示すブロック図であり、ファイルシステム
1およびSCSIドライバ2は前述の従来技術の欄で説
明したSCSI BIOS情報登録システムの構成と同
様のものであり、重複部分の説明は省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of SCSI BIOS of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the present embodiment. The file system 1 and the SCSI driver 2 are the same as the configuration of the SCSI BIOS information registration system described in the above-mentioned section of the prior art, and the overlapping parts The description is omitted.

【0020】SCSI BIOS3は、以下に説明する
構成を有する。
The SCSI BIOS 3 has a configuration described below.

【0021】SCSIコマンド実行制御部4は、前記S
CSIドライバ2から要求されたSCSI ID番号と
フォーマット情報管理テーブル7にすでに登録されてい
るSCSI ID番号とを比較し、一致する場合は、前
記フォーマット情報管理テーブル7にすでに登録されて
いるSCSI ID番号に対応するフォーマット情報に
したがって、前記SCSIドライバ2から出力されるS
CSIコマンドを実行する。また、一致しない場合は、
フォーマット情報管理部5に前記SCSIドライバ2か
ら出力されるSCSI ID番号およびドライブ名を通
知し、前記フォーマット情報管理部5により新規に前記
フォーマット情報管理テーブル7に登録されたフォーマ
ット情報にしたがってSCSIバス上に接続されるSC
SI装置10に対し前記SCSIコマンドを実行する。
The SCSI command execution control unit 4 uses the S
The SCSI ID number requested by the CSI driver 2 is compared with the SCSI ID number already registered in the format information management table 7. If they match, the SCSI ID number already registered in the format information management table 7 is compared. S output from the SCSI driver 2 according to the format information corresponding to
Execute the CSI command. Also, if they do not match,
Notify the format information management unit 5 of the SCSI ID number and drive name output from the SCSI driver 2, and according to the format information newly registered in the format information management table 7 by the format information management unit 5 on the SCSI bus. SC connected to
The SCSI command is executed for the SI device 10.

【0022】前記フォーマット情報管理部5は、前記S
CSIコマンド実行制御部4から通知されるドライブ名
に対応するSCSI ID番号およびポインタアドレス
(フォーマット情報)を前記フォーマット情報管理テー
ブル7から削除するとともに、ここでフォーマット情報
が格納されていたバッファ11を指定するポインタアド
レスをメモリ資源管理部6に通知する。さらに、前記S
CSIコマンド実行制御部4から通知されたSCSI
ID番号に対応する前記SCSI装置10からフォーマ
ット情報を取得するとともに、このフォーマット情報を
登録するのに必要なメモリサイズのバッファ取得を前記
メモリ資源管理部6に通知し、このメモリ資源管理部6
により新規に取得されたバッファ11に前記フォーマッ
ト情報を登録するとともに、そのバッファ11を指定す
るポインタアドレスおよびそのSCSI ID番号を前
記フォーマット情報管理テーブル7に登録する。
The format information management unit 5 uses the S
The SCSI ID number and the pointer address (format information) corresponding to the drive name notified from the CSI command execution control unit 4 are deleted from the format information management table 7, and the buffer 11 in which the format information was stored is designated here. The memory resource management unit 6 is notified of the pointer address to be used. Furthermore, the S
SCSI notified from the CSI command execution control unit 4
The format information is acquired from the SCSI device 10 corresponding to the ID number, and the memory resource management unit 6 is notified of acquisition of a buffer having a memory size required to register the format information.
The format information is registered in the buffer 11 newly acquired by, and the pointer address designating the buffer 11 and its SCSI ID number are registered in the format information management table 7.

【0023】前記メモリ資源管理部6は、前記フォーマ
ット情報管理部5から通知されるポインタアドレスによ
り指定されるバッファ11をメモリプール8に解放する
とともに、このフォーマット情報管理部5から新規に通
知されたメモリサイズ分のバッファ11を前記メモリプ
ール8から取得し、取得したバッファ11へのポインタ
アドレスを前記フォーマット情報管理部5に通知する。
The memory resource management unit 6 releases the buffer 11 designated by the pointer address notified from the format information management unit 5 to the memory pool 8 and is newly notified from the format information management unit 5. The buffer 11 for the memory size is acquired from the memory pool 8, and the format information management unit 5 is notified of the acquired pointer address to the buffer 11.

【0024】前記メモリプール8は、本システムのOS
(オペレーション・システム)管理下のメモリ資源であ
り、前記メモリ資源管理部6によりフォーマット情報格
納用のバッファ11を確保する。
The memory pool 8 is the OS of this system.
(Operation system) A memory resource under management, and the memory resource management unit 6 secures a buffer 11 for storing format information.

【0025】前記SCSI装置10はSCSIバス9上
に複数接続され、前記SCSIコマンド実行制御部4か
らの制御信号にしたがって動作する。
A plurality of the SCSI devices 10 are connected on the SCSI bus 9 and operate according to a control signal from the SCSI command execution controller 4.

【0026】次に、フォーマット情報管理テーブルの構
成について図2を用いて説明する。
Next, the structure of the format information management table will be described with reference to FIG.

【0027】フォーマット情報管理テーブル7は、SC
SI BIOS内部のバッファエリアに用意され、その
構成として、ドライブ番号と1対1に対応する番号を格
納するエリアと、SCSI ID番号を格納するエリア
と、メモリプールから取得したバッファを指定するポイ
ンタアドレスを格納するエリアとを有する。ここで、S
CSI ID番号を格納するエリアが未使用の場合はー
1が入り、また、ポインタアドレスを格納するエリアが
未使用の場合はNULL(0)が入る。
The format information management table 7 is SC
It is prepared in the buffer area inside the SI BIOS, and as its constitution, an area for storing the number corresponding to the drive number and one-to-one, an area for storing the SCSI ID number, and a pointer address for designating the buffer acquired from the memory pool And an area for storing. Where S
If the area for storing the CSI ID number is unused, -1 is entered, and if the area for storing the pointer address is unused, NULL (0) is entered.

【0028】次に、本実施例の動作について図1および
図3を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0029】図3は、本実施例の動作を示すフローチャ
ートであり、まず、ファイルシステム1はデータ入出力
要求に関し、要求するドライブ名およびそのファイル情
報をSCSIドライバ2に通知する。次に、そのSCS
Iドライバ2は前記ファイルシステム1から通知された
ドライブ名およびファイル情報をSCSI ID番号お
よびSCSIコマンドに変換し、このSCSI ID番
号、SCSIコマンドおよびドライブ名をSCSI B
IOS3に通知する。
FIG. 3 is a flowchart showing the operation of this embodiment. First, the file system 1 notifies the SCSI driver 2 of the requested drive name and its file information regarding the data input / output request. Next, the SCS
The I driver 2 converts the drive name and file information notified from the file system 1 into a SCSI ID number and a SCSI command, and converts the SCSI ID number, SCSI command and drive name into SCSI B number.
Notify IOS3.

【0030】次に、SCSIコマンド実行制御部4で
は、前記SCSIドライバ2から通知されたドライブ名
に対応したすでにフォーマット情報管理テーブル7に登
録されているSCSI ID番号と前記SCSIドライ
バ2から通知されたSCSIID番号とが比較される
(S31)。
Next, in the SCSI command execution control unit 4, the SCSI ID number already registered in the format information management table 7 corresponding to the drive name notified from the SCSI driver 2 and the SCSI driver 2 are notified. It is compared with the SCSI ID number (S31).

【0031】前記SCSIコマンド実行制御部4では、
この比較の結果、両者が一致していると判定された場合
は、前記フォーマット情報管理テーブル7に登録されて
いるフォーマット情報にしたがって前記SCSIドライ
バ2から通知されたSCSIコマンドが実行される(S
39)。
In the SCSI command execution control section 4,
As a result of this comparison, when it is determined that the two match, the SCSI command notified from the SCSI driver 2 is executed according to the format information registered in the format information management table 7 (S
39).

【0032】また、この比較の結果、両者が一致してい
ないと判定された場合は、前記SCSIコマンド実行制
御部4は、前記SCSIドライバ2から通知されたドラ
イブ名およびSCSI ID番号をフォーマット情報管
理部5に通知する。
If the result of this comparison shows that they do not match, the SCSI command execution control section 4 manages the drive name and SCSI ID number notified from the SCSI driver 2 in the format information management. Notify Part 5.

【0033】前記フォーマット情報管理部5は、前記S
CSIコマンド実行制御部4から通知されたドライブ名
に対応するフォーマット情報管理テーブル7に登録され
ているフォーマット情報が前記SCSIドライバ2から
要求されたSCSIコマンドと対応しているかどうかを
判定(S32)し、対応していれば後述するS35の処
理を行う。また、対応していなければ、その登録されて
いるフォーマット情報が格納されているバッファ11を
指定するポインタアドレスをSCSI ID番号と合わ
せて削除(S33)するとともに、このポインタアドレ
スをメモリ資源管理部6に通知する。
The format information management unit 5 uses the S
It is determined whether the format information registered in the format information management table 7 corresponding to the drive name notified from the CSI command execution control unit 4 corresponds to the SCSI command requested by the SCSI driver 2 (S32). If so, the process of S35 described later is performed. If not, the pointer address designating the buffer 11 in which the registered format information is stored is deleted together with the SCSI ID number (S33), and this pointer address is deleted. To notify.

【0034】次に、前記メモリ資源管理部6は、前記フ
ォーマット情報管理部5から通知されたポインタアドレ
スにより指定されるバッファ11をメモリプール8に解
放する(S34)。
Next, the memory resource management unit 6 releases the buffer 11 designated by the pointer address notified from the format information management unit 5 to the memory pool 8 (S34).

【0035】次に、前記フォーマット情報管理部5は、
前記メモリ資源管理部6によるバッファ11の解放後、
前記SCSIコマンド実行制御部4から通知されたSC
SIID番号に対応するSCSI装置10からこの装置
のフォーマット情報を取得し(S35)、この取得した
フォーマット情報を登録するのに必要なメモリサイズ分
のバッファ11を前記メモリ資源管理部6に通知する。
Next, the format information management section 5
After releasing the buffer 11 by the memory resource management unit 6,
SC notified from the SCSI command execution control unit 4
The format information of this device is acquired from the SCSI device 10 corresponding to the SIID number (S35), and the memory resource management unit 6 is notified of the buffer 11 of the memory size necessary for registering the acquired format information.

【0036】次に、前記メモリ資源管理部6は、前記フ
ォーマット情報管理部5から通知されたメモリサイズの
バッファ11を前記メモリプール8から取得(S36)
し、さらに、この取得したバッファ11を指定するポイ
ンタアドレスを前記フォーマット情報管理部5に通知す
る。
Next, the memory resource management unit 6 obtains the buffer 11 of the memory size notified from the format information management unit 5 from the memory pool 8 (S36).
Then, the acquired pointer address for designating the buffer 11 is notified to the format information management unit 5.

【0037】次に、前記フォーマット情報管理部5は、
前記SCSI装置10から取得したフォーマット情報を
前記バッファ11に格納(S37)し、このフォーマッ
ト情報が格納されたバッファ11を指定するポインタア
ドレスを対応するSCSIID番号とともに前記フォー
マット情報管理テーブル7に登録する(S38)。
Next, the format information management section 5
The format information acquired from the SCSI device 10 is stored in the buffer 11 (S37), and the pointer address designating the buffer 11 storing this format information is registered in the format information management table 7 together with the corresponding SCSI ID number ( S38).

【0038】次に、前記SCSIコマンド実行制御部4
は、S38の処理により前記フォーマット情報管理テー
ブル7に新規に登録されたフォーマット情報にしたがっ
て前記SCSIドライバ2から通知されたSCSIコマ
ンドを実行する。
Next, the SCSI command execution controller 4
Executes the SCSI command notified from the SCSI driver 2 according to the format information newly registered in the format information management table 7 by the process of S38.

【0039】次に、本実施例の動作について、図1、図
4および図5を用いてさらに具体的に説明する。ここ
で、図4は、フォーマット情報管理テーブルに対し新規
にフォーマット情報を登録する前のフォーマット情報管
理テーブルおよび対応するバッファを示す図であり、図
5は、新規にフォーマット情報を登録した後のフォーマ
ット情報管理テーブルおよび対応するバッファを示す図
である。
Next, the operation of this embodiment will be described more specifically with reference to FIGS. 1, 4 and 5. Here, FIG. 4 is a diagram showing the format information management table and the corresponding buffer before the new format information is registered in the format information management table, and FIG. 5 is the format after the new format information is registered. It is a figure which shows an information management table and a corresponding buffer.

【0040】本発明のシステム起動時に装置の構成にし
たがって、ドライブ番号0にSCSIハードディスク装
置(SCSI ID番号0)を、ドライブ番号1にCD
−ROM装置(SCSI ID番号1)を登録する。
When the system of the present invention is started, a SCSI hard disk device (SCSI ID number 0) is assigned to drive number 0 and a CD is assigned to drive number 1 according to the configuration of the device.
-Register the ROM device (SCSI ID number 1).

【0041】ここで、フォーマット情報管理テーブル7
には、図4に示すドライブ番号0に対応するテーブルに
SCSI ID番号0とOS管理下のメモリプール8か
ら取得され、前記SCSIハードディスク装置のフォー
マット情報が登録されるバッファ11Aを指定するポイ
ンタアドレスとが格納される。同様にドライブ番号1に
対応するテーブルにSCSI ID番号1とCD−RO
M装置のフォーマット情報が登録されるバッファ11B
を指定するポインタアドレスとが格納される。
Here, the format information management table 7
4 has a pointer address for designating a buffer 11A which is acquired from the SCSI ID number 0 in the table corresponding to the drive number 0 shown in FIG. Is stored. Similarly, in the table corresponding to drive number 1, SCSI ID number 1 and CD-RO
Buffer 11B in which format information of M device is registered
And a pointer address for specifying

【0042】次に、システム起動後に、前記CD−RO
M装置に変えてドライブ番号1に他のSCSI装置、例
えば光磁気ディスク装置(SCSI ID番号2)を接
続する必要が発生した場合、ファイルシステム1はドラ
イブ番号1および入出力要求するファイル情報をSCS
Iドライバ2に通知し、さらに、このSCSIドライバ
2は、SCSI ID番号2およびSCSIコマンドを
通知する。
Next, after the system is started, the CD-RO
When it becomes necessary to connect another SCSI device such as a magneto-optical disk device (SCSI ID number 2) to the drive number 1 in place of the M device, the file system 1 sends the drive number 1 and the file information requested for input / output to the SCS.
The I driver 2 is notified, and the SCSI driver 2 also notifies the SCSI ID number 2 and the SCSI command.

【0043】前記SCSIドライバ2から通知されたS
CSIコマンド要求に対し、SCSI BIOS3は、
すでにフォーマット情報管理テーブル7のドライブ番号
1に対応するテーブルに登録されているCD−ROM装
置のSCSI ID番号1と要求された光磁気ディスク
装置のSCSI ID番号2とが一致していないため
に、この登録されている各情報を削除し、このCDーR
OM装置のフォーマット情報が格納されていた前記バッ
ファ11Aを前記メモリプール8に解放する。次に、新
規に前記メモリプール8からバッファ11Cを取得し、
このバッファ11Cに前記光磁気ディスク装置から得ら
れたフォーマット情報を登録し、SCSIID番号2と
前記フォーマット情報を登録したバッファ11Cを指定
するポインタアドレスとを前記フォーマット情報管理テ
ーブル7に登録する。
S notified from the SCSI driver 2
In response to the CSI command request, SCSI BIOS 3
Since the SCSI ID number 1 of the CD-ROM device already registered in the table corresponding to the drive number 1 of the format information management table 7 and the SCSI ID number 2 of the requested magneto-optical disk device do not match, This registered information is deleted and this CD-R is deleted.
The buffer 11A storing the format information of the OM device is released to the memory pool 8. Next, a buffer 11C is newly acquired from the memory pool 8,
The format information obtained from the magneto-optical disk device is registered in the buffer 11C, and the SCSI ID number 2 and the pointer address designating the buffer 11C in which the format information is registered are registered in the format information management table 7.

【0044】これにより、前記SCSI BIOS3は
光磁気ディスク装置に対し、前記フォーマット情報管理
テーブル7に新規に登録されたフォーマット情報にした
がってSCSIコマンドを実行する。
As a result, the SCSI BIOS 3 executes the SCSI command to the magneto-optical disk device according to the format information newly registered in the format information management table 7.

【0045】[0045]

【発明の効果】以上説明したように、本発明のSCSI
BIOSは、本システムのSCSIバスに接続される
SCSI装置のフォーマット情報を格納するバッファ
を、本システムのOSが管理するメモリプールから動的
に取得するために、使用するメモリ資源を最小にでき
る。
As described above, the SCSI of the present invention
The BIOS can minimize the memory resource used in order to dynamically obtain the buffer storing the format information of the SCSI device connected to the SCSI bus of the present system from the memory pool managed by the OS of the present system.

【0046】さらに、SCSIコマンド実行制御時に要
求されるSCSI ID番号とその時点でフォーマット
情報管理テーブルに登録されているSCSI ID番号
とを比較判定するために、システム稼動中にこのシステ
ムを再起動することなく、同一のドライブ名に他のSC
SI装置を割り当てて使用することができる。
Further, in order to compare and judge the SCSI ID number required at the time of controlling the SCSI command execution and the SCSI ID number registered in the format information management table at that time, this system is restarted during the system operation. No other SC to the same drive name
SI devices can be assigned and used.

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

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】本発明のフォーマット情報管理テーブルの構成
を示す図。
FIG. 2 is a diagram showing a configuration of a format information management table of the present invention.

【図3】本発明の一実施例の動作を示すフローチャー
ト。
FIG. 3 is a flowchart showing the operation of the embodiment of the present invention.

【図4】本発明のフォーマット情報管理テーブルとバッ
ファとの関係を示す図。
FIG. 4 is a diagram showing a relationship between a format information management table and buffers according to the present invention.

【図5】本発明のフォーマット情報管理テーブルとバッ
ファとの関係を示す図。
FIG. 5 is a diagram showing a relationship between a format information management table and buffers according to the present invention.

【図6】従来のSCSI BIOSの構成を示すブロッ
ク図。
FIG. 6 is a block diagram showing a configuration of a conventional SCSI BIOS.

【図7】従来のSCSI BIOSのシステム起動時の
動作を示すフローチャート。
FIG. 7 is a flowchart showing an operation at system startup of a conventional SCSI BIOS.

【図8】従来のSCSI BIOSのコマンド実行時の
動作を示すフローチャート。
FIG. 8 is a flowchart showing an operation at the time of executing a command of a conventional SCSI BIOS.

【符号の説明】[Explanation of symbols]

1 ファイルシステム 2 SCSIドライバ 3 SCSI BIOS 4 SCSIコマンド実行制御部 5 フォーマット情報管理部 6 メモリ資源管理部 7 フォーマット情報管理テーブル 8 メモリプール 9 SCSIバス 10 SCSI装置 11 バッファ 11A SCSIハードディスク装置のフォーマット
情報が格納されたバッファ 11B CD−ROM装置のフォーマット情報が格納
されたバッファ 11C 光磁気ディスク装置のフォーマット情報が格
納されたバッファ 12 SCSI BIOS 13 コマンド実行部
1 file system 2 SCSI driver 3 SCSI BIOS 4 SCSI command execution control unit 5 format information management unit 6 memory resource management unit 7 format information management table 8 memory pool 9 SCSI bus 10 SCSI device 11 buffer 11A SCSI hard disk device format information is stored Buffer 11B Buffer that stores format information of CD-ROM device 11C Buffer that stores format information of magneto-optical disk device 12 SCSI BIOS 13 Command execution unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 入出力要求されたSCSI装置のフォ
ーマット情報を取得し、このフォーマット情報をメモリ
プールに確保されるバッファに格納し、このバッファを
指定するポインタアドレスと前記SCSI装置のID番
号とをフォーマット情報管理テーブルの対応するドライ
ブ番号のエリアに登録するフォーマット情報管理部と、 前記フォーマット情報管理部において取得された前記S
CSI装置のフォーマット情報を格納するバッファをメ
モリプールから確保するとともに、このバッファを指定
するポインタアドレスを前記フォーマット情報管理部に
通知するメモリ資源管理部と、 前記フォーマット情報管理テーブルに登録される情報に
基づいてSCSI装置の入出力制御を実行するSCSI
コマンド実行制御部とを有することを特徴とするSCS
I基本入出力システム。
1. Format information of a SCSI device requested to be input / output is obtained, the format information is stored in a buffer secured in a memory pool, and a pointer address designating this buffer and an ID number of the SCSI device are stored. A format information management unit to be registered in the area of the corresponding drive number of the format information management table, and the S acquired by the format information management unit.
A buffer for storing format information of the CSI device is secured from the memory pool, and a memory resource management unit for notifying the format information management unit of a pointer address designating this buffer, and information registered in the format information management table SCSI based I / O control based on SCSI device
An SCS having a command execution control unit
I Basic input / output system.
【請求項2】 前記SCSIコマンド実行制御部は、
前記SCSI装置のIDと前記フォーマット情報管理テ
ーブルにすでに登録されているSCSI装置のID番号
とを比較し、両者が一致していればそのID番号に対応
するフォーマット情報にしたがって入出力制御を実行
し、 前記フォーマット情報管理部は、前記SCSIコマンド
実行制御部による比較の結果、両者が不一致である場合
に、前記フォーマット情報管理テーブルに登録されてい
るID番号および対応するポインタアドレスを削除する
とともにこのポインタアドレスを出力し、 前記メモリ資源管理部は、前記フォーマット情報管理部
から出力されたポインタアドレスで指定されるバッファ
を前記メモリプールに解放することを特徴とする前記請
求項1に記載のSCSI基本入出力システム。
2. The SCSI command execution control unit comprises:
The ID of the SCSI device is compared with the ID number of the SCSI device already registered in the format information management table, and if they match, input / output control is executed according to the format information corresponding to the ID number. As a result of the comparison by the SCSI command execution control unit, the format information management unit deletes the ID number and the corresponding pointer address registered in the format information management table and deletes the pointer. The SCSI basic input according to claim 1, wherein an address is output, and the memory resource management unit releases the buffer specified by the pointer address output from the format information management unit to the memory pool. Output system.
【請求項3】 前記フォーマット情報管理部は、前記
SCSI装置から取得したフォーマット情報を格納する
のに必要なメモリサイズを出力し、 前記メモリ資源管理部は、前記フォーマット情報管理部
から出力されるメモリサイズ分のバッファを前記メモリ
プールから確保することを特徴とする前記請求項1また
は2に記載のSCSI基本入出力システム。
3. The format information management unit outputs a memory size required to store the format information acquired from the SCSI device, and the memory resource management unit outputs a memory output from the format information management unit. The SCSI basic input / output system according to claim 1 or 2, wherein a buffer of a size is secured from the memory pool.
【請求項4】 前記フォーマット情報管理テーブル
は、ドライブに対応する順番に、SCSIバスに接続さ
れる各SCSI装置毎のID番号とそれぞれのSCSI
装置のフォーマット情報が格納されたバッファを指定す
るポインタアドレスとが登録されることを特徴とする前
記請求項1または2に記載のSCSI基本入出力システ
ム。
4. The format information management table includes an ID number for each SCSI device connected to the SCSI bus and a corresponding SCSI number in the order corresponding to the drive.
3. The SCSI basic input / output system according to claim 1, wherein a pointer address designating a buffer storing format information of the device is registered.
【請求項5】 前記SCSI装置に対し入出力を要求
するためにそのドライブ番号を出力するファイルシステ
ムと、 前記ファイルシステムから出力されるドライブ番号から
前記SCSI装置のID番号およびSCSIコマンドを
作成し、これらを前記SCSI BIOSに出力するS
CSIドライバと、 前記請求項1または2または3または4に記載のSCS
I基本入出力システムと、 前記SCSI基本入出力システムの外部にオペレーショ
ンシステムの管理下に用意され、前記メモリ資源管理部
により、前記SCSI装置のフォーマット情報を格納す
るバッファが確保されるメモリプールと、 を有することを特徴とするSCSIシステム。
5. A file system that outputs the drive number for requesting input / output to the SCSI device; and an ID number of the SCSI device and a SCSI command from the drive number output from the file system, S which outputs these to the SCSI BIOS
A CSI driver, and the SCS according to claim 1, 2 or 3 or 4.
An I basic input / output system, and a memory pool provided outside the SCSI basic input / output system under the control of an operating system, in which the memory resource management unit secures a buffer for storing format information of the SCSI device, A SCSI system comprising:
【請求項6】 前記ファイルシステムにおいて、デー
タ入出力要求に関し、要求するドライブ名およびそのフ
ァイル情報が前記SCSIドライバに通知され、 前記
SCSIドライバにおいて、前記ファイルシステムから
通知されたドライブ名およびファイル情報がSCSI装
置のID番号およびSCSIコマンドに変換され、この
SCSI ID番号、SCSIコマンドおよびドライブ
名がSCSI基本入出力システムに通知され、 前記SCSIコマンド実行制御部において、前記SCS
Iドライバから通知されたドライブ名に対応したすでに
前記フォーマット情報管理テーブルに登録されているS
CSI ID番号と前記SCSIドライバから通知され
たSCSI ID番号とが比較され、さらに、この比較
の結果、両者が一致していると判定された場合は、前記
フォーマット情報管理テーブルに登録されているフォー
マット情報にしたがって前記SCSIドライバから通知
されたSCSIコマンドが実行され、 また、前記SCSIコマンド実行制御部における比較の
結果、両者が一致していないと判定された場合は、前記
SCSIコマンド実行制御部において、前記SCSIド
ライバから通知されたドライブ名およびSCSI ID
番号がフォーマット情報管理部に通知され、 前記フォーマット情報管理部において、前記SCSIコ
マンド実行制御部から通知されたドライブ名に対応する
前記フォーマット情報管理テーブルに登録されているフ
ォーマット情報が前記SCSIドライバから要求された
SCSIコマンドと対応しているかどうかが判定され、
対応していなければ、その登録されているフォーマット
情報が格納されているバッファを指定するポインタアド
レスがSCSI ID番号とともに削除され、このポイ
ンタアドレスがメモリ資源管理部に通知され、 前記メモリ資源管理部では、前記フォーマット情報管理
部から通知されたポインタアドレスにより指定されるバ
ッファ11がメモリプールに解放され、 前記フォーマット情報管理部では、前記メモリ資源管理
部によるバッファの解放後、前記SCSIコマンド実行
制御部から通知されたSCSI ID番号に対応するS
CSI装置からこの装置のフォーマット情報が取得さ
れ、この取得されたフォーマット情報を登録するのに必
要なメモリサイズが前記メモリ資源管理部に通知され、 前記メモリ資源管理部では、前記フォーマット情報管理
部から通知されたメモリサイズ分のバッファが前記メモ
リプールから取得され、さらに、この取得されたバッフ
ァを指定するポインタアドレスが前記フォーマット情報
管理部5に通知され、 前記フォーマット情報管理部では、前記SCSI装置か
ら取得したフォーマット情報が前記バッファに格納さ
れ、このフォーマット情報が格納されたバッファを指定
するポインタアドレスが対応するSCSI ID番号と
ともに前記フォーマット情報管理テーブル7に登録さ
れ、 前記SCSIコマンド実行制御部では、前記フォーマッ
ト情報管理テーブルに新規に登録されたフォーマット情
報にしたがって前記SCSIドライバから通知されたS
CSIコマンドが実行されることを特徴とするSCSI
フォーマット情報登録方法。
6. In the file system, regarding a data input / output request, the requested drive name and its file information are notified to the SCSI driver, and in the SCSI driver, the drive name and the file information notified from the file system are The SCSI device ID number, SCSI command, and drive name are converted to the SCSI device ID number and SCSI command, and the SCSI basic input / output system is notified of the SCSI command input / output system.
The S already registered in the format information management table corresponding to the drive name notified from the I driver
The CSI ID number and the SCSI ID number notified from the SCSI driver are compared, and when it is determined as a result of this comparison that the two match, the format registered in the format information management table The SCSI command notified from the SCSI driver is executed according to the information, and when it is determined that the two do not match as a result of the comparison in the SCSI command execution control unit, in the SCSI command execution control unit, Drive name and SCSI ID notified from the SCSI driver
The number is notified to the format information management unit, and the format information management unit requests from the SCSI driver the format information registered in the format information management table corresponding to the drive name notified from the SCSI command execution control unit. It is determined whether or not it corresponds to the SCSI command
If not, the pointer address designating the buffer in which the registered format information is stored is deleted together with the SCSI ID number, and this pointer address is notified to the memory resource management unit. The buffer 11 designated by the pointer address notified from the format information management unit is released to the memory pool, and the format information management unit receives the buffer from the memory resource management unit and then the SCSI command execution control unit. S corresponding to the notified SCSI ID number
The CSI device obtains the format information of this device, the memory size required for registering the obtained format information is notified to the memory resource management unit, and in the memory resource management unit, from the format information management unit. A buffer for the notified memory size is acquired from the memory pool, and a pointer address designating the acquired buffer is notified to the format information management unit 5. In the format information management unit, the SCSI device is notified from the SCSI device. The acquired format information is stored in the buffer, a pointer address designating the buffer storing the format information is registered in the format information management table 7 together with the corresponding SCSI ID number, and in the SCSI command execution control unit, Former S notified by the SCSI driver according to the format information newly registered in the print information management table.
SCSI characterized in that CSI commands are executed
Format information registration method.
JP2461094A 1994-02-23 1994-02-23 SCSI basic input / output system Expired - Fee Related JP2861791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2461094A JP2861791B2 (en) 1994-02-23 1994-02-23 SCSI basic input / output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2461094A JP2861791B2 (en) 1994-02-23 1994-02-23 SCSI basic input / output system

Publications (2)

Publication Number Publication Date
JPH07234832A true JPH07234832A (en) 1995-09-05
JP2861791B2 JP2861791B2 (en) 1999-02-24

Family

ID=12142926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2461094A Expired - Fee Related JP2861791B2 (en) 1994-02-23 1994-02-23 SCSI basic input / output system

Country Status (1)

Country Link
JP (1) JP2861791B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100417226B1 (en) * 1996-04-24 2004-04-06 삼성전자주식회사 Method for realizing scam protocol of hard disk drive

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100417226B1 (en) * 1996-04-24 2004-04-06 삼성전자주식회사 Method for realizing scam protocol of hard disk drive

Also Published As

Publication number Publication date
JP2861791B2 (en) 1999-02-24

Similar Documents

Publication Publication Date Title
JPH07234832A (en) Scsi basic input/output system
JPH08147062A (en) Password collating method of computer
JP3499938B2 (en) I / O device sharing system between multiple systems with different protocols
JP3451499B2 (en) I / O device control system configuration change processing method
JP2752696B2 (en) Printer control method under network environment
JPH10293619A (en) Information processor, information processing system, and storage medium
US6282672B1 (en) System for simultaneously executing any one of plurality of applications that must be executed using static data not modified by another computer program
JP3884762B2 (en) Job execution system and recording medium
JPH04260141A (en) Data shared processor
JPH04264652A (en) Dma control system
JPH0991237A (en) Resource management device for peripheral equipment
JPH06175827A (en) Information processor
JPS58168168A (en) Swap-in and swap-out system of terminal
JPH0563824B2 (en)
JPH0459635B2 (en)
JPS6162922A (en) Storage device system
JPS59177662A (en) Optimizing system of exclusive unit in exclusive control
JPH0340124A (en) Interface device
JPH02253336A (en) Program starting system
JPH0652028A (en) Film managing device
JPH03202940A (en) Temporary file input/output control system
JPS6349839A (en) Leading system for electronic computer system
JPH04328647A (en) Method and device for automatic file extension
JPH03255554A (en) Temporary file input/output control system
JPH01180056A (en) Input and output controlling system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981110

LAPS Cancellation because of no payment of annual fees