JPH0247738A - File management method - Google Patents

File management method

Info

Publication number
JPH0247738A
JPH0247738A JP63198222A JP19822288A JPH0247738A JP H0247738 A JPH0247738 A JP H0247738A JP 63198222 A JP63198222 A JP 63198222A JP 19822288 A JP19822288 A JP 19822288A JP H0247738 A JPH0247738 A JP H0247738A
Authority
JP
Japan
Prior art keywords
file
identification number
file identification
area
information
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
JP63198222A
Other languages
Japanese (ja)
Inventor
Toru Tsubosaki
坪崎 徹
Koji Sugishita
杉下 幸司
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 JP63198222A priority Critical patent/JPH0247738A/en
Publication of JPH0247738A publication Critical patent/JPH0247738A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ファイルを管理する方法に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a method for managing files.

従来の技術 第5図は、従来のファイル管理方法のプロック図である
。第6図において、61はファイル管理手段、52は中
央処理装置(CPU)、63は情報記録再生装置である
Prior Art FIG. 5 is a block diagram of a conventional file management method. In FIG. 6, 61 is a file management means, 52 is a central processing unit (CPU), and 63 is an information recording/reproducing device.

以上のように構成された従来のファイル管理方法につい
て、以下その動作を説明する。
The operation of the conventional file management method configured as described above will be described below.

ファイル管理手段51は、ファイルの位置を示す情報を
格納するファイル位置格納領域を、ファイルを一意に識
別可能なファイル識別番号順に情報記録再生装置63に
装着されている記録媒体中のファイル管理情報を格納す
る領域に配置し、ファイル識別番号を持つファイルが存
在する場合、当該ファイル識別番号と対を成すファイル
位置格納領域にファイルの位置を示す情報を格納し、フ
ァイル識別番号を持つファイルが存在しない場合、当該
ファイル識別番号と対を成すファイル位置格納領域にフ
ァイルが存在しないことを示す情報を格納することによ
りファイルを管理している。
The file management means 51 stores file location storage areas for storing information indicating file locations, and stores file management information in the recording medium installed in the information recording/reproducing device 63 in the order of file identification numbers that can uniquely identify the files. If there is a file that is placed in the storage area and has a file identification number, information indicating the file position is stored in the file location storage area that is paired with the file identification number, and there is no file with the file identification number. In this case, the file is managed by storing information indicating that the file does not exist in the file location storage area paired with the file identification number.

ファイル管理手段51は、CPU52からファイル削除
の指示を受けると、削除するファイルのファイル識別番
号と対を成すファイル位置格納領域にファイルが存在し
ないことを示す情報を格納する。
When the file management means 51 receives a file deletion instruction from the CPU 52, it stores information indicating that the file does not exist in the file location storage area that is paired with the file identification number of the file to be deleted.

ファイル管理手段61は、CPU52からファイル生成
の指示を受けると第6図のアルゴリズムに従って所与の
ファイル生成を行う。
When the file management means 61 receives a file generation instruction from the CPU 52, it generates a given file according to the algorithm shown in FIG.

第6図の説明を行う。第6図は、以下のようなアルゴリ
ズムを示している。第6図中ファイル識別番号はfid
、ファイル位置格納領域はflaと略記している。
FIG. 6 will be explained. FIG. 6 shows the following algorithm. The file identification number in Figure 6 is fid
, the file location storage area is abbreviated as fla.

(SOl)  検索するファイル識別番号を1にする。(SOl) Set the file identification number to be searched to 1.

(602)へ行く。Go to (602).

(602)  検索するファイル識別番号と対を成すフ
ァイル位置格納領域にファイルが存在しないことを示す
情報が格納されているか否かを判断する。
(602) Determine whether information indicating that the file does not exist is stored in the file location storage area that pairs with the file identification number to be searched.

格納されている場合は、(803)へ行く。そうでない
場合は、(604)へ行く。
If it is stored, go to (803). If not, go to (604).

(603)   (602)で検索した領域に作成した
ファイルの位置を示す情報を格納する。処理を終了する
(603) Information indicating the location of the created file is stored in the area searched in (602). Finish the process.

