JPH0442335A - Disk control system - Google Patents

Disk control system

Info

Publication number
JPH0442335A
JPH0442335A JP2149366A JP14936690A JPH0442335A JP H0442335 A JPH0442335 A JP H0442335A JP 2149366 A JP2149366 A JP 2149366A JP 14936690 A JP14936690 A JP 14936690A JP H0442335 A JPH0442335 A JP H0442335A
Authority
JP
Japan
Prior art keywords
file
real
disk
volume
user
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
JP2149366A
Other languages
Japanese (ja)
Inventor
Toru Kino
亨 木野
Hitoshi Seki
関 仁志
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
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems 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, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP2149366A priority Critical patent/JPH0442335A/en
Publication of JPH0442335A publication Critical patent/JPH0442335A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To enable a user to control a large capacity file covering plural disk volumes with high efficiency by performing a file access after regarding a control file as a real file and retransferring automatically these files due to the overvolume. CONSTITUTION:A user regards a control file A' stored in a control file 12Aa as a real file A and has an access to a disk. The file A' stores the No (n) of a disk volume stored in the file A and therefore an OS 11a included in a CPU 11 has an access to a real file included in a volume (n) to return the writing result of the real data and the read data to the user as the results. Meanwhile the user can use an access interface to a normal file with no consciousness of the presence of a control file. Thus the user can control a large capacity file covering plural disk volumes with high efficiency.

Description

【発明の詳細な説明】 [概要] 複数のディスクボリュームを管理するディスク管理シス
テムに関し、 複数のディスクボリュームにまたがった大容量のファイ
ルを効率よく管理することを1」的とし、CPUと複数
のディスクボリュームとか接続されたシステムにおいて
、ディスクボリュームの1つを管理ボリューム、その他
を実ボリュームとし、実ボリュームには実際のデータフ
ァイルを格納し、管理ボリュームには、実ファイルと1
対1に対応した管理ファイルを設け、該管理ファイルに
は、実ファイルかどこのボリュームにあるかどうかの情
報、現在実ファイルを使用している利用者の情報等を格
納し、利用者は管理ファイルを実ファイルと見なしてデ
ィスクをアクセスできるように構成する。
[Detailed Description of the Invention] [Summary] This invention relates to a disk management system that manages multiple disk volumes. In a system connected to volumes, one of the disk volumes is the management volume, and the other is the real volume.The real volume stores the actual data files, and the management volume stores the real files and one disk volume.
A management file that corresponds to one-to-one is provided, and this management file stores information such as whether the real file is on this volume or not, information of the user who is currently using the real file, etc. Configure the disk so that it can be accessed by treating it as a real file.

[産業上の利用分野] 本発明は複数のディスクボリュームを管理するディスク
管理システムに関する。
[Field of Industrial Application] The present invention relates to a disk management system that manages a plurality of disk volumes.

