JP2005149291A

Filesystem, program therefor, and information processing system

Abstract

Problem to be solved.To secure the consistency of information in a filesystem without destructing data regardless of an unexpected power break.

Solution.In the filesystem which has a data area and a management area for managing data allocation separately from each other, information of a data main body is read and is merged in new data, and merged data is written in an unused area of the data area. Then information of tables T1 and T2 being the management area is updated. When power is restored, inspections of error check and contents comparison of tables T1 and T2 are performed, and abnormality of the filesystem is determined by inspection results, and data is so repaired that correct data can be referred to. Thus data and table information in a correct state are always secured, and restoration processing is quickly performed.

Copyright (C)2005,JPO&NCIPI

Term

Term ended

Projected expiry passed 18 November 2023, 2.9 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

6 claims: 5 independent, 1 dependent

  1. 1
    In a file system constructed in a single storage area in a storage device, the file system has a data area for storing a data body and a fixed position management area for managing the arrangement of the data body, and has data. It has a means to read the information of the main body, merge it with new data, write the merged data to the unused area of the data area, update the information of the first management area, and update the information of the second management area. A file system that features that. 記憶装置内の単一の記憶領域に構築されたファイルシステムにおいて、 前記ファイルシステムはデータ本体を格納するデータ領域と、データ本体の配置を管理する固定位置の管理領域を二重に有し、 データ本体の情報を読取り、新たなデータとマージし、マージしたデータをデータ領域の未使用領域へ書込み後に第1の管理領域の情報を更新し、第2の管理領域の情報を更新する手段を有することを特徴とするファイルシステム。
  2. 3
    In a file system constructed in a single storage area in a storage device, the file system includes a data area for storing a data body, a first and second management area for managing the arrangement of the data body, and a data body. A means of reading information, merging it with new data, writing the merged data to an unused area of the data area, updating the information in the first control area, and then updating the information in the second control area. A file system characterized in that a means for comparing the information of the first management area and the information of the second management area and determining an abnormality from the result of the comparison is provided. 記憶装置内の単一の記憶領域に構築されたファイルシステムにおいて、 前記ファイルシステムはデータ本体を格納するデータ領域と、データ本体の配置を管理する第1及び第2の管理領域と、データ本体の情報を読取り、新たなデータとマージし、マージしたデータをデータ領域の未使用領域へ書込み後に第1の管理領域の情報を更新し、次に第2の管理領域の情報を更新する手段と、 前記第1の管理領域の情報と前記第2の管理領域の情報を比較し、その比較の結果から異常を判断する手段を設けたことを特徴とするファイルシステム。
  3. 4
    In a program that has a data area for storing the data body and a fixed position management area for managing the arrangement of the data body, and writes data to a file system constructed in a single storage area in the storage device. In response to a write request from a higher-level application to the file system, a step of searching for unused clusters for the write data size, a step of determining whether the new data to be written is partially rewritten, and a step of partially rewriting for one cluster. The step of reading the data and merging the write data, the step of writing one class of new data to the unused cluster, and updating the table of the first management area if there is no unwritten data, and further in the second management area. A program that has steps to update a table and is characterized by writing to a file system. データ本体を格納するデータ領域と、データ本体の配置を管理する固定位置の管理領域を二重に有し、記憶装置内の単一の記憶領域に構築されたファイルシステムにデータを書き込むプログラムにおいて、 上位アプリケーションから前記ファイルシステムへの書き込み要求に応じ、書き込みデータサイズ分の未使用クラスタを検索するステップと、書き込みの新規データが部分書き換えかを判定するステップと、部分書き換えであれば1クラスタ分のデータを読み出し、書き込みデータをマージするステップと、1クラス分の新規データを前記未使用クラスタに書き込むステップと、書き残しがなければ第1の管理領域のテーブルを更新し、さらに第2の管理領域のテーブルを更新するステップとを有し、ファイルシステムの書き込みを行うことを特徴とするプログラム。
  4. 5
    In a program that has a data area for storing the data body and a fixed position management area for managing the arrangement of the data body, and performs recovery processing of the file system constructed in a single storage area in the storage device. , The step of detecting the presence or absence of an error in Table 1 of the first management area, the step of detecting the presence or absence of an error in Table 2 of the second management area if there is no error in Table 1, and the step of detecting the presence or absence of an error in Table 2 For example, a step to compare the contents of table 1 and table 2, a step to overwrite the contents of table 1 to table 2 if there is no error in table 1 and an error in table 2, and the contents of table 1 and table 2 When there is a mismatch The step of checking the integrity of the table 1 mismatch information, the step of overwriting the contents of table 1 or table 2 with the other depending on the result, and when there is an error in both table 1 and table 2 of the medium A program characterized by having a step of reporting an error and performing a file system recovery process. データ本体を格納するデータ領域と、データ本体の配置を管理する固定位置の管理領域を二重に有し、記憶装置内の単一の記憶領域に構築されたファイルシステムの復旧処理を行うプログラムにおいて、 第1の管理領域のテーブル1のエラーの有無を検出するステップと、テーブル1にエラーが無ければ第2の管理領域のテーブル2のエラーの有無を検出するステップと、テーブル2にエラーが無ければテーブル1とテーブル2の内容の比較をするステップと、テーブル1にエラーが無くテーブル2にエラーが有ればテーブル1の内容をテーブル2に上書きするステップと、テーブル1とテーブル2の内容が不一致のときテーブル1不一致情報の整合性を検査するステップと、その結果に応じてテーブル1またはテーブル2の内容を他方に上書きするステップと、テーブル1、テーブル2の双方にエラーがあるとき媒体の異常を報告するステップとを有し、ファイルシステムの復旧処理を行うことを特徴とするプログラム。
  5. 6
    An information processing system including the file system according to any one of claims 1-3 in an information processing system including a computer. 電子計算機を備える情報処理システムにおいて、請求項1-3の何れか1項に記載のファイルシステムを設けることを特徴とする情報処理システム。