JPH086827A - System and method for file storage - Google Patents

System and method for file storage

Info

Publication number
JPH086827A
JPH086827A JP6141389A JP14138994A JPH086827A JP H086827 A JPH086827 A JP H086827A JP 6141389 A JP6141389 A JP 6141389A JP 14138994 A JP14138994 A JP 14138994A JP H086827 A JPH086827 A JP H086827A
Authority
JP
Japan
Prior art keywords
file
data
storage device
external storage
stored
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.)
Granted
Application number
JP6141389A
Other languages
Japanese (ja)
Other versions
JP2842224B2 (en
Inventor
Takao Orui
岳雄 大類
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6141389A priority Critical patent/JP2842224B2/en
Publication of JPH086827A publication Critical patent/JPH086827A/en
Application granted granted Critical
Publication of JP2842224B2 publication Critical patent/JP2842224B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To enable flexible adaption to the capacity of a secondary storage medium where data are stored by dividing a generated file into plural files when the file contents in a volume are all updated. CONSTITUTION:The maximum file size of a file that can be stored on a flexible disk drive 4 is stored in the management file 31 on a magnetic disk drive 3. When the system is started up, the management file 31 is read out and stored in the management table 55 of a central processor 5. While the system is in on-line service, a file calculation part 53 divides data to be saved into plural parts corresponding to file information obtained on the basis of the maximum file size. A file write part 54 writes the data, divided by the file calculation part 53, in data files A and B on the magnetic disk drive 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子交換機等でデータ
をファイルにセーブするファイル保存システムおよび方
法に関し、特に一つの論理ファイルを複数のファイルに
分割管理するためのシステムおよび方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file saving system and method for saving data in a file in an electronic exchange or the like, and more particularly to a system and method for dividing and managing one logical file into a plurality of files.

【0002】[0002]

【従来の技術】従来、この種のファイル管理では、特開
平4−287140が例示するとおり、一つの論理ファ
イルを生成してボリューム内のファイルに対してレコー
ドの書込みを追加する際に、生成した一つの論理ファイ
ルを追加されるレコード数に応じて、複数の物理ファイ
ルに分割し、この複数に分割した物理ファイルを複数の
ボリュームに割付けている。
2. Description of the Related Art Conventionally, in this type of file management, as described in Japanese Patent Laid-Open No. 4-287140, a logical file is created when a record is added to a file in a volume. One logical file is divided into a plurality of physical files according to the number of records to be added, and the divided physical files are allocated to a plurality of volumes.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のファイ
ル管理では、すでにボリューム内に生成されているファ
イルに対して、一つの論理ファイルを生成してレコード
の追加書込みを行う場合に限り、一つの論理ファイルを
複数の物理ファイルに分割しており、蓄積プログラム制
御式の交換機の場合のように、毎回新規にファイルを生
成,すなわちボリューム内のファイルの内容をすべて更
新する場合に対しては適用できないという欠点がある。
In the conventional file management described above, only one logical file is created for a file already created in the volume and additional writing of a record is performed. The logical file is divided into multiple physical files, and this is not applicable to the case where a new file is created each time, that is, all the contents of the file in the volume are updated, as in the case of a storage program control type exchange. There is a drawback that.

【0004】更に、上述の公報では、一つのファイルの
最大レコード数を記述したファイル管理情報ファイルの
ボリューム内への書込み方法が明示されていないので、
最大レコード数をどのような手順で変更するのかわから
ず、データを保存する記憶媒体の容量に柔軟に対応させ
ることができない。
Further, in the above-mentioned publication, the method of writing the file management information file describing the maximum number of records of one file into the volume is not clearly stated.
It is impossible to flexibly adapt to the capacity of the storage medium for storing data without knowing how to change the maximum number of records.

【0005】本発明の目的は、ボリューム内のファイル
内容をすべて更新する場合、生成されるファイルを複数
のファイルに分割でき、データを保存する二次記憶媒体
の容量に柔軟に対応させることができるファイル保存シ
ステムおよび方法を提供することにある。
An object of the present invention is that, when all the file contents in a volume are updated, the generated file can be divided into a plurality of files, and the capacity of the secondary storage medium for storing data can be flexibly dealt with. A file storage system and method are provided.

【0006】[0006]

【課題を解決するための手段】本発明のファイル保存シ
ステムは、交換機を制御するプログラムおよびデータを
記憶する主記憶装置と、前記データを保存する第1の外
部記憶装置と、この第1の外部記憶装置に保存されたデ
ータを読出すための第2の外部記憶装置と、前記主記憶
装置から読出したプログラムにより交換動作を行わせ前
記第1および第2の外部記憶装置とのインタフェースを
行う中央処理装置と、操作入力のための保守端末とを備
える蓄積プログラム制御式の交換機において、前記中央
処理装置が、前記保守端末からの操作入力により予め前
記第2の外部記憶装置に設定されたこの第2の外部記憶
装置で保存可能な最大ファイルサイズを読出し、前記第
1の外部記憶装置の管理ファイルに格納する手段と、シ
ステムを立上げるときに、前記管理ファイルの内容を読
出し、前記中央処理装置の管理テーブルに格納する手段
と、システムがオンラインサービス中に前記主記憶装置
に格納されているデータを、前記最大ファイルサイズを
もとに得たファイル情報に対応させて複数に分割し、前
記第1の外部記憶装置にデータファイルとして書込む手
段とを備える。
A file storage system of the present invention includes a main storage device for storing programs and data for controlling an exchange, a first external storage device for storing the data, and the first external storage device. A second external storage device for reading data stored in the storage device, and a central interface for performing an exchange operation by the program read from the main storage device to interface with the first and second external storage devices. In a storage program control type exchange equipped with a processing device and a maintenance terminal for operation input, the central processing unit is set in the second external storage device in advance by an operation input from the maintenance terminal. A means for reading the maximum file size that can be stored in the second external storage device and storing it in the management file of the first external storage device, and starting up the system. Means for reading the contents of the management file and storing it in the management table of the central processing unit, and the data stored in the main memory during the online service of the system based on the maximum file size. It is provided with a unit that divides the file information into a plurality of files corresponding to the obtained file information and writes the data as a data file in the first external storage device.

【0007】また、本発明のファイル保存方法は、第1
の外部記憶装置と、この第1の外部記憶装置に保存され
たデータを読出すための第2の外部記憶装置とを備え、
中央処理装置の制御によりデータを保存する交換機にお
けるファイル保存方法において、操作入力により予め前
記第2の外部記憶装置に設定されたこの第2の外部記憶
装置で保存可能な最大ファイルサイズを読出し、前記第
1の外部記憶装置の管理ファイルに格納しておき、シス
テムを立上げるときに、前記管理ファイルの内容を読出
し、前記中央処理装置の管理テーブルに格納し、システ
ムがオンラインサービス中に、保存すべきデータを前記
最大ファイルサイズをもとに得たファイル情報に対応さ
せて複数に分割し、前記第1の外部記憶装置にデータフ
ァイルとして書込む構成であり、一つのファイルに格納
可能な最大ブロック数とブロックサイズとを予め定義し
ておき、データを保存する際、保存すべき全データのサ
イズを前記ブロックサイズで割算して全ブロック数を算
出した後、前記全ブロック数を前記最大ブロック数で割
算し必要とされる全データファイル数およびデータファ
イルごとのブロック数を算出し、書込みブロック数が算
出された最初のデータファイルのブロック数に達した場
合、このデータファイルをクローズし、前記データファ
イル数から「1」減算し、データファイルに残りがある
場合には、新データファイルを生成し、この新データフ
ァイルのブロック数の分だけ残りブロックの書込みを継
続する。
The file saving method of the present invention is the first
An external storage device and a second external storage device for reading data stored in the first external storage device,
In a file saving method for an exchange that saves data under the control of a central processing unit, the maximum file size that can be saved in the second external storage device set in advance in the second external storage device is read out by an operation input, It is stored in the management file of the first external storage device, and when the system is started up, the contents of the management file are read out, stored in the management table of the central processing unit, and saved during the online service of the system. Power data is divided into a plurality of pieces corresponding to the file information obtained based on the maximum file size, and is written as a data file in the first external storage device. The maximum block that can be stored in one file The number and block size are defined in advance, and when saving data, the size of all data to be saved After dividing by the size to calculate the total number of blocks, divide the total number of blocks by the maximum number of blocks to calculate the required total number of data files and the number of blocks for each data file. When the calculated number of blocks of the first data file is reached, this data file is closed, "1" is subtracted from the number of said data files, and if there are remaining data files, a new data file is generated, The writing of the remaining blocks is continued by the number of blocks of this new data file.

【0008】[0008]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明のファイル保存システムの一実施例を
示すブロック図であり、電子交換機に適用された場合が
例示されている。図1を参照すると、本発明は、操作入
力のためのキーボードおよびディスプレイ装置を有する
保守端末1と、交換機を制御するプログラム(図示せ
ず)およびデータ21を記憶する主記憶装置2と、デー
タ21を保存する一次記憶媒体としての磁気ディスク装
置3と、この磁気ディスク装置3のバックアップ用とし
磁気ディスク装置3に保存されたデータを読出すための
二次記憶媒体としてのフレキシブルディスク装置4と、
主記憶装置2から読出したプログラムにより交換動作を
行わせ磁気ディスク装置3およびフレキシブルディスク
装置4とのインタフェースを行う中央処理装置5とを備
える。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a file storage system of the present invention, which is illustrated as being applied to an electronic exchange. Referring to FIG. 1, the present invention relates to a maintenance terminal 1 having a keyboard and a display device for operation input, a main storage device 2 for storing a program (not shown) for controlling an exchange and data 21, and a data 21. A magnetic disk device 3 as a primary storage medium for storing data, and a flexible disk device 4 as a secondary storage medium for backing up the magnetic disk device 3 and for reading data stored in the magnetic disk device 3.
There is provided a central processing unit 5 for performing an exchange operation by a program read from the main storage unit 2 and for interfacing with the magnetic disk unit 3 and the flexible disk unit 4.

【0009】磁気ディスク装置3は、フレキシブルディ
スク装置4から読出された一つのファイルの最大ブロッ
ク数と一つのブロックのブロックサイズを格納する管理
ファイル31と、データ21をファイルとし格納するデ
ータファイルA32,データブァイルB33とを備え
る。データファイルの数は一例を示し、本例に限定され
るものではない。
The magnetic disk device 3 includes a management file 31 for storing the maximum number of blocks and a block size of one block read from the flexible disk device 4, a data file A 32 for storing the data 21 as a file, And a data file B33. The number of data files is an example and is not limited to this example.

【0010】中央処理装置5は、制御部5aおよび記憶
部5bを有し、制御部5aは、ファイルインストール部
51と、ファイル読出部52と、ファイル数算出部53
と、ファイル書込部54とを備える。
The central processing unit 5 has a control section 5a and a storage section 5b, and the control section 5a has a file installation section 51, a file reading section 52, and a file number calculation section 53.
And a file writing unit 54.

【0011】ファイルインストール部51は、保守端末
1からの操作入力により予めフレキシブルディスク装置
4に設定されたこのディスク装置4で保存可能な最大フ
ァイルサイズを読出し、管理ファイル31に格納する。
ファイル読出し部52は、システムを立上げるときに、
管理ファイル31の内容を読出し、中央処理装置5の管
理テーブル55に格納する。ファイル数算出部53は、
システムがオンラインサービス中に主記憶装置2に格納
されているデータ21を、最大ファイルサイズをもとに
得たファイル情報に対応させて複数に分割する。ファイ
ル書込部54は、分割されたデータ21を磁気ディスク
装置3にデータファイルとして書込む。
The file installation unit 51 reads the maximum file size that can be stored in the flexible disk device 4 and is stored in the management file 31 in advance by the operation input from the maintenance terminal 1.
The file reading unit 52, when starting up the system,
The contents of the management file 31 are read out and stored in the management table 55 of the central processing unit 5. The file number calculation unit 53
The system divides the data 21 stored in the main storage device 2 during the online service into a plurality of pieces corresponding to the file information obtained based on the maximum file size. The file writing unit 54 writes the divided data 21 in the magnetic disk device 3 as a data file.

【0012】記憶部5bは、管理テーブル55と、ファ
イル情報テーブル56とを備える。管理テーブル55
は、図2に示すように一つのファイルに格納可能な最大
ブロック数61および一つのブロックのブロックサイズ
62から構成される。例えば、1メガバイトのフレキシ
ブルディスク装置(FDD)が二次記憶媒体として使用
される場合、4キロバイトのブロックサイズのデータ
が、1024/4=256により、最大256個格納可
能なので、予め保守端末1からの操作入力により、最大
ブロック数とし256,ブロックサイズとし4キロバイ
トと設定される。
The storage unit 5b comprises a management table 55 and a file information table 56. Management table 55
2 is composed of the maximum number of blocks 61 that can be stored in one file and the block size 62 of one block, as shown in FIG. For example, when a flexible disk device (FDD) of 1 megabyte is used as a secondary storage medium, a maximum of 256 pieces of data having a block size of 4 kilobytes can be stored by 1024/4 = 256. By the operation input of, the maximum number of blocks is set to 256, and the block size is set to 4 kilobytes.

【0013】ファイル情報テーブル56は、図3に示す
ようにブロック総数を示す全ブロック数71と、ファイ
ル総数を示す全ファイル数72と、それぞれのファイル
に格納されるブロック数を示すファイル番号「N」のブ
ロック数73,74から構成され、ファイル数算出部5
3によりそれぞれの値が算出され、設定される。例え
ば、データが2メガバイトで上述したFDDを使用する
場合では、全ブロック数は2048/4=512,一つ
のファイル当りの最大ブロック数は256だから、従っ
て、512/256=2により全ファイル数は2とな
る。そして、各ファイルごとのブロック数はファイル番
号1では256,ファイル番号2でも256となる。
As shown in FIG. 3, the file information table 56 includes a total number of blocks 71 indicating the total number of blocks, a total number of files 72 indicating the total number of files, and a file number "N" indicating the number of blocks stored in each file. Of the number of blocks 73 and 74
Each value is calculated and set by 3. For example, when the data is 2 megabytes and the above FDD is used, the total number of blocks is 2048/4 = 512, and the maximum number of blocks per file is 256. Therefore, the total number of files is 512/256 = 2. It becomes 2. The number of blocks for each file is 256 for file number 1 and 256 for file number 2.

【0014】次に、図1から図6を参照して、本実施例
の動作について説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0015】保守端末1からの操作入力により、ファイ
ルインストール部51は、一つのファイルの最大ブロッ
ク数とブロックサイズに関する情報を受信し、(ステッ
プ1:S1)、これらの情報をフレキシブルディスク装
置4に格納する(S2)。ファイルインストール部51
は、保守端末1からの指示により、フレキシブルディス
ク装置4にS1で格納された情報を読出し、磁気ディス
ク装置3の管理ファイル31に書込む(S3)。
In response to an operation input from the maintenance terminal 1, the file installation section 51 receives information regarding the maximum number of blocks and block size of one file (step 1: S1), and the information is stored in the flexible disk device 4. Store (S2). File installation unit 51
In accordance with an instruction from the maintenance terminal 1, reads the information stored in S1 in the flexible disk device 4 and writes it in the management file 31 of the magnetic disk device 3 (S3).

【0016】システムを立上げるときに、ファイル読出
部52は管理ファイル31を読出し(S4)、管理テー
ブル55を生成する(S5)。ファイル数算出部53
は、データ21の全データサイズを検出し、これを予め
設定されたブロックサイズで割算しブロック数を求める
(S6)。更に、全ブロック数を最大ブロック数で割算
し、全ファイル数およびファイルごとのブロック数を求
める(S7)。ファイル数算出部53は、S7で求めた
全ブロック数,全ファイル数およびファイルごとのブロ
ック数をファイル情報テーブル56に格納する(S
8)。
When the system is started up, the file reading section 52 reads the management file 31 (S4) and creates the management table 55 (S5). File number calculation unit 53
Detects the total data size of the data 21 and divides this by the preset block size to obtain the number of blocks (S6). Further, the total number of blocks is divided by the maximum number of blocks to obtain the total number of files and the number of blocks for each file (S7). The file number calculation unit 53 stores the total number of blocks, the total number of files, and the number of blocks for each file obtained in S7 in the file information table 56 (S
8).

【0017】ファイル書込部54は、磁気ディスク装置
3のなかにデータファイルA32を生成し(S9)、フ
ァイル情報テーブル56に基づいて、ブロックサイズ単
位にデータ21を連続してデータファイルA32に書込
む(S10)。書込みのブロック数が規定数に達したか
否か判定し(S11)、達したときには、データファイ
ルA32をクローズし(S12)、全ファイル数から
「1」を減算する(S13)。生成すべき残りファイル
が有るか否か判定し(S14)、有るときには、新ファ
イル,この実施例の場合データファイルB32を生成
し、新ファイルに残りブロックの書込みを継続する(S
16)。
The file writing unit 54 creates a data file A32 in the magnetic disk device 3 (S9), and based on the file information table 56, continuously writes the data 21 in block size units to the data file A32. (S10). It is determined whether or not the number of blocks to be written has reached the specified number (S11), and when it reaches the number, the data file A32 is closed (S12), and "1" is subtracted from the total number of files (S13). It is determined whether or not there is a remaining file to be generated (S14), and if there is, a new file, the data file B32 in this embodiment is generated, and the writing of the remaining blocks to the new file is continued (S14).
16).

