JPH03126145A - Memory protecting system for storage device - Google Patents

Memory protecting system for storage device

Info

Publication number
JPH03126145A
JPH03126145A JP26470389A JP26470389A JPH03126145A JP H03126145 A JPH03126145 A JP H03126145A JP 26470389 A JP26470389 A JP 26470389A JP 26470389 A JP26470389 A JP 26470389A JP H03126145 A JPH03126145 A JP H03126145A
Authority
JP
Japan
Prior art keywords
memory
area
read
write
command
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
JP26470389A
Other languages
Japanese (ja)
Inventor
Yasumasa Hirai
平居 泰雅
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.)
Fuji Facom Corp
Original Assignee
Fuji Facom 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 Fuji Facom Corp filed Critical Fuji Facom Corp
Priority to JP26470389A priority Critical patent/JPH03126145A/en
Publication of JPH03126145A publication Critical patent/JPH03126145A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To surely protect a memory by storing memory protect information for read/write inhibition in a reserved area and reading out memory protect information to compare it with contents of an access instruction at the time of issue of an access request. CONSTITUTION:A reserved area 2 where memory protect information indicating the position of a certain memory area is held is provided in a storage part 1, and a comparing means 4 which compares the memory area designated by a read or write request with the certain memory area designated by memory protect information read out of the reserved area 2 and a suppressing part 5 which suppresses read or write of a read/write instructing part 3 based on the comparison result of the comparing means 4 are provided. If they have an overlapping area, the suppressing part 5 suppresses read/write of the read/ write indicating part for contents of the overlapping part. Thus, the memory of the storage device 1 is surely protected with a high reliability.

Description

【発明の詳細な説明】 (目次) 概要 産業上の利用分野 従来の技術     (第5図) 発明が解決しようとする課題 課題を解決するための手段  (第1図)作用    
         (第1図)実施例       (
第2.3.4図)発明の効果 〔概要〕 不揮発性の記憶部と、当該記憶部のメモリ領域を指定し
た要求により記憶部に対する書込み又は読出しの指示を
行う書込み読出し指示部とを有し、一定メモリ領域に対
し書込み又は読出しを禁止する記憶装置のメモリ保護方
式に関し、記憶装置のメモリ保護を確実にかつ信頼性良
く行うことができる記憶装置のメモリ保護方式を提供す
ることを目的とし、 前記一定メモリ領域の位置を示すメモリ保護情報を保持
したリザーブ領域を前記記憶部に設けるとともに、書込
み又は読出しの要求により指定されたメモリ領域と前記
リザーブ領域から読み出されたメモリ保護情報が示す一
定メモリ領域とを比較する比較手段と、当該比較手段に
よる比較結果に基づいて書込み読出し指示部の書込み又
は読出しの抑制を行う抑制部とを有する構成である。
[Detailed description of the invention] (Table of contents) Overview Industrial field of application Prior art (Fig. 5) Means for solving the problem to be solved by the invention (Fig. 1) Effect
(Figure 1) Example (
Figure 2.3.4) Effects of the invention [Summary] The invention includes a non-volatile storage section and a write/read instruction section that instructs writing or reading from the storage section in response to a request specifying a memory area of the storage section. The purpose of the present invention is to provide a memory protection method for a storage device that can securely and reliably protect the memory of the storage device, regarding a memory protection method for a storage device that prohibits writing or reading from a certain memory area. A reserve area that holds memory protection information indicating the location of the certain memory area is provided in the storage unit, and the memory area designated by a write or read request and the certain area indicated by the memory protection information read from the reserved area are provided. This configuration includes a comparison unit that compares the memory area with a memory area, and a suppression unit that suppresses writing or reading of the write/read instruction unit based on the comparison result by the comparison unit.

(産業上の利用分野) 本発明はS CS I (Small Compute
r SystemInterface)等によりパーソ
ナル・コンピュータ等の小型コンピュータに接続される
記憶装置のメモリ保護方式に係り、特に、不揮発性の記
憶部と、当該記憶部のメモリ領域を指定した書込み又は
読出しの要求により当該記憶部に対する書込み又は読出
しの指示を行う書込み読出し指示部とを有し、一定メモ
リ領域に対する書込み又は読出しを禁止するメモリ保護
方式に関する。
(Industrial Application Field) The present invention is applicable to SCSI (Small Compute)
It pertains to the memory protection method of storage devices connected to small computers such as personal computers through SystemInterface), etc., and is particularly applicable to non-volatile storage units and the memory areas of the storage units that are protected by write or read requests that specify the memory area of the storage units. The present invention relates to a memory protection method that includes a write/read instruction section that instructs writing or reading from a storage section, and prohibits writing or reading from a certain memory area.

パーソナル・コンピュータ等の小型コンピュータにおい
ては、技術の進歩により処理能力、処理速度が格段に進
歩してきている。これに伴なってプログラムの大きさや
、扱うデータの量も大きくなり、それらを保存する記憶
装置も高速、大容量のものが望まれるようになっている
2. Description of the Related Art In small computers such as personal computers, processing power and processing speed have significantly improved due to advances in technology. Along with this, the size of programs and the amount of data to be handled have become larger, and storage devices for storing them are also desired to be faster and larger in capacity.

