JP2508607B2 - File system management method - Google Patents

File system management method

Info

Publication number
JP2508607B2
JP2508607B2 JP5311565A JP31156593A JP2508607B2 JP 2508607 B2 JP2508607 B2 JP 2508607B2 JP 5311565 A JP5311565 A JP 5311565A JP 31156593 A JP31156593 A JP 31156593A JP 2508607 B2 JP2508607 B2 JP 2508607B2
Authority
JP
Japan
Prior art keywords
storage unit
secondary storage
blocks
block
held
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.)
Expired - Lifetime
Application number
JP5311565A
Other languages
Japanese (ja)
Other versions
JPH07160551A (en
Inventor
滋 川又
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP5311565A priority Critical patent/JP2508607B2/en
Publication of JPH07160551A publication Critical patent/JPH07160551A/en
Application granted granted Critical
Publication of JP2508607B2 publication Critical patent/JP2508607B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

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 management method, and in particular, when a secondary storage device is used from a computer, one unit of contents (hereinafter called "file") is used as a unit. The present invention relates to a file system management method suitable for a secondary storage management method that allows a plurality of files to exist in one secondary storage unit and enables allocation and release in file units.

【0002】[0002]

【従来の技術】図2は、この種のファイルシステム管理
方法の一従来例を説明するための図である。
2. Description of the Related Art FIG. 2 is a diagram for explaining a conventional example of this type of file system management method.

【0003】二次記憶部100 は、ファイルシステム管理
領域110 とデータ領域120 とに分割されている。データ
領域120 は、二次記憶部100 上のデータを管理するため
に、一定のサイズの細かい18個の領域(以下、「第1
乃至第18のブロック121〜128」と呼ぶ。)に分割され
ている。なお、第1乃至第18のブロック1211〜1211 8
には、“1”から“18”の番号が順番に付けられてい
る。また、網かけのしてある第1のブロック1211と第2
のブロック1212と第7のブロック1217と第13のブロッ
ク12113 とは使用中のブロックであり、また、網かけの
していない残りのブロック1213〜1216,1218〜12112,1
2114〜12118 は、未使用のブロック(以下、「フリーブ
ロック」と呼ぶ。)である。
The secondary storage unit 100 is divided into a file system management area 110 and a data area 120. The data area 120 includes 18 small areas of a certain size (hereinafter, referred to as “first area”) for managing the data in the secondary storage unit 100.
Through eighteenth block 121-128 ". ) Is divided into. Incidentally, the block 121 1-121 1 8 of the first to eighteenth
Are sequentially numbered from "1" to "18". In addition, the shaded first block 121 1 and second block 121 1
Block 121 2 and the block 121 7 The seventh block 121 13 of the 13 is a block in use, also, the remaining blocks 121 3-121 6 that is not shaded, 121 8-121 12, 1
21 14-121 18 is the unused block (hereinafter, referred to as "free block".).

【0004】二次記憶部100 では、フリーブロックの番
号の配列(図示の場合には、3,4,5,6,8,9,
10,11,12,14,15,16,17,18)の
一部(図示では、3,8,9,14)は、ファイルシス
テム管理領域110 の番号配列保持領域111 に保持され
る。また、ファイルシステム管理領域110 の番号配列保
持領域111 に保持しきれないフリーブロックの番号の配
列の一部(図示では、4,10,15,16)は、ファ
イルシステム管理領域110 の番号配列保持領域111 に保
持されて管理される最後の番号(すなわち、番号“1
4”)が付されたフリーブロックである第14のブロッ
ク12114 に保持される。ファイルシステム管理領域110
の番号配列保持領域111 および第14のブロック12114
に保持しきれないフリーブロックの番号の配列の一部
(図示では、5,6,11,17)は、第14のブロッ
ク12114 に保持されて管理される最後の番号(すなわ
ち、番号“16”)が付されたフリーブロックである第
16のブロック12116 に保持される。ファイルシステム
管理領域110 の番号配列保持領域111 ,第14のブロッ
ク12114 および第16のブロック12116 に保持しきれな
いフリーブロックの番号の配列の残りの2個(図示で
は、12,18)は、第16のブロック12116 に保持さ
れて管理される最後の番号(すなわち、番号“17”)
が付されたフリーブロックである第17のブロック121
17 に保持される。以下の説明では、フリーブロックの
番号の配列が保持される第14のブロック12114 ,第1
6のブロック12116および第17のブロック12117
「フリーブロックリスト」と呼ぶ。
In the secondary storage unit 100, an array of free block numbers (in the illustrated case, 3, 4, 5, 6, 8, 9,
Part of (10, 11, 12, 14, 15, 16, 17, 18) (3, 8, 9, 14 in the figure) is held in the number array holding area 111 of the file system management area 110. A part of the array of free block numbers (4, 10, 15, 16 in the figure) that cannot be stored in the number array storage area 111 of the file system management area 110 is stored in the number array storage of the file system management area 110. The last number held and managed in the area 111 (that is, the number "1"
4 ”) is held in a fourteenth block 12114 which is a free block. File system management area 110
Number array holding area 111 and fourteenth block 121 14
A part of the array of free block numbers that cannot be stored in the block (5, 6, 11, 17 in the figure) is the last number stored in and managed by the fourteenth block 121 14 (that is, the number “16”). It is held in the 16th block 121 16 which is a free block marked with “)”. The remaining two (12 and 18 in the figure) of the array of free block numbers that cannot be held in the number array holding area 111 of the file system management area 110, the fourteenth block 121 14 and the sixteenth block 121 16 are , The last number held in the 16th block 121 16 and managed (ie number “17”)
Seventeenth block 121, which is a free block marked with
Held at 17 . In the following description, the fourteenth block 121 14 , which holds the array of free block numbers, the first block 121 14 ,
The 6th block 121 16 and the 17th block 121 17 are called a “free block list”.

【0005】なお、ファイルシステムサイズ(すなわ
ち、二次記憶部100 のブロックの数“16”)は、ファ
イルシステム管理領域110 のブロック数保持領域112 に
保持される。
The file system size (that is, the number "16" of blocks in the secondary storage unit 100) is held in the block number holding area 112 of the file system management area 110.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来のファイルシステム管理方法では、新たな二次記
憶装置を追加してファイルシステムのサイズを大きくす
るためには、ファイルシステム管理領域110 のブロック
数保持領域112 に保持すべきブロック数(ファイルシス
テムサイズ)を変更する必要があるほか、フリーブロッ
クの最後の番号の配列を保持している第17のブロック
12117 をフリーブロックリストに従ってファイルシステ
ム管理領域110 の番号配列保持領域111 から第14のブ
ロック1211 4 および第16のブロック12116 を介して検
索し、第17のブロック12117 に保持すべきフリーブロ
ックの番号の配列を修正するとともに、新たなフリーブ
ロックリストを追加する必要があるため、変更作業にか
なりの時間を要するという問題がある。
However, in the conventional file system management method described above, in order to increase the size of the file system by adding a new secondary storage device, the number of blocks in the file system management area 110 must be increased. It is necessary to change the number of blocks (file system size) that should be held in the holding area 112, and the 17th block that holds the array of the last free block number.
121 17 searches the number array holding area 111 of the file system management area 110 through the block 121 16 fourteenth block 121 1 4 and 16 the following free block list, free to be held in the block 121 17 17 Since it is necessary to correct the array of block numbers and add a new free block list, there is a problem that the change work requires a considerable amount of time.

【0007】本発明の目的は、ファイルシステムのサイ
ズの変更を容易に行うことができるファイルシステム管
理方法を提供することにある。
An object of the present invention is to provide a file system management method capable of easily changing the size of a file system.

【0008】[0008]

【課題を解決するための手段】本発明のファイルシステ
ム管理方法は、順番に番号が付された複数のブロックに
分割されたデータ領域と管理領域とを有し、前記複数の
ブロックの数が前記管理領域に保持され、前記複数のブ
ロックのうちの未使用のブロックの番号の配列の一部が
前記管理領域に保持され、該管理領域に保持しきれなか
った前記未使用のブロックの番号の配列の他の一部が、
前記管理領域に保持された前記未使用のブロックの番号
の配列の一部のうちの任意の一つの番号が付されたブロ
ックに保持され、前記管理領域および前記任意の一つの
番号が付されたブロックに保持しきれなかった前記未使
用のブロックの番号の配列のさらに他の一部が、前記任
意の一つの番号が付されたブロックに保持された前記未
使用のブロックの番号の配列の他の一部のうちの他の任
意の一つの番号が付されたブロックに保持されていく第
1の二次記憶部に、複数の他のブロックに分割された他
のデータ領域を有する第2の二次記憶部を追加するとき
のファイルシステム管理方法において、前記第1の二次
記憶部の前記管理領域に、該第1の二次記憶部の前記複
数のブロックのうちの未使用のブロックの番号の配列が
最後に保持された最後のブロックに付されている番号を
保持しておくことを特徴とする。
A file system management method of the present invention has a data area and a management area divided into a plurality of blocks sequentially numbered, and the number of the plurality of blocks is the above-mentioned. An array of the numbers of the unused blocks which are held in the management area and a part of the array of the numbers of the unused blocks of the plurality of blocks are held in the management area and cannot be stored in the management area Other part of
It is held in a block to which any one of the part of the array of numbers of the unused blocks held in the management area is attached, and the management area and the one arbitrary number are attached to the block. Another part of the array of the numbers of the unused blocks that could not be held in the block is the other of the array of numbers of the unused blocks held in the block to which the arbitrary one number is given. A second secondary storage unit having another data area divided into a plurality of other blocks in the first secondary storage unit which is held in the block to which any other one of the In a file system management method for adding a secondary storage unit, an unused block of the plurality of blocks of the first secondary storage unit is stored in the management area of the first secondary storage unit. An array of numbers was last retained Characterized in that to hold the number assigned to the block after.

【0009】ここで、前記第2の二次記憶部の前記複数
の他のブロックのそれぞれに、前記第1の二次記憶部の
前記複数のブロックに付された番号のうちの最後の番号
の次の番号から順番に番号を付し、前記第1の二次記憶
部の前記管理領域に保持されている該第1の二次記憶部
の前記複数のブロックの数を、該第1の二次記憶部の前
記複数のブロックの数と前記第2の二次記憶部の前記複
数の他のブロックの数との和に変更し、前記第1の二次
記憶部の前記管理領域に保持されている前記最後のブロ
ックの番号から該最後のブロックを検索し、該検索した
最後のブロックに、前記第2の二次記憶部の前記複数の
他のブロックの番号の配列の一部を保持し、前記検索し
た最後のブロックに保持された前記第2の二次記憶部の
前記複数の他のブロックの番号の配列の一部のうちの最
も大きい番号が付された前記第2の二次記憶部のブロッ
クに、前記検索した最後のブロックに保持しきれなかっ
た前記第2の二次記憶部の前記複数の他のブロックの番
号の配列の他の一部を保持し、前記最も大きい番号が付
された前記第2の二次記憶部のブロックに保持された前
記第2の二次記憶部の前記複数の他のブロックの番号の
配列の他の一部のうちの最も大きい番号が付された前記
第2の二次記憶部の他のブロックに、前記検索した最後
のブロックおよび前記最も大きい番号が付された前記第
2の二次記憶部の他のブロックに保持しきれなかった前
記第2の二次記憶部の複数の他のブロックの番号の配列
のさらに他の一部を保持していってもよい。
Here, the last number of the numbers given to the plurality of blocks of the first secondary storage unit is assigned to each of the plurality of other blocks of the second secondary storage unit. Numbers are given in order from the next number, and the number of the plurality of blocks of the first secondary storage unit held in the management area of the first secondary storage unit is set to the first secondary storage unit. The number is changed to the sum of the number of the plurality of blocks of the next storage unit and the number of the plurality of other blocks of the second secondary storage unit, and is stored in the management area of the first secondary storage unit. Searching for the last block from the number of the last block, and holding a part of the array of numbers of the other blocks of the second secondary storage unit in the searched last block. , The other blocks of the second secondary storage unit held in the last block retrieved. Block of the second secondary storage unit having the highest number in the part of the sequence of the number of the check number, the second secondary storage that cannot be held in the last block searched. Part of the plurality of other blocks of the array of numbers, the second secondary storage held in the block of the second secondary storage part with the highest number To the other block of the second secondary storage unit with the highest number of the other part of the array of numbers of the other blocks of the part, the last block searched and the most Hold another part of the array of numbers of other blocks in the second secondary storage unit that could not be held in other blocks in the second secondary storage unit to which a large number was assigned. You may do it.

【0010】または、本発明のファイルシステム管理方
法は、順番に番号が付された複数のブロックに分割され
たデータ領域と管理領域とを有し、前記複数のブロック
の数が前記管理領域に保持され、前記複数のブロックの
うちの未使用のブロックの番号の配列の一部が前記管理
領域に保持され、該管理領域に保持しきれなかった前記
未使用のブロックの番号の配列の他の一部が、前記管理
領域に保持された前記未使用のブロックの番号の配列の
一部のうちの最も大きい番号が付されたブロックに保持
され、前記管理領域および前記最も大きい番号が付され
たブロックに保持しきれなかった前記未使用のブロック
の番号の配列のさらに他の一部が、前記最も大きい番号
が付されたブロックに保持された前記未使用のブロック
の番号の配列の他の一部のうちの最も大きい番号が付さ
れた他のブロックに保持されていく第1の二次記憶部
に、複数の他のブロックに分割された他のデータ領域を
有する第2の二次記憶部を追加するときのファイルシス
テム管理方法において、前記第1の二次記憶部の前記管
理領域に、該第1の二次記憶部の前記複数のブロックの
うちの未使用のブロックの番号の配列が最後に保持され
た最後のブロックに付されている番号を保持しておくこ
とを特徴とする。
Alternatively, the file system management method of the present invention has a data area and a management area divided into a plurality of blocks sequentially numbered, and the number of the plurality of blocks is held in the management area. A part of the array of the numbers of the unused blocks of the plurality of blocks is held in the management area, and another one of the arrays of the numbers of the unused blocks that cannot be stored in the management area. Part is held in the block with the highest number of the part of the array of numbers of the unused blocks held in the control area, and the management region and the block with the highest number The other part of the array of the numbers of the unused blocks that could not be retained in the other is the array of the arrays of the numbers of the unused blocks retained in the block with the highest number. A second secondary storage having another data area divided into a plurality of other blocks in a first secondary storage section held in another block having the highest number among some of them. In the file system management method for adding a copy, in the management area of the first secondary storage unit, an array of unused block numbers of the plurality of blocks of the first secondary storage unit Is retained in the last block held last.

【0011】ここで、前記第2の二次記憶部の前記複数
の他のブロックのそれぞれに、前記第1の二次記憶部の
前記複数のブロックに付された番号のうちの最後の番号
の次の番号から順番に番号を付し、前記第1の二次記憶
部の前記管理領域に保持されている該第1の二次記憶部
の前記複数のブロックの数を、該第1の二次記憶部の前
記複数のブロックの数と前記第2の二次記憶部の前記複
数の他のブロックの数との和に変更し、前記第1の二次
記憶部の前記管理領域に保持されている前記最後のブロ
ックの番号から該最後のブロックを検索し、該検索した
最後のブロックに、前記第2の二次記憶部の前記複数の
他のブロックの番号の配列の一部を保持し、前記検索し
た最後のブロックに保持された前記第2の二次記憶部の
前記複数の他のブロックの番号の配列の一部のうちの任
意の一つの番号が付された前記第2の二次記憶部のブロ
ックに、前記検索した最後のブロックに保持しきれなか
った前記第2の二次記憶部の前記複数の他のブロックの
番号の配列の他の一部を保持し、前記任意の一つの番号
が付された前記第2の二次記憶部のブロックに保持され
た前記第2の二次記憶部の前記複数の他のブロックの番
号の配列の他の一部のうちの他の任意の一つの番号が付
された前記第2の二次記憶部の他のブロックに、前記検
索した最後のブロックおよび前記任意の一つの番号が付
された前記第2の二次記憶部の他のブロックに保持しき
れなかった前記第2の二次記憶部の複数の他のブロック
の番号の配列のさらに他の一部を保持していってもよ
い。
Here, the last number of the numbers given to the plurality of blocks of the first secondary storage unit is assigned to each of the plurality of other blocks of the second secondary storage unit. Numbers are given in order from the next number, and the number of the plurality of blocks of the first secondary storage unit held in the management area of the first secondary storage unit is set to the first secondary storage unit. The number is changed to the sum of the number of the plurality of blocks of the next storage unit and the number of the plurality of other blocks of the second secondary storage unit, and is stored in the management area of the first secondary storage unit. Searching for the last block from the number of the last block, and holding a part of the array of numbers of the other blocks of the second secondary storage unit in the searched last block. , The plurality of other blocks of the second secondary storage unit held in the last block searched. Block in the second secondary storage unit to which any one number is assigned from a part of the sequence of the sequence number of the check number, the second block that cannot be stored in the last block searched. The other part of the array of the numbers of the plurality of other blocks in the next storage part is held, and the second part is held in the block of the second secondary storage part given the arbitrary one number. To another block of the second secondary storage unit, to which another arbitrary one number of the other part of the array of numbers of the plurality of other blocks of the secondary storage unit is attached, Numbers of other blocks in the second secondary storage unit that could not be held in the last block searched and the other blocks in the second secondary storage unit to which the arbitrary one number was added It may also hold another part of the array.

【0012】[0012]

【作用】本発明のファイルシステム管理方法は、第1の
二次記憶部の前記管理領域に、第1の二次記憶部の複数
のブロックのうちの未使用のブロックの番号の配列が最
後に保持された最後のブロックに付されている番号を保
持しておくことにより、第1の二次記憶部を追加する際
に、フリーブロックリストを参照することなしに直接最
後のブロックを検索することができる。
According to the file system management method of the present invention, in the management area of the first secondary storage unit, the array of the numbers of unused blocks among the plurality of blocks of the first secondary storage unit is finally placed. By retaining the number assigned to the last block retained, it is possible to directly search the last block without referring to the free block list when adding the first secondary storage unit. You can

【0013】[0013]

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

【0014】図1は、本発明のファイルシステム管理方
法の一実施例を説明するための図である。
FIG. 1 is a diagram for explaining an embodiment of the file system management method of the present invention.

【0015】本実施例のファイルシステム管理方法は、
ファイルシステム管理領域10とデータ領域20とに分
割された第1の二次記憶部1に、新たなデータ領域30
として用いる第2の二次記憶部2を追加した場合に用い
られる。
The file system management method of this embodiment is
A new data area 30 is provided in the first secondary storage unit 1 divided into the file system management area 10 and the data area 20.
It is used when the second secondary storage unit 2 used as is added.

【0016】第1の二次記憶部1のファイルシステム管
理領域10は、配列番号保持領域11とブロック数保持
領域12とを有する点では、図2に示した二次記憶部10
0 のファイルシステム管理領域110 と同じであるが、フ
リーブロックの番号の配列を保持する最後のブロックの
番号が保持されるブロック番号保持領域13を有する点
で、図2に示したファイルシステム管理領域110 と異な
る。第1の二次記憶部1のデータ領域20は、図2に示
した二次記憶部100 のデータ領域120 と同様に、一定サ
イズの細かい18個の領域(すなわち、第1乃至第18
のブロック21 1〜2118)に分割されており、第1乃
至第18のブロック211〜2118 には、“1”から
“18”の番号が順番に付けられている。また、網かけ
のしてある第1のブロック211と第2のブロック212
と第7のブロック217と第13のブロック2113 とは
使用中のブロックであり、網かけのしていない残りのブ
ロック213〜216,218〜2112,2114〜2118
はフリーブロックである。
File system management of the first secondary storage unit 1
The processing area 10 holds the array number holding area 11 and the number of blocks.
The secondary storage unit 10 shown in FIG.
Same as file system management area 110 of 0,
Of the last block that holds an array of
A point having a block number holding area 13 for holding numbers
The file system management area 110 shown in FIG.
You. The data area 20 of the first secondary storage unit 1 is shown in FIG.
Like the data area 120 of the secondary storage unit 100,
18 areas with fine noise (that is, 1st to 18th areas)
Block 21 1~ 2118) Is divided into 1)
The 18th block 211~ 2118 From "1"
The numbers "18" are added in order. Also, shaded
The first block 211And the second block 212
And the seventh block 217And the thirteenth block 2113 What is
Blocks that are in use and are not shaded
Lock 213~ 216, 218~ 2112, 2114~ 2118 
Is a free block.

