JPH04114227A - Fixed disk device logical block division method - Google Patents

Fixed disk device logical block division method

Info

Publication number
JPH04114227A
JPH04114227A JP2234892A JP23489290A JPH04114227A JP H04114227 A JPH04114227 A JP H04114227A JP 2234892 A JP2234892 A JP 2234892A JP 23489290 A JP23489290 A JP 23489290A JP H04114227 A JPH04114227 A JP H04114227A
Authority
JP
Japan
Prior art keywords
logical block
fixed disk
disk device
bus
host computer
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
JP2234892A
Other languages
Japanese (ja)
Inventor
Fumihiko Matsumura
文彦 松村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2234892A priority Critical patent/JPH04114227A/en
Publication of JPH04114227A publication Critical patent/JPH04114227A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To improve the reliability of data protection by dividing a logical block into the number of host computers to be used, allocating a logical block address from '0' for each divided logical block and accessing those respective logical blocks only from the host computer having the address of a correspondent bus. CONSTITUTION:The logical block of a fixed disk device 1 is divided into the number of host computers 2 to be used, the logical block address is allocated from '0' for each divided logical block, and those respective logical blocks can be accessed only from the host computer 2 having the address on the correspondent bus. Therefore, the respective host computers 2a-2c on the bus are equipped with the exclusive logical blocks in one fixed disk device 1 so as to inhibit that the other host computer performs access to this exclusive logical block. Thus, the reliability of disk protection can be improved.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、コンビ二一夕の外部記憶装置となる固定ディ
スク装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a fixed disk device that serves as an external storage device for a convenience store.

従来の技術 一般に固定ディスク装置は、コマンド中で論理ブロック
アドレスが指定されて、アクセス(り一ド及びライトな
ど)を行う。この論理ブロックアドレスは、装置内部で
シリンダアドレス、ヘッドアドレス、セクタアドレスに
変換されている。
2. Description of the Related Art In general, fixed disk devices are accessed (read, write, etc.) by specifying a logical block address in a command. This logical block address is converted into a cylinder address, head address, and sector address inside the device.

ある固定ディスクに対してアクセスできる論理プロツク
数(容jt)は、シリンダ、ヘッド、セクタの数、およ
び装置が使用するエリア、交替用エリアのセクタ数によ
り決定される。
The number of logical programs (capacity jt) that can be accessed on a fixed disk is determined by the number of cylinders, heads, and sectors, as well as the number of sectors in the area used by the device and the spare area.

第3図は、固定ディスク装置にバスを介して複数のホス
トコンピュータを接続したシステムの、−数的な概略構
成を示す説明図である。第3図において、1は固定ディ
スク装置、2a〜2cは、この固定ディスク装置1にバ
ス3を介して接続されたホストコンピュータである。
FIG. 3 is an explanatory diagram showing a schematic numerical configuration of a system in which a plurality of host computers are connected to a fixed disk device via a bus. In FIG. 3, 1 is a fixed disk device, and 2a to 2c are host computers connected to this fixed disk device 1 via a bus 3.

そして、従来は、固定ディスク装置1における論理ブロ
ック数が例えば700.000の場合、論理ブロックの
論理ブロックアドレスは0〜699.999に固定され
ている。
Conventionally, when the number of logical blocks in the fixed disk device 1 is, for example, 700.000, the logical block address of the logical block is fixed to 0 to 699.999.

次に、従来の論理ブロックアクセス動作について説明す
る。第3図に示すように、ある固定ディスク装置1に、
複数のホストコンピュータ2a〜2Cをバス3で接続し
、各ホストコンピュータ2a〜2Cが論理ブロックを分
割して使用するようなシステムであって、互いに異なる
複数のホストコンピュータ2a〜2Cが同一の論理ブロ
ックをアクセスしないように保護することを考える。
Next, a conventional logical block access operation will be explained. As shown in FIG. 3, in a certain fixed disk device 1,
A system in which a plurality of host computers 2a to 2C are connected by a bus 3, and each host computer 2a to 2C divides and uses a logical block, in which a plurality of different host computers 2a to 2C use the same logical block. Consider protecting it from access.