これらの要望を満たす記憶装置としては、ハードディス
ク、大容量のフロッピーディスク、光ディスク等が用い
られている。
Hard disks, large-capacity floppy disks, optical disks, and the like are used as storage devices that meet these demands.

最近ではハードディスクに代り、F A (Facto
ryAutomation)の分野等ではSRAMを使
用したICメモリをバッテリでバックアップし、ハード
ディスクに見たてたRAMディスクが使用され始めた。
Recently, instead of hard disks, FA (Facto
In the field of automation, etc., RAM disks, which are IC memories using SRAM and backed up by batteries, have begun to be used, making them look like hard disks.

それらの記憶装置とコンピュータを接続するインターフ
ェースにはS A S I (Shugart As5
o −ciates System Interfac
e)やその上位仕様である5CSI等が用いられている
。特に5CSIは同時に接続可能な機器の数が多く、デ
ータの高速転送も可能である等性能が高く拡張性に富む
ため、国際的に汎用性の高いインターフェースである。
The interface that connects these storage devices and computers is S A S I (Shugart As5
o -ciates System Interface
e) and its upper specification, 5CSI, etc. are used. In particular, 5CSI has high performance and expandability, allowing a large number of devices to be connected simultaneously and high-speed data transfer, making it an internationally highly versatile interface.

このようにコンピュータや記憶装置の性能が高くなり、
扱うプログラムの大きさやデータの量が大きくなると記
憶装置内のプログラムやデータ・ファイルの破壊により
受ける打撃も大きくなる。
In this way, the performance of computers and storage devices has improved,
As the size of programs and the amount of data to be handled increases, the damage caused by destruction of programs and data files in the storage device also increases.

また、複数のユーザが共通の記憶装置を使う場合も多く
、その際には他のユーザによるファイルの破壊やデータ
の持ち出しなどのおそれもある。
Furthermore, multiple users often use a common storage device, and in this case, there is a risk that other users may destroy files or take out data.

そこで、システムプログラムやデータの保護のために必
要な部分だけファイルのプロテクトを行う必要がある。
Therefore, it is necessary to protect only the necessary portions of files to protect system programs and data.

〔従来の技術〕[Conventional technology]

従来、一定のメモリ領域に記録されたデータを保護する
ための5CSIインタフエースを用いた記憶装置のメモ
リ保護方式として、第5図に示すような方式があった。
Conventionally, there has been a system shown in FIG. 5 as a memory protection system for a storage device using a 5CSI interface for protecting data recorded in a certain memory area.

本方式はハード・ディスク装置等に設けられた記憶部5
1と、当該記憶部51のメモリ領域を指定した書込み又
は読出しの要求(ファイル・アクセス・コマンド)によ
り当該記憶部51に対する書込み又は読出しの指示を行
う書込み読出し指示部53と、当該書込みまたは読出し
の要求に付加されたSet Lim1tsコマンドが示
す内容及びメモリ領域に基づいて、一定メモリ領域につ
いての書込みまたは読出しの抑制を行う抑制部55とを
有するものである。
This method uses a storage unit 5 provided in a hard disk device, etc.
1, a write/read instruction unit 53 that instructs writing or reading to the storage unit 51 by a write or read request (file access command) specifying a memory area of the storage unit 51; It has a suppression unit 55 that suppresses writing or reading to a certain memory area based on the content and memory area indicated by the Set Limlts command added to the request.

ここで、「一定メモリ領域」とはプロテクト領域と呼ば
れるものであって、当該メモリ領域に対する書込み、読
出し、または書込み及び読出しの双方が禁止される領域
をいい、当該領域に記録されているメモリ内容の読出し
や当該領域への書込みが禁止される領域をいう。
Here, the "certain memory area" is what is called a protected area, and refers to an area where writing, reading, or both writing and reading to the memory area is prohibited, and the memory contents recorded in the area. An area where reading or writing to the area is prohibited.

またrSet Lim1tsコVント」とは5CSIイ
ンタフエースで用いられる、メモリ保護の為の命令であ
って、当該Set Lim1tsコマンドに続く一連の
書込みまたは読出しのコマンドである1リンクコマンド
に関し、一定メモリ領域(プロテクト領域)に対して、
書込みまたは読出しの禁止を行うためのコマンドをいう
The "rSet Limlts command" is an instruction for memory protection used in the 5CSI interface, and is used to protect a certain memory area (1 link command, which is a series of write or read commands following the Set Limlts command). protected area),
A command to prohibit writing or reading.

すなわち、従来では、Set Lim1tsコマンドは
当該コマンドが適用される範囲である1リンクコマンド
毎に書込みまたは読出しの際に保護されるべき内容及び
範囲を指定して発行されることになる。
That is, conventionally, the Set Limits command is issued by specifying the content and range to be protected when writing or reading for each link command, which is the range to which the command is applied.

(発明が解決しようとする課題) ところで、従来の方式にあっては、5CSI上のプロテ
クトコマンドであるSet Lim1tsコマンドに続
く1リンク・コマンド(例えば、書込みまたは読出しコ
マンド)列が終了する迄の間のみ保持され、当該リンク
・コマンド列が終了すれば当該Set Lim1tsコ
マンドが要求するプロテクトは解除されることになる。
(Problem to be Solved by the Invention) By the way, in the conventional method, until the end of one link command (for example, a write or read command) string following the Set Lim1ts command, which is a protect command on the 5CSI, When the link command sequence ends, the protection required by the Set Limits command will be canceled.

