JPS63124123A - Control system for magnetic disk device - Google Patents

Control system for magnetic disk device

Info

Publication number
JPS63124123A
JPS63124123A JP61271349A JP27134986A JPS63124123A JP S63124123 A JPS63124123 A JP S63124123A JP 61271349 A JP61271349 A JP 61271349A JP 27134986 A JP27134986 A JP 27134986A JP S63124123 A JPS63124123 A JP S63124123A
Authority
JP
Japan
Prior art keywords
free space
magnetic disk
idle area
space information
disk device
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
JP61271349A
Other languages
Japanese (ja)
Inventor
Masahiko Watanabe
渡邉 理彦
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 JP61271349A priority Critical patent/JPS63124123A/en
Publication of JPS63124123A publication Critical patent/JPS63124123A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

PURPOSE:To shorten the processing time needed to secure an area for a new file by evolving the idle area information onto a main memory and adding a control mechanism for a table of said evolved idle area information. CONSTITUTION:An idle area information acquiring mechanism 11 evolves the idle area information written onto a magnetic disk device 30 onto a main memory as an idle area information table 20. An idle area information updating mechanism 12 detects an idle area of a desired size out of the table 20 and updates the table 20 and also the idle area information written on the device 30 as necessary. Here only the table 20 is updated as long as an idle area is secured for a file that is temporarily needed. When this file becomes unnecessary, the update information on the table 20 is restored. While the idle area is deleted out of the table 20 and the information on the device 30 is updated if the idle area is secured for a file that is needed semipermanently. Then the idle area is newly registered into the table 20 and the information on the device 30 is updated when the idle area is released.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、磁気ディスク装置管理方式に関し、特に磁気
ディスク装置上の空き領域の管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk device management method, and particularly to a method for managing free space on a magnetic disk device.

〔従来の技術〕[Conventional technology]

従来、この種の磁気ディスク装置管理方式は、磁気ディ
スク装置上に格納されたその空き領域情報によって磁気
ディスク装置の管理を行っていた。すなわち、新らしく
ファイルを確保するときは磁気ディスク装置上の空き領
域情報を主記憶装置上に読み込み、その情報を更新して
ふたたび磁気ディスク上に書き込むことによって磁気デ
ィスクの空き領域情報の管理を行っており、管理のため
の処理時間が長くなっていた。また、一時的に必要とす
るファイルであっても上述と同じように磁気ディスク装
置のような外部記憶装置とのデータの授受を必要とした
Conventionally, this type of magnetic disk device management system has managed magnetic disk devices based on free space information stored on the magnetic disk devices. In other words, when allocating a new file, the free space information on the magnetic disk is read into the main storage, updated, and written back onto the magnetic disk to manage the free space information on the magnetic disk. This resulted in a long processing time for management. Furthermore, even for files that are temporarily required, data must be exchanged with an external storage device such as a magnetic disk device, as described above.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の磁気ディスク装置管理方式は、新らしい
ファイルを確保するごとに、その必要性が一時的である
か長期的であるかを問わず必らず磁気ディスク装置から
空き領域情報を主記憶装置に読み込み、この情報を更新
してふたたび磁気ディスク上に書き込む必要があり、そ
のための時間を必要とするので、管理のための処理時間
が長くなるという欠点がある。また、一時的に必要とな
るファイルであっても上記のような手順で処理されるの
で、停電等により、そのシステムがダウンしてしまった
場合、その後の復旧処理では空き領域情報をも復旧しな
ければならないという欠点もある。
The conventional magnetic disk device management method described above always sends free space information from the magnetic disk device to the main memory every time a new file is secured, regardless of whether the need is temporary or long-term. It is necessary to read the information into the device, update this information, and write it on the magnetic disk again, which requires time, so there is a disadvantage that the processing time for management becomes longer. In addition, even files that are needed temporarily are processed using the above procedure, so if the system goes down due to a power outage, the free space information will also be restored during the subsequent recovery process. There is also the disadvantage of having to do so.

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

