JPH04145548A - File controlling system - Google Patents

File controlling system

Info

Publication number
JPH04145548A
JPH04145548A JP2268979A JP26897990A JPH04145548A JP H04145548 A JPH04145548 A JP H04145548A JP 2268979 A JP2268979 A JP 2268979A JP 26897990 A JP26897990 A JP 26897990A JP H04145548 A JPH04145548 A JP H04145548A
Authority
JP
Japan
Prior art keywords
record
file
management table
data
fat
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
JP2268979A
Other languages
Japanese (ja)
Inventor
Yukio Yokogawa
横川 幸雄
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2268979A priority Critical patent/JPH04145548A/en
Publication of JPH04145548A publication Critical patent/JPH04145548A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To hold the data required for restoring in-file record management table (FAT) areas even when data destruction occurs in an FAT area by adding data for restoring FAT areas to the leading edge of a data record. CONSTITUTION:When a record R6 is further written in a file A, the record R6 is written in the record storing area 14 of the data area corresponding to a FAT number '9' and the '9' is added as the in-FAT relative record information 12 of the record R5 which is the last record before writing the record R6. In addition, 'FF' is added as the in-FAT relative record information 12 of the record R6. Moreover, the '9' which is the in-FAT relative record information 12 of the record R5 is stored in the in-FAT relative record information storing area 13 of the record storing area 14 of the record R5. Therefore, even when the FAT area is destroyed, the data in the FAT area can be restored automatically by referring to the FAT data which are the pointers indicating next records at the leading edge of each record.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル制御方式に関し、特にコードデータを
ファイルするファイル制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file control method, and particularly to a file control method for filing code data.

〔従来の技術〕[Conventional technology]

従来、この種のファイルにおいては、コードデータ領域
を効率よく使用するための手法として、ファイル内レコ
ード管理テーブル(以下、FATという)領域を用いた
間接アクセスを行っている。
Conventionally, in this type of file, indirect access using an in-file record management table (hereinafter referred to as FAT) area has been performed as a method for efficiently using the code data area.

第2図は従来のファイル制御方式のデータファイル構造
を示す図である。
FIG. 2 is a diagram showing a data file structure of a conventional file control method.

第2図のファイルは、ファイル名等の情報が格納されて
いるディレクトリ領域と、ファイル内の各レコードを管
理するための情報を格納したFAT領域と、レコードが
格納されたデータ領域とから構成されており、ファイル
AのレコードR1〜R6と、ファイルBのレコードF1
〜F4が格納されている。
The file in Figure 2 consists of a directory area where information such as file names is stored, a FAT area where information for managing each record in the file is stored, and a data area where records are stored. records R1 to R6 of file A and record F1 of file B.
~F4 are stored.

第2図において、ファイルへのレコードのR1−R4は
FAT番号11のrOJ〜「3」に対応するレコード格
納領域14に格納され、R5,R,はFAT番号11の
18」、r9」に対応するデータ領域のレコード格納領
域14に格納されている。そして、上記のレコードの管
理を行うため、FAT領域においては、FAT内相内相
コレコード情報12納されている。すなわち、FAT内
相内相コレコード情報12て、例えば、FAT番号「0
」に対応する領域に、次に続くレコードR2の格納位置
を示すFAT番号である「1」が格納され、FAT番号
「1」に対応する領域に、次に続くレコードR3の格納
位置を示すFAT番号である「2」が格納されている。
In Fig. 2, records R1-R4 of the file are stored in the record storage area 14 corresponding to FAT number 11 rOJ~``3'', and R5, R, correspond to FAT number 11 18'', r9''. It is stored in the record storage area 14 of the data area. In order to manage the above-mentioned records, FAT internal core record information 12 is stored in the FAT area. That is, the FAT internal core record information 12, for example, the FAT number "0"
”, the FAT number “1” indicating the storage position of the next record R2 is stored, and the area corresponding to the FAT number “1” stores the FAT number “1” indicating the storage position of the next record R3. The number "2" is stored.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のファイル制御方式では、データ領域に存
在するレコードは、すべてFAT内の索引データにより
管理されているため、ハードウェア障害及びソフトウェ
アの暴走等の物理的/論理的要因により、FAT領域の
データ破壊が発生した場合、FAT領域の索引データと
データ領域のデータレコードとの関係が不正となるため
、必要なFAT領域の索引データが得られなくなり、該
当ファイルのデータのアクセスができなくなるという問
題点があった。
In the conventional file control method described above, all records existing in the data area are managed by index data in the FAT, so physical/logical factors such as hardware failure and software runaway may cause the FAT area to become When data is destroyed, the relationship between the index data in the FAT area and the data records in the data area becomes incorrect, making it impossible to obtain the necessary index data in the FAT area and making it impossible to access the data in the file. There was a point.

