JPH0362240A - Picture data file control system - Google Patents

Picture data file control system

Info

Publication number
JPH0362240A
JPH0362240A JP1198285A JP19828589A JPH0362240A JP H0362240 A JPH0362240 A JP H0362240A JP 1198285 A JP1198285 A JP 1198285A JP 19828589 A JP19828589 A JP 19828589A JP H0362240 A JPH0362240 A JP H0362240A
Authority
JP
Japan
Prior art keywords
page
file
data
fat
storage area
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
JP1198285A
Other languages
Japanese (ja)
Inventor
Atsushi Toho
東方 敦司
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1198285A priority Critical patent/JPH0362240A/en
Publication of JPH0362240A publication Critical patent/JPH0362240A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To secure the data on pages obtained before occurrence of a fault by providing a page allocation table in order to control a picture data file for each page. CONSTITUTION:The head FAT address is stored in a page allocation table (PAT) store area 4 to the data on each page of a file. A FAT store area 1, a directory store area 2, and the area 4 are set into a main storage (memory) and an auxiliary storage (disk). The contents of these areas 1 - 4 are updated as necessary. Thus an access is possible to a data file via the designation of pages carried out by the PAT when the data file consisting of each page is written into the auxiliary storage. As a result, the data on pages obtained before occurrence of a fault can be secured at restoration of the fault by disusing the data on the pages obtained at occurrence of the fault if a fault occurs during a data file access.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、コンピュータ、あるいは通信制御装置等の
補助記憶装置におけるファイル管理方式%式% 〔従来の技術) 第2図は例えばMS−005(Micro 5oft 
Disk Ope −rating System)ベ
ースのファイル管理方式の概要をまとめたものである。
Detailed Description of the Invention [Industrial Field of Application] The present invention relates to a file management method in an auxiliary storage device such as a computer or a communication control device. Micro 5oft
This is a summary of the file management method based on the Disk Open-rating System.

この場合ディスクをFAT (ファイル・アロケーショ
ン・テーブル)格納エリア(1)、ディレクトリ格納エ
リア(2)、データファイル用エリア(3)の3つのエ
リアに分け、FAT (lk)〜(1z)は、データフ
ァイル用エリアの論理ブロック(3k)〜(3z)と物
理的に1対1に対応づけられている。1つのファイルに
は、ディレクトリ格納エリア(2)のディレクトリが1
つ割り当てられ、ファイルの内容が書かれている論理ブ
ロック(3k) 〜(3z)に対応するFAT(lk)
 〜(lz)がリンクされ、その先頭のFATアドレス
を(Za+)のクラスタ番号としてディレクトリに格納
する。
In this case, the disk is divided into three areas: FAT (file allocation table) storage area (1), directory storage area (2), and data file area (3). There is a physical one-to-one correspondence with the logical blocks (3k) to (3z) of the file area. One file has one directory in the directory storage area (2).
FAT (lk) corresponding to logical blocks (3k) to (3z) in which file contents are written
~(lz) is linked, and its first FAT address is stored in the directory as the cluster number of (Za+).

次に動作について説明する。新規ファイルをライトする
場合、まずディレクトリ格納エリア(2)の空きディレ
クトリをサーチし、空きディレクトリを得る。次にFA
T (1)をサーチすることで、データ・ファイル用エ
リア(3)の空き論理ブロック(3k)〜(3z)を得
る。そして空き論理ブロックにファイルの内容を書き込
み、それに該当するFATのアドレスをディレクトリの
クラスタ番号として登録する。ファイル内容が1つの論
理ブロックに書ききれない場合は、さらにFAT格納エ
リア(1)をサーチし、空いている論理ブロックを捜し
、ファイル内容を書き込み、先のFATに書き込んだ論
理ブロックに対応するFATのアドレスをリンクする。
Next, the operation will be explained. When writing a new file, first a free directory is searched for in the directory storage area (2) to obtain a free directory. Next, F.A.
By searching T (1), free logical blocks (3k) to (3z) in the data file area (3) are obtained. Then, the content of the file is written in the empty logical block, and the corresponding FAT address is registered as the cluster number of the directory. If the file contents cannot be written in one logical block, the FAT storage area (1) is further searched, an empty logical block is found, the file contents are written, and the FAT storage area corresponding to the logical block written in the previous FAT is written. Link the address of.