したがって、メモリの保護を行うには、書込みまたは読
出しのアクセス要求とともに、その都度Set Lim
1tsコマンドを発行する必要がある。
Therefore, to protect memory, Set Lim must be set each time a write or read access request is made.
It is necessary to issue the 1ts command.

そのため、Set Lim1tsコマンドの発行を忘れ
て単独で書込みコマンドが発行されたりして、ファイル
のプロテクトをかけそこなう危険があり、−旦破壊され
たデータの修復は困難である場合が多く、メモリの保護
の信頼性に欠けるおそれがあるという問題点を有してい
た。
Therefore, there is a risk of forgetting to issue the Set Lim1ts command and issuing a write command alone, and failing to protect the file. - It is often difficult to restore data once it has been destroyed, and it is difficult to protect the memory. The problem was that there was a risk that the reliability of the system would be lacking.

さらに、Set Lim1tsコマンドで行うメモリ保
護範囲の指定は、予め当該コマンドで指定した適用範囲
内で当該1リンクコマンド列で書込みまたは読出しが行
われる範囲についてのみ指定することになる。したがっ
て、プロテクト領域が複数ある場合には、当該Set 
Lim1tsコマンドで指定した範囲内のプロテクト領
域のみ有効であって、すべてのプロテクト領域について
の指定を行うことはできず、誤認により、当該指定され
た範囲外のプロテクト領域へのアクセスを行った場合に
は、当該領域のメモリの保護はされないので、メモリの
保護を完全に行うことができないおそれがあるという問
題点をも有していた。
Furthermore, the memory protection range specified by the Set Limlts command is specified only for the range to be written or read by the one link command sequence within the applicable range specified in advance by the command. Therefore, if there are multiple protected areas, the corresponding Set
Only the protected area within the range specified by the Lim1ts command is valid; it is not possible to specify all protected areas. However, since the memory in the area is not protected, there is a problem that the memory may not be completely protected.

そこで、本発明は記憶装置のメモリ保護を確実にかつ信
頼性良く行うことができる記憶装置のメそり保護方式を
提供することを目的としてなされたものである。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a memory protection method for a storage device that can securely and reliably protect the memory of the storage device.

〔課題を解決するための手段〕[Means to solve the problem]

以上の技術的課題を解決するため本発明は第1図に示す
ように、不揮発性の記憶部1と、当該記憶部1のメモリ
領域を指定した書込み又は読出しの要求により当該記憶
部1に対する書込み又は読出しの指示を行う書込み読出
し指示部3とを有するとともに、一定メモリ領域に対す
る書込み又は読出しを禁止する記憶装置のメモリ保護方
式において、前記一定メモリ領域の位置を示すメモリ保
護情報を保持したリザーブ領域2を前記記憶部1に設け
るとともに、書込みまたは読出しの要求により指定され
たメモリ領域と前記リザーブ領域2より読み出されたメ
モリ保護情報が示す一定メモリ領域とを比較する比較手
段4と、比較手段4による比較結果に基づいて書込み読
出し指示部3に対し、書込み又は読出しの抑制を行う抑
制部5とを有するものである。
In order to solve the above-mentioned technical problems, the present invention, as shown in FIG. Alternatively, in a memory protection system for a storage device that has a write/read instruction unit 3 that instructs reading, and prohibits writing or reading from a certain memory area, a reserved area that holds memory protection information indicating the position of the certain memory area. 2 provided in the storage unit 1, and comparing means 4 for comparing a memory area specified by a write or read request with a fixed memory area indicated by the memory protection information read from the reserve area 2; The control unit 5 includes a suppression unit 5 that suppresses writing or reading to the write/read instruction unit 3 based on the comparison result obtained by the comparison result obtained by the method 4.

(作用) 本発明の動作について説明する。(effect) The operation of the present invention will be explained.

前記記憶部1に対して操作者から当該記憶部lのメモリ
領域を指定した書込みまたは読出しの要求があると、そ
の旨が前記書込み読出し指示部3、及び比較手段4に通
知される。
When an operator requests the storage unit 1 to write or read data specifying a memory area of the storage unit 1, the write/read instruction unit 3 and the comparison means 4 are notified of this request.

書込み読出し指示部3は前記リザーブ領域2に保持され
たメモリ保護情報の読出しの指示を行い、前記比較手段
4は当該メモリ保護情報と前記指示とを比較する。
The write/read instruction unit 3 issues an instruction to read the memory protection information held in the reserved area 2, and the comparison unit 4 compares the memory protection information with the instruction.

ここで、「メモリ保護情報」は少なくとも保護の内容、
例えば読出しの保護、書込みの保護または両者を含む保
護等、及び保護されるメモリ領域の位置を示したもので
ある。
Here, "memory protection information" is at least the content of protection,
For example, it indicates read protection, write protection, protection including both, and the location of the memory area to be protected.

メモリ保護情報が示す保護の内容及びメモリ位置と、要
求の内容及びメモリ領域位置に関する重複部分の有無を
示す比較結果は前記抑制部5に送出され、当該抑制部5
は重複部分がある場合には、前記書込み読出し指示部3
に対して重複部分が示す内容についての抑制を行い1重
複部分が存在しない部分については抑制を行なわない。
A comparison result indicating the presence or absence of an overlapping portion regarding the protection content and memory location indicated by the memory protection information and the request content and memory area location is sent to the suppression unit 5;
If there is an overlapping part, the write/read instruction section 3
The contents indicated by the overlapping portions are suppressed, and the portions where there is no overlapping portion are not suppressed.