(eo4)  検索するファイル識別番号を1増加する
。(602)へ行く。
(eo4) Increase the file identification number to be searched by 1. Go to (602).

発明が解決しようとする課題 しかしながら、上記のような構成では、あるファイル1
を削除した直後に別のファイル2を新たに生成した時、
ファイル1のファイル識別番号とファイル2のファイル
識別番号が同一の番号となり、ファイル1を生成したプ
ロセスとファイル2を生成したプロセスが異なり、前者
のプロセスカフアイル識別番号を用いてファイルを参照
した場合、後者のプロセスがファイル1を削除する前で
あればファイル1を参照し、後者のプロセスがファイル
1を削除した後であればファイル2を参照し、2つのプ
ロセスの実行順序によって参照するファイルが異なり、
意図しないファイルを参照するという問題点を有してい
た。
Problems to be Solved by the Invention However, in the above configuration, if a certain file 1
When a new file 2 is created immediately after deleting ,
When the file identification number of file 1 and the file identification number of file 2 are the same number, the process that generated file 1 and the process that generated file 2 are different, and the file is referenced using the process file identification number of the former. , if the latter process is before deleting file 1, it will refer to file 1, if after the latter process has deleted file 1, it will refer to file 2, and depending on the execution order of the two processes, the file to be referred to will be Unlike,
This has the problem of referencing unintended files.

本発明はかかる点に鑑み、意図しないファイルの参照を
防止することを目的とする。
In view of this point, the present invention aims to prevent unintended file references.

課題を解決するための手段 本発明は、ファイルを一意に識別可能なファイル識別番
号を各ファイルに割り振シ、ファイルの位置もしくはフ
ァイル生成時に割り振る前記ファイル識別番号の使用順
序を示す情報を格納するファイル位置格納領域を前記フ
ァイル識別番号順にファイル管理情報を格納する領域に
配置し、予め前記ファイル識別番号の順に、番号の若い
ファイル識別番号が先に使用されるように、前記ファイ
ル識別番号の使用順序を示す情報を各々のファイル識別
番号と対を成すファイル位置格納領域に格納し、最初に
使用すべきファイル識別番号を特定する情報を格納する
先頭ファイル識別番号特定領域と最後に使用すべきファ
イル識別番号を特定する情報を格納する最終ファイル識
別番号特定領域をファイルの管理情報を格納する領域に
有し、ファイルを生成する場合は、前記先頭ファイル識
別番号特定領域に示される情報によって特定される最初
に使用すべきファイル識別番号と対を成すファイル位置
格納領域に、生成したファイルの位置を示す情報を格納
し、前記先頭ファイル識別番号特定領域に、次に使用す
べきファイル識別番号を特定する情報を格納し、ファイ
ルを削除する場合は、当該ファイルに割り撮られていた
ファイル識別番号を最後に使用すべきファイル識別番号
とし、当該ファイル識別番号が最後に使用すべきである
ことを示す情報を当該ファイル識別番号と対を成すファ
イル位置格納領域に格納し、前記最終ファイル識別番号
特定領域に削除したファイル識別番号を特定する情報を
格納する方法を備えだファイル管理方式である。
Means for Solving the Problems The present invention allocates a file identification number that can uniquely identify a file to each file, and stores information indicating the location of the file or the order in which the file identification numbers allocated at the time of file generation are used. A file location storage area is arranged in the area for storing file management information in the order of the file identification numbers, and the file identification numbers are used in advance in the order of the file identification numbers so that the file identification numbers with the lowest numbers are used first. Information indicating the order is stored in a file position storage area that is paired with each file identification number, and a first file identification number specific area that stores information that specifies the file identification number to be used first and a file to be used last. A final file identification number specification area for storing information specifying the identification number is provided in the area for storing file management information, and when a file is generated, it is specified by the information shown in the first file identification number specification area. Information indicating the position of the generated file is stored in the file position storage area that is paired with the file identification number to be used first, and the file identification number to be used next is specified in the first file identification number identification area. When storing information and deleting a file, the file identification number assigned to the file should be the last file identification number to be used, and information indicating that the file identification number should be used last. This file management method includes a method of storing information for specifying the deleted file identification number in the file location storage area that is paired with the file identification number, and storing information for specifying the deleted file identification number in the final file identification number specifying area.

