JPH05143405A - File allocation system - Google Patents

File allocation system

Info

Publication number
JPH05143405A
JPH05143405A JP3304926A JP30492691A JPH05143405A JP H05143405 A JPH05143405 A JP H05143405A JP 3304926 A JP3304926 A JP 3304926A JP 30492691 A JP30492691 A JP 30492691A JP H05143405 A JPH05143405 A JP H05143405A
Authority
JP
Japan
Prior art keywords
area
file
logical
magnetic disk
logical area
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.)
Withdrawn
Application number
JP3304926A
Other languages
Japanese (ja)
Inventor
Hideki Nasu
秀樹 那須
Kazuto Kimura
和人 木村
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.)
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Tohoku 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 TOHOKU NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Tohoku Ltd filed Critical TOHOKU NIPPON DENKI SOFTWARE KK
Priority to JP3304926A priority Critical patent/JPH05143405A/en
Publication of JPH05143405A publication Critical patent/JPH05143405A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent file access performance from being lowered and to reduce the number of times for a user to secure a file area again in order to cancel the division of the file area by reducing area division to be generated when frequently securing, opening and extending the file area to a magnetic disk medium. CONSTITUTION:When initializing a magnetic disk medium 11, a logical area setting means 13 divides the storage area of the magnetic disk medium 11 into logical areas and prepares a logical area use condition table 12 showing the use conditions of the respective logical areas. When securing the file area, the file area is secured in the logical area in an unused state by referring to the logical area use condition table 12. In this case, when the file area is secured, it is secured for the unit of plural continuous cylinders and therefore, even when the file is frequently secured and opened or even when the file area is frequently extended automatically by a system, the frequency of the file area division can be reduced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、磁気ディスク媒体に対
するファイルアロケーション方式に関し、特に、磁気デ
ィスク媒体の記憶領域を論理的に分割し、それぞれの論
理領域単位にファイル領域を確保するファイルアロケー
ション方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file allocation method for a magnetic disk medium, and more particularly to a file allocation method for logically dividing a storage area of a magnetic disk medium and securing a file area for each logical area unit. ..

【0002】[0002]

【従来の技術】従来、利用者が磁気ディスク媒体にファ
イル領域を確保した場合は、磁気ディスク媒体のシリン
ダ番号の小さい方から領域が使用されるため、複数のフ
ァイル領域を確保した後の磁気ディスクには、大きさの
異なるファイル領域が隣接して存在する。
2. Description of the Related Art Conventionally, when a user secures a file area on a magnetic disk medium, the area is used from the smaller cylinder number of the magnetic disk medium, so that the magnetic disk after securing a plurality of file areas. Have file areas of different sizes adjacent to each other.

【0003】したがって、ファイル領域がオペレーティ
ングシステムにより自動的に拡張された場合は、拡張が
隣接した領域に行われないことがあり、物理的に離れた
位置に領域確保されているファイルを、論理的に1つの
ファイルとして扱う必要が生じる。
Therefore, when the file area is automatically expanded by the operating system, the expansion may not be performed in an adjacent area, and a file that is physically reserved in an area is logically allocated. It becomes necessary to handle it as one file.

【0004】また、ファイル領域の確保および開放が頻
繁に行われる磁気ディスク媒体では、上述したような、
領域が複数に分割されたファイルが多数存在することに
なる。
Further, in the magnetic disk medium in which the file area is frequently reserved and released, as described above,
This means that there are many files whose areas are divided into multiple parts.

【0005】領域が複数に分割されたファイルが磁気デ
ィスクに多数存在するようになった場合、利用者は、フ
ァイルを一度、磁気テープ等の記憶媒体に退避し、磁気
ディスクのファイル削除あるいは磁気ディスクの初期化
を行った後、ファイル領域を再度確保し、退避した媒体
から磁気ディスク媒体へファイルの内容を復元すること
で、ファイルの領域分割を解消していた。
When a large number of files whose areas are divided into a plurality of areas are present on a magnetic disk, the user once saves the file to a storage medium such as a magnetic tape, deletes the file from the magnetic disk, or deletes the magnetic disk. After initializing, the file area is secured again and the file contents are restored from the saved medium to the magnetic disk medium to eliminate the file area division.

