JPH06110741A - Computer device - Google Patents

Computer device

Info

Publication number
JPH06110741A
JPH06110741A JP4256898A JP25689892A JPH06110741A JP H06110741 A JPH06110741 A JP H06110741A JP 4256898 A JP4256898 A JP 4256898A JP 25689892 A JP25689892 A JP 25689892A JP H06110741 A JPH06110741 A JP H06110741A
Authority
JP
Japan
Prior art keywords
partition
data block
name
file
block number
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.)
Withdrawn
Application number
JP4256898A
Other languages
Japanese (ja)
Inventor
Fumiaki Narutani
文明 成谷
Tetsuo Kagawa
徹雄 香川
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP4256898A priority Critical patent/JPH06110741A/en
Publication of JPH06110741A publication Critical patent/JPH06110741A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To use a partition flexible and also to change a partition size dynamically even while a system is working. CONSTITUTION:When a file name is inputted, a file control part 3 detects a block number corresponding to the file name and performs access to a data block corresponding to one partition of a magnetic disk device 1. At this time, when the block number exceeding the size of the partition is detected, the partition name and the block number are transmitted to a partition control part 42. The partition control part 42 refers to a partition control table stored in a control table storage part 41, detectes the off-set value of the supply partition corresponding to the partition name, subtracts the off-set value from the block number and performs access to the data block indicated by the block number in the supply partition.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ディスク装置を複数の
論理パーティションに区分してファイルの格納に使用す
るコンピュータ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer device in which a disk device is divided into a plurality of logical partitions and used for storing files.

【0002】[0002]

【従来の技術】一般にコンピュータシステムにおいて
は、外部補助記憶装置として光や磁気等のディスク装置
が使用されている。ディスク装置は、通常、適当な大き
さの論理パーティションに分割して使用されることが多
く、当該装置の初期処理時においてのみパーティション
サイズが設定され、システム稼働中はその設定に基づき
作成したファイル等が格納される。
2. Description of the Related Art Generally, in a computer system, an optical or magnetic disk device is used as an external auxiliary storage device. Disk devices are usually used by dividing them into logical partitions of appropriate size, and the partition size is set only during the initial processing of the device, and files created based on the settings are set during system operation. Is stored.

【0003】[0003]

【発明が解決しようとする課題】ところで、このような
従来のコンピュータ装置では、パーティションの設定が
初期処理時においてのみ実行されるため、システム稼働
中にパーティションサイズを変更することは不可能であ
った。
By the way, in such a conventional computer apparatus, it is impossible to change the partition size while the system is in operation because the partition setting is executed only at the time of initial processing. .

【0004】そのため、システム稼働中に新たなパーテ
ィションの作成や、パーティションサイズを変更する場
合には、再度、ディスク装置の初期処理を起動してパー
ティション分割を行わなければならず、手間がかかる、
という問題が生じる。
Therefore, when creating a new partition or changing the partition size while the system is operating, the initial process of the disk device must be started again to perform partitioning, which is troublesome.
The problem arises.

【0005】また、1つのファイルは2以上のパーティ
ションにわたって作成できなかったため、システム稼働
中はパーティションを弾力的に使用できない、という問
題もある。
Further, since one file cannot be created over two or more partitions, there is a problem that the partitions cannot be used flexibly while the system is operating.

