JPH0322152A - File restoring system - Google Patents

File restoring system

Info

Publication number
JPH0322152A
JPH0322152A JP1157972A JP15797289A JPH0322152A JP H0322152 A JPH0322152 A JP H0322152A JP 1157972 A JP1157972 A JP 1157972A JP 15797289 A JP15797289 A JP 15797289A JP H0322152 A JPH0322152 A JP H0322152A
Authority
JP
Japan
Prior art keywords
file
command
data block
saved
deleted
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
JP1157972A
Other languages
Japanese (ja)
Inventor
Toshinori Iwawaki
俊典 岩脇
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP1157972A priority Critical patent/JPH0322152A/en
Publication of JPH0322152A publication Critical patent/JPH0322152A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily restore a file only just after the file is deleted by saving the file control information of the file, which is designated to be deleted, to a common system area, afterwards, deleting the file control information and restoring the saved file control information from the common system area. CONSTITUTION:In response to a file deleting command, a file deletion processing part 8 deletes the corresponding entry of a directory part and a data block control table 3 to be pointed from the entry. In such a case, however, the data block control table 3 is saved to a save area 7 in a common system area 6. In response to a file restoring command, a file restorage processing part 9 restores the entry of the directory part 2 and the data block control table 3 saved in the save area 7. Thus, only just after the file is deleted according to the file deleting command, the file can be easily restored.

Description

【発明の詳細な説明】 〔概 要〕 データ処理システムにおけるファイル管理方式に関する
ものであり.特にファイル削除コマンドによりファイル
を削除した直後にファイル復元を可能にする方弐に関し
, ファイル管理において,ファイル削除コマンドによるフ
ァイル削除直後であれば容易にファイル復元を可能にす
ることを目的とし, ファイル削除コマンドに応答して,削除を指定されてい
るファイルのファイル管理情報をシステム共通域に退避
した後.ファイル管理情報を削除する処理を行い,ファ
イル復元コマンドに応答して,復元を指定されているフ
ァイルの上記退避されているファイル管理情報をシステ
ム共通域から復元し,ファイル復元を行う. 〔産業上の利用分野〕 本発明は,データ処理システムにおけるファイル管理方
式に関するものであり,特にファイル削除コマンドによ
りファイルを削除した直後にファイル復元を可能にする
方式に関する. 〔従来の技術〕 データ処理システムでは,ファイル管理をオペレーティ
ングシステムのファイル管理機能により行っている.こ
のファイル管理機能では,ファイル削除コマンドが発行
されると,指定されたファイルのファイル管理情報を削
除する処理が行われる.そのためその後は同じファイル
に対するアクセスを行うことができない. 〔発明が解決しようとする課題] 一般に利用者がファイル削除コマンドを発行してファイ
ル削除を行った場合.その直後,ファイル指定が誤って
いたり,ファイルが保存されるべきであったことに気が
付くことが少なくない.このような場合の削除したファ
イルの復元は,不可能ではないにしても多大な労力を必
要とし,実際上極めて困難である. 第4図にこのような場合の復元処理の従来例を示す. 利用者は.■でファイル削除を行った直後,■でファイ
ル復元を必要と判断した場合には,■でパッチ処理によ
りディレクトリ部のエントリを復元し,次に■でファイ
ル装置のデータプロックを全てダンプして,削除したフ
ァイルに属する各データブロックを捜し出し,ファイル
中での順番を考慮しながらデータブロック管理テーブル
を復元するものである。
[Detailed Description of the Invention] [Summary] This invention relates to a file management method in a data processing system. In particular, regarding method 2 that enables file restoration immediately after a file is deleted by a file deletion command, the purpose of this method is to easily restore a file immediately after deletion by a file deletion command in file management. After saving the file management information of the file specified for deletion to the system common area in response to the command. Performs processing to delete file management information, and in response to a file restoration command, restores the saved file management information of the file specified for restoration from the system common area and restores the file. [Industrial Application Field] The present invention relates to a file management method in a data processing system, and particularly to a method that enables file restoration immediately after a file is deleted using a file deletion command. [Conventional technology] In data processing systems, file management is performed using the file management function of the operating system. With this file management function, when a file deletion command is issued, the process of deleting the file management information of the specified file is performed. Therefore, the same file cannot be accessed after that. [Problem to be solved by the invention] Generally, when a user issues a file deletion command to delete a file. Immediately afterwards, it is often discovered that the file specification was incorrect or that the file should have been saved. Restoring deleted files in such cases requires a great deal of effort, if not impossible, and is extremely difficult in practice. Figure 4 shows a conventional example of restoration processing in such a case. The user is. Immediately after deleting the file in step ■, if it is determined that it is necessary to restore the file in step #, restore the entry in the directory section by patch processing in step #, then dump all the data block of the file device in step This method searches for each data block belonging to the deleted file and restores the data block management table while taking into account the order in the file.