作  用 本発明は前記した構成により、ファイルを生成する場合
は、前記先頭ファイル識別番号特定領域に示される情報
によって特定される最初に使用すべきファイル識別番号
と対を成すファイル位置格納領域に、生成したファイル
の位置を示す情報を格納し、前記先頭ファイル識別番号
特定領域に、次に使用すべきファイル識別番号を特定す
る情報を格納し、ファイルを削除する場合は、当該ファ
イルに割り撮られていたファイル識別番号を最後に使用
すべきファイル識別番号とし、当該ファイル識別番号が
最後に使用すべきであることを示す情報を当該ファイル
識別番号と対を成すファイル位置格納領域に格納し、前
記最終ファイル識別番号特定領域に削除したファイルの
ファイル識別番号を特定する情報を格納し、意図しない
ファイルの参照を防止することを可能とするものである
According to the above-described configuration, when a file is generated, the present invention stores, in the file position storage area that pairs with the file identification number to be used first, which is specified by the information shown in the first file identification number identification area, Stores information indicating the location of the generated file, stores information that specifies the next file identification number to be used in the first file identification number specification area, and when deleting a file, the The file identification number that has been previously used is set as the file identification number that should be used last, information indicating that the file identification number should be used last is stored in the file location storage area that is paired with the file identification number, and Information specifying the file identification number of the deleted file is stored in the final file identification number identification area, making it possible to prevent unintended file references.

実施例 第1図は、本発明の一実施例におけるファイル管理方法
のブロック図を示すものである。第1図において、11
はファイル管理手段、12は中央処理装置(CPU)、
13は情報記録再生装置である。
Embodiment FIG. 1 shows a block diagram of a file management method in an embodiment of the present invention. In Figure 1, 11
is a file management means, 12 is a central processing unit (CPU),
13 is an information recording/reproducing device.

以上のように構成された本実施例のファイル管理方法に
ついて以下その動作を説明する。
The operation of the file management method of this embodiment configured as described above will be described below.

ファイル管理手段11は、ファイルシステム内でファイ
ルを一意に識別可能なファイル識別番号を各ファイルに
割り撮り、ファイルの位置もしくはファイル生成時に割
シ振る前記ファイル識別番号の使用順序を示す情報を格
納するファイル位置格納領域を前記ファイル識別番号順
にファイル管理情報を格納する領域に配置し、予め前記
ファイル識別番号の順に、番号の若いファイル識別番号
が先に使用されるように、前記ファイル識別番号の使用
順序を示す情報を各々のファイル識別番号と対を成すフ
ァイル位置格納領域に格納し、最初に使用すべきファイ
ル識別番号と対を成すファイル位置格納領域に格納され
ている数を示すカウンタ1と最後に使用すべきファイル
識別番号と対を成すファイル位置格納領域に格納されて
いる数を示すカウンタ2をファイルの管理情報を格納す
る領域に有することによってファイルを管理している。
The file management means 11 assigns to each file a file identification number that can uniquely identify the file within the file system, and stores information indicating the position of the file or the order in which the file identification numbers assigned at the time of file generation are used. A file location storage area is arranged in the area for storing file management information in the order of the file identification numbers, and the file identification numbers are used in advance in the order of the file identification numbers so that the file identification numbers with the lowest numbers are used first. Information indicating the order is stored in the file location storage area that pairs with each file identification number, and a counter 1 indicating the number stored in the file location storage area that pairs with the file identification number that should be used first and the last one are stored. Files are managed by having a counter 2 in the area for storing file management information that indicates the number stored in the file position storage area that is paired with the file identification number to be used.

