JPH0887433A - File system block management system - Google Patents

File system block management system

Info

Publication number
JPH0887433A
JPH0887433A JP6225192A JP22519294A JPH0887433A JP H0887433 A JPH0887433 A JP H0887433A JP 6225192 A JP6225192 A JP 6225192A JP 22519294 A JP22519294 A JP 22519294A JP H0887433 A JPH0887433 A JP H0887433A
Authority
JP
Japan
Prior art keywords
file
block
data
storage area
data block
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
JP6225192A
Other languages
Japanese (ja)
Inventor
Hideo Ishida
英雄 石田
Yasunori Kawakami
泰範 川上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6225192A priority Critical patent/JPH0887433A/en
Publication of JPH0887433A publication Critical patent/JPH0887433A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To suppress the generation of an unnecessary storage area while speeding up input to and output from a disk storage device for a large-volume file. CONSTITUTION: A file system generating means 1 provides data block storage areas 102 and 103 for a disk storage device 101; and blocks b1-b5 of small size are generated in the data block storage area 102 and blocks b6-b10 of large size are generated in the data block storage area 103. A free block allocating means 2 when allocates necessary blocks so as to store file data inspects the kind of the file and decides which of the blocks of large size in the data block storage area 103 and the blocks of small size in the data block storage area 102 should be allocated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はディスク記憶装置を使用
するファイルシステムのブロック管理システムに関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file system block management system using a disk storage device.

【0002】[0002]

【従来の技術】第3図、第4図を用いて従来のファイル
システムのブロック管理方式における動作を示す。
2. Description of the Related Art The operation of a conventional file system block management system will be described with reference to FIGS.

【0003】第3図は、ディスク記憶装置101にデー
タブロック記憶領域102を割り当て、データブロック
記憶領域102に4Kバイトの固定長サイズのブロック
b1からb10を作成したファイルシステムに対して、
3KバイトのサイズのディレクトリファイルF1と16
Kバイトのサイズの画像ファイルF2を作成した場合の
データ構成図である。
FIG. 3 shows a file system in which a data block storage area 102 is allocated to a disk storage device 101 and blocks b1 to b10 having a fixed length of 4 Kbytes are created in the data block storage area 102.
Directory files F1 and 16 with a size of 3 Kbytes
FIG. 9 is a data configuration diagram when an image file F2 having a size of K bytes is created.

【0004】データ構造体index1とindex2
は各々ファイルF1とF2のサイズ、ファイルの種別、
ファイルが使用しているブロックのブロック番号を記憶
するものとする。
Data structures index1 and index2
Are the sizes of files F1 and F2, file types,
The block number of the block used by the file shall be stored.

【0005】ディレクトリファイルF1は3Kバイトの
サイズなので、データブロック記憶領域102からブロ
ックb1の1ブロック分が割り当てられ、データ構造体
index1はブロックb1のブロック番号を記憶す
る。
Since the directory file F1 has a size of 3 Kbytes, one block of the block b1 is allocated from the data block storage area 102, and the data structure index1 stores the block number of the block b1.

【0006】画像ファイルF2は16Kバイトのサイズ
なので、データブロック記憶領域102からブロックb
2、b3、b4、b5の4ブロック分が割り当てられ、
データ構造体index2はブロックb2、b3、b
4、b5のブロック番号を記憶する。
Since the image file F2 has a size of 16 Kbytes, the block b is stored in the data block storage area 102.
4 blocks of 2, b3, b4, b5 are allocated,
The data structure index2 has blocks b2, b3, and b.
The block numbers 4 and b5 are stored.

【0007】ブロックb1からb5は全て4Kバイトな
ので、この時に生じる無駄な領域の総計は、ブロックb
1に含まれる1Kバイトとなる。
Since blocks b1 to b5 are all 4 Kbytes, the total wasteful area generated at this time is block b.
It is 1K bytes included in 1.

【0008】また、画像ファイルF2の全データを読み
出す場合は、ブロックb2、b3、b4、b5を読み出
すので、ディスク記憶装置101に対して4Kバイト単
位の読みだしを4回実行することになる。
Further, when reading all the data of the image file F2, the blocks b2, b3, b4, and b5 are read, so that the reading of 4 Kbyte unit is executed four times to the disk storage device 101.