したがって、前記書込み読出し指示部3は抑制されない
部分に対しては、要求通りに書込みまたは読出しの指示
を行うことになる。
Therefore, the write/read instruction unit 3 instructs the unsuppressed portion to write or read as requested.

尚、本発明では不揮発性の記憶部1内に前記リザーブ領
域2を設けるようにしているため、当該記憶部1の電源
を切った場合であっても、当該メモリ保護情報は当該リ
ザーブ領域2に保持されたままで消去されることはなく
、書込みまたは読出しの際に、その都度前記一定のメモ
リ領域の指定を行う必要がなく又、従来のようなリンク
コマンド列である必要もない。
In addition, in the present invention, since the reserve area 2 is provided in the non-volatile storage unit 1, even if the power to the storage unit 1 is turned off, the memory protection information is stored in the reserve area 2. It is retained and is not erased, and there is no need to specify the fixed memory area each time it is written or read, and there is no need for a link command sequence as in the conventional case.

(実施例) 続いて、本実施例に係る5CSI用記憶装置のメモリ保
護方式について説明する。
(Example) Next, a memory protection system for a 5CSI storage device according to this example will be described.

本実施例に係る記憶装置の例として、5CSI用RAM
ディスク装置を第2図に示す。
As an example of the storage device according to this embodiment, 5CSI RAM
The disk device is shown in FIG.

本装置はパソコン100と、記憶装置としてのCPU搭
載制御用カードからなるRAMディスク装置102とか
ら主として構成され、当該記憶装置102は恰かも外部
からはハード・ディスク装置の如くふるまうような制御
を行うRD C(RAMDisk Controlle
r)としての5CSIインタフエース・ボード10と、
S RAM (Static RandomAcces
 Memory)ボード20,30.−・・と、メモリ
・インタフェース103とを有するものである。
This device mainly consists of a personal computer 100 and a RAM disk device 102 which is a CPU-mounted control card as a storage device, and the storage device 102 is controlled so that it behaves like a hard disk device from the outside. RD C (RAMDisk Controller)
5CSI interface board 10 as r);
S RAM (Static Random Access
Memory) board 20, 30. -... and a memory interface 103.

さらに、本装置は同図に示すように、前記パソコン10
0と5CSIインタフエース・ボード10用の電源10
1と、前記S RAMボード20,30.・・・用の各
バッテリ電源25゜35、・・・とを有する。
Furthermore, as shown in the figure, the present device includes the personal computer 10.
Power supply 10 for 0 and 5 CSI interface board 10
1, and the S RAM boards 20, 30 . . . , each battery power source 25° 35, . . .

前記5CSIインタフエース・ボード10は第2図に示
すように、5C3Iインタフエース16とのハード的な
接続の制御を行う5PC(SC3I Protcol 
Controller)  12の制御を行うとともに
、前述した書込み読出し指示部3と、比較手段4と、抑
制部5とに相当するファームウェア部11と、前記SR
AMボード20,30.・・・からの書込みまたは読出
しの際に、パリティチエツクを行うパリティ・チエツク
回路13と、当該SRAMボード20,30.・・・に
対して、読み出されまたは書き込むデータの転送を高速
に行うD M A C(Direct Memory 
Access Controller)14の制御と、
RAMディスク装置の様々な動作状態を外部に表示する
状態表示部15とを有するものである。
As shown in FIG. 2, the 5CSI interface board 10 has a 5PC (SC3I Protocol) that controls the hardware connection with the 5C3I interface
controller) 12, and a firmware section 11 corresponding to the above-mentioned write/read instruction section 3, comparing means 4, and suppressing section 5, and the above-mentioned SR
AM board 20, 30. . . , a parity check circuit 13 that performs a parity check when writing or reading from the SRAM board 20, 30 . DMAC (Direct Memory) transfers data read or written at high speed.
Access Controller) 14 control;
It has a status display section 15 that externally displays various operating statuses of the RAM disk device.

また、前記ファームウェア部11はCPol lb、R
OMI 1c及びRAM11aを有し、当該RAMI 
la、ROMI lcに格納されているファームウェア
により前記種々の制御を行うことになる。
Further, the firmware section 11 has CPol lb, R
It has an OMI 1c and a RAM 11a, and the RAM
The various controls described above are performed by firmware stored in the ROMI lc and the ROMI lc.

各SRAMボード20,30.・・・は第2図に示すよ
うに、各々前記不揮発性記憶部1としてのSRAM21
,31.・・・と、当該SRAM21゜31、・・・に
関する書込み読出し等の種々の制御を行う制御回路23
,33.・・・と、当該S RAM21.31.・・・
のバックアップ用バッテリの電圧の監視を行うバッテリ
電圧監視部24,34.・・・とを有し、各SRAM2
1,31.・・・は前記バッテリ25,35.・・・に
よりバックアップされている。
Each SRAM board 20, 30. . . . as shown in FIG.
, 31. . . . and a control circuit 23 that performs various controls such as writing and reading regarding the SRAMs 21, 31, .
, 33. ...and the S RAM21.31. ...
A battery voltage monitoring section 24, 34. monitors the voltage of the backup battery. ... and each SRAM2
1,31. . . . are the batteries 25, 35 . It is backed up by...