ファイル識別番号の使用順序を示す情報はファイルシス
テムに同時に存在することが可能なファイル数を法とす
る数に1を加えた数の負数を使用して表現する。予めフ
ァイル識別番号の順に、番号の若いファイル識別番号が
先に使用されるように、各々のファイル位置格納領域に
は、−1からファイルシステムに同時に存在することが
可能なファイル数の負数を順に格納し、前記カウンタ1
は−1、前記カウンタ2はファイルシステムに同時に存
在することが可能なファイル数の負数を格納する。
Information indicating the order in which file identification numbers are used is expressed using a negative number that is the modulus of the number of files that can exist simultaneously in the file system plus one. In advance, in the order of file identification numbers, each file location storage area is filled with negative numbers from -1 to the number of files that can exist simultaneously in the file system, so that the file identification number with the lowest number is used first. Store the counter 1
is -1, and the counter 2 stores a negative number of the number of files that can exist simultaneously in the file system.

第2図は、ファイル管理情報を格納する領域の概念図で
ある。第2図において、21はカウンタ1.22はカウ
ンタ2.23はファイル位置格納領域である。
FIG. 2 is a conceptual diagram of an area for storing file management information. In FIG. 2, 21 is a counter 1, 22 is a counter 2, and 23 is a file location storage area.

ファイル管理手段11は、CPU12からファイル削除
の指示を受けると第3図のアルゴリズムに従って、所与
のファイル削除を行う。
When the file management means 11 receives a file deletion instruction from the CPU 12, it deletes a given file according to the algorithm shown in FIG.

第3図の説明を行う。第3図は、以下のようなアルゴリ
ズムを示している。第3図中ファイル識別番号はfid
、ファイル位置格納領域はflaと略記している。
FIG. 3 will be explained. FIG. 3 shows the following algorithm. The file identification number in Figure 3 is fid.
, the file location storage area is abbreviated as fla.

(301)  前記カウンタ2で示される数を得る。(301) Obtain the number indicated by the counter 2.

(302)へ行く。Go to (302).

(302)  (301)で得た数の絶対値がファイル
システムに同時に存在することが可能なファイルの数と
等しいか否かを判断する。等しい場合は(303)へ行
く。等しくない場合は、(304)へ行く。
(302) Determine whether the absolute value of the number obtained in (301) is equal to the number of files that can exist simultaneously in the file system. If they are equal, go to (303). If they are not equal, go to (304).

(303) 削除するファイルのファイル識別番号と対
を成すファイル位置格納領域に−1を格納する。(30
5)へ行く。
(303) -1 is stored in the file location storage area that is paired with the file identification number of the file to be deleted. (30
Go to 5).

(304)  削除するファイルのファイル識別番号と
対を成すファイル位置格納領域に(301)で得た数か
ら1減じた数を格納する。(305)へ行く。
(304) The number obtained in (301) minus 1 is stored in the file location storage area that is paired with the file identification number of the file to be deleted. Go to (305).

(305)  削除するファイルのファイル識別番号と
対を成すファイル位置格納領域に格納された数をカウン
タ2に格納する。処理を終了する。
(305) The number stored in the file position storage area that is paired with the file identification number of the file to be deleted is stored in the counter 2. Finish the process.

ファイル管理手段11は、CPU12からファイル生成
の指示を受けると第4図のアルゴリズムに従って、所与
のファイル生成を行う。
When the file management means 11 receives a file generation instruction from the CPU 12, it generates a given file according to the algorithm shown in FIG.

第4図の説明を行う。第4図は、以下のようなアルゴリ
ズムを示している。第4図中ファイル識別番号はfid
、ファイル位置格納領域はflaと略記している。
FIG. 4 will be explained. FIG. 4 shows the following algorithm. The file identification number in Figure 4 is fid.
, the file location storage area is abbreviated as fla.

(4C)1 )  前記カウンタ1で示される数を得る
(4C)1) Obtain the number indicated by the counter 1.

(402)へ行く。Go to (402).

(402)  (401)で得た数が格納されているフ
ァイル位置格納領域に生成したファイルの位置を示す情
報を格納する。(403)へ行く。
(402) Information indicating the position of the generated file is stored in the file position storage area where the number obtained in (401) is stored. Go to (403).