本発明の目的は、ハードウェア障害及びソフトウェアの
暴走等の物理的/論理的要因により、FAT領域の索引
データの破壊が発生した場合でも、FAT領域の復旧を
行うために用いられるデータを保持することができるフ
ァイル制御方式を提供することにある。
An object of the present invention is to retain data used for restoring the FAT area even if index data in the FAT area is destroyed due to physical/logical factors such as hardware failure or software runaway. The goal is to provide a file control method that can

〔課題を解決するための手段〕[Means to solve the problem]

本発明のファイル制御方式は、パーソナルコンピュータ
のファイル形式として、コードデータからなるデータ領
域と、前記データ領域の索引情報を管理するファイル内
レコード管理テーブル領域と、ファイル名を含む情報が
格納されているディレクトリ部とを備えたファイル制御
方式において、 (A)該当ファイルの最後のレコード番号を抽出する最
終レコード番号抽出手段、 (B)対応する前記データ領域にレコードが書き込まれ
ず、未使用の状態にある、前記ファイル内レコード管理
テーブル領域におけるファイルレコード管理テーブル番
号を抽出する空レコード管理テーブル番号抽出手段、 (C)前記空レコード管理テーブル番号抽出手段により
抽出された未使用のファイルレコード管理テーブル番号
が示すデータ領域に新しいレコードを書き込むデータ書
込手段、 (D)前記未使用のファイルレコード管理テーブル番号
が示すデータ領域に新しいレコードを書き込む前の最後
のレコードに対して前記未使用ファイルレコード管理テ
ーブル番号を付与するファイル内レコード管理テーブル
番号付与手段、 (E)前記未使用ファイルレコード管理テーブル番号を
付与されたレコードの先頭に、前記未使用ファイルレコ
ード管理テーブル番号を格納するファイル内レコード管
理テーブル番号格納手段、 を備え、ファイル内しフード管理テーブル領域を破壊し
た場合でも、各レコードの先頭にあって次のレコードを
示すポインタであるファイル内レコード管理テーブルデ
ータを参照することによりファイル内レコード管理テー
ブル領域のデータを自動復旧させることができるように
構成されている。
The file control method of the present invention is a personal computer file format in which a data area consisting of code data, an in-file record management table area for managing index information of the data area, and information including a file name are stored. (A) a final record number extraction means for extracting the last record number of the file; (B) no record has been written to the corresponding data area and it is in an unused state; , empty record management table number extraction means for extracting a file record management table number in the in-file record management table area; (C) an unused file record management table number extracted by the empty record management table number extraction means; (D) data writing means for writing a new record in a data area; (D) writing the unused file record management table number for the last record before writing a new record in the data area indicated by the unused file record management table number; (E) In-file record management table number storage means for storing the unused file record management table number at the beginning of the record to which the unused file record management table number has been assigned. , and even if the in-file food management table area is destroyed, the in-file record management table area can be restored by referring to the in-file record management table data, which is the pointer at the beginning of each record that indicates the next record. It is configured to allow automatic data recovery.

〔実施例〕〔Example〕

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