【0009】第4図は、ディスク記憶装置101にデー
タブロック記憶領域102を割り当て、データブロック
記憶領域102に16Kバイトの固定長サイズのブロッ
クb1からb5を作成したファイルシステムに対して、
3KバイトのサイズのディレクトリファイルF1と16
Kバイトのサイズの画像ファイルF2を作成した場合の
データ構成図である。
FIG. 4 shows a file system in which a data block storage area 102 is allocated to the disk storage device 101 and blocks b1 to b5 having a fixed length of 16 Kbytes are created in the data block storage area 102.
Directory files F1 and 16 with a size of 3 Kbytes
FIG. 9 is a data configuration diagram when an image file F2 having a size of K bytes is created.

【0010】ディレクトリファイルF1は3Kバイトの
サイズなので、データブロック記憶領域102からブロ
ックb1の1ブロック分が割り当てられ、データ構造体
index1はブロックb1のブロック番号を記憶す
る。
Since the directory file F1 has a size of 3 Kbytes, one block of the block b1 is allocated from the data block storage area 102, and the data structure index1 stores the block number of the block b1.

【0011】画像ファイルF2は16Kバイトのサイズ
なので、データブロック記憶領域102からブロックb
2の1ブロック分が割り当てられ、データ構造体ind
ex2はブロックb2のブロック番号を記憶する。
Since the image file F2 has a size of 16 Kbytes, the block b is stored in the data block storage area 102.
1 block of 2 is allocated, and the data structure ind
ex2 stores the block number of the block b2.

【0012】ブロックb1からb2は全て16Kバイト
なので、この時に生じる無駄な領域の総計は、ブロック
b1に含まれる13Kバイトとなる。
Since blocks b1 to b2 are all 16 Kbytes, the total wasteful area generated at this time is 13 Kbytes included in block b1.

【0013】また、画像ファイルF2の全データを読み
出す場合は、ブロックb2を読み出すので、ディスク記
憶装置101に対して16Kバイト単位の読みだしを1
回実行することになる。
Further, when reading all the data of the image file F2, the block b2 is read, so that reading in 16 Kbyte units to the disk storage device 101 is performed by one.
Will be executed once.

【0014】[0014]

【発明が解決しようとする課題】上記のような従来のフ
ァイルシステムでは、ディスク記憶装置への入出力を行
なうアクセス単位であるブロック・サイズは1種類しか
ない。
In the conventional file system as described above, there is only one type of block size which is an access unit for performing input / output to / from the disk storage device.

【0015】このため、ブロックサイズを大きくする
と、ファイルの最後の部分を記憶しているブロックの無
駄な領域が大きくなるため、ディスク記憶装置の利用率
が下がってしまうという問題点を有していた。
For this reason, if the block size is increased, the useless area of the block storing the last part of the file becomes large, and the utilization rate of the disk storage device decreases. .

【0016】また、ブロックサイズを小さくすると、大
容量のファイルへデータをアクセスする際に、小さいブ
ロックサイズ単位でディスク記憶装置への入出力を頻繁
に繰り返すため、システムに対して高負荷が発生した
り、大容量ファイルのディスク記憶装置への入出力を高
速化出来ない、すなわちファイルの入出力性能が上がら
ないという問題点を有していた。
Further, if the block size is made small, when accessing data to a large capacity file, input / output to / from the disk storage device is frequently repeated in units of a small block size, resulting in a heavy load on the system. In addition, there is a problem that the input / output of a large capacity file to the disk storage device cannot be speeded up, that is, the input / output performance of the file cannot be improved.

【0017】本発明は、従来のファイルシステムのこの
ような課題を考慮し、ディスク記憶装置の利用率を従来
に比べてより一層向上させるとともに、ファイルの入出
力性能もより一層向上させることを可能とするファイル
システムのブロック管理システムを提供することを目的
とする。
In consideration of such problems of the conventional file system, the present invention can further improve the utilization rate of the disk storage device as compared with the conventional one and further improve the file input / output performance. An object of the present invention is to provide a block management system for a file system.

【0018】[0018]