リードの場合は指定されたファイル名をディレクトリ格
納エリア(2)から捜し、そのクラスタ番号から(1)
内のFATに対応する論理ブロック(3k)〜(3z)
の1つを読み出す。読み出した論理ブロックに対応する
FAT (1)に次のFATがリンクされている場合は
、そのリンクされたFATに対応する論理ブロック(3
k)〜(3z)の内容を読み出す。このようにしてリー
ドが行なわれる。デリートはディレクトリ格納エリア(
2)より指定されたファイル名のディレクトリを捜し、
そのクラスタ番号からFATを検出し、リンクされてい
るFATに次々と消去するコードを入れ、ディレクトリ
にも消去のコードを入れる。
In the case of reading, search the specified file name from the directory storage area (2), and search from the cluster number (1).
Logical blocks (3k) to (3z) corresponding to FAT in
Read one of the. If the next FAT is linked to FAT (1) corresponding to the read logical block, the logical block (3) corresponding to the linked FAT is linked.
k) Read the contents of (3z). Reading is performed in this manner. Delete is done in the directory storage area (
2) Search for the directory with the specified file name,
The FAT is detected from the cluster number, and erasing codes are sequentially inserted into the linked FATs, and erasing codes are also inserted into the directory.

(発明が解決しようとする課題) 従来のファイル管理方式は以上の様に構成されているの
で、画像データの様なページ単位で構成されるデータフ
ァイルを管理する場合、ページという概念が存在しない
為、特定のページを指定する事ができず、また補助記憶
装置に対してデータを書込み中に、障害が発生した場合
、当該ファイル自体が異常となり、障害発生以前に正常
に書込まれたページ塩のデータも異常となってしまう等
の問題点があった。
(Problem to be Solved by the Invention) Since the conventional file management system is configured as described above, when managing a data file composed of page units such as image data, the concept of page does not exist. , if a specific page cannot be specified and a failure occurs while writing data to the auxiliary storage device, the file itself becomes abnormal and the page salt that was normally written before the failure occurs. There were problems such as the data also becoming abnormal.

この発明は上記のような問題点を解消する為になされた
もので、ページ指定によるファイル操作及び障害発生時
に当該ファイルを異常とせずに、障害発生以前のデータ
を保障できる画像データファイル管理方式を得る事を目
的とする。
This invention was made in order to solve the above-mentioned problems, and it provides an image data file management method that can guarantee the data before the failure occurs without making the file abnormal when a failure occurs. The purpose is to obtain.

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

この発明に係る画像データファイル管理方式は、ファイ
ルを管理する為のディレクトリと、ファイル構成のリン
ク情報を管理するファイル・アロケーション・テーブル
を使用すると共に、1つのファイルに対してページ単位
の構成を管理する為の付加情報としてページ・アロケー
ション・テーブルを設け、ページ単位のFATの先頭ア
ドレスを格納する様にしたものである。
The image data file management method according to the present invention uses a directory for managing files and a file allocation table for managing link information of the file structure, and also manages the structure of each page in units of pages. A page allocation table is provided as additional information for this purpose, and stores the start address of the FAT in page units.

〔作用〕[Effect]

この発明における画像データファイル管理方式は、ペー
ジ単位で構成されるデータファイルを補助記憶装置に書
き込み管理する場合にページ・アロケーション・テーブ
ルによるページ指定によりデータファイルをアクセスす
ることができるため、データファイルアクセス中に障害
が発生した時には障害発生時のページのデータを廃棄す
ることで、障害復旧時に障害発生以前のページ塩のデー
タを保障することができる。
The image data file management method in this invention allows data file access by specifying a page using a page allocation table when writing and managing a data file composed of pages in an auxiliary storage device. By discarding the data of the page at the time of failure when a failure occurs during failure, it is possible to guarantee the data of the page before the failure occurs at the time of failure recovery.

(実施例) 以下この発明の一実施例を図について説明する。第1図
に於て、(1)はFAT (ファイル・アロケーション
・テーブル)格納エリアであり、(2)はファイルを管
理する為のディレクトリの構成を示す。(3)はディス
ク内のデータファイル用のエリアで、複数の論理ブロッ
クから構成され、各論理ブロックはFATのアドレスと
物理的に1対1に対応付けされている。(4)はFAT
 (ページ・アロケーション・テープ、ル)格納エリア
であり、ファイルのページ単位のデータに対して先頭の
FATアドレスが格納される。
(Example) An example of the present invention will be described below with reference to the drawings. In FIG. 1, (1) is a FAT (file allocation table) storage area, and (2) shows the structure of a directory for managing files. (3) is an area for data files in the disk, which is composed of a plurality of logical blocks, and each logical block is physically associated with a FAT address on a one-to-one basis. (4) is FAT
(Page Allocation Tape) This is a storage area in which the first FAT address of page-based data of a file is stored.

また、FAT格納エリア(1)、ディレクトリ格納エリ
ア(2) 、FAT格納エリア(4)は主記憶(メモリ
)上と補助記憶装置(ディスク)内部に付置し、必要に
の応じて内容を更新する。
In addition, the FAT storage area (1), directory storage area (2), and FAT storage area (4) are installed on the main memory (memory) and inside the auxiliary storage device (disk), and the contents are updated as necessary. .