尚、SRAMボードは5C3Iボートの能力の範囲内で
は増設することが可能である。
Note that the SRAM board can be added within the capabilities of the 5C3I boat.

さらに、各SRAM21,31.・・・には前記プロテ
クト情報が保持されたリザーブ領域はSRAMボート2
0が1枚のみ実装されている場合にはリザーブ領域22
へ設けられ、’SRAMボード20及び30の2枚が実
装されている場合には無くリザーブ領域32へ設けられ
る。要するに最終実装されたSRAMボートのみに設け
られる。この領域は通常のファイルアクセスに対しては
プロテクトされており、メモリプロテクト情報を書き込
むプロテクト情報管理テーブルの専用領域となる。
Furthermore, each SRAM 21, 31 . The reserved area in which the protection information is held is SRAM boat 2.
If only one 0 is mounted, reserve area 22
' If two SRAM boards 20 and 30 are mounted, it is not provided in the reserve area 32. In short, it is provided only in the final mounted SRAM board. This area is protected against normal file access and is a dedicated area for the protect information management table in which memory protect information is written.

このRAMディスク装置のユーザ使用領域及びリザーブ
領域と、当該リザーブ領域内に保持されているメモリプ
ロテクト情報を第3図a、bに示す。
FIGS. 3a and 3b show the user-used area and reserved area of this RAM disk device, and the memory protection information held in the reserved area.

リザーブ領域はメモリプロテクト情報が保持された領域
であって、第3図aに示すように通常のユーザー使用可
能な領域の対象外の領域であって、−度メモリプロテク
ト情服が書き込まれると、変更、削除等の更新情報を含
むSet Lim1tsコマンドが発行されない限りメ
モリプロテクト情報は保存され、RAMディスク装置の
電源を切っても消えることはない。当該リザーブ領域は
例えば、第3図aに示すように、メモリの最下位番地に
設けられているが、これは特に最下位番地に限定される
ものではない。
The reserved area is an area where memory protection information is held, and as shown in FIG. The memory protect information is saved unless a Set Limits command containing update information such as modification or deletion is issued, and will not disappear even if the power to the RAM disk device is turned off. For example, as shown in FIG. 3a, the reserved area is provided at the lowest address of the memory, but this is not particularly limited to the lowest address.

このリザーブ領域に格納されているメモリプロテクト情
報は例えば第3図すに示すようになっている。
The memory protect information stored in this reserved area is as shown in FIG. 3, for example.

リザーブ領域の最上位領域には書込または読出しの禁止
されたプロテクト領域が前記ユーザ使用領域内に設定さ
れているか否かを示す情報が記録されており、プロテク
ト領域が設定されている場合にはその数が続いて記録さ
れる。そして各プロテクト領域の開始ブロックアドレス
と終了ブロックアドレスが記録される。このようなメモ
リプロテクト情報を用いれば、同一ファイル内において
複数箇所のプロテクト領域を管理することができる。こ
こで、プロテクト領域の開始ブロックアドレスは、5C
3I上のコマンドであるSet Lim1tsの発行に
伴って指定されるプロテクト開始ブロックアドレスとプ
ロテクトブロック長から求められる。
Information indicating whether or not a protected area where writing or reading is prohibited is set in the user area is recorded in the top area of the reserved area, and if a protected area is set, The number is then recorded. Then, the start block address and end block address of each protect area are recorded. By using such memory protect information, it is possible to manage multiple protected areas within the same file. Here, the start block address of the protect area is 5C
It is determined from the protect start block address and protect block length specified when the Set Limlts command on 3I is issued.

このRAMディスク装置のファイルにアクセスする際の
処理手順について説明する。
The processing procedure when accessing files in this RAM disk device will be explained.

第4図の前記ファームウェア部11のCPU11bの処
理流れ図に示すように、ステップS1で前記パソコン1
00から前記5CSIインタフエース16を介して5C
SIコマンドを入力したらそれがSet Lim1ts
コマンドか否かチエツクを行う。Set Lim1ts
コマンドでなければステップS2で書込み又は読出しコ
マンドか否かのチエツクを行う。書込み又は読出しコマ
ンド以外のその他のコマンドであれば、それに対応する
5CSIのプロトコル処理を行い、書込み読出しコマン
ドであればステップS3に進む。ステップS3では、既
にリザーブ領域にメモリプロテクト情報が保持されてい
るか否かを判断する。
As shown in the processing flowchart of the CPU 11b of the firmware section 11 in FIG.
00 to 5C via the 5CSI interface 16
When you enter the SI command, it is Set Lim1ts
Checks whether it is a command or not. Set Lim1ts
If it is not a command, a check is made in step S2 to see if it is a write or read command. If it is a command other than a write or read command, the corresponding 5CSI protocol processing is performed, and if it is a write/read command, the process advances to step S3. In step S3, it is determined whether memory protect information is already held in the reserved area.

既に当該リザーブ領域にメモリプロテクト情報が保持さ
れている場合には、ステップS4でファームウェア部1
1の前記書込み読出し指示部3は当該リザーブ領域22
,32.・・・からメモリプロテクト情報の読出しの指
示を行うことになる。
If memory protect information is already held in the reserved area, the firmware section 1
The write/read instruction unit 3 of No. 1 is the reserved area 22
, 32. . . . will issue an instruction to read the memory protect information.