【0006】そこで、本発明はこのような問題に着目し
てなされたもので、システム稼働中であってもパーティ
ションサイズを動的に変更できると共に、弾力的にパー
ティションを使用できるコンピュータ装置を提供するこ
とを目的とする。
Therefore, the present invention has been made in view of such a problem, and provides a computer device which can dynamically change the partition size even when the system is in operation and which can elastically use the partition. The purpose is to

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、ディスク装置を複数のパーティション
に区分し、各パーティションではデータブロックの単位
でファイルを格納しておき、ユーザからファイル名の入
力があった際には、そのファイル名に対応したファイル
にアクセスするようにしたコンピュータ装置において、
データブロックを要求する要求パーティションの名称
と、当該要求パーティションへデータブロックを供給す
る供給パーティションの名称と、当該供給されるデータ
ブロックの番号をオフセットするオフセット値とを対応
させたパーティション管理テーブルを記憶した管理テー
ブル記憶部と、各ファイルが格納されるパーティション
の名称と、各ファイルを構成するデータブロックの番号
とをファイル名と対応させて記憶しており、ユーザから
ファイル名の入力があった際には、そのファイル名に対
応したファイルが格納されるパーティションの名称およ
びデータブロック番号を読出し、当該データブロック番
号が管理範囲内の場合には当該データブロック番号に基
づきそのパーティションへアクセスする一方、当該デー
タブロック番号が管理範囲を超える場合には当該データ
ブロック番号およびそのパーティションの名称を出力す
るファイル管理部と、上記ファイル管理部からのパーテ
ィションの名称およびデータブロック番号を受信し、上
記管理テーブル記憶部に記憶したパーティション管理テ
ーブルから当該パーティションの名称に対応した供給パ
ーティションの名称およびそのオフセット値を検出する
と共に、当該データブロック番号からそのオフセット値
を減算して、減算後のデータブロック番号に基づきその
供給パーティションへアクセスするパーティション制御
部とを具備することを特徴とする。
In order to achieve the above object, according to the present invention, a disk device is divided into a plurality of partitions, each partition stores a file in a unit of a data block, and a file name is specified by a user. When there is an input, in the computer device that tries to access the file corresponding to that file name,
A partition management table is stored that associates the name of the request partition requesting the data block, the name of the supply partition that supplies the data block to the request partition, and the offset value that offsets the number of the supplied data block. The management table storage unit, the name of the partition in which each file is stored, and the number of the data block that constitutes each file are stored in association with the file name, and when the user inputs the file name. Reads the name and data block number of the partition in which the file corresponding to the file name is stored. If the data block number is within the management range, the partition is accessed based on the data block number, while the data Block number is pipe If the range is exceeded, the file management unit that outputs the data block number and the name of the partition, and the partition name and the data block number that are received from the file management unit, are stored in the management table storage unit. A partition that detects the name of the supply partition corresponding to the name of the partition and its offset value from the table, subtracts the offset value from the data block number, and accesses the supply partition based on the subtracted data block number. And a control unit.

【0008】[0008]

【作用】本発明では、ユーザからのファイル名を受信し
た際には、ファイル管理部が、そのファイル名に対応し
たファイルが格納されるパーティションの名称およびデ
ータブロック番号を読出し、当該データブロック番号が
管理範囲内の場合には当該データブロック番号に基づき
そのパーティションへアクセスする。また、読出したデ
ータブロック番号が管理範囲を超える場合にはそのファ
イルが格納されるパーティションの名称および当該デー
タブロック番号を出力する。
In the present invention, when the file name from the user is received, the file management unit reads the name of the partition and the data block number in which the file corresponding to the file name is stored, and the data block number If it is within the management range, the partition is accessed based on the data block number. If the read data block number exceeds the management range, the name of the partition in which the file is stored and the data block number are output.

【0009】パーティション制御部は、そのパーティシ
ョン名およびデータブロック番号を受信して、当該パー
ティション名に対応した供給パーティション名とオフセ
ット値とを管理テーブル記憶部のパーティション管理テ
ーブルから検出すると共に、当該データブロック番号か
らそのオフセット値を減算して、減算後のデータブロッ
ク番号に基づきその供給パーティションへアクセスす
る。
The partition control unit receives the partition name and the data block number, detects the supply partition name and the offset value corresponding to the partition name from the partition management table of the management table storage unit, and also detects the data block. The offset value is subtracted from the number and the supply partition is accessed based on the data block number after the subtraction.

【0010】[0010]

【実施例】以下、本発明に係るコンピュータ装置の一実
施例を図面に基づいて説明する。図1は、本発明に係る
コンピュータ装置の構成を示している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a computer device according to the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of a computer device according to the present invention.

【0011】このコンピュータ装置は、ハードディスク
等の磁気ディスク装置1と、磁気ディスク制御部1にフ
ァイルの書込み及び読出しを行う磁気ディスク制御部2
と、ファイル管理部3と、管理テーブル記憶部41およ
びパーティション制御部42からなるパーティション管
理部4とを有する。
This computer device includes a magnetic disk device 1 such as a hard disk, and a magnetic disk control unit 2 for writing and reading files to and from the magnetic disk control unit 1.
And a partition management unit 4 including a management table storage unit 41 and a partition control unit 42.

