JPH11143747A - High compressing method of pre-allocation file - Google Patents

High compressing method of pre-allocation file

Info

Publication number
JPH11143747A
JPH11143747A JP9308542A JP30854297A JPH11143747A JP H11143747 A JPH11143747 A JP H11143747A JP 9308542 A JP9308542 A JP 9308542A JP 30854297 A JP30854297 A JP 30854297A JP H11143747 A JPH11143747 A JP H11143747A
Authority
JP
Japan
Prior art keywords
file
drive
magnetic disk
ram
application program
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
JP9308542A
Other languages
Japanese (ja)
Inventor
Yuji Okuni
裕二 大國
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP9308542A priority Critical patent/JPH11143747A/en
Publication of JPH11143747A publication Critical patent/JPH11143747A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To improve compressibility at the time of file compression by initializing an internal area when a pre-application file is produced. SOLUTION: A user's application program stored in a RAM 13 is read by a CPU 11 and carried out. If a file is opened while the application program is executed, file open processing is carried out. First, a magnetic disk drive 14 is initialized, and the drive 14 is formatted and is also performed zero clear. Next, pre-allocation processing is performed, residual available capacity CAPA of the drive 14 is calculated and stored in the RAM 13 and a dummy file is opened in the drive 14. Thus, since an unused area of the drive 14 is performed zero clear, useless refuse data do not exist at the time of compressing a file and compression can be performed with the best compressibility.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、適用業務ソフトウ
エアによってプリアロケ−ションされるファイルを圧縮
時に圧縮率を高めることができるプリアロケ−ションフ
ァイルの高圧縮化方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for increasing the compression ratio of a pre-allocated file which can increase the compression ratio when compressing a file pre-allocated by application software.

【0002】[0002]

【従来の技術】コンピュ−タによりアプリケ−ションプ
ログラムが実行されると、そのプログラムにおいてファ
イルをオ−プンする処理が頻繁に発生する。このファイ
ルのオ−プン処理は、ディスク装置を初期化した後、プ
リアロケ−ションするようにしている。
2. Description of the Related Art When an application program is executed by a computer, a process of opening a file in the program frequently occurs. In the open processing of this file, the disk device is initialized and then pre-allocated.

【0003】ここで、プリアロケ−ションとはデ−タフ
ァイルを作成する時にレコ−ド件数を指定して、そのサ
イズでファイル領域をあらかじめ確保することを意味す
る。
[0003] Here, the pre-allocation means that the number of records is specified when a data file is created, and a file area is reserved in advance with the size.

【0004】このように、アプリケ−ションプログラム
によってプリアロケ−ションされるファイルは、多くの
場合、磁気ディスクの未使用領域を初期化することな
く、そのままのディスク状態をファイルの領域として確
保している。
As described above, in many cases, a file preallocated by an application program secures a disk state as a file area without initializing an unused area of a magnetic disk. .

【0005】例えば、図5に示すように、使用領域の後
に新規ファイルを作成しても、未使用領域として初期化
されていない領域が残っていた。
For example, as shown in FIG. 5, even if a new file is created after a used area, an area that has not been initialized remains as an unused area.

【0006】[0006]

【発明が解決しようとする課題】このようにして、ファ
イルの領域を初期化しないでプリアロケ−ションされる
ファイルは、そのファイルを圧縮する際に、ファイル内
に無意味なゴミデ−タが存在するために、圧縮率を低下
させてしまうという問題がある。
As described above, in a file preallocated without initializing the area of the file, meaningless garbage data exists in the file when the file is compressed. Therefore, there is a problem that the compression ratio is reduced.

【0007】このため、ファイルを圧縮して処理する場
合、無駄な記憶領域が必要になり、またファイルの転送
効率も低下させる原因となっていた。
For this reason, when a file is compressed and processed, a useless storage area is required, and the file transfer efficiency is reduced.

