JPS63237141A - Segmented data set updating system - Google Patents

Segmented data set updating system

Info

Publication number
JPS63237141A
JPS63237141A JP62071120A JP7112087A JPS63237141A JP S63237141 A JPS63237141 A JP S63237141A JP 62071120 A JP62071120 A JP 62071120A JP 7112087 A JP7112087 A JP 7112087A JP S63237141 A JPS63237141 A JP S63237141A
Authority
JP
Japan
Prior art keywords
directory
vtoc
data
track
update
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
JP62071120A
Other languages
Japanese (ja)
Inventor
Masami Oda
小田 正美
Ichiro Hara
一郎 原
Keiji Suzuki
鈴木 恵司
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62071120A priority Critical patent/JPS63237141A/en
Publication of JPS63237141A publication Critical patent/JPS63237141A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To effectively utilize an unnecessary data region by writing the number of tracks which members use in a directory part and arranging it in the lowest rank of an extent when at least one track unit is vacant. CONSTITUTION:A pointer TTR which shows the storing destination of members A, B... in a member part 2-2 is provided in the directory part 2-1 of the partitioned data set 2 of a file 1 and a directory updating part 5, a data ineffective process part 6 and VTOC (Volume.Table.Of.Contents) updating part 7, etc., are provided in a processor 4. And during a data updating process of the updating part 5, the process part 6 detects that at least one track unit is vacant so as to arrange the vacant track in the lowest rank of the extent of the VTOC at the time of detecting it and a directory, etc., transmission part 8 relocates the updated VTOC 3 and the directory in the file 1.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 (第5図) 発明が解決しようとする問題点 問題点を解決するための手段 (第1図)作用 実施例 (第2図〜第4図) 発明の効果 〔概要〕 区分データセットにおいて、使用しなくなったトラック
をデータセットの最後のエクステントとすることにより
、各トラックを再使用可能とする区分データセットのス
ペース管理方式である。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figure 5) Problems to be solved by the invention Means for solving the problems (Figure 1) Working examples (Figure 1) (Figures 2 to 4) Effects of the invention [Summary] A space management method for a partitioned data set that makes each track reusable by setting the track that is no longer in use as the last extent of the data set. It is.

〔産業上の利用分野〕[Industrial application field]

本発明は区分データセット更新方式に係り、特にメンバ
の更新及び削除に発生した不要データ領域を効率的に利
用できるようにしたものに関する。
The present invention relates to a partitioned data set update method, and particularly to a method that allows efficient use of unnecessary data areas generated when updating and deleting members.

〔従来の技術〕[Conventional technology]

