JPS6359619A - System for initializing ram disk - Google Patents

System for initializing ram disk

Info

Publication number
JPS6359619A
JPS6359619A JP61197758A JP19775886A JPS6359619A JP S6359619 A JPS6359619 A JP S6359619A JP 61197758 A JP61197758 A JP 61197758A JP 19775886 A JP19775886 A JP 19775886A JP S6359619 A JPS6359619 A JP S6359619A
Authority
JP
Japan
Prior art keywords
ram disk
initializing
program
routine
disk
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
JP61197758A
Other languages
Japanese (ja)
Inventor
Yasumasa Nishijima
西島 靖昌
Tomomitsu Motokura
本倉 智光
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP61197758A priority Critical patent/JPS6359619A/en
Publication of JPS6359619A publication Critical patent/JPS6359619A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To eliminate an influence upon the memory size of a control routine in a normal processing by building a program, which initializes a RAM disk, in a system initializing routine and initializing the RAM disk at the time of power-on. CONSTITUTION:When a system is started, that is, a power source is turned on, the system initializing routine is read out from an external memory device and is loaded to a main memory. The system initializing routine consists of a memory initializing program, an I/O initializing program, a RAM disk initializing program, etc. The system initializing routine is executed immediately after loaded, and the main memory, I/Os, and the RAM disk are initialized by this execution. All files on the RAM disk are made empty as the result of initialization of the RAM disk, and another program is loaded to the main memory after the execution of the system initializing routine is completed.

Description

【発明の詳細な説明】 〔概要〕 システム初期化ルーチンの中にRAMディスクを初期化
するためのプログラムを組み込み、システムの起動時、
即ち電源投入時にRAMディスクの初期化を行うように
したRAMディスクの初期化方式である。
[Detailed Description of the Invention] [Summary] A program for initializing a RAM disk is incorporated into the system initialization routine, and when the system is started,
That is, this is a RAM disk initialization method in which the RAM disk is initialized when the power is turned on.

〔産業上の利用分野〕[Industrial application field]

本発明は、半導体RAMを記憶媒体とするRAMディス
クの初期化方式に関するものである。
The present invention relates to a method for initializing a RAM disk using a semiconductor RAM as a storage medium.

〔従来の技術〕[Conventional technology]

第7図は計算機システムの1例を示す図である。 FIG. 7 is a diagram showing an example of a computer system.

第7図において、1はディスプレイ、2は中央処理装置
、3は主メモリ、4は磁気ディスク装置、5はフロッピ
ィ・ディスク装置、6はプリンタ、7はRAMディスク
をそれぞれ示している。主メモリ3の中には、処理プロ
グラムやモニタ、デバイス・ハンドラ等が格納されてい
る。RAMディスク7は、半導体RAMから構成されて
おり、外部記憶装置として使用されるものである。処理
プログラムが入出力デバイスをアクセスしたいと言う要
求を発行すると、この要求はモニタを介してデバイス・
ハンドラに伝えられ、デバイス・ハンドラが入出力デバ
イスをアクセスする。
In FIG. 7, 1 is a display, 2 is a central processing unit, 3 is a main memory, 4 is a magnetic disk device, 5 is a floppy disk device, 6 is a printer, and 7 is a RAM disk. The main memory 3 stores processing programs, monitors, device handlers, and the like. The RAM disk 7 is composed of a semiconductor RAM and is used as an external storage device. When a processing program issues a request to access an input/output device, this request is sent to the device via the monitor.
The device handler accesses the input/output device.

従来のRAMディスク7の初期化は、処理プログラムに
よって行われている。即ち、使用者が処環プログラムに
てRA Mディスク上の各種情報(ボリューム・サイズ
、ファイル・ラベル、媒体種別等)を初期設定している
。なお、媒体種別とは、RAMディスクがどのような記
憶媒体に相当するかを示すものである。
Initialization of the conventional RAM disk 7 is performed by a processing program. That is, the user initializes various information (volume size, file label, media type, etc.) on the RAM disk using a processing program. Note that the medium type indicates what kind of storage medium the RAM disk corresponds to.

〔解決しようとする問題点〕[Problem to be solved]

上述のような従来のRA Mディスクの初期化方式では
、システム起動後に使用者がRAMディスク初期化プロ
グラムを起動する必要があった。また、RA Mディス
クの初期化は主メモリに常駐する処理プログラムにて起
動された制御プログラムで行われるために、その分だけ
主メモリの容量が余分に必要になると言う欠点がある。
In the conventional RAM disk initialization method as described above, a user needs to start a RAM disk initialization program after starting the system. Furthermore, since the initialization of the RAM disk is performed by a control program activated by a processing program resident in the main memory, there is a drawback in that an extra capacity of the main memory is required.