【0008】本発明は上記の点に鑑みてなされたもの
で、その目的は、プリアロケ−ションファイル作成時に
内部領域を初期化しておくことにより、ファイル圧縮時
の圧縮率を高めることができるプリアロケ−ションファ
イルの高圧縮化方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and has as its object to initialize the internal area when a pre-allocated file is created, thereby increasing the compression ratio at the time of compressing the file. Another object of the present invention is to provide a method for compressing an application file.

【0009】[0009]

【課題を解決するための手段】請求項1に係わるプリア
ロケ−ションファイルの高圧縮化方法は、プリアロケ−
ションファイル作成時に、磁気ディスクの未使用領域を
一定のパタ−ンで初期化することを特徴とする。
According to a first aspect of the present invention, there is provided a pre-allocated file compression method.
When an application file is created, an unused area of the magnetic disk is initialized with a fixed pattern.

【0010】[0010]

【発明の実施の形態】以下図面を参照して本発明の一実
施の形態について説明する。図1を参照してアプリケ−
ションプログラムを実行するコンピュ−タのシステム構
成図について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. Referring to FIG.
A system configuration diagram of a computer that executes an application program will be described.

【0011】図1において、11はCPU(中央処理装
置)である。このCPU(中央処理装置)11からのシ
ステムバス11aには各種制御プログラムを記憶してい
るROM(リ−ド・オンリ・メモリ)12、各種作業領
域が確保されるRAM(ランダム・アクセス・メモリ)
13、磁気ディスク装置14、プリンタ15が接続され
る。
In FIG. 1, reference numeral 11 denotes a CPU (central processing unit). A system bus 11a from the CPU (Central Processing Unit) 11 has a ROM (Read Only Memory) 12 storing various control programs, and a RAM (Random Access Memory) in which various work areas are secured.
13, a magnetic disk device 14, and a printer 15 are connected.

【0012】このRAM13には、ユ−ザのアプリケ−
ションプログラムが記憶されている。
The RAM 13 stores a user application.
Program is stored.

【0013】次に、上記のように構成された本発明の一
実施の形態の動作について説明する。
Next, the operation of the embodiment of the present invention configured as described above will be described.

【0014】RAM13に記憶されているユ−ザのアプ
リケ−ションプログラムがCPU11に読み込まれて実
行される。このアプリケ−ションプログラムの実行中に
ファイルがオ−プンされると、図2に示すフロ−チャ−
トの処理によりファイルオ−プン処理が実行される。
The user's application program stored in the RAM 13 is read into the CPU 11 and executed. If a file is opened during the execution of this application program, the flow chart shown in FIG.
The file open process is executed by the process of the port.

【0015】図2に示すように、まず磁気ディスク装置
14が初期化される(ステップS1)。磁気ディスク装
置14がフォ−マッティングされると共に、ゼロクリア
される。
As shown in FIG. 2, first, the magnetic disk drive 14 is initialized (step S1). The magnetic disk drive 14 is formatted and cleared to zero.

【0016】次に、プリアロケ−ション処理がなされる
(ステップS2)。このプリアロケ−ション処理につい
て図3のフロ−チャ−トを参照して説明する。
Next, a pre-allocation process is performed (step S2). This pre-allocation process will be described with reference to the flowchart of FIG.

【0017】図3において、まずRAM13の磁気ディ
スク装置14の残り使用可能容量CAPAを算出して格
納する(ステップS11)。
In FIG. 3, first, the remaining usable capacity CAPA of the magnetic disk device 14 of the RAM 13 is calculated and stored (step S11).

【0018】そして、ダミ−ファイルを磁気ディスク装
置14にオ−プンする(ステップS12)。
Then, the dummy file is opened in the magnetic disk drive 14 (step S12).

【0019】そのダミ−ファイルにある特定パタ−ンの
文字列を書き込む(ステップS13)。この特定パタ−
ンの文字列は一定であれば何でも良い。つまり、SIZ
E分のバイト数たけ特定パタ−ンの文字列を書き込む。
A character string of a specific pattern in the dummy file is written (step S13). This specific pattern
Any character string can be used as long as it is constant. That is, SIZ
A character string of a specific pattern is written by the number of bytes of E.