次に動作について説明する。新規ファイルを作成する場
合、まずメモリ上のディレクトリエリアをサーチし空デ
ィレクトリを獲得後これCファイル名を設定し、ディレ
クトリ使用中状態とする。
Next, the operation will be explained. When creating a new file, first search the directory area on the memory, obtain an empty directory, set a file name to this C file, and place the directory in use.

次に空論理ブロック(a)を獲得し、該当するディスク
エリアに1ページの先頭データを書き込む。
Next, an empty logical block (a) is acquired and the first page data is written in the corresponding disk area.

このときに使用した論理ブロック(a)に対応するFA
Tのアドレスをクラスタ番号としてメモリ上の先に獲得
したディレクトリに設定する。また、メモリ上の該当す
るFAT格納エリアには最後のクラスタであることを示
すFFFを設定し、同様にPAT格納エリアにも最後の
ページを示すFFFを設定する。lページ分のデータが
1つの論理ブロックに書き切れない場合は、別の空論理
ブロック(b)を獲得し該当するディスクエリアに継続
してデータを書き込む。このときに使用した論理ブロッ
ク(b)に対応するメモリ上のFAT格納エリアには前
述のFFFを設定し、先の論理ブロック(a)に対応す
るエリアには論理ブロック(b)に対応するFATのア
ドレスを設定する。以降、同様にして1ペ一ジ分のデー
タ全てをディスクエリアに書き込むとメモリ上に作成し
たディレクトリをディスクのディレクトリ格納エリアヘ
コピーし、同様にメモリ上のFAT格納エリア及びFA
T格納エリアもディスクエリアヘコピーする。さらに次
ページのデータが継続する場合は、1ページ目と同様に
空論理ブロック(C)を獲得し、該当するディスクエリ
アに先頭のデータを書込み、論理ブロック(C)に対応
するメモリ上のFAT格納エリアには前述のFFFを設
定し、先の論理ブロック(b) に対応するエリアには
論理ブロック(C)に対応するFATのアドレスを設定
する。また、論理ブロック(C)に対応するメモリ上の
FAT格納エリアにFFFを設定し、先の論理ブロック
(a)に対応するエリアには論理ブロック(C) に対
応するFATのアドレスを設定する。以降、同様にペー
ジ内のデータをディスクエリアへ書き込む毎にメモリ上
のFAT格納エリアの内容を更新する。ページ内のデー
タ全てをディスクエリアに書き込むと、メモリ上で更新
したFAT格納エリア及びFAT格納エリアをディスク
エリアにコピーする。最終ページのデータに対して上記
の処理を完了すると、ファイルをクローズし、新規ファ
イルの作成を終了する。
FA corresponding to logical block (a) used at this time
The address of T is set as the cluster number in the previously acquired directory on the memory. Furthermore, FFF indicating the last cluster is set in the corresponding FAT storage area on the memory, and FFF indicating the last page is similarly set in the PAT storage area. If one page worth of data cannot be written in one logical block, another empty logical block (b) is acquired and data is continuously written to the corresponding disk area. The above-mentioned FFF is set in the FAT storage area on the memory corresponding to the logical block (b) used at this time, and the FAT corresponding to the logical block (b) is set in the area corresponding to the previous logical block (a). Set the address. After that, when all the data for one page is written to the disk area in the same way, the directory created on the memory is copied to the directory storage area of the disk, and the FAT storage area and FA
The T storage area is also copied to the disk area. If the data of the next page continues, acquire an empty logical block (C) in the same way as the first page, write the first data to the corresponding disk area, and write the FAT on the memory corresponding to the logical block (C). The aforementioned FFF is set in the storage area, and the FAT address corresponding to the logical block (C) is set in the area corresponding to the previous logical block (b). Furthermore, FFF is set in the FAT storage area on the memory corresponding to the logical block (C), and the FAT address corresponding to the logical block (C) is set in the area corresponding to the previous logical block (a). Thereafter, the contents of the FAT storage area on the memory are similarly updated every time data in the page is written to the disk area. When all the data in the page is written to the disk area, the FAT storage area updated on the memory and the FAT storage area are copied to the disk area. When the above processing is completed for the data of the last page, the file is closed and the creation of the new file is finished.