【課題を解決するための手段】請求項1の本発明は、複
数のファイルデータを記憶するディスク記憶装置と、前
記ディスク記憶装置の記憶領域を分割して複数のデータ
ブロック記憶領域を作成し、各々の前記データブロック
記憶領域を各々別の固定長サイズのブロックに分割して
未使用ブロック群を作成するファイルシステム作成手段
と、前記ファイルデータを記憶するための前記ブロック
を割り当てる場合、前記複数のデータブロック記憶領域
の内、何れのデータブロック記憶領域を使用すべきかを
示すデータブロック記憶領域情報を得て、その情報に基
づいて前記割り当てを行なうフリーブロック割り当て手
段と、前記ファイルデータを前記ディスク記憶装置に対
して入力及び/又は前記ディスク記憶装置から出力する
場合は、前記フリーブロック割り当て手段により割り当
てられたブロックの前記サイズの単位に基づいて前記入
力及び/又は出力を行なうファイルデータ入出力手段
と、を備えたファイルシステムのブロック管理システム
である。
According to a first aspect of the present invention, a disk storage device for storing a plurality of file data and a storage area of the disk storage device are divided to create a plurality of data block storage areas. File system creating means for creating an unused block group by dividing each of the data block storage areas into blocks of a different fixed length size, and allocating the blocks for storing the file data, Of the data block storage areas, data block storage area information indicating which data block storage area should be used is obtained, and free block allocation means for performing the allocation based on this information, and the file data are stored in the disk storage area. When inputting to and / or outputting from the disk storage device, , And file data input-output means for the input and / or output based on the unit of the size of the allocated block by block allocation means is a file system block management system with a.

【0019】請求項2の本発明は、上記データファイル
には、そのデータサイズ及び/又はそのファイルの種別
を示すファイル属性情報が付されており、前記フリーブ
ロック割り当て手段は、前記ブロックを割り当てる場
合、前記何れのデータブロック記憶領域を使用すべきか
を前記ファイル属性情報に基づいて、判定する判定基準
を備えており、前記データブロック記憶領域情報を得て
とは、その判定基準を利用して前記データブロック記憶
領域情報を得ることであるファイルシステムのブロック
管理システムである。
According to the present invention of claim 2, file attribute information indicating the data size and / or the type of the file is attached to the data file, and the free block allocating means allocates the block. , Which of the data block storage areas should be used based on the file attribute information is provided, and obtaining the data block storage area information is performed using the determination criteria. It is a block management system of a file system which is to obtain data block storage area information.

【0020】[0020]

【作用】本発明では、ディスク記憶装置が複数のファイ
ルデータを記憶し、ファイルシステム作成手段が前記デ
ィスク記憶装置の記憶領域を分割して複数のデータブロ
ック記憶領域を作成し、各々の前記データブロック記憶
領域を各々別の固定長サイズのブロックに分割して未使
用ブロック群を作成し、フリーブロック割り当て手段が
前記ファイルデータの格納される前記ブロックを割り当
てる場合、前記複数のデータブロック記憶領域の内、何
れのデータブロック記憶領域を使用すべきかを示すデー
タブロック記憶領域情報を得て、その情報に基づいて前
記割り当てを行ない、ファイルデータ入出力手段が前記
ファイルデータを前記ディスク記憶装置に対して入力及
び/又は前記ディスク記憶装置から出力する場合は、前
記フリーブロック割り当て手段により割り当てられたブ
ロックの前記サイズの単位に基づいて前記入力及び/又
は前記出力を行なう。
According to the present invention, the disk storage device stores a plurality of file data, the file system creating means divides the storage area of the disk storage device to create a plurality of data block storage areas, and each of the data blocks is stored. When the storage area is divided into blocks each having a fixed length size to create an unused block group, and the free block allocating unit allocates the block in which the file data is stored, among the plurality of data block storage areas , Data block storage area information indicating which data block storage area is to be used, the allocation is performed based on the information, and file data input / output means inputs the file data to the disk storage device. And / or the free block when outputting from the disk storage device. Wherein the input and / or performing the output on the basis of a unit of the size of the block allocated by blowing members Ri.

【0021】[0021]

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