【0020】次に、特定パタ−ンをSIZE分だけ磁気
ディスク装置14の残り使用可能領域に書き込む(ステ
ップS14)。
Next, the specified pattern is written into the remaining usable area of the magnetic disk drive 14 by the size of SIZE (step S14).

【0021】この結果、磁気ディスク14の残り使用可
能容量CAPAからステップS14で書き込んだSIZ
E分だけ減算する(ステップS15)。その結果をSI
ZEに入れておく。このようにして、残り使用可能容量
CAPAを更新しておく。
As a result, the SIZ written in step S14 from the remaining available capacity CAPA of the magnetic disk 14
Subtract by E (step S15). The result is SI
Keep in ZE. In this way, the remaining available capacity CAPA is updated.

【0022】次に、「CAPA<SIZE」であるかを
判定する(ステップS16)。このステップS16の判
定で「NO」と判定された場合には、ステップS14〜
S15の処理を、ステップS16の判定が「YES」と
判定されるまで繰り返し行われる。
Next, it is determined whether "CAPA <SIZE" is satisfied (step S16). If “NO” is determined in the determination in step S16, steps S14 to S14 are performed.
The process of S15 is repeatedly performed until the determination of step S16 is determined to be “YES”.

【0023】ステップS16の判定で「YES」と判定
された場合には、SIZE−CAPAだけ特定パタ−ン
の文字列を書き込むようにしている(ステップS1
7)。
If "YES" is determined in the step S16, a character string of a specific pattern is written for SIZE-CAPA (step S1).
7).

【0024】そして、ダミ−ファイルをクロ−ズする
(ステップS18)。
Then, the dummy file is closed (step S18).

【0025】このようにして、図4に示すように、磁気
ディスク装置14の未使用領域をゼロクリアしている。
従って、ファイルを圧縮する時には、無用なゴミデ−タ
が存在せず最高の圧縮率で圧縮することができる。
In this way, as shown in FIG. 4, the unused area of the magnetic disk drive 14 is cleared to zero.
Therefore, when compressing a file, there is no unnecessary garbage data, and the file can be compressed at the highest compression rate.

【0026】なお、上記実施の形態においては、図2の
フロ−チャ−トに示すようにファイルのオ−プン時にデ
ィスクの初期化(ステップS1)を必ず行うようにした
が、このステップS1の前のディスクの初期化を行うか
の判定手段を設け、この判定手段によりディスクの初期
化を行うことが指定されていた場合には、ディスクの初
期化(ステップS1)を行い、指定されていない場合に
はディスクの初期化をスキップしてプリアロケ−ション
処理を行うようにしても良い。
In the above embodiment, the disk is always initialized (step S1) when the file is opened, as shown in the flowchart of FIG. A determination unit is provided for determining whether to initialize the previous disk. If the determination unit specifies that the disk is to be initialized, the disk is initialized (step S1), and the disk is not specified. In this case, the pre-allocation processing may be performed by skipping the initialization of the disk.

【0027】[0027]

【発明の効果】以上詳述したように本発明によれば、プ
リアロケ−ションファイル作成時に内部領域を初期化し
ておくことにより、ファイル圧縮時の圧縮率を高めるこ
とができるプリアロケ−ションファイルの高圧縮化方法
を提供することができる。
As described above in detail, according to the present invention, by initializing the internal area when creating a pre-allocated file, the compression ratio at the time of compressing the file can be increased. A compression method can be provided.

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

【図1】本発明の一実施の形態に係わるコンピュ−タシ
ステムのシステム構成図。
FIG. 1 is a system configuration diagram of a computer system according to an embodiment of the present invention.

【図2】同ファイルオ−プンのフロ−チャ−ト。FIG. 2 is a flowchart of the file open.

【図3】プリアロケ−ションの詳細な処理を説明するた
めのフロ−チャ−ト。
FIG. 3 is a flowchart for explaining detailed pre-allocation processing.

【図4】本発明により磁気ディスク装置の状態を示す
図。
FIG. 4 is a diagram showing a state of a magnetic disk drive according to the present invention.