区分データセットは、1データセツト内に複数のメンバ
を持つことができるので、同様の使用目的をもつデータ
を一括管理できるメリットを持つため広(使用されてい
る。
Partitioned data sets are widely used because they can have multiple members within one data set, and have the advantage of being able to collectively manage data with similar purposes.

区分データセットは、例えば第5図に示す如く、メンバ
A、B、C−が格納されているメンバ部と、メンバA、
B、C−・の格納先アドレスを指示するデレクトリ部を
具備している。そしてこの区分データセットの存在範囲
はV T OC(Volume TableOf Co
ntents)に記入されている。
For example, as shown in FIG. 5, the segmented data set includes a member section in which members A, B, and C- are stored, and a member section in which members A, B, and C- are stored;
It is provided with a directory section that indicates the storage address of B, C-. The existence range of this partitioned data set is V T OC (Volume Table Of Co
contents).

区分データセットの先頭にはデレクトリ部が設けられ、
区分データセットのメンバA、B、C−・のデータの格
納先を示すポインタTTRが記入されている。
A directory section is provided at the beginning of the partitioned dataset,
A pointer TTR indicating the storage location of the data of members A, B, C-, etc. of the segmented data set is written.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような区分データセットにおいて、例えばメンバB
のデータを更新する場合、従来ではそれまでメンバBが
使用していた領域を無効化し、この区分データセットの
空き領域の先頭部分にメンバBの更新データを記入し、
デレクトリ部におけるメンバBのポインタをこの更新デ
ータ記入光に張り換えている。
In such a partitioned data set, for example, member B
When updating data, conventionally, the area previously used by member B is invalidated, and member B's updated data is written at the beginning of the free area of this partitioned data set.
The pointer of member B in the directory section is replaced with this update data writing light.

そのため、メンバのデータの更新や削除が行われる度に
それまで使用していた領域が不要データ領域となり、記
憶装置の利用効率が悪化するという問題が存在した。
Therefore, each time data of a member is updated or deleted, the previously used area becomes an unnecessary data area, resulting in a problem that the usage efficiency of the storage device deteriorates.

本発明の目的は、メンバの更新および削除時に発生する
不要データ領域による記憶装置の利用効率の悪化を防止
する区分データセット更新方式を提供することである。
An object of the present invention is to provide a partitioned data set update method that prevents deterioration in the utilization efficiency of a storage device due to unnecessary data areas that occur when updating and deleting members.

〔問題点を解決するための手段〕[Means for solving problems]

前記目的を達成するため、本発明では、第1図に示す如
く、磁気ディスクで構成されるファイ1ル1に設けた区
分データセット2のデレクトリ部2−1にメンバA、B
−・−のメンバ部2−2における格納先を示すポインタ
TTRをもつ、そしてプロセッサ4においてメンバAS
B・−の1つの更新(又は削除)処理を行う場合、プロ
セッサ4に設けたデレクトリ更新部5で更新すべきメン
バのデレクトリ部2−1の更新を行う時、データ無効処
理部6でメンバ部2−2の該メンバの無効処理を行うが
、デレクトリ部の全ポインタをTTR[にソートするこ
とにより、該メンバの削除により解放されるトラック数
を計算する。また、解放されるトラック以降のメンバの
ポインタTTRはトラック数分だけ補正する。
In order to achieve the above object, in the present invention, as shown in FIG.
-.- has a pointer TTR indicating the storage location in the member section 2-2, and in the processor 4, the member AS
When updating (or deleting) one of B. In 2-2, the invalidation process for the member is performed, and by sorting all pointers in the directory section into TTR[, the number of tracks freed by deletion of the member is calculated. Further, the pointer TTR of the member after the track to be released is corrected by the number of tracks.

VTOC更新部更新上7VTOC3を更新する。VTOC update unit update 7Update VTOC3.

このVTOC3を更新するとき、データ無効処理部で計
算したトラックをVTOCa内の最下位のエクステント
に登録する。このようにして更新したVTOC3及びデ
レクトリをデレクトリ等送出部8によりファイル1内に
リロケーションする。
When updating this VTOC3, the track calculated by the data invalidation processing unit is registered in the lowest extent in VTOCa. The VTOC 3 and directory updated in this manner are relocated into the file 1 by the directory etc. sending unit 8.

〔作用〕[Effect]

更新あるいは削除したトラックを区分データセットの最
終エクステントとしてVTOC上に登録するので、この
ようなことを順次行うことによりこのトラックを順次再
使用することができる。
Since the updated or deleted track is registered on the VTOC as the final extent of the segmented data set, by sequentially performing this process, the track can be sequentially reused.

〔実施例〕〔Example〕

本発明の一実施例を第2図〜第4図により説明する。 An embodiment of the present invention will be described with reference to FIGS. 2 to 4.

第2図は本発明の一実施例構成図、第3図は本発明の動
作説明図、第4図は本発明におけるVTOC及び区分デ
ータセットの状態説明図である。
FIG. 2 is a configuration diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of the operation of the present invention, and FIG. 4 is an explanatory diagram of the state of VTOC and partitioned data sets in the present invention.

図中、地図と同一符号部分は同一部分を示し、8′は送
受信部であってファイル1に対してデータのリード・ラ
イト制御を行うものであり第1図におけるデレクトリ等
送出部8を含むものである。
In the figure, parts with the same reference numerals as those on the map indicate the same parts, and 8' is a transmitting/receiving unit which performs read/write control of data to file 1 and includes the directory etc. sending unit 8 in FIG. 1. .

9はメモリ、10は17211部であってデレクトリ更
新部5、データ無効処理部6、VTOC更新部7、送受
信部8′、メモリ9を総合的に制御するものである。
9 is a memory, and 10 is a 17211 section which comprehensively controls the directory update section 5, data invalidation processing section 6, VTOC update section 7, transmission/reception section 8', and memory 9.

本発明の動作を第380(A)、(B)の動作フローチ
ャートおよびファイルの状態説明図を参照しつつ、例え
ばメンバBの削除の場合について説明する。
The operation of the present invention will be described, for example, in the case of deletion of member B, with reference to the operation flowcharts 380(A) and 380(B) and the file state explanatory diagram.

■ 送受信8′がファイル1よりそのデレクトリ部2−
1の全メンバを号−チして読み出し、そのポインタTT
Rをソートし、メモリ9に保持する。それからデレクト
リ部5はファイル1のデレクトリ部2〜1のメンバBの
区分を削除して、更新処理を行う。
■ Sending/receiving 8' is from file 1 to its directory section 2-
1, and read out all members of 1, and store the pointer TT.
Sort R and hold it in memory 9. Then, the directory section 5 deletes the member B section of the directories 2 to 1 of the file 1, and performs an update process.

■ 次にデータ無効処理部6はメンバ部2−2のメンバ
Bを削除処理する。このときメモリ9に保持されている
全メンバのTTRより、メンバBの削除によりトラック
の空きが発生したかを判断する。
(2) Next, the data invalidation processing section 6 deletes member B of the member section 2-2. At this time, it is determined from the TTRs of all members held in the memory 9 whether a track becomes vacant due to the deletion of member B.

■ lトラック単位以上空きが発生した場合に、VTO
C更新部7は、ファイル1内ノVTOC3を更新する。
■ If there is an empty space of one track or more, the VTO
The C update unit 7 updates the VTOC3 in the file 1.

このときメンバBの削除により発生した空きトラックY
をエクステントの最下部に記入する。か(してVTOC
3は、第3図CB)の下方の如く変更される。
At this time, empty track Y generated due to deletion of member B
is written at the bottom of the extent. (then VTOC
3 is changed as shown below in Figure 3 CB).

■ このメンバBの削除により、デレクトリ更新部5は
、デレクトリ部2−1のメンバB以降にある他のメンバ
アドレスTTRを更新する。このようにして区分データ
セットのメンバ処理において、空きトラックを有効利用
することができる。
(2) Due to this deletion of member B, the directory update section 5 updates the addresses TTR of other members after member B in the directory section 2-1. In this way, empty tracks can be effectively utilized in member processing of partitioned datasets.

前記■〜■において、VTOCの更新状態を、第4図に
より詳述する。ファイル1内におけるメンバ部が、例え
ば第5図に示す如き状態で使用されている場合、本発明
では、VTOCは第4図(A)の状態にある。
The update status of the VTOC in sections (1) to (2) above will be explained in detail with reference to FIG. When the member section in file 1 is used in the state shown in FIG. 5, for example, in the present invention, the VTOC is in the state shown in FIG. 4(A).

このときメンバBの削除が行われると、トラック5.6
は空き状態となるので、本発明ではVTOCを更新して
トラック5.6を最下位のエクステントnに記入する。
At this time, if member B is deleted, track 5.6
Since this becomes an empty state, the present invention updates the VTOC and writes track 5.6 into the lowest extent n.

なおメンバBの削除によりメンバB以下の各エクステン
トの番号はそれぞれ−1されるので、これにより、VT
OCは第4図(B)の状態になる。
Note that due to the deletion of member B, the number of each extent below member B is decremented by 1.
The OC is in the state shown in FIG. 4(B).

なお、メンバ部はVTOCに記入されたエクステント順
に使用されるので、この空きトラック5.6は、第4図
(C)の矢印に示す如く最下位にランクされることにな
る。
Note that since the member section is used in the order of the extents written in the VTOC, this empty track 5.6 will be ranked at the lowest position as shown by the arrow in FIG. 4(C).

〔発明の効果〕〔Effect of the invention〕

本発明により、例えば区分データセットのメンバ更新時
に、トラック単位に開放されたかどうかをチェックし、
トラック単位で開放されていればVTOC及びデレクト
リを更新し、トラックを再度使用可能にするので、特別
なコンデンス処理を行うことなく、ファイル、つまり磁
気ディスクの有効利用をはかることができる。
According to the present invention, for example, when updating a member of a partitioned data set, it is checked whether each track has been released,
If each track is released, the VTOC and directory are updated to make the track usable again, so that files, that is, magnetic disks, can be used effectively without special condensation processing.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図は動作説明図、 第4図は本発明におけるVTOC及び区分データセット
の状態説明図、 第5図は区分データセット説明図である。 1−・ファイル  2−区分データセット3・−VTO
C4・−・・プロセッサ 5−・−デレクトリ更新部 6−・データ無効処理部 7−=V T OC更新部
FIG. 1 is an explanatory diagram of the principle of the present invention. FIG. 2 is a configuration diagram of an embodiment of the present invention. FIG. 3 is an explanatory diagram of operation. FIG. 5 is an explanatory diagram of the segmented data set. 1- File 2- Partitioned data set 3-VTO
C4--Processor 5--Directory update section 6--Data invalidation processing section 7-=VTOC update section

Claims (1)

【特許請求の範囲】 デレクトリ部とメンバ部を有する区分データセットと、
区分データセットのエクステントが記入されるVTOC
が設けられ、磁気ディスクに格納されたファイル部(1
)と、このファイル部(1)を更新処理するプロセッサ
(1)を有するデータ処理装置において、 デレクトリ更新手段(5)と、 データの更新処理において少なくとも1トラック単位が
空いたことを検知するデータ無効処理手段(6)と、 データの更新処理において少なくとも1トラック単位が
空いたときこの空きトラックをVTOCのエクステント
の最下位のエクステントとするVTOC更新手段(7)
を具備し、 デレクトリ部にメンバが使用するトラック数を記入する
とともに、メンバの更新処理において少なくとも1トラ
ック単位が空いたときにこれをエクステントの最下位に
配置して空きエクステントを再使用可能としたことを特
徴とする区分データセット更新方式。
[Claims] A partitioned data set having a directory part and a member part,
VTOC in which the extents of the partitioned dataset are filled
is provided, and a file section (1
) and a processor (1) that updates the file section (1), the data processing device includes a directory update unit (5), and a data invalidation unit that detects that at least one track unit becomes empty during the data update process. a processing means (6); and a VTOC update means (7) that, when at least one track unit becomes vacant during data update processing, sets this vacant track as the lowest extent of the extents of the VTOC.
In addition to writing the number of tracks used by a member in the directory section, when at least one track unit becomes free during member update processing, it is placed at the bottom of the extent so that the free extent can be reused. A partitioned data set update method characterized by:
JP62071120A 1987-03-25 1987-03-25 Segmented data set updating system Pending JPS63237141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62071120A JPS63237141A (en) 1987-03-25 1987-03-25 Segmented data set updating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62071120A JPS63237141A (en) 1987-03-25 1987-03-25 Segmented data set updating system

Publications (1)

Publication Number Publication Date
JPS63237141A true JPS63237141A (en) 1988-10-03

Family

ID=13451388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62071120A Pending JPS63237141A (en) 1987-03-25 1987-03-25 Segmented data set updating system

Country Status (1)

Country Link
JP (1) JPS63237141A (en)

Similar Documents

Publication Publication Date Title
US8782324B1 (en) Techniques for managing placement of extents based on a history of active extents
EP0375188B1 (en) File system
JP4249267B2 (en) Freeing up disk space in the file system
KR100259432B1 (en) Outboard data migration in a volume stacking library
US7694103B1 (en) Efficient use of memory and accessing of stored records
GB2257273A (en) Data storage system with device independent file directories
US20020103784A1 (en) Fast data retrieval based upon contiguous consolidation of records according to frequency of access
US20110283077A1 (en) Preserving an existing volume map in re-initializing a data storage volume
US7895164B1 (en) Efficient checkpoint process
WO2017172377A1 (en) File system support for file-level ghosting
US6910214B1 (en) Method, system, and program for converting an input parameter list into an output parameter list
US8818953B2 (en) Method and apparatus for loading data into multi-table tablespace
JPS63237141A (en) Segmented data set updating system
JP2000242437A5 (en)
US11455255B1 (en) Read performance of log-structured file system (LFS)-based storage systems that support copy-on-write (COW) snapshotting
US20240028566A1 (en) Efficient append-only file system for high-performance key-value stores
JP2004013786A (en) Method for storing data and data storage controller
JP2608093B2 (en) Data management device
JPH0528202A (en) Picture data retrieval system
JPS60191342A (en) File control processing system
JPH0477938A (en) Data storage method
EP0341036A2 (en) A method of operating an information handling system
JPH01134542A (en) File managing system
JPS6349255B2 (en)
JPH04156626A (en) File entry generating system for vtoc