本発明の磁気ディスク装置管理方式は、磁気ディスク装
置上にその空き領域情報を格納する領域を設け常時前記
空き領域情報をその状況に従い更新する磁気ディスク装
置管理方式において、前記磁気ディスク装置上に格納さ
れている情報を主記憶装置の空き領域情報テーブルに格
納する空き領域情報取得機構と、前記磁気ディスク装置
および前記主記憶装置の前記空き領域情報テーブルに格
納された前記磁気ディスク装置の前記空き領域情報をそ
の状況に従い更新するとともに、一時的に前記磁気ディ
スク装置の空き領域に情報を格納するときは前記主記憶
装置上に格納された前記磁気ディスク装置の前記空き情
報のみをその状況に従い更新する空き領域情報更新機構
とを備えて構成される。
A magnetic disk device management method of the present invention provides an area for storing free space information on a magnetic disk device and constantly updates the free space information according to the situation. a free space information acquisition mechanism that stores information on a free space in a free space information table of a main storage device; and a free space information acquisition mechanism of the magnetic disk device and the free space of the magnetic disk device stored in the free space information table of the main storage device. The information is updated according to the situation, and when information is temporarily stored in the free space of the magnetic disk device, only the free space information of the magnetic disk device stored on the main storage device is updated according to the situation. and a free space information update mechanism.

〔実施例〕〔Example〕

次に本発明についての一実施例にって図面を参照して説
明する。
Next, one embodiment of the present invention will be described with reference to the drawings.

第1図において、本発明の構成条件である空き領域管理
機構10は、空き領域情報取得機構11と空き領域情報
更新機構12とから構成される。
In FIG. 1, a free space management mechanism 10, which is a structural condition of the present invention, is composed of a free space information acquisition mechanism 11 and a free space information updating mechanism 12.

空き領域情報取得機f#11は磁気ディスク装置30の
認識処理の一貫として磁気ディスク装置上に書かれてい
る空き領域情報を、主記憶装置上に空き領域情報テーブ
ル20として展開する。また、例えば複数台の磁気ディ
スク装置が接続されたデータ処理システムでは、この空
き領域情報テーブル20は、それぞれの磁気ディスク装
置ごとに展開される。空き領域情報更新機tR12は、
必要サイズの空き領域を空き領域情報テーブル20から
探し出し、空き領域情報テーブル20を更新するととも
に、必要であれば、磁気ディスク装置30上の空き領域
情報の更新も行う。
The free space information acquisition device f#11 develops the free space information written on the magnetic disk device as part of the recognition process of the magnetic disk device 30 as a free space information table 20 on the main storage device. Further, for example, in a data processing system to which a plurality of magnetic disk devices are connected, the free space information table 20 is developed for each magnetic disk device. The free space information update machine tR12 is
A free space of the required size is searched from the free space information table 20, and the free space information table 20 is updated, and if necessary, the free space information on the magnetic disk device 30 is also updated.

具体的には、空き領域の確保が一時的に必要となるファ
イルのために発生したものであれば、割り当てられた空
き領域を一時フアイル領域として空き領域情報テーブル
20を更新するのみで、磁気ディスク装置30上の空き
領域情報は更新されない、その一時的なファイルが不要
になると、空き領域情報テーブル20上の一時フアイル
領域としての情報が空き領域としての情報に復元される
。また、空き領域の確保が半永久的に必要となる。ファ
イルのための発生したものであれば、割り当てられた空
き領域は空き領域情報テーブル2゜から抹消され、磁気
ディスク装置30上の空き領域情報も更新される。逆に
、このようなファイルが解放された場合には、その不要
となったファイル領域(新しい空き領域)が空き領域情
報テーブル20に登録され、磁気ディスク装置30上の
空き領域情報も更新される。
Specifically, if the problem arises because of a file that requires free space to be reserved temporarily, all that is needed is to update the free space information table 20 by using the allocated free space as a temporary file area. The free space information on the device 30 is not updated. When the temporary file becomes unnecessary, the information as a temporary file area on the free space information table 20 is restored to the information as a free space. Additionally, it is necessary to secure free space semi-permanently. If the allocated free space is for a file, the allocated free space is deleted from the free space information table 2°, and the free space information on the magnetic disk device 30 is also updated. Conversely, when such a file is released, the file area that is no longer needed (new free space) is registered in the free space information table 20, and the free space information on the magnetic disk device 30 is also updated. .

次に、第2〜3図を参照して本実施例の作動の説明を行
う。
Next, the operation of this embodiment will be explained with reference to FIGS. 2 and 3.