【0018】全ファイルの書込みが終了した時点でファ
イル書込部54のファイルセーブは完了する。以降、必
要に応じて保守端末1からのフレキシブルディスクへの
セーブコマンドにより、データファイルにセーブされた
データはフレキシブルディスク装置4に分割して保存さ
れる。
When the writing of all files is completed, the file saving of the file writing unit 54 is completed. Thereafter, the data saved in the data file is divided and saved in the flexible disk device 4 by a save command from the maintenance terminal 1 to the flexible disk, if necessary.

【0019】なお、新たな記憶媒体の容量に合わせるた
めにファイルサイズを変更する場合には、保守端末1か
ら、この新たに設けられる記憶媒体を介し前述と同様の
手順により、磁気ディスク装置3の管理ファイル31の
なかの情報(最大ファイルサイズおよびブロックサイ
ズ)を変更指示することにより行う。
When the file size is changed in order to match the capacity of the new storage medium, the maintenance terminal 1 operates the newly provided storage medium in the same procedure as described above to store the data in the magnetic disk device 3. This is performed by instructing to change the information (maximum file size and block size) in the management file 31.

【0020】上述したように、データは二次記憶媒体の
記憶容量に応じて分割保存が可能となり、より柔軟性の
高いファイル保存が可能となる。
As described above, the data can be divided and saved according to the storage capacity of the secondary storage medium, and the file can be saved with higher flexibility.