従来はこのような場合、アクセスできる論理フロックの
エリアを、第4図に示すようにバス3上の各ホストコン
ピュータ2a〜2C毎に決めておく方法がある。
Conventionally, in such a case, there is a method in which the areas of logical blocks that can be accessed are determined for each of the host computers 2a to 2C on the bus 3, as shown in FIG.

例えば、バス3上のアドレスが「1」のホストコンピュ
ータ2aは、第4図に示すように、固定ディスク装置1
の論理ブロックの0〜99,999のエリア1aをアク
セスし、バス3上のアドレスが「2」のホストコンピュ
ータ2bは、固定ディスク装置1の論理ブロックの10
0,000〜199,999のエリア1bをアクセスす
るというように区分する。
For example, the host computer 2a whose address on the bus 3 is "1" is connected to the fixed disk device 1 as shown in FIG.
The host computer 2b whose address is "2" on the bus 3 accesses areas 1a from 0 to 99,999 of the logical blocks of the fixed disk device 1.
Areas 1b from 0,000 to 199,999 are accessed.

あるいは、もともと区分しておかなくても、各ホストコ
ンピュータ2a〜2Cがアクセスしたいエリアをリザー
ブしておけば、その間他のホストコンピュータ2a〜2
Cはアクセスすることはできない。
Alternatively, even if it is not originally divided, if the areas that each host computer 2a to 2C wants to access can be reserved, other host computers 2a to 2C can
C cannot be accessed.

このように、従来の固定ディスク装置でも、上記方法に
より複数のホストコンビ二一夕が同一の論理ブロックを
アクセスすることを防止することができる。
In this way, even in a conventional fixed disk device, the above method can prevent a plurality of host combinations from accessing the same logical block.

発明が解決しようとする課題 しかしながら、上記従来の固定ディスク装置の論理ブロ
ック分割方法では、各ホストコンピュータが自分のアク
セスする論理ブロックを計算するために、オフセット値
を加算しなければならない。
Problems to be Solved by the Invention However, in the above-mentioned conventional logical block division method for a fixed disk device, each host computer must add an offset value in order to calculate the logical block that it accesses.

例えば、バス上のアドレスが「1」のホストコンピュー
タ2aは、オフセット値が「0」であり、バス上のアド
レスがr2Jのホストコンピュータ2bは、オフセット
値がriot、0OOJである。
For example, the host computer 2a whose address on the bus is "1" has an offset value of "0", and the host computer 2b whose address on the bus is r2J has an offset value of riot, 0OOJ.

また、システムの構成が変更され、各ホストコンピュー
タ2a〜2Cのアドレスが変更されることを考慮し、各
ホストコンピュータ2a〜2Cは常に自分のバス3上の
アドレスを保持し、そのアドレスから論理ブロックを計
算しなければならない。
In addition, considering that the system configuration is changed and the addresses of each host computer 2a to 2C are changed, each host computer 2a to 2C always maintains an address on its own bus 3, and from that address logical block must be calculated.

さらに、リザーブにより、他のホストコンピュータ2a
〜2Cのアクセスを禁止することはできるが、他のホス
トコンピュータ2a〜2Cが、バス3をリセットしてし
まうと、リザーブ状態がクリアされてしまう。
Furthermore, due to the reservation, other host computers 2a
2C can be prohibited from accessing, but if the other host computers 2a to 2C reset the bus 3, the reserved state will be cleared.

つまり、システム内でのバスリセットの使用を禁止しな
ければ、リザーブ機能の意味がなくなってしまう。とこ
ろが実際には、何らかの障害を回復する場合、あるいは
特権を持つホストコンピュータがバスの使用を強制終了
する場合に、バスリセットは有効であり、禁止すること
にはデメリットがある。
In other words, unless the use of bus reset is prohibited within the system, the reserve function becomes meaningless. However, in reality, bus reset is effective when recovering from some kind of failure or when a privileged host computer forcibly terminates use of the bus, and there are disadvantages to prohibiting it.