【0006】[0006]

【発明が解決しようとする課題】上述したとおり、ファ
イル領域の確保、開放および拡張を頻繁に行う磁気ディ
スク媒体には、論理的には1つのファイルであるが、領
域が分割され、物理的に離れた位置に確保されているフ
ァイルが多数存在することになる。
As described above, a magnetic disk medium that frequently reserves, releases, and expands a file area is logically one file, but the area is divided and physically There will be many files that are secured at distant positions.

【0007】したがって、従来は、領域が分割されてい
るファイルが多数存在する磁気ディスク媒体の各々のフ
ァイルのアクセス時は、磁気ディスクの読み書きヘッド
の移動が大きくなり、アクセス性能の低下を引き起こす
という問題点があった。
Therefore, conventionally, when accessing each file of the magnetic disk medium in which a large number of files whose areas are divided exist, the movement of the read / write head of the magnetic disk becomes large and the access performance deteriorates. There was a point.

【0008】また、1つのファイルの領域分割数は限り
があり、分割し過ぎて、再拡張が不可能になる場合があ
った。そのため、利用者は任意の時点で、磁気ディスク
のファイル領域を再度確保し直す必要があり、この作業
にかかる時間が多大であるという問題点もあった。
Further, the number of area divisions of one file is limited, and there are cases where re-expansion becomes impossible due to excessive division. Therefore, the user needs to reallocate the file area of the magnetic disk again at an arbitrary point in time, and there is also a problem that this work takes a lot of time.

【0009】そこで、本発明の技術的課題は、上記欠点
に鑑み、ファイル領域確保のときに、領域確保される各
々のファイルの間に未確保の領域を設け、ファイル領域
拡張時には、隣接して存在する未確保の領域を使用し、
領域分割の発生する頻度を少なくすることで、ファイル
アクセス性能の低下を防ぎ、磁気ディスクのファイル領
域の再確保作業回数を削減するためのファイルアロケー
ション方式を提供することにある。
In view of the above-mentioned drawbacks, the technical problem of the present invention is to provide an unsecured area between each of the files to be secured when the file area is secured, and to contiguously when the file area is expanded. Use the existing unallocated space,
The object of the present invention is to provide a file allocation method for preventing a decrease in file access performance and reducing the number of times of reallocating a file area of a magnetic disk by reducing the frequency of area division.

【0010】[0010]

【課題を解決するための手段】本発明によれば、磁気デ
ィスク媒体に確保したファイルの領域を拡張する機能を
利用するファイルアロケーション方式において、前記磁
気ディスク媒体の記憶領域を連続する複数のシリンダに
分割して、分割された領域の使用状況を記録する論理領
域使用状況テーブルと、前記磁気ディスク媒体の初期化
時に、前記論理領域使用状況テーブルを作成する論理領
域設定手段と、前記磁気ディスク媒体にファイル領域を
確保するときに、前記論理領域使用状況テーブルを参照
して、領域を確保する位置を決定し、当該論理領域使用
状況テーブルを更新する論理領域割り当て手段と、前記
ファイル領域が開放された場合に、前記論理領域使用状
況テーブルを更新する論理領域開放手段とを含むことを
特徴とするファイルアロケーション方式が得られる。
According to the present invention, in the file allocation method utilizing the function of expanding the area of a file secured on a magnetic disk medium, the storage area of the magnetic disk medium is divided into a plurality of consecutive cylinders. A logical area usage table for dividing and recording the usage status of the divided areas, a logical area setting means for creating the logical area usage table at the time of initialization of the magnetic disk medium, and the magnetic disk medium When allocating a file area, the logical area allocating means for deciding a position for allocating the area by referring to the logical area usage status table and updating the logical area usage status table, and the file area are released. In this case, a logical area releasing means for updating the logical area use status table is included. Allocation method can be obtained.