【0021】[0021]

【発明の効果】以上説明したように本発明によれば、第
1の外部記憶装置の管理ファイルに、第2の外部記憶装
置で保存可能な最大ファイルサイズを格納しておき、シ
ステムを立上げるときに、管理ファイルの内容を読出
し、中央処理装置の管理テーブルに格納し、システムが
オンラインサービス中に、保存すべきデータを最大ファ
イルサイズをもとに得たファイル情報に対応させて複数
に分割し、第1の外部記憶装置にデータファイルとして
書込むことにより、ボリューム内のファイル内容をすべ
て更新する場合、生成されるファイルを複数のファイル
に分割でき、データを保存する二次記憶媒体の容量に柔
軟に対応させることができる。
As described above, according to the present invention, the maximum file size that can be stored in the second external storage device is stored in the management file of the first external storage device, and the system is started up. At the same time, the contents of the management file are read and stored in the management table of the central processing unit, and the data to be saved is divided into multiple pieces according to the file information obtained based on the maximum file size while the system is online service. However, when all the file contents in the volume are updated by writing as a data file in the first external storage device, the generated file can be divided into multiple files, and the capacity of the secondary storage medium for storing the data. Can be flexibly dealt with.

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

【図1】本発明のファイル保存システムの一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a file storage system of the present invention.