本発明は、このような従来の問題を解決するものであり
、バス上の各ホストコンピュータが1台の固定ディスク
装置の中に自分専用の論理ブロックを持って、この自分
専用の論理ブロックに対する他のホストコンピュータの
アクセスを禁止させるようにすることができ、よって、
データ保護の倍額性を向上できると共に、各ホストコン
ピュータはオフセット値を意識することなく1、論理ブ
ロックアクセスを「0」から使用でき、しかも各ホスト
コンピュータが任意にバスリセットを発行することがで
きる優れた固定ディスク装置の論理ブロック分割方法を
提供することを目的とするものである。
The present invention solves these conventional problems, and each host computer on the bus has its own logical block in one fixed disk device, and other computers have access to this own logical block. The host computer can be prevented from accessing the host computer, thus
In addition to improving data protection, each host computer can use logical block access from 1 and 0 without being aware of the offset value, and each host computer can issue a bus reset at will. The object of the present invention is to provide a logical block division method for a fixed disk device.

課題を解決するための手段 本発明は上記目的を達成するために、固定ディスク装置
を使用するホストコンピュータの数を上記固定ディスク
装置に備えられたスイッチにより指定し、上記固定ディ
スク装置の論理ブロックを使用するホストコンピュータ
の数で分割し、この分割された各論理ブロック毎に論理
ブロックアドレスをOから割り付け、それら各論理ブロ
ックを対応するバス上のアドレスを持つホストコンピュ
ータのみとアクセスできるようにした。
Means for Solving the Problems In order to achieve the above object, the present invention specifies the number of host computers using a fixed disk device by a switch provided in the fixed disk device, and specifies the logical blocks of the fixed disk device. It is divided by the number of host computers to be used, and a logical block address is assigned from O to each divided logical block, so that each logical block can be accessed only by the host computer having the address on the corresponding bus.

作用 従って本発明によれば、バス上の各ホストコンピュータ
が1台の固定ディスク装置の中に自分専用の論理ブロッ
クを持って、この自分専用の論理ブロックに対する他の
ホストコンピュータのアクセスを禁止させるようにする
ことができ、よって、データ保護の信頼性を向上できる
と共に、各ホストコンピュータはオフセット値を意識す
ることなく、論理ブロックアクセスを「0」から使用で
き、しかも各ホストコンピュータが任意にバスリセット
を発行することができる。
According to the present invention, each host computer on the bus has its own logical block in one fixed disk device, and other host computers are prohibited from accessing this own logical block. Therefore, the reliability of data protection can be improved, and each host computer can use logical block access from "0" without being aware of the offset value, and each host computer can arbitrarily reset the bus. can be issued.

実施例 以下に、本発明の一実施例を第1図乃至第3図を参照し
て詳説する。
EXAMPLE Below, an example of the present invention will be explained in detail with reference to FIGS. 1 to 3.

第1図及び第2図は、本発明の一実施例を説明するため
の、第3図に示した複数のホストコンピュータ2a〜2
c(以下、概括的にホストコンピュータ2として説明す
る)により固定ディスク装置1の論理ブロックを分割す
る時の説明図である。
1 and 2 illustrate a plurality of host computers 2a to 2 shown in FIG. 3 for explaining one embodiment of the present invention.
FIG. 3 is an explanatory diagram when a logical block of the fixed disk device 1 is divided by a host computer 2 (hereinafter generally described as a host computer 2).

第1図中の引用符号11、及び第2図中の引用符号21
は、第3図に示すようなバス3を介して複数のホストコ
ンピュータ2が接続される固定ディスク装置1の論理ブ
ロックである。
Reference mark 11 in Figure 1 and reference mark 21 in Figure 2
is a logical block of a fixed disk device 1 to which a plurality of host computers 2 are connected via a bus 3 as shown in FIG.