読み出された当該メモリプロテクト情報は当該ファーム
ウェア部11の比較手段4により、前記書込み読出しコ
マンドの要求の内容と当該メモリプロテクト情報の内容
とを比較することになる。
The read memory protect information is used by the comparing means 4 of the firmware section 11 to compare the content of the request for the write/read command with the content of the memory protect information.

この比較結果は前記ファームウェア部11の前記抑制部
5により、比較結果が内容に重複部分の存在することを
示している場合には、当該抑制部5は当該重複部分につ
いて前記ファームウェア部11の書込み読出し指示部3
に対し、書込みまたは読出しの抑制、をさせることにな
り、重複部分が存在しない場合には当該抑制部5は前記
書込み読出し指示部3に対し、書込みまたは読出しの抑
制を行わず、ステップS7で書込みまたは読出し処理が
なされることになる。
This comparison result is determined by the suppression unit 5 of the firmware unit 11, and if the comparison result indicates that there is an overlapping portion in the content, the suppression unit 5 causes the firmware unit 11 to write and read the overlapping portion. Instruction part 3
If there is no overlapping portion, the suppression unit 5 does not suppress writing or reading to the write/read instruction unit 3, and in step S7 Or read processing will be performed.

また、ステップS3で未だリザーブ領域にメモリプロテ
クト情報が格納されていない場合にも、ステップS7に
進み、前記SRAMボード20゜30、・・・のSRA
M21,31.・・・に対し書込みまたは読出し処理が
行われることになる。
Further, even if the memory protect information is not yet stored in the reserved area in step S3, the process proceeds to step S7, and the SRAM of the SRAM boards 20, 30, . . .
M21,31. A write or read process will be performed on...

一方、ステップS1でSet Lim1tsコマンドで
あった場合には、ステップS8に進み、既に前記リザー
ブ領域22,32.・・・にメモリプロテクト情報が格
納されているか否かが判断され、既にメモリ・プロテク
ト情報が格納されている場合には、ステップS9に進み
、Set Lim1tsコマンドで指定してきた領域と
既に格納済のプロテクト領域が一致するか否かが判断さ
れる。
On the other hand, if it is the Set Limlts command in step S1, the process advances to step S8, and the reserved areas 22, 32 . It is determined whether memory protect information is stored in ..., and if memory protect information is already stored, the process advances to step S9, and the area specified by the Set Lim1ts command and the area that has already been stored are It is determined whether the protected areas match.

一致している場合には、同一領域のプロテクト解除や、
読出し禁止から書込み禁止又はその逆等のプロテクト内
容の変更が考えられる為、次にステップSIOに進み、
当該リザーブ領域22゜32.・・・に格納されている
メモリ・プロテクト情報の内容を新たなSet Lim
1tsコマンドの内容に置き換えられて更新が行なわれ
る。
If they match, unprotect the same area,
Since it is possible that the protection contents may change from read prohibition to write prohibition or vice versa, proceed to step SIO next.
The reserved area 22°32. Set the contents of the memory protect information stored in ... to a new Set Lim.
The update is performed by replacing the contents with the contents of the 1ts command.

一方、ステップS9で前記Set Lim1tsコマン
ドで指定してきた領域と、前記リザーブ領域内のメモリ
・プロテクト領域との内容が一致しない場合には新たな
プロテクト領域の設定と判断し、ステップSllで当該
リザーブ領域内のメモリプロテクト情報の内容追加とな
る。
On the other hand, if the contents of the area specified by the Set Lim1ts command do not match the contents of the memory protect area in the reserve area in step S9, it is determined that a new protect area is to be set, and the reserve area is set in step Sll. The contents of the memory protection information in the file will be added.

又、ステップS8で前記リザーブ領域22゜32、・・
・にメモリプロテクト情報が格納されていなかった場合
には、最初のプロテクト領域の設定とみなし、スッテプ
Sllで当該リザーブ領域内のメモリプロテクト情報の
新規登録とし格納する。
Further, in step S8, the reserve area 22°32, . . .
If the memory protect information is not stored in the reserved area, it is assumed that the first protected area is set, and the memory protect information in the reserved area is newly registered and stored in step Sll.

このように、本実施例のRAMディスク装置によれば5
csrのコマンドであるSet Lim1tsコマンド
を利用できるばかりでなく、Set Lim1tsコマ
ンドの欠点であるコマンドの保存性の無さや、1フアイ
ルに一箇所のプロテクトしかかけられないという制限を
回避することが可能となる。
In this way, according to the RAM disk device of this embodiment, 5
Not only can you use the Set Lim1ts command, which is a csr command, but you can also avoid the drawbacks of the Set Lim1ts command, such as the inability to save commands and the restriction that one file can only be protected. Become.

尚、5CSI用記憶装置の実施例としてSRAMをメモ
リ要素に用いたRAMディスク装置について述べてきた
が、5C3Iを利用し、不揮発性のメモリ要素を用いる
記憶装置であればハードディスクや光ディスク等でも同
様にプロテクト情報を管理することができる。
Although we have described a RAM disk device that uses SRAM as a memory element as an example of a 5CSI storage device, it is also possible to use a hard disk, optical disk, etc. as long as it uses 5C3I and uses a non-volatile memory element. Protect information can be managed.