【0011】即ち、本発明のファイルアロケーション方
式は、利用者が磁気ディスク媒体に確保したファイルの
領域が不足したときに、オペレーティングシステムが自
動的に領域を拡張する機能を利用するシステムにおけ
る、利用者がファイル領域を確保する頻度が高く、また
自動的に領域が拡張される頻度が高いファイルが多数存
在する磁気ディスク媒体において、磁気ディスク媒体の
記憶領域を連続する複数のシリンダに分割して、分割さ
れた領域の使用状況を記録する、論理領域使用状況テー
ブルと、磁気ディスク媒体の初期化時に、論理領域使用
状況テーブルを作成する論理領域設定手段と、磁気ディ
スク媒体に利用者がファイル領域を確保するときに、論
理領域使用状況テーブルを参照して、領域を確保する位
置を決定し、論理領域使用状況テーブルを更新する論理
領域割り当て手段と、利用者がファイル領域を開放した
場合に、論理領域使用状況テーブルを更新する論理領域
開放手段とを有する。
That is, according to the file allocation method of the present invention, a user in a system utilizing a function of automatically expanding the area when the area of the file secured by the user on the magnetic disk medium is insufficient. In the magnetic disk medium with a large number of files that frequently reserve the file area and the frequency with which the area is automatically expanded, the storage area of the magnetic disk medium is divided into a plurality of consecutive cylinders. Logical area usage status table that records the usage status of the specified area, logical area setting means that creates the logical area usage status table when the magnetic disk medium is initialized, and the user secures a file area on the magnetic disk medium When you do so, refer to the logical area usage table to determine the position to secure the area, and A logical space allocation means for updating the usage table, when the user opens the file area, and a logic region releasing means for updating the logical space usage table.

【0012】[0012]

【実施例】以下に、本発明の実施例について図面を参照
して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

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

【0014】本実施例のファイルアロケーション方式1
は、磁気ディスク媒体11と、磁気ディスク媒体初期化
手段16と、ファイル領域確保手段17と、ファイル領
域開放手段18とに接続されており、論理領域使用状況
テーブル12と、論理領域設定手段13と、論理領域割
り当て手段14と、論理領域開放手段15とを含んで構
成されている。
File allocation method 1 of this embodiment
Is connected to the magnetic disk medium 11, the magnetic disk medium initializing means 16, the file area securing means 17, and the file area releasing means 18, and the logical area use status table 12 and the logical area setting means 13 are connected. , And a logical area allocating means 14 and a logical area releasing means 15.

【0015】磁気ディスク媒体11は、利用者が、媒体
初期化、ファイル領域の確保および開放を任意に行う記
憶媒体である。
The magnetic disk medium 11 is a storage medium in which the user arbitrarily initializes the medium and secures and releases the file area.

【0016】論理領域使用状況テーブル12は、磁気デ
ィスク媒体11の記憶領域を、連続する複数のシリンダ
を1つの論理領域として、論理領域の使用状況を、使用
あるいは未使用の状態として記憶し、論理領域の確保お
よび開放のときに参照される。
The logical area use status table 12 stores the storage area of the magnetic disk medium 11 as a logical area of a plurality of consecutive cylinders, and stores the use status of the logical area as a used or unused state. It is referred to when allocating and freeing an area.

【0017】論理領域設定手段13は、磁気ディスク媒
体11が磁気ディスク媒体初期化手段16で初期化され
たときに、論理領域使用状況テーブル12の論理領域の
使用の有無を示す使用状況フラグを全て未使用状態にし
て、磁気ディスク媒体11の特定の位置に格納する。
When the magnetic disk medium 11 is initialized by the magnetic disk medium initialization means 16, the logical area setting means 13 sets all usage status flags in the logical area usage status table 12 indicating whether or not the logical area is used. It is set in an unused state and stored in a specific position on the magnetic disk medium 11.

【0018】また、媒体の初期化の際に、利用者は、磁
気ディスク媒体初期化手段16に、論理領域の大きさを
指定し、論理領域設定手段13は、指定された論理領域
の大きさに磁気ディスクの記憶領域を分割し、論理領域
使用状況テーブル12を作成する。
When the medium is initialized, the user specifies the size of the logical area in the magnetic disk medium initializing means 16, and the logical area setting means 13 specifies the size of the specified logical area. The storage area of the magnetic disk is divided into two, and the logical area usage status table 12 is created.

【0019】論理領域割り当て手段14は、利用者がフ
ァイル領域確保手段17を用いて磁気ディスク媒体11
にファイル領域を確保する際に、論理領域使用状況テー
ブル12を参照し、論理領域の使用状況を示すフラグが
未使用状態になっている論理領域を利用者のファイル領
域として割り当てる。
In the logical area allocating means 14, the user uses the file area securing means 17 to make the magnetic disk medium 11
When reserving a file area, the logical area use status table 12 is referred to, and a logical area in which the flag indicating the use status of the logical area is in the unused state is allocated as the user's file area.

【0020】割り当てた後、未使用状態となっているフ
ラグを使用状態に変更し、磁気ディスク媒体11に論理
領域使用状況テーブル12を格納する。
After the allocation, the flag in the unused state is changed to the used state, and the logical area use status table 12 is stored in the magnetic disk medium 11.

【0021】論理領域開放手段15は、利用者が磁気デ
ィスク媒体11に確保されていたファイル領域を開放し
た際に、論理領域使用状況テーブル12を参照し、開放
したファイルが使用していた論理領域の使用状況を示す
フラグを未使用状態に変更し、磁気ディスク媒体11に
論理領域使用状況テーブル12を格納する。
The logical area releasing means 15 refers to the logical area use status table 12 when the user releases the file area secured in the magnetic disk medium 11, and refers to the logical area used by the released file. The flag indicating the usage status of the logical area is changed to the unused status, and the logical area usage status table 12 is stored in the magnetic disk medium 11.

【0022】磁気ディスク媒体初期化手段16は、磁気
ディスク媒体11の記憶領域に格納されていたファイル
およびデータを削除し、初期化後、論理領域設定手段1
3を呼び出し、論理領域使用状況テーブル12の作成を
要求する。
The magnetic disk medium initialization means 16 deletes the files and data stored in the storage area of the magnetic disk medium 11, and after initialization, the logical area setting means 1
3 is requested to request the creation of the logical area usage status table 12.

【0023】ファイル領域確保手段17は、利用者が磁
気ディスク媒体11に対してファイルの割り当てを要求
したときに、割り当てる大きさを論理領域割り当て手段
14に渡して、論理領域の割り当てを要求する。
When the user requests the magnetic disk medium 11 to allocate a file, the file area reserving means 17 passes the allocated size to the logical area allocating means 14 to request the allocation of the logical area.

【0024】その後、論理領域割り当て手段14から割
り当てられた論理領域の物理位置を得て、ファイル領域
を割り当てる。
After that, the physical area of the allocated logical area is obtained from the logical area allocation means 14 and the file area is allocated.

【0025】ファイル領域開放手段18は、磁気ディス
ク媒体11に領域確保されているファイルに対して利用
者が領域の開放を要求したときに、ファイル領域を開放
した後、開放した領域の物理位置を論理領域開放手段1
5に通知し、論理領域の開放を要求する。
The file area releasing means 18 releases the file area when the user requests the release of the area for the file secured in the magnetic disk medium 11 and then determines the physical position of the released area. Logical area releasing means 1
5 is requested to request the release of the logical area.

【0026】図2は、図1における、論理領域使用状況
テーブル12の構成と、論理領域使用状況テーブル12
と磁気ディスク媒体11の論理領域の関係を示す図であ
る。
FIG. 2 shows the configuration of the logical area use status table 12 and the logical area use status table 12 shown in FIG.
FIG. 3 is a diagram showing the relationship between the logical areas of the magnetic disk medium 11 and the magnetic disk medium 11.