本発明は、この点に鑑みて創作されたものであって、シ
ステム起動直後に直ちに使用者がRAMディスクを使用
できると共に、主メモリを有効に使用できるようになっ
たRAMディスクの初期化方式を提供することを目的と
している。
The present invention was created in view of this point, and provides a RAM disk initialization method that allows the user to use the RAM disk immediately after the system is started, and also allows the main memory to be used effectively. is intended to provide.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理図である。システムの起動時、即
ち電源投入時にシステム初期化ルーチンが外部記憶装置
から読み出され、主メモリにローディングされる。シス
テム初期化ルーチンは、メモリ初期化のためのプログラ
ムやIloの初期化のためのプログラム、RAMディス
クの初期化プログラム等から構成されている。ローディ
ング後、直ちにシステム初期化ルーチンが実行され、こ
の実行により、主メモリの初期化やIloの初期化、R
AMディスクの初期化が行われる。RAMディスクの初
期化の結果、RAMディスクの全ファイルは、空きとさ
れる。システム初期化ルーチンの実行完了後に、他のプ
ログラムが主メモリにローディングされる。この結果、
システム初期化ルーチンの上に他のプログラムが上書き
され、システム初期化ルーチンは消失する。RAMディ
スクは、RA Mディスク制御ルーチンにより制御され
る。
FIG. 1 is a diagram showing the principle of the present invention. When the system is started, that is, when the power is turned on, the system initialization routine is read from the external storage device and loaded into the main memory. The system initialization routine includes a program for initializing memory, a program for initializing Ilo, a program for initializing the RAM disk, and the like. Immediately after loading, the system initialization routine is executed, which initializes main memory, initializes Ilo, and initializes R.
The AM disk is initialized. As a result of the initialization of the RAM disk, all files on the RAM disk are made free. After the system initialization routine completes execution, other programs are loaded into main memory. As a result,
Another program overwrites the system initialization routine, and the system initialization routine disappears. The RAM disk is controlled by a RAM disk control routine.

〔実施例〕〔Example〕

第2図はRAMディスク7の構成を示す図である。RA
Mディスク7は、データ格納域部とセクタ管理テーブル
部を有している。データ格給域部は、複数のセクタに分
割されており、フロッピィ・ディスクの各トランクに対
して連続したセクタが割当られている。セクタ管理テー
ブル部には、トラックに対応するビット列が格納されて
いる。
FIG. 2 is a diagram showing the configuration of the RAM disk 7. As shown in FIG. R.A.
The M disk 7 has a data storage area section and a sector management table section. The data storage area is divided into a plurality of sectors, with consecutive sectors assigned to each trunk of the floppy disk. The sector management table section stores bit strings corresponding to tracks.

各ビットは対応するセクタが使用不可(又は未使用)で
あるか否かを示す値を存している。例えば、トラック1
の第n+2番目のセクタが使用不可(又は未使用)であ
るとすると、セクタ管理テーブル部におけるトラック1
に対応するビット列の第n+2番目のビットの値は1と
される。
Each bit has a value indicating whether the corresponding sector is unusable (or unused). For example, track 1
If the (n+2)th sector is unusable (or unused), track 1 in the sector management table section
The value of the (n+2)th bit of the bit string corresponding to is set to 1.

第3図はRAMディスク7をアクセスするときの処理フ
ローである。RAMディスク7をアクセスする際、先ず
セクタ管理テーブルを読み込む。
FIG. 3 shows a processing flow when accessing the RAM disk 7. When accessing the RAM disk 7, first the sector management table is read.

複数のセクタに跨がるレコードを読み込む場合、先頭の
セクタから最後のセクタまでの間に使用不可(又は未使
用)とされているセクタがあるか否かを調べ、ある場合
には、先頭のセクタから使用不可(又は未使用)とされ
ているセクタの前のセクタまでを連続して一気に読み込
む。そして、その使用不可(又は未使用)とされている
セクタの次のセクタを先頭セクタとして同様な処理を行
う。
When reading a record that spans multiple sectors, check whether there are any unusable (or unused) sectors between the first sector and the last sector. Continuously reads all sectors from the sector to the sector before the unusable (or unused) sector. Then, similar processing is performed using the sector next to the unusable (or unused) sector as the first sector.

なお、書込みの場合も同様な処理が行われる。Note that similar processing is performed in the case of writing as well.