[従来の技術1 第5図は従来のディスク管理システムの構成例を示すブ
ロック図である。CPUIと複数のディスクボリューム
2とがバス3を介して接続されている。このようなシス
テムで複数ボリューム間にまたがった大容量のファイル
をアクセスする場合、利用者側では、 ■どのディスクボリューム2に、とのファイルがあるか
を利用者か意識して判断する。
[Prior Art 1] FIG. 5 is a block diagram showing an example of the configuration of a conventional disk management system. A CPU I and a plurality of disk volumes 2 are connected via a bus 3. When accessing a large file spread across multiple volumes in such a system, the user must: (1) consciously determine in which disk volume 2 the file is located;

■あるディスクボリューム2が一杯になったら、他のデ
ィスクボリュームにデータを格納するが、これを利用者
が意識して行う。
■When a certain disk volume 2 becomes full, the data is stored in another disk volume, but the user does this consciously.

ようになっている。このような処理を実現するためには
、 ■通常のファイルに対するアクセスインタフニスで実現
する。
It looks like this. In order to realize this kind of processing, ① Use an access interface for normal files.

ようになっている。It looks like this.

[発明が解決しようとする課題] このため、利用者側のプログラムは、ファイルをアクセ
スする度に上記■、■をザボートする必要があるため、
非常に複雑なプログラムとなってしまう。例えば、複数
ボリューム間にまたがった大容量のファイルでも、固定
的に在官する場合、即ちファイルが新規に作成されたり
、削除されたりすることがない場合には上記■、■は問
題とならないが、実際のファイルの使用にあたっては、
絶えずファイルの新規作成と削除等の操作が行われる。
[Problem to be solved by the invention] For this reason, the user's program needs to skip the above ■ and ■ every time it accesses a file.
This results in a very complicated program. For example, even if a large-capacity file is spread across multiple volumes, if the file remains permanently in use, that is, if the file is never newly created or deleted, then ■ and ■ above will not be a problem. , when using the actual file,
Operations such as new file creation and deletion are constantly performed.

本発明はこのような課題に鑑みてなされたものであって
、大容量のファイルが任意に生成、削除される場合にお
いて、複数のディスクボリュームにまたがった大容量の
ファイルを効率よく管理することができるディスク管理
システムを提(」(することを目r白としている。
The present invention has been made in view of these problems, and it is possible to efficiently manage large-capacity files spanning multiple disk volumes when large-capacity files are arbitrarily created and deleted. We are aiming to create a disk management system that can

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。第5図と同一
のものは、同一の符号をイ;1して示す。図において、
1−1はCPU、12はCPU1]とバス3を介して接
続された複数のディスクボリュームである。CPUII
内には、ディスク管理制御を行うための0311aが設
けられている。ディスクボリューム12は、その1つを
管理ボリューム]2A1その他を実ボリューム12Bと
分割されている。12Aaは実ファイルと1対1に対応
した管理ファイルである。該管理ファイル1.2Aaに
は、実ファイルがとこのボリュームにあるかどうかの情
報、現在実ファイルを使用している利用者の情報等が格
納されている。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Components that are the same as those in FIG. 5 are indicated by the same reference numerals. In the figure,
1-1 is a CPU, 12 is a CPU 1] and a plurality of disk volumes connected via a bus 3. CPUII
Inside, 0311a is provided for performing disk management control. The disk volume 12 is divided into two volumes, one of which is a management volume]2A, and the other part of which is a real volume 12B. 12Aa is a management file that corresponds one-to-one with the actual file. The management file 1.2Aa stores information on whether or not the real file exists in this volume, information on the user who is currently using the real file, and the like.

[作用] 第2図は本発明の作用説明図である。利用者は管理ファ
イル12Aa内の管理ファイルA′を実ファイルAと見
なしてディスクをアクセスする(■)。管理ファイルA
−には、実ファイルAが格納されているディスクボリュ
ームの番号nが格納されているので、CPU11内のO
S 11 、aはボリュームnにある実ファイルをアク
セスしく■)、実データの書込み結果と読出しデータを
結果として利用者に返す(■)。この間、利用者は管理
ファイルの存在は意識せず、通常のファイルに対するア
クセスインタフェースを用いることかできる。従って、
本発明によれば大容量のファイルが任意に生成1削除さ
れる場合において、複数のディスクボリュームにまたが
った大容量のファイルを効率よく管理することができる
ディスク管理システムを提供することができる。なお、
このような制御は、CPU]、]のOS 1.1 a内
のインタフェース関数が行う。
[Operation] FIG. 2 is an explanatory diagram of the operation of the present invention. The user accesses the disk by regarding the management file A' in the management file 12Aa as the real file A (■). Management file A
- stores the number n of the disk volume in which the real file A is stored, so the
S 11 , a attempts to access the real file in volume n (■), and returns the actual data write result and read data to the user as a result (■). During this time, the user is not aware of the existence of the management file and can use the normal file access interface. Therefore,
According to the present invention, it is possible to provide a disk management system that can efficiently manage large-capacity files spanning multiple disk volumes when large-capacity files are arbitrarily created or deleted. In addition,
Such control is performed by an interface function in the OS 1.1a of the CPU.

[実施例コ 以下、図面を参照して本発明の実施例を詳細に説明する
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

本発明の実施例では、管理ファイル]、 2 A aは
、複数の利用者が同じ実ファイルを同時にアクセスでき
る(多重□PEN)ように排他制御をかけている。また
、実ファイルを作成しようとして途中でそのディスクボ
リュームが一杯になった時、他の空きディスクボリュー
ムを捜してそこに作成するようにしている。このような
機能を実現するために、管理ファイル12Aaは、第3
図に示すような構成になっている。
In the embodiment of the present invention, the management file], 2 A a is subjected to exclusive control so that multiple users can access the same real file at the same time (multiple □PEN). Also, when a disk volume becomes full while trying to create a real file, it searches for another free disk volume and creates the file there. In order to realize such a function, the management file 12Aa is
The configuration is as shown in the figure.