【0022】図1は、本発明の一実施例のファイルシス
テムのブロック管理システムの構成図を示すものであ
り、同図を用いて本実施例の構成を述べる。
FIG. 1 shows a block diagram of a block management system of a file system according to an embodiment of the present invention, and the configuration of the present embodiment will be described with reference to FIG.

【0023】図1において、1はファイルシステム作成
手段、2はフリーブロック割り当て手段、3はファイル
データ入出力手段、4はファイル入出力を行なうプログ
ラム、101はディスク記憶装置、102と103はデ
ィスク記憶装置101の記憶領域を分割してできたデー
タブロック記憶領域、b1とb2とb3とb4とb5は
データブロック記憶領域102のブロック、b6とb7
とb8とb9とb10はデータブロック記憶領域103
のブロックである。
In FIG. 1, 1 is a file system creating means, 2 is a free block allocating means, 3 is file data input / output means, 4 is a program for inputting / outputting files, 101 is a disk storage device, and 102 and 103 are disk storages. A data block storage area formed by dividing the storage area of the device 101, b1, b2, b3, b4, and b5 are blocks of the data block storage area 102, and b6 and b7.
And b8, b9, and b10 are data block storage areas 103
Is a block.

【0024】ファイルシステム作成手段1は、オペレー
タからの指示により、ディスク記憶装置101にデータ
ブロック記憶領域102と103を割り当て、データブ
ロック記憶領域102には4Kバイトの固定長サイズの
ブロックb1からb5を、データブロック記憶領域10
3には16Kバイトの固定長サイズのブロックb6から
b10までを備えたファイルシステムを作成する。
The file system creating means 1 allocates the data block storage areas 102 and 103 to the disk storage device 101 according to an instruction from the operator, and the blocks b1 to b5 having a fixed length of 4 Kbytes are allocated to the data block storage area 102. , Data block storage area 10
In 3, a file system including blocks b6 to b10 having a fixed length size of 16 Kbytes is created.

【0025】図2は、図1で作成したファイルシステム
に対して3KバイトのサイズのディレクトリファイルF
1と16Kバイトのサイズの画像ファイルF2を作成し
た時のデータ構成図を示すものであり、同図を用いて本
実施例の動作を説明する。
FIG. 2 shows a directory file F having a size of 3 Kbytes for the file system created in FIG.
FIG. 6 is a data configuration diagram when an image file F2 having a size of 1 and 16 Kbytes is created, and the operation of this embodiment will be described with reference to the diagram.

【0026】ここで、データ構造体index1とin
dex2は、各々、ファイルF1とF2のサイズ、ファ
イルの種別、ファイルが使用しているブロックのブロッ
ク番号を記憶するものとする。
Here, the data structures index1 and in
It is assumed that dex2 stores the sizes of the files F1 and F2, the file type, and the block number of the block used by the file.

【0027】本発明のファイル属性情報は、例えば、フ
ァイルのサイズや、ディレクトリファイルであるとか画
像ファイルであるといったファイルの種別等、いわゆる
ファイルの属性に関する情報のことであるが、本実施例
では、上記ファイルの種別のみに着目して、本発明のフ
ァイル属性情報として用いる場合について説明する。
The file attribute information of the present invention is, for example, information about so-called file attributes such as file size and file type such as directory file or image file. In this embodiment, Focusing only on the type of the file, the case of using it as the file attribute information of the present invention will be described.

【0028】すなわち、フリーブロック割り当て手段2
は、ファイル種別がディレクトリのファイルに対しては
データブロック記憶領域102を対応させ、ファイル種
別が画像のファイルに対してはデータブロック記憶領域
103を対応させるという判定基準を備えている。
That is, the free block allocation means 2
Has a determination criterion that a data block storage area 102 is associated with a file whose file type is a directory, and a data block storage area 103 is associated with a file whose image is a file type.

【0029】プログラム4がディレクトリファイルF1
を作成する場合には、フリーブロック割り当て手段2
は、ディレクトリファイルF1の種別を検査してディレ
クトリであると識別し、上記判定基準に従って、対応す
るデータブロック記憶領域102から未使用のブロック
b1の1ブロック分を割り当て、データ構造体inde
x1はブロックb1のブロック番号を記憶する。
Program 4 is directory file F1
Free block allocation means 2 when creating
Checks the type of the directory file F1 to identify it as a directory, and allocates one block of the unused block b1 from the corresponding data block storage area 102 according to the above-mentioned determination criteria, and the data structure inde
x1 stores the block number of the block b1.

【0030】そして、プログラム4がディレクトリファ
イルF1をアクセスする際には、ファイルデータ入出力
手段3がディレクトリファイルF1の種別を検査し、ブ
ロックサイズが4Kバイトであると判断し、4Kバイト
単位でディスク記憶装置101に入出力を実行する。
When the program 4 accesses the directory file F1, the file data input / output unit 3 inspects the type of the directory file F1 and determines that the block size is 4 Kbytes. Input / output is performed in the storage device 101.

【0031】次に、プログラム4が画像ファイルF2を
作成する場合には、フリーブロック割り当て手段2は画
像ファイルF2の種別を検査して画像であると識別し、
上記判定基準に従って、対応するデータブロック記憶領
域103からブロックb6の1ブロック分を割り当て、
データ構造体index2はブロックb6のブロック番
号を記憶する。
Next, when the program 4 creates the image file F2, the free block allocation means 2 inspects the type of the image file F2 and identifies it as an image,
According to the above determination criteria, one block of the block b6 is allocated from the corresponding data block storage area 103,
The data structure index2 stores the block number of the block b6.

【0032】そして、プログラム5が画像ファイルF2
をアクセスする際には、ファイルデータ入出力手段3が
画像ファイルF2の種別を検査し、ブロックサイズが1
6Kバイトであると判断し、16Kバイト単位でディス
ク記憶装置101に入出力を実行する。
Then, the program 5 sends the image file F2.
When accessing, the file data input / output unit 3 inspects the type of the image file F2, and the block size is 1
It is determined to be 6 Kbytes, and input / output is performed to the disk storage device 101 in units of 16 Kbytes.

【0033】以上のように本実施例によれば、ディレク
トリファイルF1に対しては4Kバイトサイズのブロッ
クを使用するので、生じる無駄な領域の総計は、ブロッ
クb1に含まれる1Kバイトサイズとなる。また、画像
ファイルF2に対しては16Kバイトサイズのブロック
を使用するので、画像ファイルF2の全データを読み出
す場合、ブロックb6を読み出すために、ディスク記憶
装置101に対して16Kバイト単位の読みだしを1回
実行することになる。
As described above, according to the present embodiment, since the block of 4 Kbyte size is used for the directory file F1, the total wasteful area is 1 Kbyte size included in the block b1. Further, since a block of 16 Kbyte size is used for the image file F2, when reading all the data of the image file F2, in order to read the block b6, reading is performed in 16 Kbyte units to the disk storage device 101. It will be executed once.

【0034】以上説明したように本実施例によれば、各
々ブロックサイズの異なる複数のデータブロック領域を
設け、各ファイル種別毎に複数のデータブロック記憶領
域の中のどれを使用するか対応をつけて、各ファイル種
別毎に適切なブロックサイズを使用することで、ディス
ク記憶装置の利用率を向上させることが出来、しかも、
ファイルの入出力性能の向上も可能となる。
As described above, according to the present embodiment, a plurality of data block areas each having a different block size are provided, and each file type is associated with which of the plurality of data block storage areas is to be used. By using an appropriate block size for each file type, it is possible to improve the utilization rate of the disk storage device.
It is also possible to improve the file input / output performance.

【0035】すなわち、ファイル種別毎に異なるブロッ
クサイズのデータブロック記憶領域を指定できるので、
テキストやディレクトリなどのサイズが小さいファイル
に対しては、小さいブロックサイズのデータブロック記
憶領域を対応させることにより、発生する無駄領域のサ
イズを小さくして、ディスク記憶装置の利用率を向上さ
せることができる。
That is, since a data block storage area having a different block size can be designated for each file type,
For files with small size such as texts and directories, it is possible to reduce the size of the waste area generated by making the data block storage area of the small block size correspond to improve the utilization rate of the disk storage device. it can.

