JPH063588B2 - Extent duplication check method - Google Patents
Extent duplication check methodInfo
- Publication number
- JPH063588B2 JPH063588B2 JP60209652A JP20965285A JPH063588B2 JP H063588 B2 JPH063588 B2 JP H063588B2 JP 60209652 A JP60209652 A JP 60209652A JP 20965285 A JP20965285 A JP 20965285A JP H063588 B2 JPH063588 B2 JP H063588B2
- Authority
- JP
- Japan
- Prior art keywords
- extent
- extent information
- duplication
- track
- storage means
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 9
- 238000007689 inspection Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、大容量記憶装置における各ファイルのエクス
テントの重複を検出するためのエクステントの重複検査
方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an extent duplication checking method for detecting duplication of extents of files in a mass storage device.
(従来の技術) 従来、大容量記憶装置における各ファイルのエクステン
トの重複を検査する方式は、次によっていた。すなわ
ち、最初に大容量記憶装置のすべてのファイルのエクス
テントの開始アドレスを相対開始トラックアドレスに変
換するとともに、エクステントの終了アドレスを相対終
了トラックアドレスに変換する。(Prior Art) Conventionally, a method of inspecting the duplication of the extent of each file in a mass storage device has been as follows. That is, first, the start addresses of extents of all files in the mass storage device are converted into relative start track addresses, and the end addresses of extents are converted into relative end track addresses.
その後、エクステントケーブルに上記アドレスを順次格
納し、相対開始トラックアドレスでソートした後、連続
している相対終了トラックアドレスと相対開始トラック
アドレスとの値の大小を比較することによりエクステン
トの重複を検査する。After that, the above addresses are sequentially stored in the extent cable, sorted by the relative start track address, and the extent overlap is checked by comparing the values of the continuous relative end track address and the relative start track address. .
(発明が解決しようとする問題点) 上述した従来のエクステントの重複検査方式では、すべ
てのファイルのエクステントの相対開始トラックアドレ
スおよび相対終了トラックアドレスをエクステントテー
ブルに格納するため、ファイルのエクステントの数が増
大すると、より大きなエクステントテーブル領域を必要
とすると云う欠点がある。(Problems to be Solved by the Invention) In the above-described conventional extent duplication check method, since the relative start track address and relative end track address of the extents of all files are stored in the extent table, the number of extents of the file is reduced. The increase has the drawback of requiring a larger extent table area.
本発明の目的は、大容量記憶装置のなかの各ファイルの
エクステント情報を読取り、読取られたエクステント情
報を記憶し、大容量記憶装置のなかのトラックの使用状
況を管理するとともに、上記記憶されているエクステン
ト情報と上記管理されている情報との重複を照合し、重
複が検出されたエクステント情報を記憶し、重複状況を
編集出力することによって上記欠点を除去し、エクステ
ントケーブル領域の大きさを極端に増加させることがな
いように構成したエクステントの重複検査方式を提供す
ることにある。An object of the present invention is to read the extent information of each file in the mass storage device, store the read extent information, manage the usage status of the tracks in the mass storage device, and store the above information. Check the duplication between the existing extent information and the above-mentioned managed information, store the extent information in which duplication is detected, and edit and output the duplication status to eliminate the above-mentioned drawbacks and to reduce the size of the extent cable area to an extreme extent. An object of the present invention is to provide a duplication check method for extents configured so as not to increase.
(問題を解決するための手段) 本発明によるエクステントの重複検査方式は大容量記憶
装置と、エクステント情報読取り手段と、エクステント
情報記憶手段と、トラック使用状況記憶手段と、トラッ
ク使用状況照合手段と、重複エクステント記憶手段と、
重複エクステント反映手段と、重複状況編集出力手段と
を具備して構成したものである。(Means for Solving the Problem) The extent duplication inspection method according to the present invention comprises a mass storage device, extent information reading means, extent information storage means, track usage status storage means, track usage status collation means, Duplicate extent storage means,
It is configured by including a duplication extent reflection means and a duplication status edit output means.
大容量記憶装置は記憶領域に複数のファイルを格納する
とともに、VTOCにエクステント情報を格納するため
のものである。The mass storage device stores a plurality of files in the storage area and also stores extent information in the VTOC.
エクステント情報読取り手段は、大容量記憶装置のなか
のファイルのエクステント情報を読取るためのものであ
る。The extent information reading means is for reading the extent information of a file in the mass storage device.
エクステント情報記憶手段は、エクステント情報読取り
手段により読取ったエクステント情報を記憶するための
ものである。The extent information storage means is for storing the extent information read by the extent information reading means.
トラック使用状況記憶手段は、大容量記憶装置のなかの
トラックの使用状況を管理するエクステント情報を記憶
するためのものである。The track usage status storage means is for storing extent information for managing the usage status of the tracks in the mass storage device.
トラック使用状況照合手段は前記エクステント情報記憶
手段により記憶されている前記エクステント情報につい
て、各ビットがボリューム上の各トラックに対応する前
記トラック使用状況記憶手段上の対応ビットを使用状態
を示すように更新していき、更新しようとしたビットが
既に使用中状態を示しているときに重複の発生を検出す
るためのものである。The track usage status collating means updates the extent information stored in the extent information storage means so that the corresponding bits in the track usage status storage means, where each bit corresponds to each track on the volume, indicate the usage status. This is for detecting the occurrence of duplication when the bit to be updated already indicates the in-use state.
重複エクステント記憶手段は、トラック使用状況照合手
段により重複が検出されたエクステント情報を記憶する
ためのものである。The duplication extent storage means is for storing the extent information in which duplication is detected by the track usage status collation means.
重複エクステント反映手段は、重複エクステント情報記
憶手段に記憶されているエクステント情報について、ト
ラック使用状況記憶手段上の対応ビットを使用状態を示
すように更新し反映するためのものである。The overlapping extent reflecting means is for updating and reflecting the corresponding bit on the track use status storing means to the extent information stored in the overlapping extent information storing means so as to indicate the use state.
重複状況編集出力手段は、重複エクステント記憶手段に
より記憶されている、重複が検出されたエクステント情
報を編集して出力するためのものである。The duplication status edit / output means is for editing and outputting the extent information in which duplication is detected, which is stored in the duplication extent storage means.
(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, this invention is demonstrated with reference to drawings.
第1図は、本発明によるエクステントの重複検査方式の
一実施例の構成を示すブロック図である。第1図におい
て、1は大容量記憶装置、2は大容量記憶装置1のなか
に存在するすべてのファイルのエクステント情報を含む
VTOC、3はエクステント情報読取り手段、4はエク
ステント情報記憶手段、5はトラック使用状況記憶手
段、6はトラック使用状況照合手段、7は重複エクステ
ント記憶手段、8は重複エクステント反映手段、9は重
複状況編集出力手段、10はプリントイメージ出力装置で
ある。FIG. 1 is a block diagram showing the configuration of an embodiment of the extent duplication check method according to the present invention. In FIG. 1, 1 is a mass storage device, 2 is a VTOC containing extent information of all files existing in the mass storage device 1, 3 is extent information reading means, 4 is extent information storage means, and 5 is Track usage status storage means 6, track usage status collation means, 7 overlapping extent storage means, 8 overlapping extent reflection means, 9 overlapping status edit output means, and 10 a print image output device.
以下、第1図に示す各手段の動作について説明する。The operation of each means shown in FIG. 1 will be described below.
第1図において、大容量記憶装置1のVTOC2に格納
されているエクステント情報をエクステント情報読取り
手段によって読取って、エクステント情報記憶手段4に
記憶し、トラック使用状況照合手段6を動作させる。ト
ラック使用状況照合手段6は、エクステント情報記憶手
段4に記憶されいるエクステント情報を用いて、当該エ
クステントが占める各トラックが使用中であることをト
ラック使用状況記憶手段5に反映するため、各トラック
に対応するトラック使用状況記憶手段5の指示ビットを
使用状態を示すように更新する。In FIG. 1, the extent information stored in the VTOC 2 of the mass storage device 1 is read by the extent information reading means, stored in the extent information storage means 4, and the track usage status collating means 6 is operated. The track usage status collating means 6 uses the extent information stored in the extent information storage means 4 to reflect in the track usage status storage means 5 that each track occupied by the extent is in use. The corresponding instruction bit of the track usage status storage means 5 is updated to indicate the usage status.
なお、使用中状態に更新するとき、上記指示ビットが既
に使用中状態となっていないかを検査し、既に使用中状
態となっていればエクステントの重複があったと判断す
る。そこで、トラック使用状況照合手段6は当該エクス
テント情報のエクステントの開始アドレスを相対開始ト
ラックアドレスに変換し、エクステントの終了アドレス
を相対終了トラックアドレスに変換して重複エクステン
ト情報記憶手段7に記憶する。When updating to the in-use state, it is checked whether the above-mentioned instruction bit is already in the in-use state, and if it is already in the in-use state, it is determined that the extents overlap. Therefore, the track usage status matching unit 6 converts the start address of the extent of the extent information into a relative start track address, converts the end address of the extent into a relative end track address, and stores it in the duplicated extent information storage unit 7.
以上の処理を、VTOC2の各ファイルのエクステント
情報に対して繰返し実行する。The above processing is repeatedly executed for the extent information of each file of VTOC2.
すべてのエクステントの処理を終了すると、重複エクス
テントの相手となるエクステントを見出すために以下の
処理を行う。すなわち、トラック使用状況記憶手段5を
初期状態にした後、重複エクステント情報記憶手段7に
記憶されているエクステント情報を重複エクステント反
映手段8によってトラック使用状況記憶手段5に反映す
る。When the processing of all extents is completed, the following processing is performed in order to find the extent that is the partner of the duplicated extent. That is, after the track usage status storage means 5 is initialized, the extent information stored in the overlap extent information storage means 7 is reflected in the track usage status storage means 5 by the overlap extent reflection means 8.
これは重複エクステント情報記憶手段に記憶されている
全エクステントについて、トラック使用状況記憶手段上
の対応ビットをオンしていくことを意味する。その後、
再度、エクステント情報読取り手段3によってVTOC
2の各ファイルのエクステント情報を順次読直し、トラ
ック使用状況照合手段6を動作させる。再度、VTOC
2上のすべてのエクステント情報の処理を終了すると、
重複状況編集出力手段9を動作させる。重複状況編集出
力手段9は重複エクステント情報記憶手段7に記憶され
ている重複エクステントを相対開始トラックアドレスで
ソートし、連続している相対終了トラックアドレスと相
対開始トラックアドレスとの値の大小関係を比較するこ
とによりエクステントの重複を検査し、プリントイメー
ジに編集して結果をプリントイメージ出力装置10に出力
する。This means that the corresponding bits in the track usage status storage means are turned on for all extents stored in the overlapping extent information storage means. afterwards,
Again, the extent information reading means 3 causes the VTOC
The extent information of each file No. 2 is sequentially read again, and the track usage status collating means 6 is operated. Again, VTOC
When processing of all extent information on 2 is completed,
The duplication status edit output means 9 is operated. The duplication status edit output means 9 sorts the duplication extents stored in the duplication extent information storage means 7 by relative start track address, and compares the magnitude relationship between the values of the continuous relative end track address and the relative start track address. By doing so, the overlap of the extents is inspected, the print image is edited, and the result is output to the print image output device 10.
(発明の効果) 以上説明したように本発明は、大容量記憶装置のなかの
各トラックをそれぞれ指示ビットに対応させたテーブル
を使用し、重複したエクステント情報のみを記憶領域に
格納することにより、大容量記憶装置のなかのエクステ
ントの個数に依存せず、一定の記憶領域を使用して大容
量記憶装置のなかのエクステントの重複検査が可能にな
ると云う効果がある。(Effects of the Invention) As described above, the present invention uses a table in which each track in a mass storage device is associated with an instruction bit, and stores only overlapping extent information in a storage area. There is an effect that it is possible to perform the overlap check of the extents in the mass storage device by using a certain storage area without depending on the number of extents in the mass storage device.
第1図は、本発明によるエクステントの重複検査方式の
一実施例を示すブロック図である。 1…大容量記憶装置、2…VTOC 3…エクステント情報読取り手段 4…エクステント情報記憶手段 5…トラック使用状況記憶手段 6…トラック使用状況照合手段 7…重複エクステント情報記憶手段 8…重複エクステント反映手段 9…重複状況編集出力手段 10…プリントイメージ出力装置FIG. 1 is a block diagram showing an embodiment of an extent duplication check method according to the present invention. DESCRIPTION OF SYMBOLS 1 ... Large-capacity storage device, 2 ... VTOC 3 ... Extent information reading means 4 ... Extent information storage means 5 ... Track usage status storage means 6 ... Track usage status collation means 7 ... Overlap extent information storage means 8 ... Overlap extent reflection means 9 … Overlap status edit output means 10… Print image output device
Claims (1)
もにVTOCにエクステント情報を格納するための大容
量記憶装置と、 前記大容量記憶装置のなかの前記ファイルのエクステン
ト情報を読取るためのエクステント情報読取り手段と、 前記エクステント情報読取り手段により読取ったエクス
テント情報を記憶するためのエクステント情報記憶手段
と、 前記大容量記憶装置の中のトラックの使用状況を管理す
るエクステント情報を記憶するためのトラック使用状況
記憶手段と、 前記エクステント情報記憶手段により記憶されている前
記エクステント情報について、各ビットがボリューム上
の各トラックに対応する前記トラック使用状況記憶手段
上の対応ビットを使用状態を示すように更新していき、
更新しようとしたビットが既に使用中状態を示している
ときに重複の発生を検出するためのトラック使用状況照
合手段と、 前記トラック使用状況照合手段により重複が検出された
エクステント情報を記憶するための重複エクステント記
憶手段と、 前記重複エクステント情報記憶手段に記憶されている前
記エクステント情報について、前記トラック使用状況記
憶手段上の対応ビットを使用状態を示すように更新する
ための重複エクステント反映手段と、 前記重複エクステント記憶手段により記憶されている前
記重複が検出されたエクステント情報を編集して出力す
るための重複状況編集出力手段とを具備して構成したこ
とを特徴とするエクステントの重複検査方式。1. A mass storage device for storing a plurality of files in a storage area and for storing extent information in a VTOC, and extent information reading for reading extent information of the file in the mass storage device. Means, extent information storage means for storing extent information read by the extent information reading means, and track usage status storage for storing extent information for managing the usage status of tracks in the mass storage device Means and the extent information stored in the extent information storage means, each bit corresponds to each track on the volume, and the corresponding bit in the track usage status storage means is updated so as to indicate the usage state. ,
Track usage status collating means for detecting the occurrence of duplication when the bit to be updated already indicates the busy status; and for storing extent information in which duplication is detected by the track usage status collating means. A duplicated extent storage means; a duplicated extent reflection means for updating the extent information stored in the duplicated extent information storage means so that a corresponding bit in the track usage state storage means indicates a usage state; An extent duplication inspection method, comprising: duplication status edit output means for editing and outputting the extent information in which the duplication is detected stored in the duplication extent storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60209652A JPH063588B2 (en) | 1985-09-20 | 1985-09-20 | Extent duplication check method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60209652A JPH063588B2 (en) | 1985-09-20 | 1985-09-20 | Extent duplication check method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6269334A JPS6269334A (en) | 1987-03-30 |
| JPH063588B2 true JPH063588B2 (en) | 1994-01-12 |
Family
ID=16576349
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60209652A Expired - Lifetime JPH063588B2 (en) | 1985-09-20 | 1985-09-20 | Extent duplication check method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH063588B2 (en) |
-
1985
- 1985-09-20 JP JP60209652A patent/JPH063588B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6269334A (en) | 1987-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH063588B2 (en) | Extent duplication check method | |
| JP2000339104A (en) | Disk subsystem and data copying method. | |
| JPH05233413A (en) | File recovery system | |
| JPH0262779A (en) | File retrieval method from rotary-disk storage device | |
| JP3196112B2 (en) | Method of duplicating card type storage medium | |
| JPS6050626A (en) | Duplicator | |
| JP2822869B2 (en) | Library file management device | |
| JP2573577B2 (en) | File access device | |
| JP2910803B2 (en) | Highly reliable auxiliary storage device | |
| JP2776728B2 (en) | Magnetic disk initialization method | |
| JP2564884B2 (en) | Duplicate file I/O load balancing method | |
| JPH02197938A (en) | Restoring system for draw type optical disk directory | |
| JPH0619761A (en) | File management method | |
| JPS6014324A (en) | Associative storage device | |
| JPH05210556A (en) | Double registration system for image data | |
| JPS5987572A (en) | Disk storage control method | |
| JPH01307074A (en) | Information copying device | |
| JPH02299036A (en) | Information recording and reproducing method | |
| JPH05210467A (en) | Method for copying to plural floppy disks | |
| JPS5842494B2 (en) | library management device | |
| JPH04309144A (en) | System file fault detecting system | |
| JPH0664599B2 (en) | Document file search device | |
| JPS6037047A (en) | Information memory | |
| JPH0457252A (en) | Magnetic disk device | |
| JPS62217337A (en) | File device for log information |