【0017】第2の二次記憶部2を追加する前では、第
1の二次記憶部1においては、フリーブロックの番号の
配列(図示の場合には、3,4,,5,6,8,9,1
0,11,12,14,15,16,17,18)の一
部(図示では、3,8,9,14)は、ファイルシステ
ム管理領域10の番号配列保持領域11に保持されてい
る。また、ファイルシステム管理領域11の番号配列保
持領域11に保持しきれないフリーブロックの番号の配
列の一部(図示では、4,10,15,16)は、ファ
イルシステム管理領域11の番号配列保持領域11に保
持されて管理される最後の番号(すなわち、番号“1
4”)が付されたフリーブロックである第14のブロッ
ク2114に保持される。ファイルシステム管理領域10
の番号配列保持領域11および第14のブロック2114
に保持しきれないフリーブロックの番号の配列の一部
(図示では、5,6,11,17)は、第14のブロッ
ク21 14に保持されて管理される最後の番号(すなわ
ち、番号“16”)が付されたフリーブロックである第
16のブロック2116に保持されている。ファイルシス
テム管理領域10の番号配列保持領域11,第14のブ
ロック2114および第16のブロック2116に保持しき
れないフリーブロックの番号の配列の残りの2個(図示
では、12,18)は、第16のブロック2116に保持
されて管理される最後の番号(すなわち、番号“1
7”)が付されたフリーブロックである第17のブロッ
ク2117に保持されている。
Before adding the second secondary storage unit 2,
In the secondary storage unit 1 of No. 1 of the free block number
Array (3, 4, 5, 5, 6, 8, 9, 1 in the case shown)
0,11,12,14,15,16,17,18)
The parts (3, 8, 9, 14 in the figure) are the file system.
It is held in the number array holding area 11 of the system management area 10.
You. In addition, the number array of the file system management area 11 is preserved.
The number of free blocks that cannot be held in holding area 11
Part of the row (4, 10, 15, 16 in the figure) is
In the number array holding area 11 of the file system management area 11.
The last number to be held and managed (ie number "1
4 ") is a free block with 14th block
2114Held in. File system management area 10
Number sequence holding area 11 and fourteenth block 2114
Part of the array of free block numbers that cannot be stored in
(5, 6, 11, 17 in the figure) is the 14th block.
21 14The last number held and managed by
The free block numbered “16”)
16 blocks 2116Is held in. File system
The number array holding area 11 and the 14th block of the system management area 10
Lock 2114And the sixteenth block 2116Hold on
The remaining two free block number arrays (not shown)
Then, 12, 18) is the 16th block 2116Hold on
The last number managed and managed (ie number "1
Block 17 is a free block marked with 7 ")
2117Is held in.

【0018】また、第1の二次記憶部1においては、図
2に示した二次記憶部100 と異なり、フリーブロック番
号保持領域13がファイルシステム管理領域10に設け
られており、第2の二次記憶部2を追加する前では、フ
リーブロック番号保持領域13には、フリーブロックの
番号の配列を保持している最終のフリーブロックである
第17のブロック2117の番号(すなわち、番号“1
7”)が保持されている。
In the first secondary storage unit 1, unlike the secondary storage unit 100 shown in FIG. 2, a free block number holding area 13 is provided in the file system management area 10, Before adding the secondary storage unit 2, in the free block number holding area 13, the number of the seventeenth block 21 17 which is the final free block holding the array of free block numbers (that is, the number " 1
7 ") is retained.

【0019】第2の二次記憶部2を追加する際には、新
たなデータ領域30は、一定サイズの細かい6個の領域
(すなわち、第19乃至第24のブロック2119〜21
24)に分割され、第19乃至第24のブロック2119
2124には、第1の二次記憶部1のデータ領域20のブ
ロックの最後の番号“18”の次の番号“19”から番
号“24”までが順番に付される。なお、このとき、第
19乃至第24のブロック2119〜2124は、すべてフ
リーブロックとなっている。
When the second secondary storage unit 2 is added, the new data area 30 is composed of six areas of a fixed size (that is, the 19th to 24th blocks 21 19 to 21).
24 ) and divided into 19th to 24th blocks 21 19 to
21 24 are sequentially numbered from the number “19” to the number “24” next to the last number “18” of the block of the data area 20 of the first secondary storage unit 1. At this time, all of the 19th to 24th blocks 21 19 to 21 24 are free blocks.

【0020】第2の二次記憶部2を追加する際のファイ
ルシステムサイズの変更およびフリーブロックの番号の
配列の保持は、以下のようにして行われる。
The modification of the file system size and the retention of the array of free block numbers when adding the second secondary storage unit 2 are performed as follows.

【0021】まず、第1の二次記憶部1のファイルシス
テム管理領域10のブロック数保持領域12に保持する
ファイルシステムサイズが、現在保持されている“1
8”から、第1の二次記憶部1の各ブロック211〜2
18 の数と第2の二次記憶部2の各ブロック2119
2124の数との和である“24”に変更される。
First, the file system size held in the block number holding area 12 of the file system management area 10 of the first secondary storage unit 1 is "1" currently held.
8 ″ from each block 21 1 to 2 of the first secondary storage unit 1
The number of 1 18 and each block 21 19 of the second secondary storage unit 2
It is changed to “24” which is the sum of the numbers of 21 24 .

【0022】続いて、第1の二次記憶部1のファイルシ
ステム管理領域10のフリーブロック番号保持領域13
に保持されている番号“17”より、第1の二次記憶部
1の第17のブロック2117が検索される。このとき、
第17のブロック2117には2個の番号しか保持されて
いないため、新たに追加された第2の二次記憶部2のフ
リーブロックの番号の配列(すなわち、19,20,2
1,22,23,24)のうちの2個(図示では、第1
9のブロック2119の番号“19”と第23のブロック
2123の番号“23”)とが、第17のブロック2117
に追加されて保持される。さらに、新たに追加された第
2の二次記憶部2のフリーブロックの番号の配列の残り
の4個(図示では、第20のブロック2120の番号“2
0”と第21のブロック2121の番号“21”と第22
のブロック2122の番号“22”と第24のブロック2
24の番号“24”)は、第1の二次記憶部1の第17
のブロック2117に保持されて管理される最後の番号
(すなわち、番号“23”)が付されたフリーブロック
である第2の二次記憶部2の第23のブロック2123
保持される。
Subsequently, the free block number holding area 13 of the file system management area 10 of the first secondary storage unit 1
The 17th block 21 17 of the first secondary storage unit 1 is searched for from the number “17” held in. At this time,
Since the seventeenth block 21 17 holds only two numbers, the array of free block numbers of the newly added second secondary storage unit 2 (that is, 19, 20, 2) is stored.
1, 22, 23, and 24) (first in the drawing,
9 blocks 21 19 and number "19" in the first 23 of the block 21 23 number of "23"), but the block 21 of the 17 17
Added to and retained. Furthermore, the remaining four of the newly added free block number array of the second secondary storage unit 2 (in the figure, the number “2 of the twentieth block 21 20
0 ”and 21st block 21 21 number“ 21 ”and 22nd
Block 21 22 number "22" and 24th block 2
The number “24” of 1 24 is the 17th number of the first secondary storage unit 1.
Is stored in the 23rd block 21 23 of the second secondary storage unit 2, which is a free block to which the last number (that is, the number “23”) stored and managed in the block 21 17 of FIG.

【0023】続いて、第1の二次記憶部1のファイルシ
ステム管理領域10のフリーブロック番号保持領域13
に現在保持されている番号“17”が、フリーブロック
の番号の配列を保持している最終のフリーブロックとな
る第2の二次記憶部2の第23のブロック2123の番号
“23”に変更される。
Next, the free block number holding area 13 of the file system management area 10 of the first secondary storage unit 1
The number “17” currently held in the table becomes the number “23” of the 23rd block 21 23 of the second secondary storage unit 2 which becomes the final free block holding the array of free block numbers. Be changed.

【0024】したがって、本実施例のファイルシステム
管理方法では、第2の二次記憶部2の追加に伴うファイ
ルシステムサイズの変更およびフリーブロックの番号の
配列の保持を容易に行うことができるため、図2で説明
した従来のファイルシステム管理方法よりも容易にファ
イルシステムのサイズを増加させることができる。ま
た、従来のファイルシステム管理方法で管理されていた
第1の二次記憶部1のデータ領域20の構成は図2に示
した二次記憶部100 のデータ領域120 の構成と同一であ
るため、従来のファイルシステム管理方法を採用してい
る計算機に第1の二次記憶部1を接続しても、第1の二
次記憶部1をそのまま利用することができる。
Therefore, according to the file system management method of the present embodiment, the file system size can be changed and the free block number array can be easily maintained due to the addition of the second secondary storage unit 2. The size of the file system can be increased more easily than the conventional file system management method described with reference to FIG. Further, since the configuration of the data area 20 of the first secondary storage unit 1 managed by the conventional file system management method is the same as the configuration of the data area 120 of the secondary storage unit 100 shown in FIG. 2, Even if the first secondary storage unit 1 is connected to a computer adopting the conventional file system management method, the first secondary storage unit 1 can be used as it is.

【0025】なお、以上の説明では、ファイルシステム
管理領域11の番号配列保持領域11に保持しきれない
フリーブロックの番号の配列の一部は、ファイルシステ
ム管理領域11の番号配列保持領域11に保持されて管
理される最後の番号が付されたフリーブロックである第
14のブロック2114に保持されたが、その他の所定の
番号が付されたフリーブロックに保持されてもよい。ま
た、ファイルシステム管理領域10の番号配列保持領域
11および第14のブロック2114に保持しきれないフ
リーブロックの番号の配列の一部は、第14のブロック
2114に保持されて管理される最後の番号が付されたフ
リーブロックである第16のブロック2116に保持され
たが、その他の所定の番号が付されたフリーブロックに
保持されてもよい。
In the above description, a part of the array of free block numbers that cannot be held in the number array holding area 11 of the file system management area 11 is held in the number array holding area 11 of the file system management area 11. Although it is held in the fourteenth block 21 14 which is the last numbered and managed free block, it may be held in another free block having a predetermined number. Also, the part of the sequence of file system management area number array holding area 11 of the 10 and the 14 free block numbers that can not be held in the block 21 14, are managed by being held in a block 21 14 of the 14 last Although it is held in the sixteenth block 21 16 which is a free block numbered with, it may be held in another free block numbered with another predetermined number.

【0026】[0026]

【発明の効果】本発明は、上述のとおり構成されている
ので、次の効果を奏する。
Since the present invention is configured as described above, the following effects can be obtained.

【0027】第2の二次記憶部を追加する際に、フリー
ブロックリストを参照することなしに直接最後のブロッ
クを検索することができるため、第2の二次記憶部の追
加に伴うファイルシステムサイズの変更およびフリーブ
ロックの番号の配列の保持を容易に行うことができる。
また、第1の二次記憶部のデータ領域の構成を変更す1
を接続しても、第1の二次記憶部に関しては、従来のフ
ァイルシステム管理方法との互換性を保つことができ
る。
When the second secondary storage unit is added, the last block can be searched directly without referring to the free block list. Therefore, the file system accompanying the addition of the second secondary storage unit It is possible to easily change the size and hold the array of free block numbers.
In addition, the configuration of the data area of the first secondary storage unit is changed 1
Even if is connected, the compatibility with the conventional file system management method can be maintained for the first secondary storage unit.

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

【図1】本発明のファイルシステム管理方法の一実施例
を説明するための図である。
FIG. 1 is a diagram for explaining an embodiment of a file system management method of the present invention.

【図2】この種のファイルシステム管理方法の一従来例
を説明するための図である。
FIG. 2 is a diagram for explaining a conventional example of this type of file system management method.

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

1 第1の二次記憶部 2 第2の二次記憶部 10 ファイルシステム管理領域 11 配列番号保持領域 12 ブロック数保持領域 13 ブロック番号保持領域 20 データ領域 211〜2124 第1乃至第24のブロック 30 新たなデータ領域1 1st secondary storage part 2 2nd secondary storage part 10 File system management area 11 Array number holding area 12 Block number holding area 13 Block number holding area 20 Data area 21 1 to 21 24 1st to 24th Block 30 New data area

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 順番に番号が付された複数のブロックに
分割されたデータ領域と管理領域とを有し、前記複数の
ブロックの数が前記管理領域に保持され、前記複数のブ
ロックのうちの未使用のブロックの番号の配列の一部が
前記管理領域に保持され、該管理領域に保持しきれなか
った前記未使用のブロックの番号の配列の他の一部が、
前記管理領域に保持された前記未使用のブロックの番号
の配列の一部のうちの任意の一つの番号が付されたブロ
ックに保持され、前記管理領域および前記任意の一つの
番号が付されたブロックに保持しきれなかった前記未使
用のブロックの番号の配列のさらに他の一部が、前記任
意の一つの番号が付されたブロックに保持された前記未
使用のブロックの番号の配列の他の一部のうちの他の任
意の一つの番号が付されたブロックに保持されていく第
1の二次記憶部に、複数の他のブロックに分割された他
のデータ領域を有する第2の二次記憶部を追加するとき
のファイルシステム管理方法において、 前記第1の二次記憶部の前記管理領域に、該第1の二次
記憶部の前記複数のブロックのうちの未使用のブロック
の番号の配列が最後に保持された最後のブロックに付さ
れている番号を保持しておくことを特徴とするファイル
システム管理方法。
1. A data area and a management area divided into a plurality of blocks sequentially numbered, the number of the plurality of blocks is retained in the management area, and A part of the array of numbers of unused blocks is held in the management area, and another part of the array of numbers of unused blocks that could not be held in the management area is
It is held in a block to which any one of the part of the array of numbers of the unused blocks held in the management area is attached, and the management area and the one arbitrary number are attached to the block. Another part of the array of the numbers of the unused blocks that could not be held in the block is the other of the array of numbers of the unused blocks held in the block to which the arbitrary one number is given. A second secondary storage unit having another data area divided into a plurality of other blocks in the first secondary storage unit which is held in the block to which any other one of the In a file system management method for adding a secondary storage unit, an unused block of the plurality of blocks of the first secondary storage unit is stored in the management area of the first secondary storage unit. An array of numbers was last retained A file system management method characterized in that the number attached to the last block is held.
【請求項2】 前記第2の二次記憶部の前記複数の他の
ブロックのそれぞれに、前記第1の二次記憶部の前記複
数のブロックに付された番号のうちの最後の番号の次の
番号から順番に番号を付し、 前記第1の二次記憶部の前記管理領域に保持されている
該第1の二次記憶部の前記複数のブロックの数を、該第
1の二次記憶部の前記複数のブロックの数と前記第2の
二次記憶部の前記複数の他のブロックの数との和に変更
し、 前記第1の二次記憶部の前記管理領域に保持されている
前記最後のブロックの番号から該最後のブロックを検索
し、 該検索した最後のブロックに、前記第2の二次記憶部の
前記複数の他のブロックの番号の配列の一部を保持し、 前記検索した最後のブロックに保持された前記第2の二
次記憶部の前記複数の他のブロックの番号の配列の一部
のうちの最も大きい番号が付された前記第2の二次記憶
部のブロックに、前記検索した最後のブロックに保持し
きれなかった前記第2の二次記憶部の前記複数の他のブ
ロックの番号の配列の他の一部を保持し、 前記最も大きい番号が付された前記第2の二次記憶部の
ブロックに保持された前記第2の二次記憶部の前記複数
の他のブロックの番号の配列の他の一部のうちの最も大
きい番号が付された前記第2の二次記憶部の他のブロッ
クに、前記検索した最後のブロックおよび前記最も大き
い番号が付された前記第2の二次記憶部の他のブロック
に保持しきれなかった前記第2の二次記憶部の複数の他
のブロックの番号の配列のさらに他の一部を保持してい
くことを特徴とする請求項1記載のファイルシステム管
理方法。
2. Next to the last number of the numbers given to the plurality of blocks of the first secondary storage unit, each of the plurality of other blocks of the second secondary storage unit From the first secondary storage unit, the number of the plurality of blocks of the first secondary storage unit held in the management area of the first secondary storage unit is set to the first secondary storage unit. The number of the plurality of blocks in the storage unit and the number of the other blocks in the second secondary storage unit are changed to a sum, and the number is held in the management area of the first secondary storage unit. Searching for the last block from the number of the last block that is present, and holding a part of the array of numbers of the other blocks of the second secondary storage unit in the searched last block, The plurality of other blocks of the second secondary storage unit held in the last block searched. Of the second secondary storage unit to which the largest number is assigned in the part of the sequence of the numbers of the second secondary storage unit that cannot be stored in the last block searched. The other part of the array of numbers of the plurality of other blocks is held, and the second secondary storage unit held in the block of the second secondary storage unit having the highest number is stored. Among the other part of the array of the numbers of the plurality of other blocks, the other block in the second secondary storage having the highest number is assigned to the last block searched and the highest number. Holding another part of the array of numbers of other blocks in the second secondary storage unit that could not be stored in other blocks in the second secondary storage unit The file system management method according to claim 1, further comprising:
【請求項3】 順番に番号が付された複数のブロックに
分割されたデータ領域と管理領域とを有し、前記複数の
ブロックの数が前記管理領域に保持され、前記複数のブ
ロックのうちの未使用のブロックの番号の配列の一部が
前記管理領域に保持され、該管理領域に保持しきれなか
った前記未使用のブロックの番号の配列の他の一部が、
前記管理領域に保持された前記未使用のブロックの番号
の配列の一部のうちの最も大きい番号が付されたブロッ
クに保持され、前記管理領域および前記最も大きい番号
が付されたブロックに保持しきれなかった前記未使用の
ブロックの番号の配列のさらに他の一部が、前記最も大
きい番号が付されたブロックに保持された前記未使用の
ブロックの番号の配列の他の一部のうちの最も大きい番
号が付された他のブロックに保持されていく第1の二次
記憶部に、複数の他のブロックに分割された他のデータ
領域を有する第2の二次記憶部を追加するときのファイ
ルシステム管理方法において、 前記第1の二次記憶部の前記管理領域に、該第1の二次
記憶部の前記複数のブロックのうちの未使用のブロック
の番号の配列が最後に保持された最後のブロックに付さ
れている番号を保持しておくことを特徴とするファイル
システム管理方法。
3. A data area and a management area divided into a plurality of blocks sequentially numbered, the number of the plurality of blocks is held in the management area, and the number of the plurality of blocks is held in the plurality of blocks. A part of the array of numbers of unused blocks is held in the management area, and another part of the array of numbers of unused blocks that could not be held in the management area is
It is held in the block with the highest number of the part of the array of numbers of the unused blocks held in the management area, and is retained in the management area and the block with the highest number. The other part of the array of numbers of the unused blocks that could not be cut out of the other part of the array of numbers of the unused blocks retained in the block with the highest number. When adding a second secondary storage unit having another data area divided into a plurality of other blocks to the first secondary storage unit held in the other block having the highest number In the file system management method, the array of numbers of unused blocks of the plurality of blocks of the first secondary storage unit is finally stored in the management area of the first secondary storage unit. Had the last boo A file system management method characterized in that the number attached to a lock is retained.
【請求項4】 前記第2の二次記憶部の前記複数の他の
ブロックのそれぞれに、前記第1の二次記憶部の前記複
数のブロックに付された番号のうちの最後の番号の次の
番号から順番に番号を付し、 前記第1の二次記憶部の前記管理領域に保持されている
該第1の二次記憶部の前記複数のブロックの数を、該第
1の二次記憶部の前記複数のブロックの数と前記第2の
二次記憶部の前記複数の他のブロックの数との和に変更
し、 前記第1の二次記憶部の前記管理領域に保持されている
前記最後のブロックの番号から該最後のブロックを検索
し、 該検索した最後のブロックに、前記第2の二次記憶部の
前記複数の他のブロックの番号の配列の一部を保持し、 前記検索した最後のブロックに保持された前記第2の二
次記憶部の前記複数の他のブロックの番号の配列の一部
のうちの任意の一つの番号が付された前記第2の二次記
憶部のブロックに、前記検索した最後のブロックに保持
しきれなかった前記第2の二次記憶部の前記複数の他の
ブロックの番号の配列の他の一部を保持し、 前記任意の一つの番号が付された前記第2の二次記憶部
のブロックに保持された前記第2の二次記憶部の前記複
数の他のブロックの番号の配列の他の一部のうちの他の
任意の一つの番号が付された前記第2の二次記憶部の他
のブロックに、前記検索した最後のブロックおよび前記
任意の一つの番号が付された前記第2の二次記憶部の他
のブロックに保持しきれなかった前記第2の二次記憶部
の複数の他のブロックの番号の配列のさらに他の一部を
保持していくことを特徴とする請求項3記載のファイル
システム管理方法。
4. Next to the last number of the numbers given to the plurality of blocks of the first secondary storage unit, the number is assigned to each of the plurality of other blocks of the second secondary storage unit. From the first secondary storage unit, the number of the plurality of blocks of the first secondary storage unit held in the management area of the first secondary storage unit is set to the first secondary storage unit. The number of the plurality of blocks in the storage unit and the number of the other blocks in the second secondary storage unit are changed to a sum, and the number is held in the management area of the first secondary storage unit. Searching for the last block from the number of the last block that is present, and holding a part of the array of numbers of the other blocks of the second secondary storage unit in the searched last block, The plurality of other blocks of the second secondary storage unit held in the last block searched. In the second secondary storage block to which any one number is assigned to a part of the part of the sequence of the second number, the second secondary storage that cannot be stored in the last block searched. Other part of the array of numbers of the plurality of other blocks of the part, and the second secondary part stored in the block of the second secondary storage part numbered with the arbitrary one. The other block of the second secondary storage unit, to which another arbitrary one of the other part of the array of numbers of the plurality of other blocks of the next storage unit is attached, is searched. An array of numbers of a plurality of other blocks in the second secondary storage unit that could not be held in the last block and the other blocks in the second secondary storage unit to which the arbitrary one number was given. 4. The file system according to claim 3, wherein the file system further holds another part of the file system. Management method.
JP5311565A 1993-12-13 1993-12-13 File system management method Expired - Lifetime JP2508607B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5311565A JP2508607B2 (en) 1993-12-13 1993-12-13 File system management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5311565A JP2508607B2 (en) 1993-12-13 1993-12-13 File system management method

Publications (2)

Publication Number Publication Date
JPH07160551A JPH07160551A (en) 1995-06-23
JP2508607B2 true JP2508607B2 (en) 1996-06-19

Family

ID=18018769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5311565A Expired - Lifetime JP2508607B2 (en) 1993-12-13 1993-12-13 File system management method

Country Status (1)

Country Link
JP (1) JP2508607B2 (en)

Also Published As

Publication number Publication date
JPH07160551A (en) 1995-06-23

Similar Documents

Publication Publication Date Title
US5826262A (en) Parallel bottom-up construction of radix trees
US5852826A (en) Parallel merge sort method and apparatus
JP3510042B2 (en) Database management method and system
KR20010103705A (en) Method and apparatus for concurrent dbms table operations
JPH0554076A (en) Data search and data holding method in memory
CN111984729A (en) Heterogeneous database data synchronization method, device, medium and electronic equipment
US8589652B2 (en) Reorganization of a fragmented directory of a storage data structure comprised of the fragmented directory and members
KR20030065308A (en) Garbage Collection
US7509461B1 (en) Method and apparatus for intelligent buffer cache pre-emption
JP2508607B2 (en) File system management method
JP2787107B2 (en) Buffer control system and device
US20040047357A1 (en) Method for accessing a memory unit in which sequences of notes are stored, corresponding memory unit and corresponding program
JP2633342B2 (en) Information retrieval device
JP2586610B2 (en) File creation method
JP2010061604A (en) Consistency verification system, verification method, and program
JPH0728836A (en) Data base retrieving method and data base system using this method
JPH06251067A (en) Parallel data retriever
JPH02116936A (en) Reorganizing system
JPH0228846A (en) Data storing system
JPH06208502A (en) Memory control method
JPH0193819A (en) Index exclusive control system
JPH03174654A (en) Filing method and its device
JPS63298543A (en) Access control system for file with key
JPH01283653A (en) Memory pool managing system
JPS6091445A (en) Information retrieving system