JPH04315232A - Disk device and file managing method therefor - Google Patents

Disk device and file managing method therefor

Info

Publication number
JPH04315232A
JPH04315232A JP3082137A JP8213791A JPH04315232A JP H04315232 A JPH04315232 A JP H04315232A JP 3082137 A JP3082137 A JP 3082137A JP 8213791 A JP8213791 A JP 8213791A JP H04315232 A JPH04315232 A JP H04315232A
Authority
JP
Japan
Prior art keywords
file
area
deleted
disk device
operating system
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
JP3082137A
Other languages
Japanese (ja)
Inventor
Masayoshi Yoneda
米田 政義
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 Fielding Ltd
Original Assignee
NEC Fielding 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 Fielding Ltd filed Critical NEC Fielding Ltd
Priority to JP3082137A priority Critical patent/JPH04315232A/en
Publication of JPH04315232A publication Critical patent/JPH04315232A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recover a file as needed even after the file is deleted. CONSTITUTION:A disk device 1 is equipped with file areas 4a-4n, file label areas 2a-2n including file deletion identifier areas 3a-3n, empty reas 6 and empty area managing area 5. When the file is deleted, it is recorded in the file deletion identifier area that the file area is invalid inthe stat of preserving the contents of the file area in an operating system, and it is recorded in the empty area managing area that the deleted file area is the empty area. When recovering the file, the operating system records it in the file deletion identifier area of the file that the file area made invalid is valid, and deletes the record of the empty area deleted in the empty area managing 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 management method for a disk device.

【0002】0002

【従来の技術】磁気ディスク上に割り付けられたファイ
ルの管理は、ファイル領域の諸元を記録したファイルラ
ベル領域と空き領域を記録した空き領域管理領域により
オペレーティングシステムが行う。
2. Description of the Related Art Files allocated on a magnetic disk are managed by an operating system using a file label area in which file area specifications are recorded and a free area management area in which free areas are recorded.

【0003】図2は従来の磁気ディスクに設けられてい
る各領域の一例を説明する為の配置図である。図2にお
いて、1はディスク装置に搭載される磁気ディスクであ
って、磁気ディスク1にはファイル領域4a,4b,4
c…4nと、これらのファイル領域に記録されているフ
ァイルのラベルを記録するファイルラベル領域2a,2
b,2c…2nと、空き領域6と、この空き領域を管理
する空き領域管理領域5とが設けられている。そして、
1つのファイル領域に対してそれぞれ1つのファイルラ
ベル領域が対応している。
FIG. 2 is a layout diagram for explaining an example of each area provided on a conventional magnetic disk. In FIG. 2, reference numeral 1 denotes a magnetic disk installed in a disk device, and the magnetic disk 1 has file areas 4a, 4b, 4
c...4n, and file label areas 2a and 2 for recording labels of files recorded in these file areas.
b, 2c, . . . 2n, a free area 6, and a free area management area 5 for managing this free area. and,
One file label area corresponds to one file area.

【0004】ここで、磁気ディスク上のファイルの削除
を行う場合、オペレーティングシステムに対してファイ
ルの削除を指示すると、オペレーティングシステムは、
例えば、削除対象ファイルのファイルラベル領域2cを
初期化する。即ち、このファイルラベル領域2cに記録
されているラベルの内容を消してしまう。次に、空き領
域管理領域5に対して削除されたファイルの領域が空き
領域であることを記録する。
[0004] When deleting a file on a magnetic disk, if you instruct the operating system to delete the file, the operating system will:
For example, the file label area 2c of the file to be deleted is initialized. That is, the contents of the label recorded in this file label area 2c are erased. Next, it is recorded in the free space management area 5 that the area of the deleted file is a free space.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のディス
ク装置のファイル管理方法は、ファイルの削除を行う場
合、オペレーティングシステムがファイルラベル領域の
初期化を行って、ファイルラベル領域2cに書き込まれ
たファイルラベルを消してしまう為、削除したファイル
を復活したいという事態が生じてもファイルの復旧がで
きないという欠点がある。
[Problems to be Solved by the Invention] In the conventional file management method of the disk device described above, when a file is deleted, the operating system initializes the file label area and deletes the file written in the file label area 2c. Since the label is erased, there is a drawback that even if a situation arises where you want to restore a deleted file, the file cannot be recovered.

【0006】本発明の目的は、ファイルの削除を行って
も必要が生じたらそのファイルの復旧を行うことができ
るディスク装置のファイル管理方法を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a file management method for a disk device that allows the file to be restored if necessary even if the file is deleted.

【0007】[0007]

【課題を解決するための手段】第1の発明は、ファイル
領域とファイルラベル領域と空き領域と空き領域管理領
域とを有するディスク装置において、前記ファイルラベ
ル領域内にファイルの削除を行ったか否かを示すファイ
ル削除識別子領域を含んでいる。
[Means for Solving the Problems] A first invention provides a disk device having a file area, a file label area, a free area, and a free area management area, in which whether or not a file is deleted in the file label area is determined. Contains a file deletion identifier area indicating the file deletion.