次にファイルを読み出す場合について説明する。まずデ
ィレクトリ格納エリアをサーチし該当するディレクトリ
を読み出し、クラスタ番号を取り出す。次にクラスタ番
号に対応するメモリ上のFAT 8納エリアより当該フ
ァイルのページのリンク状態を精査し、読み出そうとす
るページの先頭データの格納された論理ブロックに対応
するFATのアドレスを取り出し、以降FAT格納エリ
アのリンク情報に従い該当する論理ブロックを順次ディ
スクエリアから読み出す。ページ指定を行わない場合に
は、FAT格納エリアのリンク情報の通りファイルの先
頭に対する論理ブロックを順にディスクエリアから読み
出す。
Next, the case of reading a file will be explained. First, the directory storage area is searched, the corresponding directory is read out, and the cluster number is extracted. Next, the link status of the page of the file is examined from the FAT 8 storage area on the memory corresponding to the cluster number, and the FAT address corresponding to the logical block in which the first data of the page to be read is stored is extracted. Thereafter, corresponding logical blocks are sequentially read from the disk area according to the link information of the FAT storage area. If a page is not specified, the logical blocks corresponding to the beginning of the file are sequentially read from the disk area according to the link information in the FAT storage area.

(発明の効果) 以上のようにこの発明によれば、画像データファイルを
ページ単位に管理する為にページ・アロケーション・テ
ーブルを付加したので、ファイルを操作する際に特定の
ページを指定することができ、また、メモリ上の内容を
ディスクにコピーするタイミングを制御する事で、障害
の発生に対して発生以前のページ迄のデータを保障する
事ができるという効果がある。
(Effects of the Invention) As described above, according to the present invention, a page allocation table is added to manage image data files on a page-by-page basis, so it is possible to specify a specific page when operating a file. Furthermore, by controlling the timing of copying the contents in memory to the disk, it is possible to guarantee the data up to the page before the occurrence of a failure.

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

第1図はこの発明の一実施例によるファイル管理方式を
示す図、第2図はMS−005ベースのファイル管理方
式を示す図である。 図Cおいて、(1)はFAT格納エリア、(2)はディ
レクトリ格納エリア、(3)はデータファイル用格納エ
リア、(4)はFAT格納エリアである。 尚、 図中同一符号は同−又は相当部分を示す。
FIG. 1 is a diagram showing a file management system according to an embodiment of the present invention, and FIG. 2 is a diagram showing a file management system based on MS-005. In FIG. C, (1) is a FAT storage area, (2) is a directory storage area, (3) is a data file storage area, and (4) is a FAT storage area. In addition, the same reference numerals in the figures indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 補助記憶装置によるファイル管理方式に於て、画像デー
タファイルを管理する為のディレクトリと、ファイル構
成のリンク情報を管理するファイル・アロケーション・
テーブルと、ファイル構成をページ単位で管理する為の
付加情報としてページ・アロケーション・テーブルとを
設けたことを特徴とする画像データファイル管理方式。
In a file management method using an auxiliary storage device, there are directories for managing image data files, and file allocation for managing link information of file configurations.
An image data file management method characterized by providing a table and a page allocation table as additional information for managing the file structure on a page-by-page basis.
JP1198285A 1989-07-31 1989-07-31 Picture data file control system Pending JPH0362240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1198285A JPH0362240A (en) 1989-07-31 1989-07-31 Picture data file control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1198285A JPH0362240A (en) 1989-07-31 1989-07-31 Picture data file control system

Publications (1)

Publication Number Publication Date
JPH0362240A true JPH0362240A (en) 1991-03-18

Family

ID=16388579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1198285A Pending JPH0362240A (en) 1989-07-31 1989-07-31 Picture data file control system

Country Status (1)

Country Link
JP (1) JPH0362240A (en)

Similar Documents

Publication Publication Date Title
EP1942414B1 (en) Snapshot system and method
AU700681B2 (en) A method of operating a computer system
KR100437199B1 (en) Methods for accessing computer systems and data stored on them
US5535381A (en) Apparatus and method for copying and restoring disk files
US5649152A (en) Method and system for providing a static snapshot of data stored on a mass storage system
US5740445A (en) Information processing apparatus for generating directory information to manage a file using directories
US6463573B1 (en) Data processor storage systems with dynamic resynchronization of mirrored logical data volumes subsequent to a storage system failure
WO1996012232A9 (en) Snapshot of data stored on a mass storage system
JP2003280964A (en) Method for acquiring snapshot, storage system and disk device
JP4755244B2 (en) Information generation method, information generation program, and information generation apparatus
ES2082860T3 (en) A METHOD OF MANAGING A COMPUTER SYSTEM.
JP4394467B2 (en) Storage system, server apparatus, and preceding copy data generation method
JPH01204163A (en) File controller
CN111258503B (en) Management method and device of CIRROS file system
CN114328018A (en) Snapshot creating method, computing device and storage medium
JPH0362240A (en) Picture data file control system
JP2830826B2 (en) Distributed file synchronization system and method
JPH0561754A (en) Data processor
JPH0744426A (en) File management method for file system
JPH07200378A (en) Library file management equipment
JPS6349255B2 (en)
JP2605476B2 (en) Dump collection processing method
JPH04370847A (en) Method for transaction synchronous access to sequential file
JPH0664599B2 (en) Document file search device
JPH05250243A (en) Data processing system for extended storage device