まず、第2図の空き領域情報更新機構12においては、
例えば実行中の演算の制御を行う中で必要とするファイ
ルのために該当する磁気ディスク装W30上の空き領域
情報のサーチが空き領域情報テーブル20で行われる(
ステップ■)。その結果空き領域の有無が判定され、無
い場合は領域不足エラーとなっていることが中央処理装
置を制御する端末に表示される(ステップ■)、このと
き別の磁気ディスク装置があればエラー表示の前にサー
チが行われる。ステップ■の結果で空き領域があるとき
は、空き領域情報テーブル2oの更新が行われる(ステ
ップ■)。
First, in the free space information update mechanism 12 shown in FIG.
For example, the free space information table 20 is searched for free space information on the magnetic disk unit W30 for a file that is required while controlling the calculation being executed (
Step ■). As a result, the presence or absence of free space is determined, and if there is no free space, an insufficient space error is displayed on the terminal that controls the central processing unit (step ■).At this time, if another magnetic disk device is available, an error message is displayed. A search is performed before. If there is a free space as a result of step (2), the free space information table 2o is updated (step (2)).

次に空き領域が一時的なファイルのためであればその空
き領域がメモリとして使用され、(ステップ■)、半永
久的に使用するファイルのためであれば磁気ディスク装
置30上の空き領域情報を更新して(ステップ■)、そ
の空き領域をメモリとして使用する。
Next, if the free space is for a temporary file, the free space is used as memory (step ■), and if it is for a file to be used semi-permanently, the free space information on the magnetic disk device 30 is updated. (Step ■) and use that free space as memory.

また、第3図の空き領域情報取得機構11においては、
例えば演算が実行される前に、該当する磁気ディスク装
置30の空き領域情報に対応する空き領域情報テーブル
20がすでに作成済のときは、直ちに演算が開始される
(ステップ■)、空き領域情報テーブル20が未作成の
ときは、磁気ディスク装置30から、空き領域情報を出
力させ、空き領域情報テーブル20上にそのデータを展
開する(ステラ■)。このあと所定の演算が開始される
Furthermore, in the free space information acquisition mechanism 11 shown in FIG.
For example, if the free space information table 20 corresponding to the free space information of the corresponding magnetic disk device 30 has already been created before the calculation is executed, the calculation is started immediately (step ■). 20 has not been created, the free space information is output from the magnetic disk device 30, and the data is developed on the free space information table 20 (Stella ■). After this, a predetermined calculation is started.

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

以上説明したように本発明は、磁気ディスク装置の空き
領域情報を主記憶装置上に展開し、その展開された空き
領域情報テーブルの管理機構を設けることにより、新し
いファイルのための領域の確保に要する処理時間を短縮
できる効果がある。
As explained above, the present invention expands the free space information of a magnetic disk device onto the main storage device and provides a management mechanism for the developed free space information table, thereby making it possible to secure an area for a new file. This has the effect of shortening the required processing time.

特に、一時的に必要となるファイルでは、空き領域情報
テーブルの更新だけでファイル領域の確保・解放が行な
われるので、処理時間が大幅に短縮され、さらに、その
ようなファイルを使用している途中で停電等により、シ
ステムがダウンしても、磁気ディスク装置上の空き領域
情報の復旧が不要であるという利点がある。
In particular, for files that are needed temporarily, file space is secured and released simply by updating the free space information table, which greatly reduces processing time. Even if the system goes down due to a power outage or the like, there is no need to restore the free space information on the magnetic disk drive.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の空き領域情報更新機構の作動を示す流れ
図、第3図は本発明の空き領域情報取得機構の作動を示
す流れ図。 10・・・空き領域管理機構、11・・・空き領域情報
取得機構、12・・・空き領域情報更新機構、20・・
・空き領域情報テーブル、30・・・磁気ディスク装置
。 茅2図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the free space information updating mechanism of the present invention, and FIG. 3 is a flow chart showing the operation of the free space information acquisition mechanism of the present invention. Flowchart shown. 10... Free space management mechanism, 11... Free space information acquisition mechanism, 12... Free space information update mechanism, 20...
- Free space information table, 30...Magnetic disk device. Kaya 2 map

Claims (1)