本発明のファイル制御方式は、該当ファイルの最後のレ
コード番号を抽出する最終レコード番号抽出手段と、対
応するデータ領域にレコードが書き込まれず、未使用の
状態にある、ファイル内レコード管理テーブル領域にお
けるファイルレコード管理テーブル番号を抽出する空レ
コード管理テーブル番号抽出手段と、空レコード管理テ
ーブル番号抽出手段により抽出された未使用のファイル
レコード管理テーブル番号が示すデータ領域に新しいレ
コードを書き込むデータ書込手段と、未使用のファイル
レコード管理テーブル番号が示すデータ領域に新しいレ
コードを書き込む前の最後のレコードに対してその未使
用ファイルレコード管理テーブル番号を付与するファイ
ル内レコード管理テーブル番号付与手段と、上記未使用
ファイルレコード管理テーブル番号を付与されたレコー
ドの先頭に、上記未使用ファイルレコード管理テーブル
番号を格納するファイル内レコード管理テーブル番号格
納手段から構成されている。
The file control method of the present invention includes a final record number extraction means for extracting the last record number of a file, and a file in an in-file record management table area that is unused because no record has been written to the corresponding data area. empty record management table number extraction means for extracting a record management table number; data writing means for writing a new record into a data area indicated by an unused file record management table number extracted by the empty record management table number extraction means; an in-file record management table number assigning means for assigning an unused file record management table number to the last record before writing a new record to the data area indicated by the unused file record management table number, and the unused file. It is comprised of in-file record management table number storage means for storing the unused file record management table number at the head of a record to which a record management table number has been assigned.

次に、動作を説明する。Next, the operation will be explained.

第1図は本発明の一実施例のファイル構造であり、第1
図(a)はファイルAにレコードR1〜R5が書き込ま
れた状態を示し、第1図(b)はファイルAにさらにレ
コードR6が書き込まれた状態を示す。
FIG. 1 shows the file structure of one embodiment of the present invention.
FIG. 1(a) shows a state in which records R1 to R5 have been written in file A, and FIG. 1(b) shows a state in which record R6 has been further written in file A.

第1図のファイルは、ファイル名等の情報が格納されて
いるディレクトリ領域と、ファイル内の各レコードを管
理するための情報を格納したFAT領域と、レコードの
集まりであるデータ領域とから構成されている。
The file shown in Figure 1 consists of a directory area that stores information such as file names, a FAT area that stores information for managing each record in the file, and a data area that is a collection of records. ing.

第1図(a)において、ファイルAのレコードはNRI
〜R5が格納されているが、従来技術の項の第2図の場
合と同様に、R,−R4はFAT番号11のrOJ〜「
3」に対応するレコード格納領域14に格納され、R5
はFAT番号11の「8」に対応するレコード格納領域
14に格納されている。そして、上記のレコードの管理
を行うため、FAT領域においては、FAT内相内相コ
レコード情報12納されているが、FAT番号「7」、
「8」の個所には「FF」が格納されている。このrF
FJは、そのレコードが、そのレコードの属するファイ
ルAの最後のレコードであることを示している。
In Figure 1(a), the records in file A are NRI
~R5 is stored, but as in the case of FIG.
R5 is stored in the record storage area 14 corresponding to R5.
is stored in the record storage area 14 corresponding to FAT number 11 "8". In order to manage the above-mentioned records, the FAT area stores 12 FAT home office core record information, but the FAT number "7",
"FF" is stored in the location "8". This rF
FJ indicates that the record is the last record of file A to which the record belongs.

そして、レコード格納領域14に格納されている各レコ
ードの前にFAT内相内相コレコード情報納するFAT
内相内相コレコード情報格納領域13けられており、こ
こに、それぞれのレコードに対応するFAT内相内相コ
レコード情報納されている。ただし、FAT番号r7J
、r8Jの個所にrFFJが格納されているレコードは
、それぞれファイルA、Bの最後のレコードであるから
何も格納されない。
Then, before each record stored in the record storage area 14, FAT internal core record information is stored.
An internal core record information storage area 13 is provided, and FAT internal core record information corresponding to each record is stored here. However, FAT number r7J
, r8J are the last records of files A and B, respectively, so nothing is stored therein.

いま、第1図(a)の状態に、ファイルAのレコードと
して)Reをさらに書き込むものとする。
Now, suppose that Re (as a record of file A) is further written in the state shown in FIG. 1(a).