この管理ファイル12Aaは、実ボリュームに存在する
実ファイルと1対1に対応している。ファイルを排他的
に使用する場合は、実ファイルのファイルディスクリブ
タは1個でいいが、排他制御をかけずに多重オープン(
OP E N)する場合を考慮して、最大64個のファ
イルディスクリブタを格納できる構成となっている。ま
た、実ボリュームにライト時、ボリューム容量オーバが
発生しても、他のボリュームに空きがあれば、そちらに
実ファイルを移して処理を続行する。よって、実ファイ
ルのファイルディスクリブタは、オープン後も変わる可
能性かあるため、オープン時の値と現在の値とを格納し
ておく必要がある。
This management file 12Aa has a one-to-one correspondence with real files existing in the real volume. When using a file exclusively, only one file descriptor is required for the actual file, but multiple open (without exclusive control)
The configuration is such that it can store up to 64 file disks in consideration of the case where the file is opened (OPEN). Furthermore, even if the volume capacity is exceeded when writing to a real volume, if there is space in another volume, the real file is moved there and processing continues. Therefore, since there is a possibility that the file disk libter of a real file may change even after opening, it is necessary to store the value at the time of opening and the current value.

図において、領域1には現在の実フアイル格納先ボリュ
ーム番号が格納される。領域2は、多重オープンビット
アサインであり、1〜64の多重オープンフラグが格納
される。このフラグが“O”の時には未オープン、“1
″の時にはオープン中となる。領域3は管理ファイルの
ファイルディスクリブタであり、オープン時に格納され
、固定である。領域4は現在の実ファイルのファイルデ
ィスクリブタであり、現在の実ファイルの値が格納され
る。
In the figure, area 1 stores the current real file storage destination volume number. Area 2 is a multiple open bit assignment and stores 1 to 64 multiple open flags. When this flag is “O”, it is not open and “1”.
'', it is being opened. Area 3 is the file disc libter of the management file, which is stored at the time of opening and is fixed. Area 4 is the file disc libitor of the current real file, and the value of the current real file is Stored.

領域5にはフラグ1 リザーブ及び実ファイルの格納先
ボリュームが入る。フラグか“0”の時には格納先は変
わらず、°1”の時には他のプロセスによって実ファイ
ルの格納場所が変わったことを示す。実ファイルの格納
先ボリュームには、現在オープン中の実ファイルの格納
先ボリューム番号が入る。領域3〜領域5で1個のオー
プンに対するレコードを示している。領域6〜領域8は
、64個1」のプロセス用のレコードである。
Area 5 contains the flag 1 reserve and actual file storage destination volumes. When the flag is "0", the storage location has not changed; when it is "1", it indicates that the storage location of the real file has been changed by another process. The storage destination volume number is entered. Areas 3 to 5 show records for one open. Areas 6 to 8 are records for 64 1'' processes.

第4図は本発明によるシーケンス例を示す図である。図
では、利用者]と利用者2なる2人の利用者(プログラ
ム)が、実ファイルを排他的にアクセスした場合のファ
イルインタフェースの発行順序と、その時の管理ファイ
ルの内容及びLII他制他制−テーブル容の変化を示し
たものである。ここで、1.2 A bは排他制御テー
ブル(e n q)で、誰がどのテーブルを使用してい
るかを管理するものであり、ファイルIDとカウンタよ
り構成されている。
FIG. 4 is a diagram showing an example of a sequence according to the present invention. In the figure, the issuance order of file interfaces when two users (programs), User 2 and User 2, have exclusive access to a real file, the contents of the management file at that time, and the LII other system system. - It shows the change in table capacity. Here, 1.2 A b is an exclusive control table (e n q) that manages who is using which table, and is composed of a file ID and a counter.