【0008】また、第2の発明は、前記ディスク装置の
ファイル管理方法であって、前記ファイルの削除時は、
オペレーティングシステムが前記ファイル領域の内容を
保存した状態で前記ファイル削除識別子領域に前記ファ
イル領域が無効であることを記録するとともに、前記空
き領域管理領域に削除した前記ファイル領域が空き領域
であることを記録し、且つ、前記ファイルの復旧時は、
前記オペレーティングシステムが前記ファイルのファイ
ル削除識別子領域に無効とした前記ファイル領域が有効
であることを記録するとともに、前記空き領域管理領域
に前記削除した空き領域の記録を削除することを特徴と
する。
[0008] A second invention is a file management method for the disk device, in which when deleting the file,
The operating system records that the file area is invalid in the file deletion identifier area while preserving the contents of the file area, and also records that the deleted file area is a free area in the free space management area. When recording and restoring the file,
The operating system records that the invalidated file area is valid in a file deletion identifier area of the file, and deletes the record of the deleted free area in the free area management area.

【0009】[0009]

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

【0010】図1は本発明の一実施例を示す配置図であ
る。図1において、磁気ディスク1上に割り付けられた
ファイルラベル領域2a,2b,2c…2nにファイル
削除識別子領域3a,3b,3c…3nを設ける。それ
以外は図2に示した従来例と同様である。
FIG. 1 is a layout diagram showing an embodiment of the present invention. In FIG. 1, file deletion identifier areas 3a, 3b, 3c...3n are provided in file label areas 2a, 2b, 2c...2n allocated on a magnetic disk 1. The rest is the same as the conventional example shown in FIG.

【0011】ここで、磁気ディスク1上に割り付けられ
たファイルを削除する場合、例えば、ファイル領域4c
に記録されているファイルを削除する場合、オペレーテ
ィングシステムに対してファイルの削除を指示すると、
オペレーティングシステムは削除対象ファイルのファイ
ルラベル領域2cの内容を保存したままファイル削除識
別子領域3cの内容を“0”から“1”に変更する。本
処理ではファイルラベル領域2cの内容を保存したまま
ファイルラベル領域2cを無効にする。次に、オペレー
ティングシステムは空き領域となったファイル領域4c
を空き領域管理領域5に記録する。
[0011] Here, when deleting a file allocated on the magnetic disk 1, for example, the file area 4c
If you want to delete a file recorded in , you can instruct the operating system to delete the file.
The operating system changes the content of the file deletion identifier area 3c from "0" to "1" while preserving the content of the file label area 2c of the file to be deleted. In this process, the file label area 2c is invalidated while the contents of the file label area 2c are preserved. Next, the operating system uses the empty file area 4c.
is recorded in the free space management area 5.

【0012】また、削除したファイルを復旧する必要が
生じた場合、オペレーティングシステムに対してファイ
ルの復旧を指示すると、オペレーティングシステムは空
き領域管理領域5より削除したファイル領域4cの記録
を削除する。次に、オペレーティングシステムはファイ
ルラベル領域2c内のファイル削除識別子領域3cの内
容を“1”から“0”に変更する。以上の処理により、
空き領域管理領域5の内容とファイルラベル領域2cの
状態とがファイル削除前と同一になる為、ファイルが使
用可能となる。
Furthermore, when it becomes necessary to restore a deleted file, when the operating system is instructed to restore the file, the operating system deletes the record of the deleted file area 4c from the free space management area 5. Next, the operating system changes the contents of the file deletion identifier area 3c in the file label area 2c from "1" to "0". Through the above processing,
Since the contents of the free space management area 5 and the state of the file label area 2c are the same as before file deletion, the file becomes usable.

【0013】本実施例は磁気ディスクについて説明した
が、これに限定されることなく、本発明は光ディスク装
置,電子ディスク装置にも同様に適用される。
Although this embodiment has been described with respect to a magnetic disk, the present invention is not limited thereto, and the present invention is similarly applicable to optical disk devices and electronic disk devices.

【0014】[0014]

【発明の効果】以上説明したように本発明は、ファイル
の削除を行う場合、ファイルラベル領域にファイル削除
識別子領域を設け、このファイル削除識別子領域の内容
の書き換えだけでファイルの削除及び復旧を行い、ファ
イルラベルは消去しないようにしたため、一旦削除した
ファイルであっても、復旧したい事態が生じたときは、
ファイルの復旧ができるという効果を有する。
[Effects of the Invention] As explained above, when deleting a file, the present invention provides a file deletion identifier area in the file label area, and deletes and restores the file simply by rewriting the contents of this file deletion identifier area. , file labels are not deleted, so even if a file has been deleted, if a situation arises where you want to recover it,
This has the effect of allowing file recovery.

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

【図1】本発明の一実施例を示す配置図である。FIG. 1 is a layout diagram showing an embodiment of the present invention.

【図2】従来の磁気ディスクの各領域の配置を説明する
図である。
FIG. 2 is a diagram illustrating the arrangement of each area of a conventional magnetic disk.

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

1    磁気ディスク 2a〜2n    ファイルラベル領域3a〜3n  
  ファイル削除識別子領域4a〜4n    ファイ