【0012】ファイル管理部3は、ユーザが作成したフ
ァイルをデレクトリ(図4参照)におけるファイルコン
トロールブロック(FCB)やデータブロックで管理
し、ユーザからファイルの操作、すなわちファイル名が
指定された場合、そのファイル名に対応したファイルコ
ントロールブロックを検出すると共に、そのデータブロ
ック番号を読出し、当該データブロック番号が管理範囲
内の場合には当該データブロック番号に基づきパーティ
ションへアクセスするように構成されている。ただし、
本装置では、後述する仮想パーティションを使用してい
るため、管理範囲を越えるデータブロック番号を検出し
た場合には、そのデータブロックは仮想パーティション
である要求パーティションを構成しているため、その要
求パーティション名と当該データブロック番号とをパー
ティション管理部4へ送る。また、後述する仮想パーテ
ィションの設定後に、パーティション制御部42から仮
想パーティションである要求および供給パーティション
のデータブロック番号のリストを受信して、仮想パーテ
ィションにファイルを作成する際にはそのデータブロッ
ク番号を使用するようにも構成されている。
The file management unit 3 manages the file created by the user with the file control block (FCB) or data block in the directory (see FIG. 4). When the user operates the file, that is, the file name is specified, The file control block corresponding to the file name is detected, the data block number is read, and when the data block number is within the management range, the partition is accessed based on the data block number. However,
Since this device uses a virtual partition to be described later, if a data block number that exceeds the management range is detected, that data block constitutes a request partition that is a virtual partition. And the data block number concerned are sent to the partition management unit 4. In addition, after setting a virtual partition to be described later, a list of data block numbers of request and supply partitions, which are virtual partitions, is received from the partition control unit 42, and the data block numbers are used when creating a file in the virtual partition. It is also configured to do.

【0013】ここで、仮想パーティションには、他のパ
ーティションへデータブロックを要求する要求パーティ
ションと、要求パーティションへデータブロックを供給
する供給パーティションとがある。また、各ファイルの
ディレクトリに格納されるファイルコントロールブロッ
クの情報としては、ファイル名や、ファイルの型、ファ
イルのサイズ、ファイル編成法、アクセス制御用のデー
タ、ファイルが格納されているパーティションの名称等
が格納されている。なお、ファイルを構成してないフリ
ー(空きの)データブロックは、例えばフリーブロック
の先頭を示すポインタからフリーブロックのリストとし
て管理される。
Here, the virtual partition includes a request partition for requesting a data block to another partition and a supply partition for supplying a data block to the request partition. The file control block information stored in each file directory includes the file name, file type, file size, file organization method, access control data, and the name of the partition in which the file is stored. Is stored. A free (empty) data block that does not form a file is managed as a free block list from, for example, a pointer indicating the beginning of the free block.

【0014】また、管理テーブル記憶部41は、ユーザ
により設定された後述するパーティション管理テーブル
を記憶するものである。
The management table storage unit 41 also stores a partition management table, which will be described later, set by the user.

【0015】パーティション制御部42は、ファイル管
理部3からその管理範囲を越える仮想パーティショの名
称とデータブロック番号とを受信して、上記パーティシ
ョン管理テーブルから当該パーティション名に対応した
供給パーティション名とオフセット値とを検出すると共
に、当該データブロック番号からそのオフセット値を減
算して、減算後のデータブロック番号に基づきその供給
パーティション名が示す供給パーティションへアクセス
するように構成されている。また、パーティション管理
テーブル上に仮想パーティションの設定があった場合に
は、要求パーティションのフリーブロックリストの末尾
に、上記オフセット値によりオフセットした供給パーテ
ィションのチェーンを行い、そのチェーン後の要求パー
ティションおよび供給パーティションのデータブロック
番号のリストをファイル管理部3に渡す。
The partition control unit 42 receives the name of the virtual partition and the data block number exceeding the management range from the file management unit 3, and the supplied partition name and offset corresponding to the partition name from the partition management table. The value is detected, the offset value is subtracted from the data block number, and the supply partition indicated by the supply partition name is accessed based on the data block number after the subtraction. If a virtual partition is set in the partition management table, a chain of supply partitions offset by the above offset value is chained at the end of the free block list of the request partition, and the request partition and supply partition after the chain are chained. The list of the data block numbers of is passed to the file management unit 3.

【0016】なお、オフセット値は供給パーティション
毎に各々異なった値が設定されるため、オフセット後の
供給データブロックの番号は供給パーティション毎に異
なることになり、1つの要求パーティションが2つ以上
の供給パーティションからデータブロックを供給するこ
とが可能である。
Since the offset value is set to a different value for each supply partition, the number of the supply data block after the offset is different for each supply partition, and one request partition supplies two or more supplies. It is possible to supply a data block from the partition.

【0017】図2は、管理テーブル記憶部41に記憶さ
れるパーティション管理テーブル41aの一例を示して
いる。
FIG. 2 shows an example of the partition management table 41a stored in the management table storage unit 41.