第4図はフロッピィ・ディスクのデータをRAM7’イ
スクヘボリユーム・コピーするための処理を示す図であ
る。
FIG. 4 is a diagram showing the process for copying the data on the floppy disk to the RAM 7' disk.

■ ボリューム・ラベルを読み込む。■ Read volume label.

■ ボリューム・ラベルを書き込む。■ Write the volume label.

■ 1トランクのデータをリードする。■ Read data from one trunk.

■ SDT処理された(使用不可又は未使用とされた)
セクタがありか否かを調べ、Yesのときは■の処理を
行い、NOのときは■の処理を行う。
■ SDT processed (deemed unusable or unused)
It is checked whether a sector exists or not, and if YES, process (2) is performed, and if NO, process (2) is performed.

■ 1トラツクのデータをライトし、RAMディスクの
セクタ管理テーブルの対応ビットをすべて0にする。
■ Write one track of data and set all corresponding bits in the sector management table of the RAM disk to 0.

■ 最終トランクか否かを調べる。Yesのときはエン
ドとし、Noのときは■の処理に戻る。
■ Check if it is the last trunk. If Yes, the process ends, and if No, the process returns to ■.

■ “1セクタをリードする。■ “Read 1 sector.

■ 1セクタをライトする ■ RAMディスクのセクタ管理テーブルの対応するビ
ットを0にする。
■ Write one sector ■ Set the corresponding bit in the sector management table of the RAM disk to 0.

■ そのセクタがSDT処理されているか否かを調べる
。Y e Sのときは■の処理を行い、NOのときは0
の処理を行う。
■ Check whether the sector has been subjected to SDT processing. If YES, process ■, and if NO, set 0.
Process.

■ セクタ管理テーブルの対応するビットを1にする。■ Set the corresponding bit in the sector management table to 1.

@ 最終セクタか否かを調べる。Yesのときはエンド
とし、Noのときは■の処理に戻る。
@ Check whether it is the last sector. If Yes, the process ends, and if No, the process returns to ■.

第5図はRA Mディスクのデータ構造を示す図である
。同図において、FLBI、 FLB2.・・・はファ
イル・ラベルを示している。RA Mディスクは、ボリ
ューム・ラベルや複数のファイル・ラベル、複数のエク
ステント(図示せず)、セクタ管理テーブル等を有して
いる。ファイル・ラベルは、対応するエクステントの開
始位置情91BOE(Beginning 0fEx 
ten t)、エクステントの最終位置情報EOE(E
ndOf Extent)及びデータ書込最終位直情f
lEOD(EndOf Data)等を有している。フ
ァイルを空きにするとは、ファイル・ラベルのデータ書
込最終位置情報EODをエクステントの開始位置情11
BOEに等しくすることを意味している。
FIG. 5 is a diagram showing the data structure of the RAM disk. In the figure, FLBI, FLB2. ...indicates a file label. A RAM disk has a volume label, multiple file labels, multiple extents (not shown), a sector management table, and the like. The file label contains the starting position information 91BOE (Beginning 0fEx) of the corresponding extent.
tent), extent final location information EOE(E
ndOf Extent) and the final position of data writing f
It has lEOD (End Of Data) and the like. Making a file empty means changing the data writing final position information EOD of the file label to the extent start position information 11.
This means that it should be equal to BOE.

第6図はRA Mディスクの初期化フローを示す閣であ
る。この処理は第1図のRAMデ、イスクの初期化プロ
グラムによって行われる。
FIG. 6 is a diagram showing the initialization flow of the RAM disk. This process is performed by the RAM disk initialization program shown in FIG.

■ RA Mディスクの制<′iUレジスタをクリアす
る。
■ Clear the RAM disk control<'iU register.

RAMディスクにはコントローラが付IJ口されており
、制御レジスタのクリアとは当該コントローラの中のレ
ジスタのクリアを意味している。
A controller is connected to the RAM disk, and clearing the control register means clearing the register in the controller.

■ データ格納域を全てクリアする。■ Clear all data storage areas.

■ セクタ管理テーブルを全てクリアする。■ Clear all sector management tables.

■ ボリューム・ラベルを書き込み、その内容を初期化
する。
■ Write the volume label and initialize its contents.

■ ファイル・ラベルを言き込み、その中にBOE、E
OE、EOD等を設定する。なお、初期化時には、EO
DはBOEに等しくされる。
■ Insert the file label and include BOE, E
Set OE, EOD, etc. Note that during initialization, EO
D is made equal to BOE.

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