ル領域 5    空き領域管理領域 6    空き領域
1 Magnetic disks 2a to 2n File label areas 3a to 3n
File deletion identifier area 4a to 4n File area 5 Free space management area 6 Free space

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  ファイル領域とファイルラベル領域と
空き領域と空き領域管理領域とを有するディスク装置に
おいて、前記ファイルラベル領域内にファイルの削除を
したか否かを示すファイル削除識別子領域を含むことを
特徴とするディスク装置。
1. A disk device having a file area, a file label area, a free area, and a free area management area, wherein the file label area includes a file deletion identifier area indicating whether or not a file has been deleted. Characteristic disk device.
【請求項2】  請求項1記載のディスク装置のファイ
ル管理方法であって、前記ファイルの削除時は、オペレ
ーティングシステムが前記ファイル領域の内容を保存し
た状態で前記ファイル削除識別子領域に前記ファイル領
域が無効であることを記録するとともに、前記空き領域
管理領域に削除した前記ファイル領域が空き領域である
ことを記録し、且つ、前記ファイルの復旧時は、前記オ
ペレーティングシステムが前記ファイルのファイル削除
識別子領域に無効とした前記ファイル領域が有効である
ことを記録するとともに、前記空き領域管理領域に前記
削除した空き領域の記録を削除することを特徴とするデ
ィスク装置のファイル管理方法。
2. The file management method for a disk device according to claim 1, wherein when deleting the file, the operating system stores the file area in the file deletion identifier area while preserving the contents of the file area. In addition to recording that the deleted file area is invalid, the operating system records in the free space management area that the deleted file area is a free area, and when the file is restored, the operating system uses the file deletion identifier area of the file. A file management method for a disk device, comprising: recording that the invalidated file area is valid, and deleting a record of the deleted free space in the free space management area.
JP3082137A 1991-04-15 1991-04-15 Disk device and file managing method therefor Pending JPH04315232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3082137A JPH04315232A (en) 1991-04-15 1991-04-15 Disk device and file managing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3082137A JPH04315232A (en) 1991-04-15 1991-04-15 Disk device and file managing method therefor

Publications (1)

Publication Number Publication Date
JPH04315232A true JPH04315232A (en) 1992-11-06

Family

ID=13766033

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3082137A Pending JPH04315232A (en) 1991-04-15 1991-04-15 Disk device and file managing method therefor

Country Status (1)

Country Link
JP (1) JPH04315232A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334397A (en) * 1994-06-14 1995-12-22 Nec Corp Deleted file managing system
US9340123B2 (en) 2011-10-27 2016-05-17 Lsis Co., Ltd. Power supply system for electric vehicle and control method thereof
US11225150B2 (en) 2012-09-24 2022-01-18 General Electric Company Power supply management apparatus and method thereof
US11400820B2 (en) 2009-12-18 2022-08-02 General Electric Company Apparatus and method for rapid charging using shared power electronics
US11697352B2 (en) 2012-05-21 2023-07-11 General Electric Company Method and apparatus for charging multiple energy storage devices

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334397A (en) * 1994-06-14 1995-12-22 Nec Corp Deleted file managing system
US11400820B2 (en) 2009-12-18 2022-08-02 General Electric Company Apparatus and method for rapid charging using shared power electronics
US11884168B2 (en) 2009-12-18 2024-01-30 General Electric Company Apparatus and method for rapid charging using shared power electronics
US9340123B2 (en) 2011-10-27 2016-05-17 Lsis Co., Ltd. Power supply system for electric vehicle and control method thereof
US11697352B2 (en) 2012-05-21 2023-07-11 General Electric Company Method and apparatus for charging multiple energy storage devices
US11225150B2 (en) 2012-09-24 2022-01-18 General Electric Company Power supply management apparatus and method thereof

Similar Documents

Publication Publication Date Title
AU700681B2 (en) A method of operating a computer system
US5794242A (en) Temporally and spatially organized database
US20070174367A1 (en) Selective File Erasure Using Metadata Modifications
JPH04315232A (en) Disk device and file managing method therefor
JPS62224843A (en) Database medium content maintaining system
JPH0475544B2 (en)
JP3037183B2 (en) Hard disk device management method and method
JPH09198283A (en) File deleting method on recording medium volume
JPH07334397A (en) Deleted file managing system
JP2587417B2 (en) File backup and restoration method
JP3323524B2 (en) Optical disc difference information extraction method
GB2378536A (en) A method of logging message activity
JPS6369072A (en) Directory format
JPH03125238A (en) Information control system
JPH04217044A (en) Information processing system
JPH11212845A (en) Device and method for backup data management and recording medium
JPH10143406A (en) File managing device
JPH0668182A (en) Drawing version number management system using optical card
JP3036986B2 (en) Automatic file playback method
JPH02253452A (en) Office managing information logical saving/storing device
JPH0581113A (en) File managing method and computer system
JPH05290514A (en) Recording and reproducing device
JPH07319859A (en) Retaining method for file in information processor
JPH05181729A (en) File managing system
JP2004005524A (en) Data recorder, data recording method, program for implementing the method and program recording medium