【図2】図1における管理テーブルの構成例を示す図で
ある。
FIG. 2 is a diagram showing a configuration example of a management table in FIG.

【図3】図1におけるファイル情報テーブルの構成例を
示す図である。
3 is a diagram showing a configuration example of a file information table in FIG.

【図4】本発明のファイル保存方法の一実施例の処理手
順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of an embodiment of a file saving method of the present invention.

【図5】本発明のファイル保存方法の一実施例の処理手
順を示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure of an embodiment of a file saving method of the present invention.

【図6】本発明のファイル保存方法の一実施例の処理手
順を示すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure of an embodiment of a file saving method of the present invention.

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

1 保守端末 2 主記憶装置 3 磁気ディスク装置 4 フレキシブルディスク装置 5 中央処理装置 21 データ 31 管理ファイル 32 データファイルA 33 データファイルB 51 ファイルインストール部 52 ファイル読出部 53 ファイル数算出部 54 ファイル書込部 55 管理テーブル 56 ファイル情報テーブル 5a 制御部 5b 記憶部 1 Maintenance Terminal 2 Main Storage Device 3 Magnetic Disk Device 4 Flexible Disk Device 5 Central Processing Unit 21 Data 31 Management File 32 Data File A 33 Data File B 51 File Installation Section 52 File Reading Section 53 File Count Calculation Section 54 File Writing Section 55 management table 56 file information table 5a control unit 5b storage unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 交換機を制御するプログラムおよびデー
タを記憶する主記憶装置と、前記データを保存する第1
の外部記憶装置と、この第1の外部記憶装置に保存され
たデータを読出すための第2の外部記憶装置と、前記主
記憶装置から読出したプログラムにより交換動作を行わ
せ前記第1および第2の外部記憶装置とのインタフェー
スを行う中央処理装置と、操作入力のための保守端末と
を備える蓄積プログラム制御式の交換機において、 前記中央処理装置が、前記保守端末からの操作入力によ
り予め前記第2の外部記憶装置に設定されたこの第2の
外部記憶装置で保存可能な最大ファイルサイズを読出
し、前記第1の外部記憶装置の管理ファイルに格納する
手段と、 システムを立上げるときに、前記管理ファイルの内容を
読出し、前記中央処理装置の管理テーブルに格納する手
段と、 システムがオンラインサービス中に前記主記憶装置に格
納されているデータを、前記最大ファイルサイズをもと
に得たファイル情報に対応させて複数に分割し、前記第
1の外部記憶装置にデータファイルとして書込む手段と
を備えることを特徴とするファイル保存システム。
1. A main storage device for storing a program and data for controlling an exchange, and a first storage device for storing the data.
External storage device, a second external storage device for reading the data stored in the first external storage device, and a program read from the main storage device to perform an exchange operation. In a storage program control type exchange equipped with a central processing unit for interfacing with an external storage device and a maintenance terminal for operation input, the central processing unit is configured in advance by the operation input from the maintenance terminal. Means for reading the maximum file size that can be stored in the second external storage device set in the second external storage device and storing it in the management file of the first external storage device; A means for reading the contents of the management file and storing it in the management table of the central processing unit, and a means for storing it in the main storage device while the system is online. Existing data is divided into a plurality of pieces corresponding to the file information obtained based on the maximum file size, and is written into the first external storage device as a data file. .
【請求項2】 第1の外部記憶装置と、この第1の外部
記憶装置に保存されたデータを読出すための第2の外部
記憶装置とを備え、中央処理装置の制御によりデータを
保存する交換機におけるファイル保存方法において、 操作入力により予め前記第2の外部記憶装置に設定され
たこの第2の外部記憶装置で保存可能な最大ファイルサ
イズを読出し、前記第1の外部記憶装置の管理ファイル
に格納しておき、システムを立上げるときに、前記管理
ファイルの内容を読出し、前記中央処理装置の管理テー
ブルに格納し、システムがオンラインサービス中に、保
存すべきデータを前記最大ファイルサイズをもとに得た
ファイル情報に対応させて複数に分割し、前記第1の外
部記憶装置にデータファイルとして書込むことを特徴と
するファイル保存方法。
2. A first external storage device and a second external storage device for reading the data stored in the first external storage device, and the data is stored under the control of the central processing unit. In the file storage method in the exchange, the maximum file size that can be stored in the second external storage device, which has been set in advance in the second external storage device by operation input, is read out and stored in the management file of the first external storage device. When the system is started up, the contents of the management file are read out and stored in the management table of the central processing unit, and the data to be saved is stored based on the maximum file size while the system is online service. A method for storing a file, characterized in that the file is divided into a plurality of pieces corresponding to the file information obtained in (1) and written as a data file in the first external storage device. .
【請求項3】 一つのファイルに格納可能な最大ブロッ
ク数とブロックサイズとを予め定義しておき、データを
保存する際、保存すべき全データのサイズを前記ブロッ
クサイズで割算して全ブロック数を算出した後、前記全
ブロック数を前記最大ブロック数で割算し必要とされる
全データファイル数およびデータファイルごとのブロッ
ク数を算出し、書込みブロック数が算出された最初のデ
ータファイルのブロック数に達した場合、このデータフ
ァイルをクローズし、前記データファイル数から「1」
減算し、データファイルに残りがある場合には、新デー
タファイルを生成し、この新データファイルのブロック
数の分だけ残りブロックの書込みを継続することを特徴
とする請求項2記載のファイル保存方法。
3. The maximum number of blocks that can be stored in one file and the block size are defined in advance, and when data is saved, the size of all data to be saved is divided by the block size to obtain all blocks. After calculating the number, the total number of blocks is divided by the maximum number of blocks to calculate the required total number of data files and the number of blocks for each data file, and the number of write blocks of the first data file is calculated. When the number of blocks is reached, this data file is closed and "1" is added from the data file number.
3. The file saving method according to claim 2, wherein when the data file is subtracted, a new data file is generated and writing of the remaining blocks is continued by the number of blocks of this new data file. .
JP6141389A 1994-06-23 1994-06-23 How to save files Expired - Fee Related JP2842224B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6141389A JP2842224B2 (en) 1994-06-23 1994-06-23 How to save files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6141389A JP2842224B2 (en) 1994-06-23 1994-06-23 How to save files