(4o3)  (401)で得た数の絶対値がファイル
システムに同時に存在することが可能なファイルの数と
等しいか否かを判断する。等しい場合は(404)へ行
く。等しくない場合は(405)へ行く。
(4o3) Determine whether the absolute value of the number obtained in (401) is equal to the number of files that can exist simultaneously in the file system. If they are equal, go to (404). If they are not equal, go to (405).

(404)  前記カウンタ1に−1を格納する。処理
を終了する。
(404) -1 is stored in the counter 1. Finish the process.

(aOS)  前記カウンタ1に(4o1)で得た数か
ら1減じた数を格納する。処理を終了する。
(aOS) Store the number obtained in (4o1) minus 1 in the counter 1. Finish the process.

以上のように本実施例によれば、ファイルを一意に識別
可能なファイル識別番号を各ファイルに割り振り、ファ
イルの位置もしくはファイル生成時に割り振る前記ファ
イル識別番号の使用順序を示す情報を格納するファイル
位置格納領域を前記ファイル識別番号順にファイル管理
情報を格納する領域に配置し、予め前記ファイル識別番
号の順に、番号の若いファイル識別番号が先に使用され
るように、前記ファイル識別番号の使用順序を示す情報
を各々のファイル識別番号と対を成すファイル位置格納
領域に格納し、最初に使用すべきファイル識別番号を特
定する情報を格納する先頭ファイル識別番号特定領域と
最後に使用すべきファイル識別番号を特定する情報を格
納する最終ファイル識別番号特定領域をファイルの管理
情報を格納する領域に有し、ファイルを生成する場合は
、前記先頭ファイル識別番号特定領域に示される情報に
よって特定される最初に使用すべきファイル識別番号と
対を成すファイル位置格納領域に、生成したファイルの
位置を示す情報を格納し、前記先頭ファイル識別番号特
定領域に、次に使用すべきファイル識別番号を特定する
情報を格納し、ファイルを削除する場合は、当該ファイ
ルに割り振られていたファイル識別番号を最後に使用す
べきファイル識別番号とし、当該ファイル識別番号に使
用すべきであることを示す情報を当該ファイル識別番号
と対を成すファイル位置格納領域に格納し、前記最終フ
ァイル識別番号特定領域に削除したファイルのファイル
識別番号を特定する情報を′格納することにより、意図
しないファイルの参照を防止することを可能とする。
As described above, according to this embodiment, a file identification number that can uniquely identify the file is assigned to each file, and a file location where information indicating the file location or the order of use of the file identification number assigned at the time of file generation is stored. A storage area is arranged in the area for storing file management information in the order of the file identification numbers, and the use order of the file identification numbers is determined in advance in the order of the file identification numbers so that the file identification numbers with the lowest numbers are used first. information is stored in a file location storage area that pairs with each file identification number, and a first file identification number specific area that stores information that specifies the file identification number that should be used first and a file identification number that should be used last. The area for storing file management information has a final file identification number specification area that stores information that identifies the file, and when a file is generated, the first file identification number specification area specified by the information shown in the first file identification number specification area is provided. Information indicating the position of the generated file is stored in the file position storage area that is paired with the file identification number to be used, and information specifying the file identification number to be used next is stored in the first file identification number specification area. When storing and deleting a file, the file identification number assigned to the file will be the last file identification number to be used, and the information indicating that it should be used will be added to the file identification number. By storing information that specifies the file identification number of the deleted file in the file location storage area paired with the final file identification number identification area, it is possible to prevent unintentional file reference. do.