この固定ディスク装置1には、バス3上のホストコンピ
ュータ2の数を指定するためのスイ、、チ(図示せず)
が備えられており、このスイッチにより接続されるホス
トコンピュータ2の数が指定されると、上記固定ディス
ク装置1は、バス3上のアドレス「1」から順にその数
だけのホストコンピュータ2のアクセスを許可するよう
になっている。
This fixed disk device 1 includes switches (not shown) for specifying the number of host computers 2 on the bus 3.
When the number of host computers 2 to be connected is specified by this switch, the fixed disk device 1 receives access from that number of host computers 2 in order from address "1" on the bus 3. It is now allowed.

いま、論理ブロック数が例えば700.000とする。Now, assume that the number of logical blocks is, for example, 700,000.

ここで、上記固定ディスク装置1のスイッチにより、ホ
ストコンピュータ2の数を「7」と指定すると、バス3
上のアドレス「1」〜「7」が有効であり、各ホストコ
ンピュータ2かアクセスできる、固定ディスク装置1に
おける論理ブロック11のアドレスは、第1図に示すよ
うに0〜99,999となる。
Here, if the number of host computers 2 is specified as "7" by the switch of the fixed disk device 1, then the bus 3
The addresses "1" to "7" above are valid, and the addresses of the logical blocks 11 in the fixed disk device 1 that can be accessed by each host computer 2 are 0 to 99,999, as shown in FIG.

一方、上記固定ディスク装置1のスイッチにより、ホス
トコンピュータ2の数を「2」と指定すると、バス3上
のアドレス「1」〜「2」が有効であり、第2図に示す
ように、各ホストコンピュータ2がアクセスできる、固
定ディスク装置1における論理ブロック21のアドレス
は0〜349999となる。
On the other hand, if the number of host computers 2 is specified as ``2'' by the switch of the fixed disk device 1, addresses ``1'' to ``2'' on the bus 3 are valid, and as shown in FIG. The addresses of the logical blocks 21 in the fixed disk device 1 that can be accessed by the host computer 2 are 0 to 349999.

この場合、仮に、バス3上のアドレス「3」のホストコ
ンピュータ2が存在したとしても、上記固定ディスク装
置1によって、このバス3上のアドレス「3」のホスト
コンピュータ2からのアクセスは許可せず、論理ブロッ
ク数を調べるコマンドを発行されたら、論理ブロック数
を0(なし)として返す。
In this case, even if there is a host computer 2 with address "3" on bus 3, the fixed disk device 1 will not allow access from host computer 2 with address "3" on bus 3. , when a command to check the number of logical blocks is issued, the number of logical blocks is returned as 0 (none).

発明の効果 上述の如く本発明は、固定ディスク装置を使用するホス
トコンピュータの数を上記固定ディスク装置に備えられ
たスイッチにより指定し、上記固定ディスク装置の論理
ブロックを使用するホストコンピュータの数で分割し、
この分割された各論理ブロック毎に論理ブロックアドレ
スを0から割り付け、それら各論理ブロックを対応する
バス上のアドレスを持つホストコンピュータのみとアク
セスできるようにしたので、バス上の各ホストコンピュ
ータが1台の固定ディスク装置の中に自分専用の論理ブ
ロックを持って、この自分専用の論理ブロックに対する
他のホストコンピュータのアクセスを禁止させるように
することができ、よって、データ保護の信頼性を向上で
きると共に、各ホストコンビ二一夕はオフセット値を意
識することなく、論理ブロックアクセスを「0」から使
用でき、しかも各ホストコンピュータが任意にバスリセ
ットを発行することができる。
Effects of the Invention As described above, the present invention specifies the number of host computers that use a fixed disk device using a switch provided in the fixed disk device, and divides the logical blocks of the fixed disk device by the number of host computers that use the fixed disk device. death,
A logical block address is assigned starting from 0 for each divided logical block, and each logical block can be accessed only by the host computer with the corresponding address on the bus, so each host computer on the bus has one You can have your own private logical block in the fixed disk device of your computer, and prevent other host computers from accessing this private logical block, which improves the reliability of data protection. , each host computer can use logical block access from "0" without being aware of the offset value, and each host computer can issue a bus reset at will.

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