Publications (2)

Publication Number Publication Date
JPH086827A true JPH086827A (en) 1996-01-12
JP2842224B2 JP2842224B2 (en) 1998-12-24

Family

ID=15290861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6141389A Expired - Fee Related JP2842224B2 (en) 1994-06-23 1994-06-23 How to save files

Country Status (1)

Country Link
JP (1) JP2842224B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000057460A (en) * 1998-08-07 2000-02-25 Nittan Co Ltd Fire display device
JP2010102715A (en) * 1997-09-24 2010-05-06 Sony Pictures Entertainment Inc Large block allocation for disk-based file system
US8682939B2 (en) 2002-05-22 2014-03-25 Teac Aerospace Technologies, Inc. Video and audio recording using file segmentation to preserve the integrity of critical data
WO2014098180A1 (en) 2012-12-20 2014-06-26 ニッポン高度紙工業株式会社 Separator for aluminium electrolytic capacitor, and aluminium electrolytic capacitor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61275944A (en) * 1985-04-30 1986-12-06 Panafacom Ltd Data transfer processing system between auxiliary storage devices
JPH05127956A (en) * 1991-10-31 1993-05-25 Nec Corp Method and device for preserving data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61275944A (en) * 1985-04-30 1986-12-06 Panafacom Ltd Data transfer processing system between auxiliary storage devices
JPH05127956A (en) * 1991-10-31 1993-05-25 Nec Corp Method and device for preserving data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010102715A (en) * 1997-09-24 2010-05-06 Sony Pictures Entertainment Inc Large block allocation for disk-based file system
JP2000057460A (en) * 1998-08-07 2000-02-25 Nittan Co Ltd Fire display device
US8682939B2 (en) 2002-05-22 2014-03-25 Teac Aerospace Technologies, Inc. Video and audio recording using file segmentation to preserve the integrity of critical data
WO2014098180A1 (en) 2012-12-20 2014-06-26 ニッポン高度紙工業株式会社 Separator for aluminium electrolytic capacitor, and aluminium electrolytic capacitor