利用者1がファイルをオープンすると、利用者]の管理
ファイルのfdにfdlがセラI・される(■)。そし
て、このfdlという数字は利用者1に通知される。そ
して、そのファイルをいったんロックして使用したいと
いう要求があった場合には、利用者1は排他制御テーブ
ル12AbのファイルIDにNをセットする(■)。こ
れは、自分がファイルロックをかけたいファイル番号か
Nであることを示す。同時にカウンタを1にセラI・す
る。
When user 1 opens the file, fdl is added to fd in the user's management file (■). Then, this number fdl is notified to user 1. If there is a request to lock and use the file, the user 1 sets N to the file ID in the exclusive control table 12Ab (■). This indicates the file number or N to which you want to lock the file. At the same time, set the counter to 1.

そして、ファイルNへの書込みを行う(■)。Then, writing to file N is performed (■).

書込みの間にボリューム3が一杯になったら、インタフ
ェース関数は、ボリューム4に実ファイルを移して書込
みを続行する。一方、利用者2もファイルをオープンし
く■)、ファイルロックをかける(■)。これにより、
排他制御テーブル12Abのカウンタは2にセットされ
る。ところが、ファイルNは、利用者1によってロック
がかけられているので、ロック解除待ちになる(■)。
If volume 3 becomes full during a write, the interface function moves the actual file to volume 4 and continues writing. On the other hand, user 2 also opens the file (■) and locks the file (■). This results in
The counter of the exclusive control table 12Ab is set to 2. However, since file N has been locked by user 1, it is waiting for the file to be unlocked (■).

利用者1がファイルNへの書込みを終了するとファイル
ロックを解除しく■)、ファイルをクローズする(■)
。利用者2は利用者1のロック解除を待って、ファイル
Nへの書込みを行う(■)。
When user 1 finishes writing to file N, the file lock is released (■) and the file is closed (■).
. User 2 waits for user 1 to release the lock and writes to file N (■).

この場合において、ライトシようとしても、管理ファイ
ル12 A、 a中のフラグが1なので、現在オープン
中の実ファイルか古いと判断し、新しいボリューム4の
実ファイルをオーブンしなおし、ライト処理を行う。処
理が終了したら、ロックを解除しく[相])、ファイル
をクロースする(■)。シーケンス■において、ロック
を解除すると、カウンタは2から1になり、更にシーケ
ンス[相]でロックを解除すると、カウンタは0になる
。カウンタが0になると、ファイルIDも0になる。
In this case, even if an attempt is made to write, since the flag in the management file 12A, a is 1, it is determined that the currently open real file is old, the real file in the new volume 4 is re-opened, and the write process is performed. When the process is finished, release the lock [phase]) and close the file (■). In sequence (3), when the lock is released, the counter changes from 2 to 1, and when the lock is further released in sequence [phase], the counter becomes 0. When the counter becomes 0, the file ID also becomes 0.

[発明の効果] 以上、詳細に説明したように、本発明によればディスク
ボリュームを管理ファイルを格納とする管理ボリューム
とデータを格納する実ボリュームに分割して、ディスク
管理をインタフェース関数で実行させることにより、 ■利用者は管理ファイルを実ファイルと見なしてファイ
ルアクセスする。
[Effects of the Invention] As described above in detail, according to the present invention, a disk volume is divided into a management volume that stores management files and a real volume that stores data, and disk management is performed using an interface function. By doing so, ■The user accesses the managed file by regarding it as a real file.

■ボリュームオーバによる移し変えは自動的に行われる
■Transferring due to volume overload is done automatically.

■ファイルアクセスインタフェースは、通常のファイル
アクセスインタフェースと全く変わらない。
■The file access interface is no different from a normal file access interface.

ようにすることができ、複数のディスクボリュームにま
たがった大容量のファイルを効率よく処理することがで
きる。
This makes it possible to efficiently process large files that span multiple disk volumes.

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

第1図は本発明の原理ブロック図、 第2図は本発明の作用説明図、 第3図は管理ファイルの構成例を示す図、第4図は本発
明によるシーケンス例を示す図、第5図は従来のディス
ク管理システムの構成例を示すブロック図である。 第1図において、 3はバス、 1]はCPU。 11aは081 1.2Aは管理ボリューム、 12Bは実ボリュームである。
Fig. 1 is a principle block diagram of the present invention, Fig. 2 is an explanatory diagram of the operation of the present invention, Fig. 3 is a diagram showing a configuration example of a management file, Fig. 4 is a diagram showing an example of a sequence according to the present invention, Fig. 5 The figure is a block diagram showing an example of the configuration of a conventional disk management system. In Figure 1, 3 is a bus, and 1] is a CPU. 11a is 081, 1.2A is a management volume, and 12B is a real volume.