【特許請求の範囲】[Claims]  磁気ディスク装置上にその空き領域情報を格納する領
域を設け常時前記空き領域情報をその状況に従い更新す
る磁気ディスク装置管理方式において、前記磁気ディス
ク装置上に格納されている情報を主記憶装置の空き領域
情報テーブルに格納する空き領域情報取得機構と、前記
磁気ディスク装置および前記主記憶装置の前記空き領域
情報テーブルに格納された前記磁気ディスク装置の前記
空き領域情報をその状況に従い更新するとともに、一時
的に前記磁気ディスク装置の空き領域に情報を格納する
ときは前記主記憶装置上に格納された前記磁気ディスク
装置の前記空き情報のみをその状況に従い更新する空き
領域情報更新機構とを備えてなることを特徴とする磁気
ディスク管理方式。
In a magnetic disk device management method in which an area is provided on a magnetic disk device to store the free space information and the free space information is constantly updated according to the situation, the information stored on the magnetic disk device is stored in the free space of the main storage device. a free space information acquisition mechanism stored in an area information table; and a temporary update mechanism for updating the free space information of the magnetic disk device stored in the free space information table of the magnetic disk device and the main storage device according to the situation; and a free space information updating mechanism that updates only the free space information of the magnetic disk device stored on the main storage device according to the situation when information is stored in the free space of the magnetic disk device. A magnetic disk management method characterized by:
JP61271349A 1986-11-13 1986-11-13 Control system for magnetic disk device Pending JPS63124123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61271349A JPS63124123A (en) 1986-11-13 1986-11-13 Control system for magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61271349A JPS63124123A (en) 1986-11-13 1986-11-13 Control system for magnetic disk device

Publications (1)

Publication Number Publication Date
JPS63124123A true JPS63124123A (en) 1988-05-27

Family

ID=17498825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61271349A Pending JPS63124123A (en) 1986-11-13 1986-11-13 Control system for magnetic disk device

Country Status (1)

Country Link
JP (1) JPS63124123A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01214923A (en) * 1988-02-23 1989-08-29 Fujitsu Ltd File accessing system
JPH02161514A (en) * 1988-12-14 1990-06-21 Fujitsu Ltd Control processing system for idle storage block
JPH08249223A (en) * 1995-03-13 1996-09-27 Nec Corp Data area management system for area-sharing file

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61109160A (en) * 1984-10-31 1986-05-27 Fujitsu Ltd Area control system for inter-system share volume

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61109160A (en) * 1984-10-31 1986-05-27 Fujitsu Ltd Area control system for inter-system share volume

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01214923A (en) * 1988-02-23 1989-08-29 Fujitsu Ltd File accessing system
JPH0820928B2 (en) * 1988-02-23 1996-03-04 富士通株式会社 File access method
JPH02161514A (en) * 1988-12-14 1990-06-21 Fujitsu Ltd Control processing system for idle storage block
JPH08249223A (en) * 1995-03-13 1996-09-27 Nec Corp Data area management system for area-sharing file

Similar Documents

Publication Publication Date Title
US5586247A (en) Data updating system capable of partially recovering data
US6205526B1 (en) Device and method for backing up internal information and storage medium having internal information backup control program stored thereon
JPH11144478A (en) Information storage method of nonvolatile semiconductor memory and electronic apparatus
JPS63124123A (en) Control system for magnetic disk device
JPH01204163A (en) File controller
JP2000137604A (en) System for succeeding data
CN113297316A (en) Method, device and system for realizing data synchronization
JPH0385650A (en) Disk volume restoration system
JP2720775B2 (en) File parallel processing unit
JPH0512087A (en) System for outputting pre-updating journal
JP3319412B2 (en) Information acquisition system by user terminal
JP3047748B2 (en) Data management device
JPS6125256A (en) File shunt system
JPH0337748A (en) External storage accessing system utilizing main storage
JPS6349952A (en) Memory control system
JPH04267442A (en) File area automatic extension system
JP3008500B2 (en) Update record reading mechanism
CN115757213A (en) Chip circuit, starting method of processor and server
JPS6254348A (en) Processing system for fault of file
JPH0566946A (en) Program maintenance system
JPH06290051A (en) Automatic maintenance system for work station system
JPH04338815A (en) Semiconductor disk device
JPH05250243A (en) Data processing system for extended storage device
JPH0588920A (en) Message queue control method
JPH08320815A (en) Computer system