まず、最終レコード番号抽出手段により、FAT内相内
相コレコード情報12べ、「FF」が付与されているレ
コードを探し、ファイルAの最後のレコードRf5を抽
出する。次に、空レコード管理テーブル番号抽出手段に
より、FAT領域のFAT内相内相コレコード情報12
与されていないFAT番号11の個所を検出し、さらに
データ書込手段により、このFAT番号「9」に対応す
るデータ領域のレコード格納領域14にR8を第1図(
b)に示すように書き込む。そして、ファイル内レコー
ド管理テーブル番号付与手段により、R6を書き込む前
に最後のレコードであったR、!、のFAT内相内相コ
レコード情報12て「9」を付与し、R8を書き込んだ
FAT番号11のFAT内相内相コレコード情報12て
rFFJを付与する。また、R5のレコード格納領域1
4のFAT内相内相コレコード情報格納領域13、ファ
イル内レコード管理テーブル番号格納手段により、R6
のFAT内相内相コレコード情報12る「9」を格納す
る。
First, the last record number extracting means searches for a record to which "FF" is added in the FAT internal record information 12, and extracts the last record Rf5 of file A. Next, the empty record management table number extraction means extracts the FAT internal core record information 12 in the FAT area.
The location of the FAT number 11 that is not given is detected, and the data writing means writes R8 to the record storage area 14 of the data area corresponding to this FAT number "9" in FIG.
Write as shown in b). Then, by the in-file record management table number assigning means, R,!, which was the last record before writing R6, is used. "9" is assigned to the FAT internal core record information 12 of , and rFFJ is assigned to the FAT internal core record information 12 of the FAT number 11 in which R8 is written. In addition, record storage area 1 of R5
4 FAT internal information storage area 13, in-file record management table number storage means, R6
The FAT internal core record information 12 of "9" is stored.

このように、FAT領域復旧用データをデータレコード
の先頭に付加することにより、ファイル内レコード管理
テーブル領域を破壊した場合でモ、各レコードの先頭に
あって次のレコードを示すポインタであるファイル内レ
コード管理テーブルデータを参照し、ファイル内レコー
ド管理テーブル領域のデータを自動復旧させることがで
きる。
In this way, by adding the FAT area recovery data to the beginning of the data record, even if the in-file record management table area is destroyed, the in-file pointer that is at the beginning of each record and indicates the next record can be saved. By referring to the record management table data, the data in the record management table area within the file can be automatically restored.

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

以上説明したように、本発明は、FAT領域復旧用デー
タをデータレコードの先頭に付加することにより、ハー
ドウェア障害及びソフトウェアの暴走等の物理的/論理
的要因により、FAT領域のデータ破壊が発生した場合
でも、FAT領域の復旧を行うためのデータを保持する
ことができるという効果を有する。
As explained above, the present invention adds FAT area recovery data to the beginning of a data record, thereby preventing data corruption in the FAT area due to physical/logical factors such as hardware failure or software runaway. Even in such a case, data for restoring the FAT area can be retained.

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