【図5】従来の磁気ディスク装置の状態を示す図。FIG. 5 is a diagram showing a state of a conventional magnetic disk drive.

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

11…CPU(中央処理装置) 12…ROM(リ−ド・オンリ・メモリ) 13…RAM(ランダム・アクセス・メモリ) 14…磁気ディスク装置、 15…プリンタ。 11 CPU (Central Processing Unit) 12 ROM (Read Only Memory) 13 RAM (Random Access Memory) 14 Magnetic Disk Device 15 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プリアロケ−ションファイル作成時に、
磁気ディスクの未使用領域を一定のパタ−ンで初期化す
ることを特徴とするプリアロケ−ションファイルの高圧
縮化方法。
At the time of creating a pre-allocation file,
A high compression method for a pre-allocated file, characterized by initializing an unused area of a magnetic disk with a fixed pattern.
JP9308542A 1997-11-11 1997-11-11 High compressing method of pre-allocation file Pending JPH11143747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9308542A JPH11143747A (en) 1997-11-11 1997-11-11 High compressing method of pre-allocation file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9308542A JPH11143747A (en) 1997-11-11 1997-11-11 High compressing method of pre-allocation file

Publications (1)

Publication Number Publication Date
JPH11143747A true JPH11143747A (en) 1999-05-28

Family

ID=17982289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9308542A Pending JPH11143747A (en) 1997-11-11 1997-11-11 High compressing method of pre-allocation file

Country Status (1)

Country Link
JP (1) JPH11143747A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007233543A (en) * 2006-02-28 2007-09-13 Hitachi Ltd Database management system, storage device, disaster recovery system, and backup method of database
JP2008077392A (en) * 2006-09-21 2008-04-03 Namco Bandai Games Inc Data structure, file data-processing program, and information storage medium
JP2008257584A (en) * 2007-04-06 2008-10-23 Hitachi Ltd Ram disk processing method and system
JP2011028520A (en) * 2009-07-24 2011-02-10 Nec Corp Disk array apparatus and physical disk restoration method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007233543A (en) * 2006-02-28 2007-09-13 Hitachi Ltd Database management system, storage device, disaster recovery system, and backup method of database
JP2008077392A (en) * 2006-09-21 2008-04-03 Namco Bandai Games Inc Data structure, file data-processing program, and information storage medium
JP2008257584A (en) * 2007-04-06 2008-10-23 Hitachi Ltd Ram disk processing method and system
JP2011028520A (en) * 2009-07-24 2011-02-10 Nec Corp Disk array apparatus and physical disk restoration method

Similar Documents

Publication Publication Date Title
US5774715A (en) File system level compression using holes
US5526523A (en) Interface between operating system and operating system extension
US5813011A (en) Storage of a compressed file containing its own compression management table
US5890169A (en) Disk fragmentation reduction using file allocation tables
JPH113269A (en) System and method for assisting accurate garbage collection by separating contents of stack into sub-stacks
US6205580B1 (en) Method for loading a program
US5752252A (en) Storage of file data on disk in multiple representations
US6865669B1 (en) Methods for optimizing memory resources during initialization routines of a computer system
JPH11143747A (en) High compressing method of pre-allocation file
US5794245A (en) Generic wrapper for decompressing DOS driver sys files
JP4392780B2 (en) Data storage processing method, program and storage medium thereof, and processing system
JPH05274198A (en) Information processor
JPH07191822A (en) Data storage device and data system
KR100261177B1 (en) Message handling routine
US6823326B2 (en) Method and system for performing asynchronous preformatting in a database system
JP3019104B2 (en) File processing device
JPH09231109A (en) File device
JP3760686B2 (en) Printer host and storage medium storing operation program thereof
CN112257122A (en) Data processing method, device and equipment based on T2 chip and storage medium
JPH01263714A (en) Information recording control system
JPH02116936A (en) Reorganizing system
JPH06214781A (en) Information processor
JPH06149647A (en) Multi-media file managing system
JP2000163264A (en) Program storage device for cpu
JPS63109557A (en) Program load system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050118

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050524