【0036】また、動画データなどのサイズが大きく高
速アクセスが要求されるファイルに対しては、大きいブ
ロックサイズのデータブロック記憶領域を対応させるこ
とにより、ディスク記憶装置へのアクセスサイズ単位を
大きくしてアクセス回数を減らすことにより、入出力性
能を向上させることができる。
Further, for a file such as moving image data that is large in size and requires high-speed access, a data block storage area having a large block size is made to correspond to increase the access size unit to the disk storage device. I / O performance can be improved by reducing the number of accesses.

【0037】この場合、一見、この大きいブロックサイ
ズのデータブロック記憶領域で生じる無駄領域が増大す
るように思えるがそうではない。すなわち、1つのファ
イルにつきファイルの最終部分を記憶するための1ブロ
ックのみで無駄領域が生じるだけなので、1つのファイ
ルサイズが大きければ無駄領域の無いブロックが多数個
と無駄領域のあるブロックが1個という構成になり、無
駄領域が生じるブロックの割合が少なくなるので、記憶
装置の利用率が下がることはない。
In this case, at first glance, it seems that the wasteful area generated in the data block storage area of this large block size increases, but this is not the case. That is, since only one block for storing the last part of the file per file causes a waste area, if one file size is large, there are many blocks without a waste area and one block with a waste area. With this configuration, the ratio of blocks in which a waste area is generated is reduced, and therefore the storage device utilization rate does not decrease.

【0038】なお、上記実施例では、ファイルの種別と
して、画像ファイルとディレクトリファイルの2種類の
ファイルタイプのみを用いた場合について説明したが、
これに限らず、ファイルの種別の中に他のファイルタイ
プとしてテキストファイルを付け加えてもよい。
In the above embodiment, the case where only two file types, that is, an image file and a directory file, are used as file types has been described.
Not limited to this, a text file may be added as another file type in the file type.

【0039】また、上記実施例では、ファイル属性情報
として、ファイルの種別に着目し、これを用いた場合に
ついて説明したが、これに限らず、例えば、ファイル属
性情報として、ファイルのサイズに着目し、そのサイズ
を用いる様にしてもよく、更にそのファイルのサイズが
所定値以上または以下という判定基準を用いるようにし
てももちろんよい。
In the above embodiment, the file type is used as the file attribute information, and the case of using the file type is described. However, the present invention is not limited to this, and the file size is used as the file attribute information. Alternatively, the size may be used, and it is of course possible to use a criterion that the size of the file is equal to or larger than a predetermined value.

【0040】また、上記実施例では、ファイル属性情報
として、ファイルの種別に着目し、これを用いてブロッ
クを割り当てる場合について説明したが、これに限ら
ず、例えば、ユーザープログラムから明示的にどのデー
タブロック領域を使用するかの情報が設定されて、その
設定情報からファイルが使用するべきデータブロック領
域を決めるようにしてもよい。
Further, in the above-mentioned embodiment, the case where the file type is focused on as the file attribute information and the block is allocated using this has been described, but the present invention is not limited to this, and for example, which data is explicitly specified from the user program. Information on whether to use the block area may be set, and the data block area to be used by the file may be determined from the setting information.

【0041】また、上記実施例では、プログラム4がデ
ィレクトリファイルをアクセスする際には、ファイルデ
ータ入出力手段3がディレクトリファイルの種別を検査
し、例えば、ブロックサイズが4Kバイトであるといっ
た検査結果に従って、4Kバイト単位でディスク記憶装
置101に入出力を実行する場合について説明したが、
これに限らず、例えば、既にフリーブロック割り当て手
段2により、上述したところのディレクトリファイルを
作成する際に、対応するデータブロック記憶領域内で割
り当てられたブロックのブロックサイズの単位を、直接
フリーブロック割り当て手段2から得るように構成され
ていてもよい。
Further, in the above embodiment, when the program 4 accesses the directory file, the file data input / output unit 3 checks the type of the directory file and, for example, according to the check result that the block size is 4 Kbytes. The case has been described where the input / output is performed in the disk storage device 101 in units of 4 Kbytes.
Not limited to this, for example, when the free block allocating means 2 already creates the directory file described above, the unit of the block size of the block allocated in the corresponding data block storage area is directly allocated to the free block. It may be configured to be obtained from the means 2.

【0042】[0042]