本発明は,ファイル管理において,ファイル削除コマン
ドによるファイル削除直後であれば容易にファイル復元
を可能にすることを目的としている. 〔課題を解決するための手段〕 本発明は,オペレーティングシステムのファイル管理機
能では.ファイル削除コマンドによりファイル削除を行
った場合.削除されるのは本来のデータブロックではな
く.そのデータブロック管理テーブルやディレクトリエ
ントリなどのファイル管理情報であることに着目し,フ
ァイル削除コマンドを実行するとき.指定されているフ
ァイルのファイル管理情報を退避してから削除し,本体
のデータブロック領域が他のファイルのデータ格納によ
って使用される前であれば.退避しておいたファイル管
理情報を復元してアクセス可能にするものである. 第1図は.本発明の原理図である。
The purpose of the present invention is to easily restore a file immediately after it is deleted using a file deletion command in file management. [Means for Solving the Problems] The present invention uses the file management function of an operating system. When a file is deleted using the file deletion command. What is deleted is not the original data block. When executing a file deletion command by focusing on file management information such as data block management tables and directory entries. If the file management information of the specified file is saved and deleted, and the data block area of the main body is not used to store data of other files. This restores the saved file management information and makes it accessible. Figure 1 is. It is a principle diagram of the present invention.

第1図において, 1は.ファイルデータを格納するために用いられるファ
イル装置である。
In Figure 1, 1 is . A file device used to store file data.

2は,ディレクトリ部であり.ファイル装置lに格納さ
れている各ファイルのファイル名からそれぞれのファイ
ルのデータブロック管理テーブル(後述)を参照するた
めのポインタをもっている.3は,データブロック管理
テーブルであり,ファイルごとにそのファイルに属する
データブロック(後述)の物理的位置を管理している.
4は,データブロックであり,ファイルの大きさにより
必要数のブロックが空きブロックから割り当てられる.
図示の例では,斜線を施された3つのデータプロック(
1,2.3)がデータブロック管理テーブル3によって
1つのファイルに対応づけられている。
2 is the directory part. It has a pointer for referring to the data block management table (described later) of each file from the file name of each file stored in file device l. 3 is a data block management table, which manages, for each file, the physical location of data blocks (described later) that belong to that file.
4 is a data block, and the required number of blocks are allocated from free blocks depending on the size of the file.
In the illustrated example, there are three data blocks (
1, 2, and 3) are associated with one file by the data block management table 3.

5は,主メモリである。5 is a main memory.

6は,システム共通域である. 7は,データブロック管理テーブル3の退避領域である
6 is the system common area. 7 is a save area for the data block management table 3.

8は.ファイル削除処理部である。オペレーティングシ
ステムのファイル管理a能の一部あるいはファームウエ
アとして構戒され,ファイル削除コマンドに応答してデ
ィレクトリ部2の該当するエントリおよびそのエントリ
からポイントされるデータブロック管理テーブル3の削
除を行うが,その際,データブロック管理テーブル3を
システム共通域6の退避領域7に退避する。
8 is. This is a file deletion processing section. It is implemented as part of the file management function of the operating system or as firmware, and responds to a file deletion command by deleting the corresponding entry in the directory section 2 and the data block management table 3 pointed to by that entry. At this time, the data block management table 3 is saved to the save area 7 of the system common area 6.

9は,ファイル復元処理部であり,オペレーティングシ
ステムのファイル管理機能の一部としてあるいはファー
ムウェアとして構威され,ファイル復元コマンドに応答
してディレクトリ部のエントリを復元し.また退避頷域
7に退避されているデータプロック管理テーブルを復元
する.〔作 用] 第2図により,本発明のファイル復元方式を用いて,フ
ァイル削除後にファイル復元を行う場合の処理を説明す
る。
Reference numeral 9 denotes a file restoration processing section, which is configured as part of the file management function of the operating system or as firmware, and restores entries in the directory section in response to a file restoration command. The data block management table saved in the save nod area 7 is also restored. [Operation] The process of restoring a file after file deletion using the file restoring method of the present invention will be explained with reference to FIG.