発明の詳細 な説明したように、本発明によれば、ファイルを一意に
識別可能なファイル識別番号を各ファイルに割り振り、
ファイルの位置もしくはファイル生成時に割り振る前記
ファイル識別番号の使用順序を示す情報を格納するファ
イル位置格納領域を前記ファイル識別番号順にファイル
管理情報を格納する領域に配置し、予め前記ファイル識
別番号の順に、番号の若いファイル識別番号が先に使用
されるように、前記ファイル識別番号の使用順序を示す
情報を各々のファイル識別番号と対を成すファイル位置
格納領域に格納し、最初に使用すべきファイル識別番号
を特定する情報を格納する先頭ファイル識別番号特定領
域と最後に使用すべきファイル識別番号を特定する情報
を格納する最終ファイル識別番号特定領域をファイルの
管理情報を格納する領域に有し、ファイルを生成する場
合は、前記先頭ファイル識別番号特定領域に示される情
報によって特定される最初に使用すべきファイル識別番
号と対を成すファイル位置格納領域に、生成したファイ
ルの位置を示す情報を格納し、前記先頭ファイル識別番
号特定領域に、次に使用すべきファイル識別番号を特定
する情報を格納し、ファイルを削除する場合は、当該フ
ァイルに割り振られていたファイル識別番号を最後に使
用すべき識別番号とし、当該ファイル識別番号が最後に
使用すべきであることを示す情報を当該ファイル識別番
号と対を成すファイル位置格納領域に格納し、前記最終
ファイル識別番号特定領域に削除したファイルのファイ
ル識別番号を特定する情報を格納することにより、意図
しないファイルの参照を防止することを可能とし、その
実用的効果は太きい。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, a file identification number that can uniquely identify a file is assigned to each file,
A file location storage area for storing information indicating the file location or the order of use of the file identification numbers allocated at the time of file generation is arranged in the area for storing file management information in the order of the file identification numbers, and in advance in the order of the file identification numbers, Information indicating the order in which the file identification numbers are used is stored in a file position storage area paired with each file identification number so that the file identification number with the lowest number is used first, and the file identification number to be used first is stored. The area for storing file management information has a first file identification number specification area that stores information that specifies the number, and a final file identification number specification area that stores information that specifies the file identification number that should be used at the end. When generating a file, information indicating the position of the generated file is stored in a file position storage area that is paired with the file identification number that should be used first, which is specified by the information shown in the first file identification number specification area. , In the first file identification number specific area, information specifying the file identification number to be used next is stored, and when deleting a file, the file identification number assigned to the file concerned is stored as the identification number to be used last. information indicating that the file identification number should be used last is stored in the file location storage area paired with the file identification number, and the file identification of the deleted file is stored in the final file identification number specific area. By storing information that specifies the number, it is possible to prevent unintentional file references, which has a great practical effect.

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

第1図は本発明における一実施例のファイル管理方法の
ブロック図、第2図はファイル管理情報を格納する領域
の概念図、第3図は本発明における一実施例のファイル
削除のアルゴリズムを示すフローチャート、第4図は本
発明における一実施例のファイル生成のアルゴリズムを
示すフローチャート、第5図は従来例のファイル管理方
法のブロック図、第6図は従来例のファイル生成のアル
ゴリズムを示すフローチャートである。 11・・・・・・ファイル管理手段、12・・・・・・
中日処理装置(CPU)、13・・・・・・情報記録再
生装置、21・・・・・・カウンタ1.22・・・・・
・カウンタ2.23・・・・・・ファイル位置格納領域
。 代理人の氏名 弁理士粟野 重孝#>1名第2図 第 図 第 図
FIG. 1 is a block diagram of a file management method according to an embodiment of the present invention, FIG. 2 is a conceptual diagram of an area for storing file management information, and FIG. 3 is a file deletion algorithm according to an embodiment of the present invention. FIG. 4 is a flowchart showing a file generation algorithm according to an embodiment of the present invention, FIG. 5 is a block diagram of a conventional file management method, and FIG. 6 is a flowchart showing a conventional file generation algorithm. be. 11...File management means, 12...
Chunichi processing unit (CPU), 13... Information recording/reproducing device, 21... Counter 1.22...
- Counter 2.23...File position storage area. Name of agent: Patent attorney Shigetaka Awano #> 1 person Figure 2 Figure Figure

Claims (1)