【0018】このパーティション管理テーブル41aに
は、4つの欄があり、各欄には各々、要求パーティショ
ンの名称、その要求パーティションにデータブロックを
供給する供給パーティションの名称、当該供給パーティ
ションのオフセット値と、供給するデータブロックの番
号リストとが各々対応して設定される。ここでは、一例
として要求パーティション名“A”と、供給パーティシ
ョン名“C”と、供給パーティションCのオフセット値
“10000”と、供給データブロックの番号リスト
“#9500〜9999”が設定されている。
The partition management table 41a has four columns. Each column has a name of a request partition, a name of a supply partition that supplies a data block to the request partition, and an offset value of the supply partition. A number list of data blocks to be supplied is set correspondingly. Here, as an example, the requested partition name “A”, the supply partition name “C”, the offset value “10000” of the supply partition C, and the supply data block number list “# 9500 to 9999” are set.

【0019】なお、パーティション管理テーブル41a
上の各データの設定、すなわち仮想パーティションの設
定は、ユーザが初期処理時に設定しても良いし、またシ
ステム稼働中に設定あるいは変更してもよい。
The partition management table 41a
The setting of each of the above data, that is, the setting of the virtual partition may be set by the user at the time of initial processing, or may be set or changed while the system is operating.

【0020】ここで、その設定手順を簡単に説明する。
まず、供給パーティションのアクセスを禁止すると共
に、要求パーティションのアクセスを禁止して、続いて
供給パーティションのフリーブロックリストの末尾のブ
ロックから要求パーティションへ供給すべき供給データ
ブロックの番号を検出し、同図に示すように、パーティ
ション管理テーブル41a上に要求パーティション名、
供給パーティション名、当該供給パーティションのオフ
セット値、および供給データブロックの番号リストを設
定する。すると、パーティション制御部42が、そのパ
ーティション管理テーブル41aに設定されたデータを
参照して、後述の図3(b)に示すように、要求パーテ
ィションAのフリーブロックリストの末尾に当該供給パ
ーティションCの供給データブロックを、そのブロック
番号をオフセット値によりオフセットしてテェーンす
る。その後、要求側パーティションのアクセスを許可す
ると共に、要求パーティションのアクセスを許可して、
仮想パーティションの設定処理が完了する。
Here, the setting procedure will be briefly described.
First, access to the supply partition is prohibited, access to the request partition is prohibited, and then the number of the supply data block to be supplied to the request partition from the last block of the free block list of the supply partition is detected. , The requested partition name on the partition management table 41a,
Set the supply partition name, the offset value of the supply partition, and the supply data block number list. Then, the partition control unit 42 refers to the data set in the partition management table 41a and refers to the data set in the partition management table 41a, and as shown in FIG. The supplied data block is chained by offsetting its block number by the offset value. Then, while permitting access to the requesting partition, permitting access to the requesting partition,
The virtual partition setting process is completed.

【0021】図3は、仮想パーティションを設定した際
の、供給パーティションと要求パーティションにおける
データブロックの移動を示している。
FIG. 3 shows the movement of data blocks in the supply partition and the request partition when the virtual partition is set.

【0022】まず、(a)は通常の仮想パーティション
設定前を示しており、パーティションA,パーティショ
ンBとも“#0〜9999”までのデータブロックを有
している。そしてパーティション管理テーブル41a上
でデータを図2に示すように設定した場合には、パーテ
ィションCからパーティションAへブロック番号“#9
500〜9999”の500ブロックが供給され、
(b)に示すように、仮想パーティションA´ではその
データブロックの番号に供給パーティションのオフセッ
ト値10000だけオフセットされた“#19500〜
19999”までの500ブロックがパーティションA
のデータブロックに加算される一方、仮想パーティショ
ンC´ではその500ブロックが減算されて、“#0〜
9499”までのデータブロックを有することになる。
First, (a) shows a normal virtual partition before being set, and both the partition A and the partition B have data blocks of "# 0 to 9999". When the data is set on the partition management table 41a as shown in FIG. 2, the block number from the partition C to the partition A is "# 9".
500 blocks of 500-9999 "are supplied,
As shown in (b), in the virtual partition A ', "# 19500-", which is obtained by offsetting the data block number by the offset value 10000 of the supply partition,
Partition A has 500 blocks up to 19999 "
Of the virtual partition C ′, the 500 blocks of the virtual partition C ′ are subtracted, and “# 0 to
It will have up to 9499 "of data blocks.