【発明の効果】以上述べたところから明らかなように本
発明は、ディスク記憶装置の利用率を従来に比べてより
一層向上させることが出来るとともに、ファイルの入出
力性能もより一層向上させることが出来るという長所を
有する。
As is apparent from the above description, the present invention can further improve the utilization rate of the disk storage device as compared with the prior art and further improve the file input / output performance. It has the advantage of being able to do it.

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

【図1】 本発明の一実施例のファイルシステムのブロ
ック管理システムの構成図である。
FIG. 1 is a configuration diagram of a block management system of a file system according to an embodiment of the present invention.

【図2】 本実施例のファイルシステムのブロック管理
システムにおけるファイルシステムのデータ構成を示す
図である。
FIG. 2 is a diagram showing a data configuration of a file system in the block management system of the file system of the present embodiment.

【図3】 従来のファイルシステムのブロック管理方式
におけるファイルシステムのデータ構成を示す図であ
る。
FIG. 3 is a diagram showing a data structure of a file system in a block management system of a conventional file system.

【図4】 従来のファイルシステムのブロック管理方式
におけるファイルシステムのデータ構成を示す図であ
る。
FIG. 4 is a diagram showing a data structure of a file system in a block management system of a conventional file system.

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

1 ファイルシステム作成手段 2 フリーブロック割り当て手段 3 ファイルデータ入出力手段 4 プログラム 101 ディスク記憶装置 102 データブロック記憶領域 103 データブロック記憶領域 1 File System Creation Means 2 Free Block Allocation Means 3 File Data Input / Output Means 4 Programs 101 Disk Storage 102 Data Block Storage 103 103 Data Block Storage

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のファイルデータを記憶するディス
ク記憶装置と、 前記ディスク記憶装置の記憶領域を分割して複数のデー
タブロック記憶領域を作成し、各々の前記データブロッ
ク記憶領域を各々別の固定長サイズのブロックに分割し
て未使用ブロック群を作成するファイルシステム作成手
段と、 前記ファイルデータの格納される前記ブロックを割り当
てる場合、前記複数のデータブロック記憶領域の内、何
れのデータブロック記憶領域を使用すべきかを示すデー
タブロック記憶領域情報を得て、その情報に基づいて前
記割り当てを行なうフリーブロック割り当て手段と、 前記ファイルデータを前記ディスク記憶装置に対して入
力及び/又は前記ディスク記憶装置から出力する場合
は、前記フリーブロック割り当て手段により割り当てら
れたブロックの前記サイズの単位に基づいて前記入力及
び/又は出力を行なうファイルデータ入出力手段と、を
備えたことを特徴とするファイルシステムのブロック管
理システム。
1. A disk storage device for storing a plurality of file data, a storage area of the disk storage device is divided to create a plurality of data block storage areas, and each of the data block storage areas is fixed separately. File system creating means for creating an unused block group by dividing the block into long-sized blocks, and when allocating the block in which the file data is stored, which data block storage area among the plurality of data block storage areas Free block allocating means for obtaining data block storage area information indicating whether to use, and inputting the file data to the disk storage device and / or from the disk storage device. When outputting, it is assigned by the free block assigning means. A block management system for a file system, comprising: file data input / output means for performing the input and / or output based on the unit of the size of the stored block.
【請求項2】 データファイルには、そのファイルのサ
イズ及び/又はそのファイルの種別を示すファイル属性
情報が付されており、 前記フリーブロック割り当て手段は、前記ブロックを割
り当てる場合、前記何れのデータブロック記憶領域を使
用すべきかを前記ファイル属性情報に基づいて、判定す
る判定基準を備えており、 前記データブロック記憶領域情報を得てとは、その判定
基準を利用して前記データブロック記憶領域情報を得る
ことであることを特徴とする請求項1記載のファイルシ
ステムのブロック管理システム。
2. The data file is provided with file attribute information indicating the size of the file and / or the type of the file, and the free block allocation means, when allocating the block, which of the data blocks Based on the file attribute information, a determination criterion for determining whether to use a storage area is provided, and obtaining the data block storage area information means using the determination criterion to determine the data block storage area information. The block management system for a file system according to claim 1, wherein the block management system is obtained.
JP6225192A 1994-09-20 1994-09-20 File system block management system Pending JPH0887433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6225192A JPH0887433A (en) 1994-09-20 1994-09-20 File system block management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6225192A JPH0887433A (en) 1994-09-20 1994-09-20 File system block management system