また、本実施例では記憶装置のメモリ要素の一部分をリ
ザーブ領域1として利用したが、リザーブ領域専用の不
揮発性メモリ要素を別に設けることも可能である。
Further, in this embodiment, a part of the memory element of the storage device is used as the reserve area 1, but it is also possible to separately provide a non-volatile memory element exclusively for the reserve area.

こうして、Set Lim1tsコマンドのファイルプ
ロテクト情報を保存し、変更、削除のない限りSetL
imitsコマンドを発行しなくてもファイルのプロテ
クトが保障され、さらに、同一ファイルに複数箇所のプ
ロテクト領域を設定することを可能とする。
In this way, the file protection information of the Set Lim1ts command is saved, and the SetLim1ts command is saved unless changed or deleted.
File protection is ensured without issuing an imits command, and furthermore, it is possible to set a plurality of protected areas in the same file.

以上の如く、本実施例に係る5CSI用記憶装置のメモ
リ保護方式によれば、5CSIのコマンドであるSet
 Lim1tsを用いながら、メモリプロテクト情報を
保存することができるようになり、さらに、同一ファイ
ルの中に複数箇所のプロテクト領域を設定することもで
きるようになる。このため、ファイル・アクセス・コマ
ンドを発行する毎にSet Lim1tsコマンドを発
行しなくてもメモリプロテクト情報が保護され、Set
  Lim1tsコマンドの付は忘れによりファイルが
破壊される危険がなくなり、プロテクト領域の設定がき
め細かに行えるので、メモリを効率的に利用することが
できる。また、これらのメモリプロテクト情報がバッテ
リ・バックアップされたSRAM上に保持されるためバ
ッテリ電源が供給されなくなるまで装置電源断があって
も恒久的に保持される(ハード的に保存される)ので、
ソフト的なプロテクトに比較してより確実なプロテクト
をかけることができる。
As described above, according to the memory protection method of the 5CSI storage device according to this embodiment, the 5CSI command Set
While using Limlts, it becomes possible to save memory protect information, and furthermore, it becomes possible to set a plurality of protected areas in the same file. Therefore, the memory protect information is protected without having to issue the Set Lim1ts command every time a file access command is issued, and the Set
There is no risk of file destruction due to forgetting to add the Limlts command, and the protected area can be set in detail, allowing efficient use of memory. In addition, since this memory protection information is retained on the battery-backed SRAM, it is permanently retained (stored in hardware) even if the device power is turned off until battery power is no longer supplied.
More reliable protection can be applied compared to software protection.

このため、複数ユーザの共同利用に際してもファイルの
破壊等の危険を回避できるようになる。
This makes it possible to avoid the risk of file destruction, etc., even when multiple users share the same use.

〔発明の効果〕〔Effect of the invention〕

以上説明したように1本発明によれば、不揮発性記憶部
にリザーブ領域を設け、書込み読出しが禁止されるメモ
リプロテクト情報を格納し、アクセス要求があった場合
には、リザーブ領域読出し指示部により当該リザーブ領
域に格納されているメモリプロテクト情報を読み出して
、アクセス指示の内容とを前記比較手段により比較し、
重複部分について抑制手段により書込みまたは読出しの
抑制を行うようにしている。
As explained above, according to one aspect of the present invention, a reserved area is provided in a non-volatile storage section, memory protection information for which writing and reading are prohibited is stored, and when an access request is made, the reserved area read instruction section reading the memory protect information stored in the reserved area and comparing it with the contents of the access instruction by the comparing means;
Writing or reading of the overlapping portion is suppressed by the suppressing means.

したがって、例えば、5C3IインタフエースではSe
t Lim1tsコマンドを、従来のようにその都度発
行する必要がなく、書込みまたは読出し要求がある毎に
リザーブ領域から自動的にメモリプロテクト情報を読み
出し、かつ比較等の処理が自動的に行われるため、メモ
リ保護が確実な信頼性のある記憶装置のメモリ保護方式
を提供することができることになる。
Therefore, for example, in the 5C3I interface, Se
There is no need to issue the tLimlts command each time as in the past, and memory protection information is automatically read from the reserved area every time there is a write or read request, and processing such as comparison is automatically performed. This makes it possible to provide a reliable memory protection method for a storage device that ensures memory protection.

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

第1図は本発明の原理ブロック図、第2図は実施例に係
る機器構成ブロック図、第3図は本実施例に係るRAM
ディスク装置のファイル領域及びリザーブ領域のメモリ
マツプを示す図、第4図は実施例に係る処理流れ図、第
5図は従来例に係るブロック図である。 1 (21,31,・・・)・・・不揮発性記憶部(S
RAM) 2 (22,32,・・・)・・・リザーブ領域3(1
1)・・・書込み読出し指示部 (ファームウェア部) 4(11)・・・比較手段(ファームウェア部)5(1
1)・・・抑制部(ファームウェア部)ア]セ1り」j
;1吊ろり111羞へづつ一7図第2図 発明の魚5f7−o−/り山 1g111!l RAMディスク装置
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of the equipment configuration according to the embodiment, and Fig. 3 is a RAM according to the embodiment.
A diagram showing a memory map of a file area and a reserve area of a disk device, FIG. 4 is a processing flow chart according to the embodiment, and FIG. 5 is a block diagram according to a conventional example. 1 (21, 31,...)...Non-volatile storage section (S
RAM) 2 (22, 32,...)... Reserve area 3 (1
1)...Writing/reading instruction unit (firmware unit) 4(11)...Comparing means (firmware unit) 5(1
1)... Suppression section (firmware section)
; 1 hanging 111 17 Figure 2 Fish of the invention 5f7-o-/Hanging 1g111! l RAM disk device