【0023】そして、この仮想パーティションA´,C
´のデータブロック番号のリストがファイル管理部3に
送られ、仮想パーティションA´,C´では、ファイル
管理部3によって各々新たなデータブロックサイズでフ
ァイルが作成される。尚、“#19500〜1999
9”のデータブロックにファイルを格納する場合には、
ファイル管理部3は、パーティション制御部42を介し
パーティションCの“#9500〜9999”のデータ
ブロックにアクセスしてファイルを格納する。
Then, the virtual partitions A'and C
A list of data block numbers of'is sent to the file management unit 3, and in the virtual partitions A'and C ', the file management unit 3 creates files with new data block sizes. In addition, "# 19500-1999
When storing a file in a 9 "data block,
The file management unit 3 accesses the data blocks of “# 9500 to 9999” of the partition C via the partition control unit 42 and stores the file.

【0024】従って、パーティション管理テーブル41
aのデータを新たに設定あるいは変更することにより、
新たな仮想パーティションの設定、パーティションサイ
ズの変更、さらには今まで供給パーティションだったも
のを要求パーティションへ、あるいはその逆への変更も
可能になる。
Therefore, the partition management table 41
By newly setting or changing the data of a,
You can set a new virtual partition, change the partition size, and even change the previously supplied partition to the requested partition and vice versa.

【0025】次に、本装置における仮想パーティション
へのアクセス処理を図面を参照して説明する。
Next, the access processing to the virtual partition in this apparatus will be described with reference to the drawings.

【0026】図4は、仮想パーティションへアクセスし
た際のデータブロック等の状態を示している。
FIG. 4 shows the state of data blocks and the like when the virtual partition is accessed.

【0027】このアクセス処理は、ユーザがファイル名
を本装置へ入力することによって開始するもので、通
常、ユーザからファイル名の入力があった際には、まず
ファイル管理部3が入力したファイル名を受信し、その
ファイル名に対応したディレクトリを検索して、当該デ
ィレクトリ中に書込まれたファイルコントロールブロッ
ク(FCB)およびデータブロック番号を検出し、パー
ティション上の対応するデータブロックにアクセスを行
う。
This access processing is started by the user inputting a file name into the apparatus. Normally, when the user inputs a file name, the file name input by the file management section 3 is first input. Is received, the directory corresponding to the file name is searched, the file control block (FCB) and the data block number written in the directory are detected, and the corresponding data block on the partition is accessed.

【0028】ここでは、ユーザによって仮想パーティシ
ョンA,CにディレクトリDで管理されるファイルが作
成された場合を示しており、ユーザからそのファイルの
ファイル名の入力があった際には、そのファイルのディ
レクトリDにデータブロック番号“#9000”、“#
9900”、“#19950”の番号が設定されている
ため、そのデータブロック番号に基づいて各々のデータ
ブロックにアクセスを行う。
Here, a case is shown where a user creates a file managed in the directory D in the virtual partitions A and C, and when the user inputs the file name of the file, the file Data block numbers “# 9000” and “#
Since the numbers 9900 "and"# 199950 "are set, each data block is accessed based on the data block number.

【0029】しかし、パーティションAには“#000
0〜9999”までのデータブロックしかなく、かつ、
ファイル管理部3が“#0000〜9999”までの範
囲しか管理できないため、ファイル管理部3は、“#9
000”、“#9900”のデータブロック番号の場合
には通常通りその番号が示すデータブロックa,b各々
にアクセスすることができるが、“#19950”のデ
ータブロックの場合にはファイル管理部3の管理範囲を
越えるため、当該パーティションAを要求パーティショ
ンと判断して、パーティション管理部4へ当該要求パー
ティション名A、およびデータブロック番号“#199
50”を送信する。
However, the partition A has "# 000".
There are only data blocks from 0 to 9999 ", and
Since the file management unit 3 can manage only the range from “# 0000 to 9999”, the file management unit 3 displays “# 9
In the case of the data block numbers of "000" and "# 9900", the data blocks a and b indicated by the numbers can be accessed as usual, but in the case of the data block of "# 19950", the file management unit 3 The partition A is judged to be the request partition, and the partition management unit 4 is notified of the request partition name A and the data block number “# 199”.
Send 50 ".