【0027】図2において、論理領域使用状況テーブル
21は図1における論理領域使用状況テーブル12に対
応し、磁気ディスク25は図1における磁気ディスク媒
体11に対応する。
In FIG. 2, the logical area usage status table 21 corresponds to the logical area usage status table 12 in FIG. 1, and the magnetic disk 25 corresponds to the magnetic disk medium 11 in FIG.

【0028】論理領域使用状況テーブル21は、論理領
域の番号22と、論理領域に対応する磁気ディスクの物
理位置23と、論理領域使用状況のフラグ24から構成
されており、磁気ディスク25に格納される。
The logical area usage status table 21 is composed of a logical area number 22, a magnetic disk physical position 23 corresponding to the logical area, and a logical area usage status flag 24, and is stored in the magnetic disk 25. It

【0029】論理領域の番号22には、磁気ディスク2
5の初期化時に分割した論理領域に対して1から昇順に
連番が付与される。
The magnetic disk 2 is assigned to the logical area number 22.
Serial numbers are assigned in ascending order from 1 to the logical areas divided at the time of initialization of 5.

【0030】物理位置23には、分割されたそれぞれの
論理領域に割り当てられた磁気ディスクの先頭位置と最
終位置が格納される。
The physical position 23 stores the start position and the end position of the magnetic disk assigned to each of the divided logical areas.

【0031】論理領域使用状況フラグ24には、論理領
域の使用状況が、使用あるいは未使用の2つのいずれか
の状態として格納される。
In the logical area usage status flag 24, the usage status of the logical area is stored as one of two statuses, used and unused.

【0032】次に、図1のように構成された本実施例の
ファイルアロケーション方式について、磁気ディスク媒
体11の初期化、ファイル領域の確保、ファイル領域の
開放の順に説明する。
Next, the file allocation method of the present embodiment configured as shown in FIG. 1 will be described in the order of initialization of the magnetic disk medium 11, securing of the file area, and release of the file area.

【0033】磁気ディスク媒体11の初期化時、磁気デ
ィスク媒体初期化手段16により、従来の初期化処理と
共に、論理領域設定手段13による論理領域使用状況テ
ーブル12の初期化が行われる。
When the magnetic disk medium 11 is initialized, the magnetic disk medium initializing means 16 initializes the logical area use status table 12 by the logical area setting means 13 together with the conventional initialization processing.

【0034】論理領域使用状況テーブル12の初期化
は、最初に論理領域の分割から行われる。論理領域の大
きさは、利用者が磁気ディスク媒体11の初期化を行う
ときに指定する。
Initialization of the logical area usage table 12 is performed by first dividing the logical area. The size of the logical area is specified by the user when the magnetic disk medium 11 is initialized.

【0035】論理領域設定手段13は、利用者の指定し
た論理領域の大きさで、磁気ディスクの記憶領域を分割
し、分割した論理領域の先頭位置と最終位置を論理領域
使用状況テーブル12の物理位置23の格納領域に格納
し、論理領域使用状況のフラグ24を未使用状態にす
る。
The logical area setting means 13 divides the storage area of the magnetic disk by the size of the logical area specified by the user, and the start position and the final position of the divided logical area are stored in the physical area of the logical area use state table 12. The flag is stored in the storage area at the position 23, and the logical area use status flag 24 is set to the unused state.

【0036】論理領域設定手段13は、分割した論理領
域全てについて、論理領域の物理位置23、および論理
領域使用状況のフラグ24を格納した後、論理領域使用
状況テーブル12を磁気ディスク媒体11に書き込む。
The logical area setting means 13 stores the physical position 23 of the logical area and the logical area usage flag 24 for all the divided logical areas, and then writes the logical area usage table 12 to the magnetic disk medium 11. ..