第1図は本発明のファイル制御方式のデータファイル構
造を示す図、第2図は従来のファイル制御方式のデータ
ファイル構造を示す図である。 11・・・・・・FAT番号、12・・・・・・FAT
内相内相コレコード情報3・・・・・・FAT内相内相
コレコード情報格納領域4・・・・・・レコード格納領
域。 代理人 弁理士  内 原  晋
FIG. 1 is a diagram showing the data file structure of the file control method of the present invention, and FIG. 2 is a diagram showing the data file structure of the conventional file control method. 11...FAT number, 12...FAT
Internal affairs record information 3... FAT internal affairs records information storage area 4... Record storage area. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】 パーソナルコンピュータのファイル形式として、コード
データからなるデータ領域と、前記データ領域の索引情
報を管理するファイル内レコード管理テーブル領域と、
ファイル名を含む情報が格納されているディレクトリ部
とを備えたファイル制御方式において、 (A)該当ファイルの最後のレコード番号を抽出する最
終レコード番号抽出手段、 (B)対応する前記データ領域にレコードが書き込まれ
ず、未使用の状態にある、前記ファイル内レコード管理
テーブル領域におけるファイルレコード管理テーブル番
号を抽出する空レコード管理テーブル番号抽出手段、 (C)前記空レコード管理テーブル番号抽出手段により
抽出された未使用のファイルレコード管理テーブル番号
が示すデータ領域に新しいレコードを書き込むデータ書
込手段、 (D)前記未使用のファイルレコード管理テーブル番号
が示すデータ領域に新しいレコードを書き込む前の最後
のレコードに対して前記未使用ファイルレコード管理テ
ーブル番号を付与するファイル内レコード管理テーブル
番号付与手段、 (E)前記未使用ファイルレコード管理テーブル番号を
付与されたレコードの先頭に、前記未使用ファイルレコ
ード管理テーブル番号を格納するファイル内レコード管
理テーブル番号格納手段、 を備え、ファイル内レコード管理テーブル領域を破壊し
た場合でも、各レコードの先頭にあって次のレコードを
示すポインタであるファイル内レコード管理テーブルデ
ータを参照することによりファイル内レコード管理テー
ブル領域のデータを自動復旧させることができることを
特徴とするファイル制御方式。
[Claims] As a file format for a personal computer, a data area consisting of code data, an in-file record management table area for managing index information of the data area,
In a file control method comprising: (A) a final record number extracting means for extracting the last record number of the file; (B) a record in the corresponding data area; an empty record management table number extracting means for extracting a file record management table number in the in-file record management table area which is not written and is in an unused state; (D) data writing means for writing a new record in the data area indicated by the unused file record management table number; (D) for the last record before writing a new record in the data area indicated by the unused file record management table number; (E) in-file record management table number assigning means for assigning the unused file record management table number to the beginning of the record to which the unused file record management table number has been assigned; An in-file record management table number storing means is provided, and even if the in-file record management table area is destroyed, the in-file record management table data, which is a pointer at the beginning of each record and indicating the next record, is referenced. A file control method characterized in that data in an in-file record management table area can be automatically restored by automatically restoring data in a record management table area within a file.
JP2268979A 1990-10-05 1990-10-05 File controlling system Pending JPH04145548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2268979A JPH04145548A (en) 1990-10-05 1990-10-05 File controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2268979A JPH04145548A (en) 1990-10-05 1990-10-05 File controlling system

Publications (1)

Publication Number Publication Date
JPH04145548A true JPH04145548A (en) 1992-05-19

Family

ID=17465966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2268979A Pending JPH04145548A (en) 1990-10-05 1990-10-05 File controlling system

Country Status (1)

Country Link
JP (1) JPH04145548A (en)

Similar Documents

Publication Publication Date Title
AU700681B2 (en) A method of operating a computer system
RU2182360C2 (en) Method for computer system stored data access, method for data filing, and computer system for implementing these methods
US6510552B1 (en) Apparatus for keeping several versions of a file
US6092087A (en) Log file optimization in a client/server computing system
US8818950B2 (en) Method and apparatus for localized protected imaging of a file system
JPH06508708A (en) disk storage system
US20050262033A1 (en) Data recording apparatus, data recording method, program for implementing the method, and program recording medium
US20030074376A1 (en) File manager for storing several versions of a file
CN110928840B (en) Method for reading QNX6 file system
JPH01204163A (en) File controller
JPH09244933A (en) Method and device for backing up data base
JPH0158533B2 (en)
JP3957464B2 (en) Data update device
JPH04145548A (en) File controlling system
Srinivasan et al. Recoverable file system for microprocessor systems
US20060143423A1 (en) Storage device, data processing method thereof, data processing program thereof, and data processing system
JP2822869B2 (en) Library file management device
JPH0258653B2 (en)
JPH02132516A (en) System and method for write enable type optical disk controlling
JPH03125238A (en) Information control system
JPH03171241A (en) Backup data control system
Ushiroda File design of small real-time computer system
JPH03109653A (en) Initialization system for volume contents control table
JPS6358556A (en) File system
JPH0259838A (en) File restoring system applying optimization of storing position for file restoring information