【特許請求の範囲】[Claims] ファイルを一意に識別可能なファイル識別番号を各ファ
イルに割り振り、ファイルの位置もしくはファイル生成
時に割り振る前記ファイル識別番号の使用順序を示す情
報を格納するファイル位置格納領域を前記ファイル識別
番号順にファイル管理情報を格納する領域に配置し、予
め前記ファイル識別番号の順に、番号の若いファイル識
別番号が先に使用されるように、前記ファイル識別番号
の使用順序を示す情報を各々のファイル識別番号と対を
成すファイル位置格納領域に格納し、最初に使用すべき
ファイル識別番号を特定する情報を格納する先頭ファイ
ル識別番号特定領域と最後に使用すべきファイル識別番
号を特定する情報を格納する最終ファイル識別番号特定
領域をファイルの管理情報を格納する領域に有し、ファ
イルを生成する場合は、前記先頭ファイル識別番号特定
領域に示される情報によって特定される最初に使用すべ
きファイル識別番号と対を成すファイル位置格納領域に
、生成したファイルの位置を示す情報を格納し、前記先
頭ファイル識別番号特定領域に、次に使用すべきファイ
ル識別番号を特定する情報を格納し、ファイルを削除す
る場合は、当該ファイルに割り振られていたファイル識
別番号を最後に使用すべきファイル識別番号とし、当該
ファイル識別番号が最後に使用すべきであることを示す
情報を当該ファイル識別番号と対を成すファイル位置格
納領域に格納し、前記最終ファイル識別番号特定領域に
削除したファイルのファイル識別番号を特定する情報を
格納することを特徴とするファイル管理方法。
A file identification number that can uniquely identify the file is assigned to each file, and a file location storage area that stores information indicating the file location or the order of use of the file identification number assigned at the time of file generation is arranged in the order of the file identification number using file management information. is placed in the storage area, and information indicating the order of use of the file identification numbers is paired with each file identification number in advance in the order of the file identification numbers, so that the file identification number with the smallest number is used first. A first file identification number specification area that stores information that specifies the file identification number that should be used first, and a final file identification number that stores information that specifies the file identification number that should be used last. When a specific area is provided as an area for storing file management information and a file is generated, a file that is paired with the file identification number to be used first specified by the information shown in the first file identification number specific area. Information indicating the position of the generated file is stored in the position storage area, information specifying the file identification number to be used next is stored in the first file identification number identification area, and when the file is deleted, the relevant The file identification number assigned to the file is set as the last file identification number to be used, and information indicating that the file identification number should be used last is stored in the file location storage area that pairs with the file identification number. A file management method characterized in that information for specifying a file identification number of a deleted file is stored in the final file identification number specifying area.
JP63198222A 1988-08-09 1988-08-09 File management method Pending JPH0247738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63198222A JPH0247738A (en) 1988-08-09 1988-08-09 File management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63198222A JPH0247738A (en) 1988-08-09 1988-08-09 File management method

Publications (1)

Publication Number Publication Date
JPH0247738A true JPH0247738A (en) 1990-02-16

Family

ID=16387537

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63198222A Pending JPH0247738A (en) 1988-08-09 1988-08-09 File management method

Country Status (1)

Country Link
JP (1) JPH0247738A (en)

Similar Documents

Publication Publication Date Title
US5974427A (en) Method and computer system for implementing concurrent accesses of a database record by multiple users
US5751997A (en) Method and apparatus for transferring archival data among an arbitrarily large number of computer devices in a networked computer environment
TW316309B (en)
EP0487331A2 (en) Directory management system
JPH0247738A (en) File management method
JPH0277949A (en) File producing method
JPH0247737A (en) File management method
JPH07334397A (en) Deleted file managing system
JPH06309209A (en) File backup system
JPH04289931A (en) Variable length file managing system
JPH0573389A (en) Recovering method for file
JP2740451B2 (en) Catalog management file optimization method
JP2658964B2 (en) Data record storage position control method
JP2817911B2 (en) Access control method for keyed files
JPH07200378A (en) Library file management equipment
JPH05151037A (en) Reorganization processing system for database in business processing
JPH06119213A (en) Backup file management method
JPS62154149A (en) Control system for data area allocation of area shared file
JP3398672B2 (en) Intermediate data storage device
JP2000148550A (en) Area management method and free area management method for file
JP2004334255A (en) Area sharing file management device, member deletion method, and program
JPH04156626A (en) File entry generating system for vtoc
JP2001265649A (en) Memory management method and device
JPS63239540A (en) Data management system in memory medium
JPH03100744A (en) Data base control system