【0037】利用者が磁気ディスク媒体11にファイル
領域を確保するとき、ファイル領域確保手段17は、従
来のファイル領域確保の前に、論理領域割り当て手段1
4に、確保する論理領域の決定を要求する。
When the user reserves the file area on the magnetic disk medium 11, the file area securing means 17 performs the logical area allocating means 1 before the conventional file area securing.
4 is required to determine the logical area to be secured.

【0038】論理領域割り当て手段14は、利用者がフ
ァイル確保時に指定したファイルの大きさから論理領域
の数を求める。例えば、磁気ディスク媒体11の初期化
時に、論理領域の大きさを10シリンダと設定し、5シ
リンダのファイル領域を確保する場合は、必要な論理領
域は1つであり、15シリンダのファイル領域を確保す
る場合は、必要な論理領域は2つであると判断する。
The logical area allocating means 14 obtains the number of logical areas from the size of the file designated by the user when allocating the file. For example, when the size of the logical area is set to 10 cylinders and the file area of 5 cylinders is secured when the magnetic disk medium 11 is initialized, the required logical area is 1 and the file area of 15 cylinders is set. When securing, it is determined that the required logical area is two.

【0039】次に、論理領域割り当て手段14は、論理
領域が必要な数だけ確保できるかを、論理領域使用状況
テーブル12を参照して調べる。
Next, the logical area allocating means 14 checks whether or not the required number of logical areas can be secured by referring to the logical area usage status table 12.

【0040】論理領域割り当て手段14により、論理領
域使用状況テーブル12の使用状況のフラグが未使用状
態となっている論理領域が選択される。
The logical area allocating means 14 selects a logical area in which the usage status flag of the logical area usage status table 12 is in an unused state.

【0041】次に論理領域割り当て手段14は、選択さ
れた論理領域に対する、磁気ディスク媒体11の物理位
置を論理領域使用状況テーブル12の物理位置23の値
を参照することにより得た後、ファイル領域確保手段1
7に渡し、ファイル領域確保手段17はファイル領域を
確保する。
Next, the logical area allocating means 14 obtains the physical position of the magnetic disk medium 11 with respect to the selected logical area by referring to the value of the physical position 23 of the logical area usage status table 12, and then the file area. Securing means 1
7, and the file area securing means 17 secures the file area.

【0042】ファイル領域が確保されたあと、ファイル
領域確保手段17は、使用した論理領域に対応する論理
領域の使用状況のフラグ24を使用状態に変更した後、
論理領域使用状況テーブル12を磁気ディスク媒体11
に格納する。
After the file area is secured, the file area securing means 17 changes the usage status flag 24 of the logical area corresponding to the used logical area to the usage status,
The logical area usage table 12 is stored in the magnetic disk medium 11
To store.

【0043】ファイル領域確保手段17により確保され
た領域が論理領域より小さい場合は、論理領域の大きさ
と、ファイル領域の大きさの差が未使用の領域となり、
その後、ファイルの拡張が必要となった場合は、論理領
域の大きさまでは、隣接して拡張が可能となり、ファイ
ル領域の分割の頻度を低くおさえることができる。
When the area secured by the file area securing means 17 is smaller than the logical area, the difference between the size of the logical area and the size of the file area becomes an unused area,
After that, when it becomes necessary to expand the file, it is possible to expand adjacently depending on the size of the logical area, and the frequency of dividing the file area can be suppressed.

【0044】例えば、論理領域の大きさを10シリンダ
として論理領域使用状況テーブル12を作成し、5シリ
ンダのファイルを確保した場合、残りの5シリンダまで
の拡張は隣接した領域に確保できる。
For example, when the logical area usage table 12 is created with the size of the logical area being 10 cylinders and a file of 5 cylinders is secured, the extension up to the remaining 5 cylinders can be secured in the adjacent area.

【0045】また13シリンダのファイルを確保した場
合、論理領域は2つ必要となるが、2つめの論理領域の
残り7シリンダまでは隣接した領域を確保できる。
When a file of 13 cylinders is secured, two logical areas are needed, but adjacent areas can be secured up to the remaining 7 cylinders of the second logical area.