【0030】パーティション管理部4では、パーティシ
ョン制御部42がファイル管理部3からの要求パーティ
ション名A、およびデータブロック番号“#1995
0”を受信して、パーティション管理テーブル41a
(図2参照)を参照して、要求パーティションAに対す
る供給パーティション名C、およびその供給パーティシ
ョンCのオフセット値“10000”を検出する。
In the partition management section 4, the partition control section 42 requests the partition name A from the file management section 3 and the data block number "# 1995".
0 "is received and the partition management table 41a is received.
With reference to FIG. 2, the supply partition name C for the request partition A and the offset value “10000” of the supply partition C are detected.

【0031】そして、パーティション管理部4は、ファ
イル管理部3からの“#19950”のデータブロック
番号からそのオフセット値“10000”を減算して、
データブロック番号“#9950”、すなわちパーティ
ションCのデータブロック番号“#9950”を得て、
パーティションCにおいてそのデータブロック番号“#
9950”が示すデータブロックcへアクセスする。
Then, the partition management unit 4 subtracts the offset value "10000" from the data block number "# 19950" from the file management unit 3,
Obtain the data block number “# 9950”, that is, the data block number “# 9950” of the partition C,
The data block number “#” in partition C
The data block c indicated by 9950 "is accessed.

【0032】従って、本実施例によれば、パーティショ
ン制御部42がパーティション管理テーブル41aを参
照してファイル管理部3の管理範囲を超える番号のデー
タブロックを管理することにより、1つのファイルを要
求パーティションと供給パーティションとの2以上のパ
ーティションにわたって格納することができるため、弾
力的なパーティションの使用が可能になる。
Therefore, according to the present embodiment, the partition control unit 42 refers to the partition management table 41a to manage the data blocks whose numbers exceed the management range of the file management unit 3 to request one file as a partition. Since it can be stored over two or more partitions, the supply partition and the supply partition, the use of the elastic partition is enabled.

【0033】また、本実施例では、システムの稼働中
に、あるパーティションでデータブロックの空き領域が
不足した場合、パーティション管理テーブル41a上の
当該パーティションの設定を変更することにより、ある
いはパーティション管理テーブル41a上に当該パーテ
ィションを要求パーティションとして設定すると共に、
データブロックに空きのある他のパーティションを供給
パーティションと共に当該供給パーティションぼオフセ
ット値、および供給データブロックの番号リストを設定
することにより、システム稼働中でも各パーティション
のサイズを仮想パーティションとして動的に変更するこ
とが可能になる。
Further, in this embodiment, when the free space of the data block is insufficient in a certain partition during the operation of the system, the setting of the partition in the partition management table 41a is changed or the partition management table 41a is changed. Set the partition above as the requested partition, and
By setting another partition with a free data block together with the supply partition, the offset value of the supply partition and the number list of the supply data block, the size of each partition can be dynamically changed as a virtual partition even during system operation. Will be possible.

【0034】なお、本実施例では、仮想パーティション
がパーティションA,Cという要求および供給パーティ
ションの2つのパーティションから構成される場合で説
明したが、本発明では、1つの仮想パーティションが3
つ以上のパーティションから構成するようにしても良
い。この場合、供給パーティション毎に異なるオフセッ
ト値を持たせているため、2以上の供給パーティション
が1つの要求パーティションへデータブロックを供給し
ても、各々のオフセット値によりオフセットされたデー
タブロック番号より容易に、各データブロックの供給先
となる供給パーティションを判別できる。
In this embodiment, the virtual partition has been described as being composed of two partitions, that is, a request partition and a supply partition of partitions A and C, but in the present invention, one virtual partition has three partitions.
It may be composed of more than one partition. In this case, since each supply partition has a different offset value, even if two or more supply partitions supply a data block to one request partition, it is easier than the data block number offset by each offset value. , The supply partition to which each data block is supplied can be determined.

【0035】また、本実施例のように、仮想パーティシ
ョンを要求および供給パーティションの2つのパーティ
ションからのみ構成すると限定する場合には、オフセッ
ト値は供給パーティション毎に異なる値にする必要はな
く、同一値でかまわない。
In the case where the virtual partition is limited to only two partitions, the request partition and the supply partition, as in this embodiment, the offset value does not need to be different for each supply partition, and the same value can be used. It doesn't matter.