Publications (1)

Publication Number Publication Date
JPH0887433A true JPH0887433A (en) 1996-04-02

Family

ID=16825419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6225192A Pending JPH0887433A (en) 1994-09-20 1994-09-20 File system block management system

Country Status (1)

Country Link
JP (1) JPH0887433A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10283230A (en) * 1997-03-31 1998-10-23 Nec Corp File data storage device and machine-readable recording medium with program recorded
JP2005352899A (en) * 2004-06-11 2005-12-22 Canon Inc Image recording apparatus and control method thereof
KR100637983B1 (en) * 1998-11-24 2006-10-23 델 유에스에이 엘 피 Computer system and method for preparing a computer-readable medium
JP2010102715A (en) * 1997-09-24 2010-05-06 Sony Pictures Entertainment Inc Large block allocation for disk-based file system
US7932933B2 (en) 2004-05-18 2011-04-26 Canon Kabushiki Kaisha Information recording apparatus and control method thereof
JP2014203329A (en) * 2013-04-08 2014-10-27 日本電気株式会社 Storage system, node device, and data management method
JP2022504205A (en) * 2018-10-09 2022-01-13 タブロー ソフトウェア,インコーポレイテッド Correlated incremental loading of multiple datasets for interactive data prep applications
CN119088292A (en) * 2024-08-06 2024-12-06 平头哥(上海)半导体技术有限公司 Storage device and method and device for storing system area data of storage device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10283230A (en) * 1997-03-31 1998-10-23 Nec Corp File data storage device and machine-readable recording medium with program recorded
JP2010102715A (en) * 1997-09-24 2010-05-06 Sony Pictures Entertainment Inc Large block allocation for disk-based file system
KR100637983B1 (en) * 1998-11-24 2006-10-23 델 유에스에이 엘 피 Computer system and method for preparing a computer-readable medium
US7932933B2 (en) 2004-05-18 2011-04-26 Canon Kabushiki Kaisha Information recording apparatus and control method thereof
JP2005352899A (en) * 2004-06-11 2005-12-22 Canon Inc Image recording apparatus and control method thereof
JP2014203329A (en) * 2013-04-08 2014-10-27 日本電気株式会社 Storage system, node device, and data management method
JP2022504205A (en) * 2018-10-09 2022-01-13 タブロー ソフトウェア,インコーポレイテッド Correlated incremental loading of multiple datasets for interactive data prep applications
JP2023040041A (en) * 2018-10-09 2023-03-22 タブロー ソフトウェア,インコーポレイテッド Correlated incremental loading of multiple data sets for interactive data prep application
CN119088292A (en) * 2024-08-06 2024-12-06 平头哥(上海)半导体技术有限公司 Storage device and method and device for storing system area data of storage device

Similar Documents

Publication Publication Date Title
JPH07175698A (en) File system
JPH0887433A (en) File system block management system
JPH10283230A (en) File data storage device and machine-readable recording medium with program recorded
JPH0520142A (en) Block managing system
JP4176682B2 (en) Memory management method
JP2745882B2 (en) Block management method
JP2513303B2 (en) Spool file distribution method
JPH05120093A (en) Input/output managing system
JPH05197599A (en) File space management system
JPH0695951A (en) Device and method for managing hash file
JPH03282966A (en) Method for managing hash entry area
JPH0245842A (en) Data file control system
JPH1040147A (en) System controlling virtual file cache
JPH08115263A (en) Memory unit
JP2679463B2 (en) Block management method
JPH02193231A (en) File space free area management system
JPH06161836A (en) Storage medium area management method
JPS6364146A (en) Logical space control system
JPH05120094A (en) File managing system
JPH01181121A (en) Memory area allocating system
JPH04344546A (en) System for managing system buffer
JPH02193232A (en) System for retrieving free area in file
JPH06348572A (en) Multi-mechanism disk system
JPH06103123A (en) Secondary storage device allocating system
JPS6175946A (en) Memory control system for virtual memory