【0046】ここで、後述のファイルの場合、8シリン
ダめの拡張は、さらに論理領域を確保することになり、
確保後は、3つめの論理領域の大きさである10シリン
ダまで隣接して拡張できる。
Here, in the case of the file described later, the expansion of the 8th cylinder means that an additional logical area is secured,
After the allocation, it can be expanded adjacently up to 10 cylinders, which is the size of the third logical area.

【0047】利用者がファイル領域を開放する時は、フ
ァイル領域開放手段18がファイル領域を開放した後、
ファイルが領域確保されていた磁気ディスク媒体11の
物理位置が論理領域開放手段15に通知される。
When the user releases the file area, after the file area releasing means 18 releases the file area,
The logical area releasing means 15 is notified of the physical position of the magnetic disk medium 11 in which the area of the file is secured.

【0048】論理領域開放手段15は、通知された磁気
ディスク媒体11の物理位置に一致する物理位置を論理
領域使用状況テーブル12から探し、対応する論理領域
を求める。
The logical area releasing means 15 searches the logical area use status table 12 for a physical position that matches the notified physical position of the magnetic disk medium 11 and obtains a corresponding logical area.

【0049】論理領域開放手段15は、求められた論理
領域に対応する、論理領域使用状況のフラグ24を未使
用状態に変更し、論理領域使用状況テーブル12を磁気
ディスク媒体11に格納する。
The logical area releasing means 15 changes the logical area use status flag 24 corresponding to the obtained logical area to an unused state, and stores the logical area use status table 12 in the magnetic disk medium 11.

【0050】未使用状態となった論理領域は、次回のフ
ァイル領域確保時に、ファイル領域確保手段17により
領域確保することが可能となる。
The unused logical area can be secured by the file area securing means 17 when the file area is secured next time.

【0051】[0051]

【発明の効果】以上説明したように本発明によれば、磁
気ディスク媒体に対してファイル領域を確保した場合、
磁気ディスクのシリンダ単位ではなく、連続する複数の
シリンダ単位で確保されるため、ファイルの確保および
開放が頻繁に発生した場合、あるいはファイル領域の自
動拡張がシステムにより頻繁に行われた場合でも、ファ
イル領域が分割される頻度を少なくすることが可能で、
ファイルのアクセス性能の低下を防ぐという効果があ
る。
As described above, according to the present invention, when a file area is secured for a magnetic disk medium,
Files are secured in units of multiple consecutive cylinders, not in units of magnetic disk cylinders, so even if files are frequently reserved and released, or even if the system automatically expands the file area frequently, It is possible to reduce the frequency of dividing the area,
This has the effect of preventing a decrease in file access performance.

【0052】また、ファイル領域が分割される頻度が少
なくなるため、領域が分割されたファイルの領域を開放
し、再確保するといった利用者の作業回数が削減される
という効果がある。
Further, since the frequency of dividing the file area is reduced, there is an effect that the number of user's work such as releasing and reallocating the area of the divided file is reduced.

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

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

【図2】図1における、論理領域使用状況テーブル12
の構成と、論理領域使用状況テーブル12と磁気ディス
ク媒体11の論理領域との関連図である。
FIG. 2 is a logical area use status table 12 in FIG.
3 is a diagram showing the relationship between the logical area usage state table 12 and the logical area of the magnetic disk medium 11 of FIG.

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