【0036】さらに、本実施例では、パーティション管
理テーブル41aに要求パーティション名、供給パーテ
ィション名、当該供給パーティションのオフセット値、
および供給データブロックの番号リストを対応させて設
定するようにして説明したが、本発明では、供給データ
ブロックの番号リストの設定は必ずしも必要ない。この
リストは、データブロックの供給量の上限を設定してい
るだけで、これを設定しない場合には、供給パーティシ
ョンから要求パーティションへ上限なくデータブロック
が供給されることになる。
Further, in the present embodiment, the partition management table 41a includes the requested partition name, supply partition name, offset value of the supply partition,
The description has been made so that the number list of the supply data block is set correspondingly, but the number list of the supply data block is not necessarily set in the present invention. This list only sets the upper limit of the data block supply amount. If this is not set, the data block is supplied from the supply partition to the request partition without any upper limit.

【0037】[0037]

【発明の効果】以上説明したように、本発明では、パー
ティション制御部がパーティション管理テーブルを参照
してファイル管理部の管理範囲を超える番号のデータブ
ロックを管理し、1つのファイルを要求パーティション
と供給パーティションとの2以上のパーティションにわ
たって格納できるようにしたため、弾力的なパーティシ
ョンの使用が可能になる。
As described above, according to the present invention, the partition control unit refers to the partition management table to manage the data blocks whose numbers exceed the management range of the file management unit, and supplies one file as the requested partition. Since it is possible to store data over two or more partitions, it is possible to use elastic partitions.

【0038】また、本発明では、システム稼働中に、あ
るパーティションでデータブロックの空き領域が不足し
た場合、パーティション管理テーブル上の当該パーティ
ションの設定を変更することにより、あるいはパーティ
ション管理テーブル上に当該パーティションを要求パー
ティションとして設定すると共に、データブロックに空
きのある他のパーティションを供給パーティションとし
てそのオフセット値と共に設定することにより、システ
ム稼働中であっても当該パーティションのサイズを動的
に変更することが可能になる。
Further, in the present invention, when the free space of the data block in a certain partition runs short during the system operation, the setting of the partition in the partition management table is changed or the partition in the partition management table is changed. By setting as the request partition and another partition with a free data block as the supply partition along with its offset value, the size of the partition can be dynamically changed even during system operation. become.

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

【図1】本発明に係るコンピュータ装置の一実施例を示
すブロック図。
FIG. 1 is a block diagram showing an embodiment of a computer device according to the present invention.

【図2】パーティション管理テーブルの一例を示す説明
図。
FIG. 2 is an explanatory diagram showing an example of a partition management table.

【図3】データブロックの移動を示す説明図。FIG. 3 is an explanatory diagram showing movement of data blocks.

【図4】仮想パーティションへアクセスした際の状態を
示す説明図。
FIG. 4 is an explanatory diagram showing a state when a virtual partition is accessed.

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

1 磁気ディスク装置(ディスク装置) 2 磁気ディスク制御部 3 ファイル管理部 4 パーティション管理部 41 管理テーブル記憶部 41a パーティション管理テーブル 42 パーティション制御部 1 magnetic disk device (disk device) 2 magnetic disk control unit 3 file management unit 4 partition management unit 41 management table storage unit 41a partition management table 42 partition control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ディスク装置を複数のパーティションに
区分し、各パーティションではデータブロックの単位で
ファイルを格納しておき、ユーザからファイル名の入力
があった際には、そのファイル名に対応したファイルに
アクセスするようにしたコンピュータ装置において、 データブロックを要求する要求パーティションの名称
と、当該要求パーティションへデータブロックを供給す
る供給パーティションの名称と、当該供給されるデータ
ブロックの番号をオフセットするオフセット値とを対応
させたパーティション管理テーブルを記憶した管理テー
ブル記憶部と、 各ファイルが格納されるパーティションの名称と、各フ
ァイルを構成するデータブロックの番号とをファイル名
と対応させて記憶しており、ユーザからファイル名の入
力があった際には、そのファイル名に対応したファイル
が格納されるパーティションの名称およびデータブロッ
ク番号を読出し、当該データブロック番号が管理範囲内
の場合には当該データブロック番号に基づきそのパーテ
ィションへアクセスする一方、当該データブロック番号
が管理範囲を超える場合には当該データブロック番号お
よびそのパーティションの名称を出力するファイル管理
部と、 上記ファイル管理部からのパーティションの名称および
データブロック番号を受信し、上記管理テーブル記憶部
に記憶したパーティション管理テーブルから当該パーテ
ィションの名称に対応した供給パーティションの名称お
よびそのオフセット値を検出すると共に、当該データブ
ロック番号からそのオフセット値を減算して、減算後の
データブロック番号に基づきその供給パーティションへ
アクセスするパーティション制御部と、 を具備することを特徴とするコンピュータ装置。
1. A disk device is divided into a plurality of partitions, each partition stores files in units of data blocks, and when a user inputs a file name, the file corresponding to that file name is stored. In the computer device that is configured to access the data block, the name of the request partition that requests the data block, the name of the supply partition that supplies the data block to the request partition, and the offset value that offsets the number of the data block that is supplied. The management table storage unit that stores the partition management table that associates the files with each other, the name of the partition in which each file is stored, and the number of the data block that configures each file are stored in association with the file name. File name is input from In this case, the name of the partition and the data block number in which the file corresponding to that file name is stored are read, and if the data block number is within the management range, the partition is accessed based on that data block number. When the data block number exceeds the management range, the file management unit that outputs the data block number and the name of the partition, and the partition name and the data block number from the file management unit are received, and the management table is received. The name of the supply partition corresponding to the name of the partition and its offset value are detected from the partition management table stored in the storage unit, and the offset value is subtracted from the data block number, and the data block number after subtraction is detected. Computer apparatus according to claim basis by comprising a partition control unit to access the supply partition to.
JP4256898A 1992-09-25 1992-09-25 Computer device Withdrawn JPH06110741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4256898A JPH06110741A (en) 1992-09-25 1992-09-25 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4256898A JPH06110741A (en) 1992-09-25 1992-09-25 Computer device