Claims (3)

【特許請求の範囲】[Claims] (1)CPU(11)と複数のディスクボリューム(1
2)とが接続されたシステムにおいて、ディスクボリュ
ーム(12)の1つを管理 ボリューム(12A)、その他を実ボリューム(12B
)とし、 実ボリューム(12B)には実際のデータ ファイルを格納し、 管理ボリューム(12A)には、実ファイ ルと1対1に対応した管理ファイル(12Aa)を設け
、 該管理ファイル(12Aa)には、実ファ イルがどこのボリュームにあるかどうかの情報、現在実
ファイルを使用している利用者の情報等を格納し、 利用者は管理ファイル(12Aa)を実フ ァイルと見なしてディスクをアクセスできるように構成
したディスク管理システム。
(1) CPU (11) and multiple disk volumes (1)
2), one of the disk volumes (12) is the management volume (12A), and the other is the real volume (12B).
), the actual data file is stored in the real volume (12B), the management file (12Aa) is provided in the management volume (12A) in one-to-one correspondence with the real file, and the management file (12Aa) is stores information on which volume the real file is located on, information on the user currently using the real file, etc., and allows the user to access the disk by regarding the management file (12Aa) as a real file. A disk management system configured as follows.
(2)前記したシーケンス処理を行う機能をCPU(1
1)内にファイルアクセスインタフェース(関数)とし
て設けたことを特徴とする請求項1記載のディスク管理
システム。
(2) The CPU (1
2. The disk management system according to claim 1, wherein the disk management system is provided as a file access interface (function) in 1).
(3)前記管理ファイル(12Aa)には、複数の利用
者が同じ実ファイルを同時にアクセスできるように排他
制御をかけて管理するようにしたことを特徴とする請求
項1記載のディスク管理システム。
(3) The disk management system according to claim 1, wherein the management file (12Aa) is managed under exclusive control so that a plurality of users can access the same real file at the same time.
JP2149366A 1990-06-07 1990-06-07 Disk control system Pending JPH0442335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2149366A JPH0442335A (en) 1990-06-07 1990-06-07 Disk control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2149366A JPH0442335A (en) 1990-06-07 1990-06-07 Disk control system

Publications (1)

Publication Number Publication Date
JPH0442335A true JPH0442335A (en) 1992-02-12

Family

ID=15473570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2149366A Pending JPH0442335A (en) 1990-06-07 1990-06-07 Disk control system

Country Status (1)

Country Link
JP (1) JPH0442335A (en)

Similar Documents

Publication Publication Date Title
US7353242B2 (en) File server for long term data archive
US6961828B2 (en) Cluster system, memory access control method, and recording medium
US6298401B1 (en) Object oriented storage device having a disc drive controller providing an interface exposing methods which are invoked to access objects stored in a storage media
US7325017B2 (en) Method of implementation of data storage quota
JPH05143453A (en) Method for nullifying hierarchy of distributed cache
JPH0883253A (en) Method and device for virtual space management
US7958097B1 (en) Method and system for implementation of data storage quota
JPH05100939A (en) File system
WO1999008173A2 (en) Object oriented data storage device
Madnick et al. A modular approach to file system design
Murphy Storage organization and management in TENEX
JPH0622015B2 (en) Data processing system control method
JPH0652054A (en) Virtual memory controller
JPH0330034A (en) Optical disk file managing method
JPH0442335A (en) Disk control system
JPH07210438A (en) Film managing method
JPH06110766A (en) Directory constitution method and computer system for sharing stored file system
US5926835A (en) Method of isolating a memory location containing an obsolete value
JPS62287359A (en) Control system for simultaneous file access in loosely coupled multi-processor system
JPS5827255A (en) Controlling system of file used for plural electronic computers in common
JPH05250241A (en) Filing device
Hafeez Role of File System in Operating System
JPS63205742A (en) Remote file access system
JPS61276040A (en) File access system
JPH03161864A (en) Document control processing system