11 磁気ディスク媒体 12 論理領域使用状況テーブル 13 論理領域設定手段 14 論理領域割り当て手段 15 論理領域開放手段 16 磁気ディスク媒体初期化手段 17 ファイル領域確保手段 18 ファイル領域開放手段 21 論理領域使用状況テーブル 25 磁気ディスク 11 magnetic disk medium 12 logical area use status table 13 logical area setting means 14 logical area allocating means 15 logical area releasing means 16 magnetic disk medium initializing means 17 file area securing means 18 file area releasing means 21 logical area use status table 25 magnetic disk

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 磁気ディスク媒体に確保したファイルの
領域を拡張する機能を利用するファイルアロケーション
方式において、 前記磁気ディスク媒体の記憶領域を連続する複数のシリ
ンダに分割して、分割された領域の使用状況を記録する
論理領域使用状況テーブルと、 前記磁気ディスク媒体の初期化時に、前記論理領域使用
状況テーブルを作成する論理領域設定手段と、 前記磁気ディスク媒体にファイル領域を確保するとき
に、前記論理領域使用状況テーブルを参照して、領域を
確保する位置を決定し、当該論理領域使用状況テーブル
を更新する論理領域割り当て手段と、 前記ファイル領域が開放された場合に、前記論理領域使
用状況テーブルを更新する論理領域開放手段とを含むこ
とを特徴とするファイルアロケーション方式。
1. A file allocation method utilizing a function of expanding a file area secured on a magnetic disk medium, wherein a storage area of the magnetic disk medium is divided into a plurality of continuous cylinders, and the divided areas are used. A logical area usage status table for recording the status; a logical area setting means for creating the logical area usage status table at the time of initialization of the magnetic disk medium; and a logical area setting means for securing a file area on the magnetic disk medium. A logical area allocating unit that refers to the area usage status table to determine the position to secure the area and updates the logical area usage status table; and, when the file area is released, stores the logical area usage status table. A file allocation method including a logical area releasing means for updating.
JP3304926A 1991-11-20 1991-11-20 File allocation system Withdrawn JPH05143405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3304926A JPH05143405A (en) 1991-11-20 1991-11-20 File allocation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3304926A JPH05143405A (en) 1991-11-20 1991-11-20 File allocation system

Publications (1)

Publication Number Publication Date
JPH05143405A true JPH05143405A (en) 1993-06-11

Family

ID=17938979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3304926A Withdrawn JPH05143405A (en) 1991-11-20 1991-11-20 File allocation system

Country Status (1)

Country Link
JP (1) JPH05143405A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08234918A (en) * 1995-02-22 1996-09-13 Hokkaido Nippon Denki Software Kk File allocation system for mzr system magnetic disk device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08234918A (en) * 1995-02-22 1996-09-13 Hokkaido Nippon Denki Software Kk File allocation system for mzr system magnetic disk device

Similar Documents

Publication Publication Date Title
US6014730A (en) Dynamic adding system for memory files shared among hosts, dynamic adding method for memory files shared among hosts, and computer-readable medium recording dynamic adding program for memory files shared among hosts
US5706472A (en) Method for manipulating disk partitions
JPH07175698A (en) File system
US20100205397A1 (en) Method and apparatus for allocating resources in a computer system
JPH11191267A (en) Method for allotting disk memory space and memory medium for storing compressed data record
US6507902B1 (en) Dynamic RAM disk
US7577159B2 (en) Method, device, system and program for time-series data management
EP0694831A2 (en) Computer system having storage unit provided with data compression function andmethod of management of storage area thereof
JP3609841B2 (en) File management device
JPH07325669A (en) Disk controlling method
JPH05143405A (en) File allocation system
US20050108269A1 (en) Device for storing data and method for dividing space for data storing
JPH07261938A (en) Storage control method and disk system with compressing function using the storage control method
US6574704B1 (en) Information storage management device and method, control device and method
JPH06110759A (en) File system
JP3988417B2 (en) Computer system, storage device, file arrangement method, and file arrangement program
JPH0581091A (en) Data processor
CN112052217B (en) Snapshot implementation method and device
JP2817777B2 (en) Secondary storage partition change method
JPH05197599A (en) File space management system
JP2839004B2 (en) How to extend partition area
US10599366B2 (en) Method and system for thick files in a distributed file system
KR100651383B1 (en) RECODING MEDIA USING METHOD OF pSOS EMBEDDED SYSTEM
JPS62163154A (en) Virtual logic volume system
JPH0869403A (en) File management device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990204