Publications (1)

Publication Number Publication Date
JPH06110741A true JPH06110741A (en) 1994-04-22

Family

ID=17298930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4256898A Withdrawn JPH06110741A (en) 1992-09-25 1992-09-25 Computer device

Country Status (1)

Country Link
JP (1) JPH06110741A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863376A (en) * 1994-08-26 1996-03-08 Nec Shizuoka Ltd Partition variation system
WO2003009123A1 (en) * 2001-07-17 2003-01-30 International Business Machines Corporation An appliance server with a drive partitioning scheme that accommodates application growth in size
GB2420640A (en) * 2004-11-29 2006-05-31 Hewlett Packard Development Co Automatic monitoring and adjusting of the size of a partition of a logical unit
JP2006227688A (en) * 2005-02-15 2006-08-31 Hitachi Ltd Storage system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863376A (en) * 1994-08-26 1996-03-08 Nec Shizuoka Ltd Partition variation system
WO2003009123A1 (en) * 2001-07-17 2003-01-30 International Business Machines Corporation An appliance server with a drive partitioning scheme that accommodates application growth in size
KR100553921B1 (en) * 2001-07-17 2006-02-24 인터내셔널 비지네스 머신즈 코포레이션 An appliance server with a drive partitioning scheme that accommodates application growth in size
GB2420640A (en) * 2004-11-29 2006-05-31 Hewlett Packard Development Co Automatic monitoring and adjusting of the size of a partition of a logical unit
JP2006227688A (en) * 2005-02-15 2006-08-31 Hitachi Ltd Storage system
US8612716B2 (en) 2005-02-15 2013-12-17 Hitachi, Ltd. Storage system having partition size set in accordance with drive type
US8832380B2 (en) 2005-02-15 2014-09-09 Hitachi, Ltd. Storage system having cache partition size set based on drive type

Similar Documents

Publication Publication Date Title
US5564037A (en) Real time data migration system and method employing sparse files
JPH04213129A (en) Memory control system and memory control method
JPH0461372B2 (en)
JPH06110741A (en) Computer device
EP3136245B1 (en) Computer
US20070150528A1 (en) Memory device and information processing apparatus
JP2735400B2 (en) Asynchronous I / O control method
JPH0337748A (en) External storage accessing system utilizing main storage
JP2615046B2 (en) Record addition processing method
JP2912657B2 (en) File access processor
JPH0520246A (en) Asynchronous i/o dynamic priority changing system
JPS63280356A (en) Buffer management system for virtual disk device
JP2507399B2 (en) Database equipment
JPH01255028A (en) Method for making access to external storage device
JPH01175048A (en) Computer
JP2817911B2 (en) Access control method for keyed files
KR101058059B1 (en) Mounting device of embedded file system and its method
JPS61276040A (en) File access system
JPH069042B2 (en) Sequential access control device for shared storage medium
JPS62241047A (en) Shared control method for input/output buffer by data base control system
JPS62145441A (en) Updating processing system for key-sequenced data set
JPH06208512A (en) Virtual disk device
JPS6124734B2 (en)
JPS6162152A (en) Method for controlling vacant area of storage device
JPH03180944A (en) File control system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991130