Claims (1)

【特許請求の範囲】 不揮発性の記憶部(1)と、当該記憶部(1)のメモリ
領域を指定した書込み又は読出しの要求により当該記憶
部(1)に対する書込み又は読出しの指示を行う書込み
読出し指示部(3)とを有するとともに、一定メモリ領
域に対する書込み又は読出しを禁止する記憶装置のメモ
リ保護方式において、 前記一定メモリ領域の位置を示すメモリ保護情報を保持
したリザーブ領域(2)を前記記憶部(1)に設けると
ともに、 書込みまたは読出しの要求により指定されたメモリ領域
と前記リザーブ領域(2)より読み出されたメモリ保護
情報が示す一定メモリ領域とを比較する比較手段(4)
と、 比較手段(4)による比較結果に基づいて書込み読出し
指示部(3)に対し、書込み又は読出しの抑制を行う抑
制部(5)とを有することを特徴とする記憶装置のメモ
リ保護方式。
[Scope of Claims] A non-volatile storage unit (1), and a write/read device that instructs writing or reading to the storage unit (1) in response to a write or read request that specifies a memory area of the storage unit (1). In a memory protection method for a storage device that includes an instruction section (3) and prohibits writing or reading from a certain memory area, a reserved area (2) holding memory protection information indicating a position of the certain memory area is set as the storage area. a comparison means (4) for comparing the memory area designated by the write or read request and the fixed memory area indicated by the memory protection information read from the reserve area (2);
A memory protection method for a storage device, comprising: a suppression unit (5) that suppresses writing or reading to the write/read instruction unit (3) based on the comparison result by the comparison unit (4).
JP26470389A 1989-10-11 1989-10-11 Memory protecting system for storage device Pending JPH03126145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26470389A JPH03126145A (en) 1989-10-11 1989-10-11 Memory protecting system for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26470389A JPH03126145A (en) 1989-10-11 1989-10-11 Memory protecting system for storage device

Publications (1)

Publication Number Publication Date
JPH03126145A true JPH03126145A (en) 1991-05-29

Family

ID=17407010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26470389A Pending JPH03126145A (en) 1989-10-11 1989-10-11 Memory protecting system for storage device

Country Status (1)

Country Link
JP (1) JPH03126145A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007328825A (en) * 2007-09-18 2007-12-20 Renesas Technology Corp Memory system
WO2009031244A1 (en) * 2007-09-04 2009-03-12 Nintendo Co., Ltd. Write-in region security system
US9576156B2 (en) 2007-09-04 2017-02-21 Nintendo Co., Ltd. Download security system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009031244A1 (en) * 2007-09-04 2009-03-12 Nintendo Co., Ltd. Write-in region security system
JPWO2009031244A1 (en) * 2007-09-04 2010-12-09 任天堂株式会社 Write area security system
JP5177696B2 (en) * 2007-09-04 2013-04-03 任天堂株式会社 Write area security system
US9176897B2 (en) 2007-09-04 2015-11-03 Nintendo Co., Ltd. Writing area security system
US9576156B2 (en) 2007-09-04 2017-02-21 Nintendo Co., Ltd. Download security system
JP2007328825A (en) * 2007-09-18 2007-12-20 Renesas Technology Corp Memory system

Similar Documents

Publication Publication Date Title
US8108597B2 (en) Storage control method and system for performing backup and/or restoration
US7054990B1 (en) External storage device using non-volatile semiconductor memory
US7114051B2 (en) Method for partitioning memory mass storage device
US6795890B1 (en) Data storage method, and data processing device using an erasure block buffer and write buffer for writing and erasing data in memory
JP2006127106A (en) Storage system and its control method
JP2007011522A (en) Deletion method of data, storage device and computer system
JP2007265403A (en) Remote mirroring method between tiered storage systems
JP2005276158A (en) Storage system, computer system and method of establishing attribute of storage area
JP2005222383A (en) Storage control device and control method for the device
JP4713951B2 (en) Virtual tape library system and virtual tape writing method
JP2005267602A (en) Further fine and efficient write protection for disk volume
JP6975202B2 (en) Recovery process and equipment from momentary interruptions, and computer-readable storage media
JPH03126145A (en) Memory protecting system for storage device
JPH11194938A (en) Memory managing method for computer having hard disk drive
KR102145358B1 (en) Method and computer-readable medium emboding program for protecting data integrity of disk in alternate operating system environment
US6463502B1 (en) Backup copying of data to a tape unit with a cache memory
JP2005353046A (en) Recording medium, host device, and data processing method
JP2004310474A (en) Storage control device and control method for the same
JP5661313B2 (en) Storage device
JPH0520196A (en) Disk cache controller
JP2007079968A (en) Information processor
US5933839A (en) Distributed file system for renewing data with high integrity
JP3425355B2 (en) Multiple write storage
JP2002278705A (en) Computer system
JP2000047923A (en) File access system and file controller