■ 利用者がファイル削除コマンドを発行すると.従来
システムにおけるものと同様にファイル削除処理が行わ
れるが,さらにデータブロック管理テーブルの退避処理
が付加される。
■ When a user issues a file deletion command. File deletion processing is performed in the same way as in the conventional system, but data block management table saving processing is also added.

■ 利用者は削除したファイルの復元が必要かどうかを
判断し.復元が必要であった場合には,ファイル復元コ
マンドを発行する. ■ ファイル復元コマンドが発行されると.指定されて
いるファイル名からディレクトリ部のエントリを復元し
.また退避されているデータプロ・ンク管理テーブルを
復元する処理が行われ.元のファイルのデータブロック
が使用可能となる。
■ The user decides whether it is necessary to restore the deleted file. If restoration is necessary, issue a file restoration command. ■ When a file restoration command is issued. Restores the directory entry from the specified file name. Also, the process of restoring the saved data backup management table is performed. The data blocks of the original file are now available.

しかし,ファイル削除直後にそのデータブロック領域を
空き領域として他の処理のファイルに割り当てられた場
合には9復元は行われない。何故ならば.異なるファイ
ルのデータブロック管理テーブルが同一のデータブロッ
クをポイントすることはファイル管理上許されないから
である.(実施例〕 第3図は,本発明実施例によるファイル削除コマンドお
よびファイル復元コマンドの処理フローを示す.この実
施例では.既存のOSは変更せず本発明による新しい処
理機能は1パッチ処理の形で付加され,新しく定義され
たコマンドにより呼び出されるようにする。
However, if the data block area is allocated as a free area to a file for other processing immediately after file deletion, 9 restoration is not performed. because. This is because file management does not allow data block management tables of different files to point to the same data block. (Embodiment) Figure 3 shows the processing flow of the file deletion command and file restoration command according to the embodiment of the present invention.In this embodiment, the existing OS is not changed and the new processing function of the present invention is implemented in one patch process. and be called by the newly defined command.

第3図の(a)は.ファイル削除コマンドの処理フロー
である。
Figure 3 (a) is. This is a processing flow of a file deletion command.

利用者が発行するファイル削除コマンドは新しく定義さ
れたコマンドであり,これはパッチコマンド(プロシジ
中コマンド)でもよい。このファイル削除コマンドによ
り対応するデータブロック管理テーブル退避プログラム
が呼び出される。この処理では削除対象ファイルのファ
イル名をリンクさせてデータブロック管理テーブルをシ
ステム共通域へ退避し.次にOSで定義された既存のフ
ァイル削除コマンドを発行する。これによりOSの既存
のファイル管理mgが呼び出され,該当ファイルのディ
レクトリ部のエントリとデータブロンク管理テーブルと
が削除される。
The file deletion command issued by the user is a newly defined command, and may be a patch command (procedure command). This file deletion command calls the corresponding data block management table saving program. In this process, the file name of the file to be deleted is linked and the data block management table is saved to the system common area. Next, issue an existing file deletion command defined by the OS. As a result, the existing file management mg of the OS is called, and the entry in the directory section of the relevant file and the data broker management table are deleted.

第3図の(b)は,ファイル復元コマンドの処理フロー
である。このファイル復元コマンドも新しく定義された
コマンドであり,このファイル復元コマンドが発行され
ると,対応するデータブロック管理テーブル復元プログ
ラムが呼び出される。
FIG. 3(b) is a processing flow of the file restoration command. This file restoration command is also a newly defined command, and when this file restoration command is issued, the corresponding data block management table restoration program is called.

パラメータとして指定されたファイル名により,ディレ
クトリ部を復元し.さらにシステム共通域に退避されて
いるデータブロック管理テーブルを探索し,OS管理の
制御領域へ複写し復元する。
Restores the directory part using the file name specified as a parameter. Furthermore, it searches for the data block management table saved in the system common area, copies it to the OS management control area, and restores it.

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

本発明によれば,操作よスや思い違いなどによって削除
してしまったファイルを簡単に復元することができるた
め.開発や処理の効率が向上し,またファイルの保証性
が改善される.
According to the present invention, it is possible to easily restore files that have been deleted due to accidental manipulation or misunderstanding. Development and processing efficiency is improved, and file guarantees are improved.

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

第1図は本発明の原理図,第2図は本発明の処理フロー
図,第3図4よ本発明実施例によるコマンドの処理フロ
ー図.第4図はファイル復元の従来例の処理フロー図で
ある。 第1図中, l:ファイル装置. 2:ディレクトリ部 3:データブロック管理テーブル, 4:データブロック 5:主メモリ. 6:システム共通域, 7:退避領域, 8:ファイル削除処理部 9:ファイル復元処理部。
Figure 1 is a principle diagram of the present invention, Figure 2 is a processing flow diagram of the present invention, and Figure 3 is a command processing flow diagram according to an embodiment of the present invention. FIG. 4 is a process flow diagram of a conventional example of file restoration. In Figure 1, l: File device. 2: Directory section 3: Data block management table, 4: Data block 5: Main memory. 6: System common area, 7: Backup area, 8: File deletion processing unit 9: File restoration processing unit.

Claims (1)

【特許請求の範囲】 データ処理システムにおいて、 ファイル削除コマンドに応答して、削除を指定されてい
るファイルのファイル管理情報をシステム共通域に退避
した後ファイル管理情報を削除する処理を行い、 ファイル復元コマンドに応答して、復元を指定されてい
るファイルの上記退避されているファイル管理情報をシ
ステム共通域から復元し、ファイル復元を行うことを特
徴とするファイル復元方式。
[Claims] In a data processing system, in response to a file deletion command, file management information of a file specified for deletion is saved to a system common area, and then the file management information is deleted, and the file is restored. A file restoration method characterized in that, in response to a command, the saved file management information of a file designated for restoration is restored from a system common area to perform file restoration.
JP1157972A 1989-06-20 1989-06-20 File restoring system Pending JPH0322152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1157972A JPH0322152A (en) 1989-06-20 1989-06-20 File restoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1157972A JPH0322152A (en) 1989-06-20 1989-06-20 File restoring system

Publications (1)

Publication Number Publication Date
JPH0322152A true JPH0322152A (en) 1991-01-30

Family

ID=15661456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1157972A Pending JPH0322152A (en) 1989-06-20 1989-06-20 File restoring system

Country Status (1)

Country Link
JP (1) JPH0322152A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09311489A (en) * 1996-05-23 1997-12-02 Ricoh Co Ltd Electrophotographic photoreceptor
US6684225B1 (en) 1999-07-29 2004-01-27 International Business Machines Corporation Dropped database table recovery
US7921083B2 (en) 2006-06-26 2011-04-05 Fujitsu Semiconductor Limited File management device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09311489A (en) * 1996-05-23 1997-12-02 Ricoh Co Ltd Electrophotographic photoreceptor
US6684225B1 (en) 1999-07-29 2004-01-27 International Business Machines Corporation Dropped database table recovery
US7188124B2 (en) 1999-07-29 2007-03-06 International Business Machines Corporation Method, system, computer product for recovering dropped database table specifying one or more table spaces, recovering the table space being restored using the dropped table history data structure
US7921083B2 (en) 2006-06-26 2011-04-05 Fujitsu Semiconductor Limited File management device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111316245B (en) Restoring databases using fully hydrated backups
US5590318A (en) Method and system for tracking files pending processing
JP5021929B2 (en) Computer system, storage system, management computer, and backup management method
JPH07105064A (en) File name detection system
US7290100B2 (en) Computer system for managing data transfer between storage sub-systems
CN117130827A (en) Restoring databases using fully hydrated backups
US11853581B2 (en) Restoring a storage system using file relocation metadata
JPH0322152A (en) File restoring system
US11269739B2 (en) Method and system for managing backup data
JPS61260339A (en) File control method
JPH03171242A (en) File backup method
JPS6386042A (en) Restoring system for erasion file
JPH0385650A (en) Disk volume restoration system
JPH02260045A (en) Application trouble checking system
JP3514332B2 (en) Database backup method
CN116126826A (en) WAL batch management method, system, device and storage medium
JP2000148562A (en) Data backup method, data backup device utilizing the method and computer readable recording medium recorded with data backup program
JPH03119444A (en) Member generation control system
JP3155096B2 (en) Batch recovery method when system is replaced
JPH11120056A (en) Saving and restoring method for project data
JPS61245251A (en) File control method
JP3170795B2 (en) File group processing device
JPH0744426A (en) File management method for file system
JPH02297231A (en) Data deleting/restoring system for document control system
JP2000010692A (en) Application device and method provided with redo/undo function and automatic preservation function of work