第1図及び第2図は、それぞれ本発明の一実施例におけ
る固定ディスク装置の論理ブロック分割方法に適用する
固定ディスク装置の論理ブロックアドレスの説明図、第
3図は、固定ディスク装置にバスを介して複数のホスト
コンピュータを接続したシステムの、−数的な概略構成
を示す説明図、第4図は、従来の固定ディスク装置の論
理ブ1・・・固定ディスク装置、 2・・・2 a〜2 C・・・ホス ト ンピユータ、 3・・ バス、 11. 21・ 論理ブ ンク。 固定ディスク装置の論理ブロック
1 and 2 are explanatory diagrams of logical block addresses of a fixed disk device applied to the logical block division method of a fixed disk device according to an embodiment of the present invention, and FIG. FIG. 4 is an explanatory diagram showing a schematic numerical configuration of a system in which a plurality of host computers are connected via a logical block 1 of a conventional fixed disk device.Fixed disk device 2...2a ~2 C... host computer, 3... bus, 11. 21. Logic bunk. Fixed disk unit logical blocks

Claims (1)

【特許請求の範囲】[Claims] 固定ディスク装置を使用するホストコンピュータの数を
上記固定ディスク装置に備えられたスイッチにより指定
し、上記固定ディスク装置の論理ブロックを使用するホ
ストコンピュータの数で分割し、この分割された各論理
ブロック毎に論理ブロックアドレスを0から割り付け、
それら各論理ブロックを対応するバス上のアドレスを持
つホストコンピュータのみとアクセスできるようにした
固定ディスク装置の論理ブロック分割方法。
The number of host computers that use the fixed disk device is specified by a switch provided in the fixed disk device, the logical blocks of the fixed disk device are divided by the number of host computers that use the device, and each divided logical block is Assign a logical block address from 0 to
A method for dividing logical blocks in a fixed disk device so that each logical block can be accessed only by a host computer with an address on the corresponding bus.
JP2234892A 1990-09-04 1990-09-04 Fixed disk device logical block division method Pending JPH04114227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2234892A JPH04114227A (en) 1990-09-04 1990-09-04 Fixed disk device logical block division method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2234892A JPH04114227A (en) 1990-09-04 1990-09-04 Fixed disk device logical block division method

Publications (1)

Publication Number Publication Date
JPH04114227A true JPH04114227A (en) 1992-04-15

Family

ID=16977949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2234892A Pending JPH04114227A (en) 1990-09-04 1990-09-04 Fixed disk device logical block division method

Country Status (1)

Country Link
JP (1) JPH04114227A (en)

Similar Documents

Publication Publication Date Title
EP2997477B1 (en) Page table data management
US20070147115A1 (en) Unified memory and controller
US5418927A (en) I/O cache controller containing a buffer memory partitioned into lines accessible by corresponding I/O devices and a directory to track the lines
JPH0654479B2 (en) Virtual memory method
JPH0552540B2 (en)
US7039769B2 (en) Direct addressed shared compressed memory system
KR20100132244A (en) Memory system and how to manage it
KR20150117278A (en) Virtualisation supporting guest operating systems using memory protection units
JPH0531776B2 (en)
JPH04213131A (en) System and method for performing shadowing and remapping for reserved memory of microcomputer
KR100995146B1 (en) System and method for controlling device access to memory providing improved memory access security
US5875487A (en) System and method for providing efficient shared memory in a virtual memory system
US20040268084A1 (en) Protected RAM filesystem
JP2012173870A (en) Semiconductor device and memory protection method
US5940869A (en) System and method for providing shared memory using shared virtual segment identification in a computer system
US6836836B2 (en) Memory protection control device and method
JPS62100851A (en) Space management method in virtual storage device
US5293622A (en) Computer system with input/output cache
US5287482A (en) Input/output cache
JPH10289158A (en) Task management device
JP3808058B2 (en) Apparatus for allowing a plurality of hosts to share a set of memory sectors storing compressed data
JP3485940B2 (en) Virtual storage control device and method
JPS6184755A (en) Data processing system
JPH04114227A (en) Fixed disk device logical block division method
WO2019237862A1 (en) Layout method for linear address space, and computing device