Also Published As

Publication number Publication date
JP2842224B2 (en) 1998-12-24

Similar Documents

Publication Publication Date Title
EP0080875B1 (en) Data storage system for a host computer
EP0347881A2 (en) A system for managing a storage medium
JPH0844598A (en) Method and device for file management
JPH0793109A (en) Information storage device
JPH11191267A (en) Method for allotting disk memory space and memory medium for storing compressed data record
CN1114862C (en) Hard disk duplicating method
JP2842224B2 (en) How to save files
JPH1011344A (en) Data backup method
US6226727B1 (en) Computer system
JPH0546456A (en) Access system for read after write type storage medium
US6704754B1 (en) Method for shared use of medium-exchangeable storage device for purposes of backup and file system, and medium-exchangeable recording system
JPH07182232A (en) Information processor
EP0080878A2 (en) Cache memory and method of control for use with magnetic disks
JPH0540582A (en) Filing processing device
JP3022011B2 (en) Data backup system
JPS62130440A (en) Cache subsystem
JPH0644118A (en) File backup system
JP2003140838A (en) Array storage device
JPS63255888A (en) File device
JPH11316703A (en) Method for storing optical disk
KR900007279B1 (en) Ffd control method in pabx
JP2817911B2 (en) Access control method for keyed files
JPH09265763A (en) Information recorder
JPH10198525A (en) Method for outputting data of external storage device
JPH01319820A (en) Memory medium control system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970311

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980922

LAPS Cancellation because of no payment of annual fees