以上の説明から明らかなように、本発明によれば、シス
テム起動後、直ちに処理プログラムがRAMディスクを
使用することが可能となり、また、主メモリ上には起動
時にのみ初期化ルーチンが存在するので、通常処理にお
ける制御ルーチンのメモリ・サイズに影響を与えないと
言う効果が得られる。
As is clear from the above description, according to the present invention, the processing program can use the RAM disk immediately after the system starts, and since the initialization routine exists in the main memory only at the time of startup. This has the advantage that the memory size of the control routine during normal processing is not affected.

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

第1図は本発明の原理図、第2図はRA Mディスクの
構造を示す図、第3図はRAMディスクをアクセスする
場合の処理フローを示す図、第4図はRAMディスクへ
のボリューム・コピー処理を示す図、第5図はRAMデ
ィスクのデータ構造を示す図、第6図はRA Mディス
ク初期化フローを示す図、第7図は計算機システムの1
例を示す図である。 1・・・ディスプレイ、2・・・中央処理装置、3・・
・主メモリ、4・・・磁気ディスク装置、5・・・フロ
ッピィ・ディスク装置、6・・・プリンタ、7・・・R
AMディスク。
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing the structure of a RAM disk, FIG. 3 is a diagram showing a processing flow when accessing a RAM disk, and FIG. Figure 5 is a diagram showing the data structure of the RAM disk, Figure 6 is a diagram showing the RAM disk initialization flow, and Figure 7 is a diagram showing the copy process.
It is a figure which shows an example. 1...Display, 2...Central processing unit, 3...
・Main memory, 4...Magnetic disk device, 5...Floppy disk device, 6...Printer, 7...R
AM disc.

Claims (1)

【特許請求の範囲】 半導体RAMを記憶媒体とするRAMディスクの初期化
方式であって、 システム初期化ルーチンの中にRAMディスクを初期化
するためのプログラムを組み込み、システム起動時に上
記システム初期化ルーチンを実行する ことを特徴とするRAMディスクの初期化方式。
[Claims] A method for initializing a RAM disk using semiconductor RAM as a storage medium, which includes a program for initializing the RAM disk in a system initialization routine, and executes the system initialization routine at system startup. A RAM disk initialization method characterized by executing the following steps.
JP61197758A 1986-08-23 1986-08-23 System for initializing ram disk Pending JPS6359619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61197758A JPS6359619A (en) 1986-08-23 1986-08-23 System for initializing ram disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61197758A JPS6359619A (en) 1986-08-23 1986-08-23 System for initializing ram disk

Publications (1)

Publication Number Publication Date
JPS6359619A true JPS6359619A (en) 1988-03-15

Family

ID=16379857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61197758A Pending JPS6359619A (en) 1986-08-23 1986-08-23 System for initializing ram disk

Country Status (1)

Country Link
JP (1) JPS6359619A (en)

Similar Documents

Publication Publication Date Title
EP1015976B1 (en) Data transfer to a non-volatile storage medium
US6317747B1 (en) Dedicated input/output processor method and apparatus for access and storage of compressed data
KR100924497B1 (en) System and method for booting from a non-volatile application and file storage device
US7007140B2 (en) Storage device, storage device controlling method, and program
TW385388B (en) Method for partitioning storage regions on hard disk and computer system adapted to the same
US20040250055A1 (en) Method and system for changing software access level within or outside a host protected area
US8041849B2 (en) Method for handling small computer system interface (SCSI) commands via a redundant array of inexpensive disks (RAID) device driver
US6567864B1 (en) System and method for identification of computer input/output devices by intercepting identification commands directed to the input/output devices
JPS60233749A (en) Memory file device
US6473655B1 (en) Data processing system and method for creating a virtual partition within an existing partition in a hard disk drive
JPH0470649B2 (en)
TW446882B (en) Computer system and method for preparing a computer-readable medium
JPS6359619A (en) System for initializing ram disk
JPS6359618A (en) Semiconductor ram control system
US6523105B1 (en) Recording medium control device and method
JPS61134836A (en) Limiting system for application of software
JPS6346553A (en) File copying method
JPH1021123A (en) Information processor
JPS59112325A (en) Electronic computer system
JPS6336019B2 (en)
JP3066623B2 (en) Disk cache control method
JPH01292421A (en) Method for copying data in memory card
JP2748410B2 (en) ImPP program startup method
JPH05108440A (en) Format structure of directory entry on recording medium
JPH10124400A (en) Data processor and method for accessing data recording medium