JPH04120634A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH04120634A JPH04120634A JP2241970A JP24197090A JPH04120634A JP H04120634 A JPH04120634 A JP H04120634A JP 2241970 A JP2241970 A JP 2241970A JP 24197090 A JP24197090 A JP 24197090A JP H04120634 A JPH04120634 A JP H04120634A
- Authority
- JP
- Japan
- Prior art keywords
- disk
- address
- allocation
- file
- free space
- 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
Links
- 238000007796 conventional method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的コ
(産業上の利用分野)
本発明は、ディスク装置を備えたデータ処理装置に関す
る。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention (Field of Industrial Application) The present invention relates to a data processing device equipped with a disk device.
(従来の技術)
一般にデータ処理装置では、磁気ディスク等にデータを
収容するが、このような磁気ディスクにディスクファイ
ルを割り付ける際、従来は、ディスク内の空き領域の状
態を示す空き領域情報に基づいて、小さなアドレスから
空き領域を捜し、割り付け可能な空き領域があれば、そ
の領域にディスクファイルを割り付けるという方法によ
って、ディスクファイルの割り付けを行っていた。(Prior Art) Data processing devices generally store data on magnetic disks, etc., but when allocating disk files to such magnetic disks, conventionally, data is allocated based on free space information indicating the state of free space within the disk. The disk file was allocated by searching for free space starting from a small address, and if there was a free space that could be allocated, the disk file was allocated to that area.
(発明が解決しようとする課題)
しかしながら、上述した従来のディスクファイル割り付
け方法においては、常に小さなアドレスから割り付け可
能な空き領域の検索を実施するため、小さなアドレスに
空きがあれば、常に小さなアドレスにディスクファイル
が割り付けられ、ディスクファイルの割り付け領域に片
寄りが生じる。(Problem to be Solved by the Invention) However, in the conventional disk file allocation method described above, the search for allocatable free space is always carried out starting from the smallest address, so if there is free space at a small address, the small address is always searched for. Disk files are allocated, and the allocated area of the disk files becomes uneven.
このため、大きなアドレスの領域にはほとんどアクセス
が行われず、いざ大きなアドレスの領域にアクセスを行
うと、入出力エラーが発生する場合がある等の問題があ
った。For this reason, the area with a large address is rarely accessed, and when an area with a large address is accessed, an input/output error may occur.
本発明は、かかる従来の事情に対処してなされたもので
、ディスクファイル割り付け領域に片寄りが生じること
を防止して、ディスクの全領域に均等にディスクファイ
ルを割り付けることができ従来に較べて信頼性の向上を
図ることのできるデータ処理装置を提供しようとするも
のである。The present invention has been made in response to such conventional circumstances, and it is possible to prevent the disk file allocation area from being unevenly distributed and to allocate disk files evenly to the entire disk area. The present invention aims to provide a data processing device that can improve reliability.
[発明の構成コ
(課題を解決するための手段)
すなわち本発明は、データを収容するディスクの空き領
域情報に基づいて、ディスク内の割り付け可能な空き領
域を検索し、この空き領域にディスクファイルを割り付
けるデータ処理装置において、前記空き領域情報に割り
付け開始アドレスを設定し、この割り付け開始アドレス
から前記空き領域の検索を開始するとともに、前記ディ
スクファイルの割り付け後、前記割り付け開始アドレス
をディスクファイルの割り付けを行った次のアドレスに
更新するよう構成したことを特徴とする(作 用)
上記構成の本発明のデータ処理装置では、空き領域情報
に割り付け開始アドレスを設け、この割り付け開始アド
レスから空き領域の検索を開始し、見つかった空き領域
にディスクファイルを割り付けた後、割り付け開始アド
レスをファイル割り付けを行った次のアドレスに更新す
る。[Configuration of the Invention (Means for Solving the Problems) In other words, the present invention searches for an allocatable free space on a disk based on free space information of a disk that stores data, and stores a disk file in this free space. A data processing device that allocates a disk file sets an allocation start address in the free space information, starts searching for the free space from this allocation start address, and after allocating the disk file, sets the allocation start address in the disk file allocation. (Function) In the data processing device of the present invention having the above configuration, an allocation start address is provided in the free space information, and the free space is updated from this allocation start address. After starting the search and allocating a disk file to the free space found, the allocation start address is updated to the next address to which the file was allocated.
したがって、ディスクファイル割り付け領域が小さなア
ドレスの領域に片寄ることを防止することができ、ディ
スクの全領域に均等にディスクファイルを割り付けるこ
とができる。これにより、自動的にパトロールベリファ
イ機能等が実施された場合と同様な効果が得られ、従来
に較べて信頼性の向上を図ることができる。Therefore, it is possible to prevent the disk file allocation area from being biased toward areas with small addresses, and it is possible to allocate disk files evenly to the entire area of the disk. As a result, the same effect as when the patrol verify function or the like is automatically executed can be obtained, and reliability can be improved compared to the conventional method.
(実施例) 以下、本発明の一実施例を図面を参照して説明する。(Example) Hereinafter, one embodiment of the present invention will be described with reference to the drawings.
第2図は、本実施例におけるデータ処理装置の要部構成
を示すもので、データ処理装置1は、CPU等から構成
されるデータ処理部2と、RAM等から構成される記憶
部3と、磁気ディスク装置等から構成されるディスク装
置部4とを具備している。FIG. 2 shows the configuration of main parts of the data processing device in this embodiment. A disk device section 4 composed of a magnetic disk device and the like is provided.
データ処理部2は、記憶部3およびディスク装置部4内
のデータに所定の処理を実施するとともに、次のように
して、ディスク装置部4に対してディスクファイルの割
り付けを実施するよう構成されている。The data processing section 2 is configured to perform predetermined processing on data in the storage section 3 and the disk device section 4, and to allocate disk files to the disk device section 4 in the following manner. There is.
以下、第1図を参照してディスクファイルの割り付けに
ついて説明する。The allocation of disk files will be explained below with reference to FIG.
N1図において、10は空き領域情報であり、記憶部3
内に収容され、ディスク装置部4のファイル割り付け済
みおよび空き状態を示す。この空き領域情報10は、デ
ィスクの空き領域を示す空き領域マツプ11と、割り付
け開始アドレス12とからなる。また、20はディスク
であり、21は既割り付けディスクファイル、22は新
しく割り付けるディスクファイルである。In the N1 diagram, 10 is free space information, and the storage unit 3
It shows the file allocation completed and free status of the disk device section 4. This free space information 10 consists of a free space map 11 indicating free space on the disk and an allocation start address 12. Further, 20 is a disk, 21 is an already allocated disk file, and 22 is a newly allocated disk file.
データ処理部2は、上記空き領域情報10の割り付け開
始アドレス12を始点として、空き領域マツプ11によ
りディスク20内の割り付け可能な空き領域を検索する
。The data processing unit 2 searches for an allocatable free area in the disk 20 using the free area map 11, starting from the allocation start address 12 of the free area information 10.
この結果、割り付け可能な空き領域が見つかると、この
空き領域に新しいディスクファイル22を割り付ける。As a result, if an allocatable free area is found, a new disk file 22 is allocated to this free area.
そして、新しいディスクファイル22の割り付けが行わ
れると、割り付け開始アドレス12をこの新しいディス
クファイル22の次のアドレス(第1図に示すA点)に
更新して処理を終了する。When the new disk file 22 is allocated, the allocation start address 12 is updated to the next address (point A shown in FIG. 1) of the new disk file 22, and the process ends.
したがって、次のディスクファイルの割り付けの際には
、この更新された割り付け開始アドレス12から、割り
付け可能な空き領域の検索が行われる。このため、小さ
なアドレスの領域に割り付け可能な空き領域があったと
しても、この小さなアドレスの領域にディスクファイル
の割り付けが行なわれず、順次大きなアドレスの領域に
ディスクファイルの割り付けが行なわれ、全領域に対し
て均等にディスクファイルが割り付けられる。Therefore, when allocating the next disk file, a search for an allocatable free area is performed from this updated allocation start address 12. Therefore, even if there is free space that can be allocated to a small address area, disk files are not allocated to this small address area, and disk files are sequentially allocated to larger address areas, so that the entire area is occupied. Disk files are allocated evenly.
すなわち、本実施例のデータ処理装置1では、ディスク
ファイル割り付け領域が小さなアドレスの領域に片寄る
ことを防止することができ、ディスフの全領域に均等に
ディスクファイルを割り付けることができる。特に−時
ファイルの場合、ディスク中を順次移動して全領域に対
するアクセスが実施される。これにより、自動的にパト
ロールベリファイ機能等が実施された場合と同様な効果
が得られ、従来に較べて信頼性の向上を図ることができ
る。That is, in the data processing device 1 of this embodiment, it is possible to prevent the disk file allocation area from being biased toward areas with small addresses, and it is possible to allocate disk files evenly to the entire disk area. In particular, in the case of a -time file, the entire area is accessed by sequentially moving around the disk. As a result, the same effect as when the patrol verify function or the like is automatically executed can be obtained, and reliability can be improved compared to the conventional method.
[発明の効果]
以上説明したように、本発明のデータ処理装置によれば
、ディスクファイル割り付け領域に片寄りが生じること
を防止して、ディスクの全領域に均等にディスクファイ
ルを割り付けることかでき、従来に較べて信頼性の向上
を図ることができる。[Effects of the Invention] As explained above, according to the data processing device of the present invention, it is possible to prevent unevenness in the disk file allocation area and allocate disk files evenly to the entire area of the disk. , reliability can be improved compared to the conventional method.
第1図は本発明の一実施例のデータ処理装置の動作を説
明するだめの図、第2図は本発明の一実施例のデータ処
理装置の構成を示す図である。
10・・・・・・・・・・・・空き領域情報11・・・
・・・・・・・・・空き領域マツプ12・・・・・・・
・・・・・割り付け開始アドレス20・・・・・・・・
・・ディスク
21・・・・・・・・・・既割り付けファイル22・・
・・・・・・・・・・新しく割り付けるファイルA・・
・・・・・・・・・・・・・割り付け開始アドレス位置
(更新後)
出願人 株式会社 東芝FIG. 1 is a diagram for explaining the operation of a data processing apparatus according to an embodiment of the present invention, and FIG. 2 is a diagram showing the configuration of a data processing apparatus according to an embodiment of the present invention. 10... Free space information 11...
......Free space map 12...
...Allocation start address 20...
...Disk 21...Already allocated file 22...
......Newly allocated file A...
・・・・・・・・・・・・Allocation start address position (after update) Applicant Toshiba Corporation
Claims (1)
いて、ディスク内の割り付け可能な空き領域を検索し、
この空き領域にディスクファイルを割り付けるデータ処
理装置において、 前記空き領域情報に割り付け開始アドレスを設定し、こ
の割り付け開始アドレスから前記空き領域の検索を開始
するとともに、前記ディスクファイルの割り付け後、前
記割り付け開始アドレスをディスクファイルの割り付け
を行った次のアドレスに更新するよう構成したことを特
徴とするデータ処理装置。(1) Search for allocatable free space on the disk based on the free space information of the disk that accommodates the data,
In a data processing device that allocates a disk file to this free space, an allocation start address is set in the free space information, a search for the free space is started from this allocation start address, and after the disk file is allocated, the allocation is started. A data processing device characterized in that it is configured to update an address to the next address to which a disk file is allocated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2241970A JP2945735B2 (en) | 1990-09-12 | 1990-09-12 | Data processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2241970A JP2945735B2 (en) | 1990-09-12 | 1990-09-12 | Data processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04120634A true JPH04120634A (en) | 1992-04-21 |
JP2945735B2 JP2945735B2 (en) | 1999-09-06 |
Family
ID=17082295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2241970A Expired - Fee Related JP2945735B2 (en) | 1990-09-12 | 1990-09-12 | Data processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2945735B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1414037A1 (en) * | 2001-08-02 | 2004-04-28 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
WO2004040577A1 (en) * | 2002-10-30 | 2004-05-13 | Matsushita Electric Industrial Co., Ltd. | Recording method and recording apparatus |
US7366066B2 (en) | 2001-11-30 | 2008-04-29 | Sony Corporation | Information recording method and apparatus, information reproducing method and apparatus, information recording medium, and program storage medium with overwrite protection features limiting the possible number of rewrites |
-
1990
- 1990-09-12 JP JP2241970A patent/JP2945735B2/en not_active Expired - Fee Related
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1414037A1 (en) * | 2001-08-02 | 2004-04-28 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
US7024534B2 (en) | 2001-08-02 | 2006-04-04 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
US7062626B2 (en) | 2001-08-02 | 2006-06-13 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
US7155566B2 (en) | 2001-08-02 | 2006-12-26 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
US7188221B2 (en) | 2001-08-02 | 2007-03-06 | Matsushita Electric Industrial Co., Ltd. | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
EP1414037A4 (en) * | 2001-08-02 | 2007-12-12 | Matsushita Electric Ind Co Ltd | Information recording medium, information recording method, information recording apparatus, information reproduction method, and information reproduction apparatus |
US7366066B2 (en) | 2001-11-30 | 2008-04-29 | Sony Corporation | Information recording method and apparatus, information reproducing method and apparatus, information recording medium, and program storage medium with overwrite protection features limiting the possible number of rewrites |
US7738330B2 (en) | 2001-11-30 | 2010-06-15 | Sony Corporation | Information recording method and apparatus, information reproducing method and apparatus, information recording medium, program storage medium and program |
EP1466325B1 (en) * | 2001-11-30 | 2012-02-22 | Sony Corporation | Information recording method and apparatus, information reproducing method and apparatus, information recording medium, program storage medium and program |
WO2004040577A1 (en) * | 2002-10-30 | 2004-05-13 | Matsushita Electric Industrial Co., Ltd. | Recording method and recording apparatus |
US7398352B2 (en) | 2002-10-30 | 2008-07-08 | Matsushita Electric Industrial Co., Ltd. | Recording method and recording apparatus that limits number of rewrites to the same storage area |
Also Published As
Publication number | Publication date |
---|---|
JP2945735B2 (en) | 1999-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8239343B2 (en) | Database reorganization technique | |
CN111984729A (en) | Heterogeneous database data synchronization method, device, medium and electronic equipment | |
JPH04120634A (en) | Data processor | |
JPS60191342A (en) | File control processing system | |
JPH0337748A (en) | External storage accessing system utilizing main storage | |
JPH0553886A (en) | Table access managing system | |
JPH09293007A (en) | Program install device | |
JPH0744426A (en) | File management method for file system | |
JPH0398128A (en) | Serial number control system | |
JPH03174654A (en) | Filing method and its device | |
JPH03127137A (en) | File area allocating system | |
JPS63239540A (en) | Data management system in memory medium | |
JPH0348950A (en) | Memory control system | |
JPH0652028A (en) | Film managing device | |
JPH04344953A (en) | File management method for storage medium | |
JPS6337435A (en) | Program patch history management system | |
CN111125122A (en) | Data updating method and device | |
JPH103412A (en) | Magnetic disk file relocation system | |
JPH05233264A (en) | Memoryu development system for table informagtion | |
JPH0721064A (en) | Data base reorganizing system | |
JPS6180336A (en) | Testing method of program | |
JPH05100919A (en) | Dump data file managing system | |
JPH05158760A (en) | Migration processing system | |
JPH02105237A (en) | Data update system for sequence organization file | |
JPH01106217A (en) | Parallel storage/reading type data processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |