JPH0926853A - File partition extension method and device therefor - Google Patents

File partition extension method and device therefor

Info

Publication number
JPH0926853A
JPH0926853A JP7177578A JP17757895A JPH0926853A JP H0926853 A JPH0926853 A JP H0926853A JP 7177578 A JP7177578 A JP 7177578A JP 17757895 A JP17757895 A JP 17757895A JP H0926853 A JPH0926853 A JP H0926853A
Authority
JP
Japan
Prior art keywords
storage device
file
offset
file management
byte
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
JP7177578A
Other languages
Japanese (ja)
Inventor
Toshiyuki Maki
敏行 牧
Hiroe Osaka
弘江 大坂
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7177578A priority Critical patent/JPH0926853A/en
Publication of JPH0926853A publication Critical patent/JPH0926853A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To guarantee interchangeability with an existing program at a binary level by connecting an external memory device to a bus interface device via an input/output bus and employing two offset methods in byte unit and block unit when addressing on the external memory device is performed. SOLUTION: A magnetic disk device 170 is connected to an I/O bus interface 150 via the I/O bus 160. Read/write from memory 110 as a main memory device is performed on the magnetic disk device, and offset to an access point is managed in byte unit and block unit independently. At this time, two offset methods in byte unit and block unit are employed when the addressing on the magnetic disk device 170 is performed. Thereby, the interchangeability with the existing program at the binary level is guaranteed. Concretely, access on the area of the disk device exceeding the maximum address value of a CPU is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はワークステーションやサ
ーバ等の計算機システムに用いられるファイルパーティ
ション拡張方法および装置に関し、特に大容量ディスク
装置におけるファイルパーティションの拡張方法および
ファイルパーティション拡張機能を有する装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file partition expanding method and device used in a computer system such as a workstation and a server, and more particularly to a file partition expanding method and a device having a file partition expanding function in a large capacity disk device.

【0002】[0002]

【従来の技術】近年、ディスク装置やアレイディスク装
置の容量は飛躍的に増加している。これらの二次記憶装
置上にファイルパーティションを構築する場合、その最
大容量については、CPUのアドレッシング幅により制
限されていた。例えば、32ビット計算機システムにお
ける最大アドレス値は4G−1バイト(232−1バイト)
であり、この最大値を超える容量を持つ単一のディスク
装置を接続しても、ファイルパーティションは、この最
大値を超えて構築することができなかった。この問題を
解消するためのソフトウェアからのアプローチとして
は、コンパイラの64ビット化が考えられる。この方法
は、32ビットの汎用レジスタを2個組合せることによ
り、64ビットの整数値を取り扱う。これによりプログ
ラムからは新たに64ビット型の変数値を宣言すること
で264−1バイトまでのアドレッシングが可能になる。
これについては、例えば、GNU C コンパイラが既に
実用化されており、ソースコードが公開されている。こ
の他にも、オペレーティングシステムおよびライブラリ
に新たにインタフェースを用意して、従来のインタフェ
ースと独立させた方法もある。なお、これについては、
例えば、Dave Shaver,Eric Schnoebelen,“An Im
plementationof Large Files for BSD UNI
X”,USENIX Winter ConferenceProceedings,
pp.61-68,Winter 1992に示されている。
2. Description of the Related Art In recent years, the capacities of disk devices and array disk devices have increased dramatically. When a file partition is constructed on these secondary storage devices, the maximum capacity thereof is limited by the addressing width of the CPU. For example, the maximum address value in a 32-bit computer system is 4G-1 bytes (2 32 -1 bytes)
Even if a single disk device having a capacity exceeding this maximum value was connected, the file partition could not be constructed exceeding this maximum value. As a software approach to solve this problem, it is conceivable to use a 64-bit compiler. This method handles 64-bit integer values by combining two 32-bit general registers. As a result, a new 64-bit variable value is declared from the program, and addressing up to 2 64 -1 bytes becomes possible.
Regarding this, for example, the GNU C compiler has already been put to practical use, and the source code has been released. In addition to this, there is also a method in which a new interface is prepared for the operating system and the library to make it independent from the conventional interface. Please note that
For example, Dave Shaver, Eric Schnoebelen, “An Im
plementation of Large Files for BSD UNI
X ”, USENIX Winter ConferenceProceedings,
pp. 61-68, Winter 1992.

【0003】[0003]

【発明が解決しようとする課題】上述の如く、コンパイ
ラを用いれば、264−1バイトまでの大きさのファイル
パーティションを容易に構築することができる。しかし
ながら、この方式では、コンパイラを変更するために、
既存プログラムとのバイナリレベルでの互換性を失うと
いう問題があり、ライブラリを用意して互換性を維持す
る必要がある。本発明は上記事情に鑑みてなされたもの
で、その目的とするところは、従来の技術における上述
の如き問題を解消し、既存のプログラムとのバイナリレ
ベルでの互換を保証し、更に、ライブラリを変更するこ
となく、最少限の変更によりアドレッシングの範囲を拡
げることが可能なインタフェースをオペレーティングシ
ステムに追加するだけで実現可能な、ファイルパーティ
ション拡張方法および装置を提供することにある。
As described above, if a compiler is used, a file partition with a size of up to 2 64 -1 bytes can be easily constructed. However, in this method, to change the compiler,
There is a problem of losing compatibility with existing programs at the binary level, and it is necessary to prepare a library to maintain compatibility. The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-mentioned problems in the conventional technique, guarantee compatibility with an existing program at a binary level, and further It is an object of the present invention to provide a file partition expansion method and device which can be realized by adding an interface capable of expanding the addressing range with a minimum change without changing the operating system.

【0004】[0004]

【課題を解決するための手段】本発明の上記目的は、C
PU,主記憶装置および少なくとも一つのバスインタフ
ェース装置を備え、該バスインタフェース装置には入出
力バスを介して外部記憶装置が接続され、該外部記憶装
置に対して、前記主記憶装置から書き込みまたは読み出
しを行う計算機システムにおいて、前記外部記憶装置へ
のアドレッシングの際にバイト単位とブロック単位の両
オフセット方法をとることを特徴とするファイルパーテ
ィション拡張方法、または、CPU,主記憶装置および
少なくとも一つのバスインタフェース装置を備え、該バ
スインタフェース装置には入出力バスを介して外部記憶
装置が接続され、該外部記憶装置に対して、前記主記憶
装置から書き込みまたは読み出しを行う計算機システム
において、操作対象のデバイス名称とアクセスポイント
へのオフセット値を得て、前記外部記憶装置への書き込
みまたは読み出しを行うアクセス制御手段と、前記アク
セスポイントへのオフセットをバイト単位とブロック単
位で独立して管理するファイル管理手段とを有し、前記
外部記憶装置上の任意のアクセスポイントへアクセスす
る際に、前記ファイル管理手段を参照することを特徴と
するファイルパーティション拡張装置によって達成され
る。より具体的には、ファイルパーティション全体をア
ドレッシングするためのseekステップに、従来のバ
イト単位でのオフセット指定方法に加え、新規にブロッ
ク単位でのオフセット指定方法を追加する。seekス
テップの引数には、バイト指定に加えて、ブロック指定
ができるモードを追加し、ブロック単位でアクセスする
ことでブロックサイズ×(4G−1)バイトまでファイル
パーティションを拡張する。また、ファイル操作のイン
タフェースを変えないため、既存プログラムはバイト単
位でのオフセット方法と解釈し、従来同様に4Gバイト
以内でアドレッシングを行う。これらを実現するため
に、プログラムからのオフセット指定方法を解釈し、デ
ィスク装置上のファイルパーティションをアクセスする
ために必要な情報を管理するアクセス制御手段、お京
び、各オフセット指定方法により指定されたオフセット
値を管理するファイル管理手段を設けるものである。
SUMMARY OF THE INVENTION The object of the present invention is to provide C
A PU, a main storage device, and at least one bus interface device, and an external storage device is connected to the bus interface device via an input / output bus, and the main storage device writes to or reads from the external storage device. In the computer system for performing the above, a file partition expansion method characterized by using both byte unit and block unit offset methods when addressing to the external storage device, or a CPU, a main storage device and at least one bus interface In the computer system that includes a device, an external storage device is connected to the bus interface device via an input / output bus, and the external storage device writes to or reads from the main storage device, the device name of the operation target And offset value to access point The external storage device has access control means for writing or reading data to or from the external storage device, and file management means for independently managing the offset to the access point in byte units or block units. This is achieved by a file partition expansion device characterized by referring to the file management means when accessing any of the access points. More specifically, in the seek step for addressing the entire file partition, in addition to the conventional offset designation method in units of bytes, a new offset designation method in units of blocks is added. In addition to byte designation, a mode that allows block designation is added to the argument of the seek step, and the file partition is extended to block size × (4G−1) bytes by accessing in block units. Further, since the file operation interface is not changed, the existing program interprets it as a byte-by-byte offset method, and performs addressing within 4 GB as in the conventional case. In order to realize these, the access control means that interprets the offset specification method from the program and manages the information necessary to access the file partition on the disk device, is specified by each offset specification method. A file management means for managing the offset value is provided.

【0005】[0005]

【作用】本発明に係るファイルパーティション拡張方法
においては、指定された操作対象のデバイス名称からフ
ァイル管理手段を得る。更に、希望するアクセスポイン
トへのオフセット値をブロック単位とバイト単位で得
て、ファイル管理手段が管理する。アクセス制御手段は
ファイル管理手段から、この他にファイルの属性情報や
I/O操作に必要な情報を得て、これによりディスク装
置上のファイルパーティションを拡張することができ
る。
In the file partition expansion method according to the present invention, the file management means is obtained from the designated device name of the operation target. Furthermore, the offset value to the desired access point is obtained in block units and byte units, and is managed by the file management means. The access control means can obtain the attribute information of the file and the information necessary for the I / O operation from the file management means, and can expand the file partition on the disk device by this.

【0006】[0006]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明の一実施例に係るファイル
パーティション拡張方法を行うためのシステム構成例で
ある。本実施例に係るシステムは、共通なデータバスに
接続されたCPU100,メモリ110,CRTディス
プレイ120,キーボード130,ネットワークインタ
フェース140およびI/Oバスインタフェース150
から構成されている。I/Oバスインタフェース150
には、I/Oバス160を介して磁気ディスク装置17
0が接続されている。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is an example of a system configuration for performing a file partition expansion method according to an embodiment of the present invention. The system according to the present embodiment has a CPU 100, a memory 110, a CRT display 120, a keyboard 130, a network interface 140 and an I / O bus interface 150 which are connected to a common data bus.
It is composed of I / O bus interface 150
To the magnetic disk device 17 via the I / O bus 160.
0 is connected.

【0007】ネットワークインタフェース140はネッ
トワーク(LAN)180に接続されており、該ネットワ
ーク180に接続された遠隔地のワークステーション
(WS)190等からのリモートアクセスを可能としてい
る。アクセス制御プログラム200は、計算機システム
のメモリ110に常駐するプログラムである。ファイル
管理手段として、ファイル管理テーブル210をメモリ
に保持する。アクセス制御プログラム200は、ファイ
ルパーティションをアクセスする際に、上述のファイル
管理テーブル210を参照して制御を行う。ファイル管
理テーブル210の具体的な構成およびファイルパーテ
ィションへのアクセスの手順を、以下に説明する。
The network interface 140 is connected to a network (LAN) 180, and a remote workstation connected to the network 180.
(WS) 190 and other remote access is possible. The access control program 200 is a program resident in the memory 110 of the computer system. The file management table 210 is held in the memory as a file management means. The access control program 200 refers to the above-mentioned file management table 210 to perform control when accessing a file partition. The specific configuration of the file management table 210 and the procedure for accessing the file partition will be described below.

【0008】図2は、上述のファイル管理テーブル21
0の構成例を示す図である。ファイル管理テーブル21
0は、ファイル属性領域とI/O管理領域とから成る。
ファイル属性領域は、ファイルに対するオフセット開始
位置やオフセットサイズの単位を示すための情報を格納
するアクセスタイプエントリ300,read/wri
teフラグ310,デバイス名称320の各エントリか
ら成る。I/O管理領域は、メモリアドレス330,転
送バイト数340,ブロックオフセット領域350,バ
イトオフセット領域360の各エントリから成る。な
お、ブロックオフセット領域350には、ブロック単位
でのオフセット値が格納され、バイトオフセット領域3
60にはバイト単位でのオフセット値が格納される。
FIG. 2 shows the above-mentioned file management table 21.
FIG. 9 is a diagram illustrating a configuration example of a zero. File management table 21
0 consists of a file attribute area and an I / O management area.
The file attribute area is an access type entry 300 for storing information indicating a unit of offset start position and offset size for a file, read / write.
The te flag 310 and the device name 320 are included. The I / O management area consists of memory address 330, transfer byte count 340, block offset area 350, and byte offset area 360. The block offset area 350 stores an offset value for each block, and the byte offset area 3
An offset value in bytes is stored in 60.

【0009】図3は、本実施例に係るシステムにより、
ファイルパーティションをアクセスする場合の全体フロ
ーである。各ステップは、ユーザからのコマンドあるい
はプログラムからの関数コールに相当する。各ステップ
がコールされると、メモリに常駐するアクセス制御プロ
グラム200が起動され、制御フローを実行する。(1)
のopenステップ(詳細については、図4参照)では、
ファイルパーティションを構築するデバイスに対してフ
ァイル管理テーブルおよびファイル記述子を割当てる。
(2)のseekステップ(詳細については、図5参照)で
は、ファイルパーティションへのオフセットの指定を行
う。(3)のreadステップ(詳細については、図6参
照)では、ファイルパーティションからのデータの読み
出しを行う。
FIG. 3 shows the system according to this embodiment.
This is the overall flow when accessing a file partition. Each step corresponds to a command from the user or a function call from the program. When each step is called, the access control program 200 resident in the memory is activated to execute the control flow. (1)
Open step (see Figure 4 for details)
Allocate file management tables and file descriptors to the devices that make up the file partition.
In the seek step (2) (see FIG. 5 for details), the offset to the file partition is designated. In the read step (3) (see FIG. 6 for details), data is read from the file partition.

【0010】同じく(3)のwriteステップ(詳細に
ついては、図7参照)では、ファイルパーティションへ
のデータの書き込みを行う。(4)のcloseステップ
(詳細については、図8参照)では、デバイスのクローズ
処理すなわちファイル記述子の解放を行う。各ステップ
の詳細なフローを、以下に説明する。図4は、open
ステップの制御フローである。ステップ41では、ファ
イル管理テーブルを割当てる。ステップ42では、ファ
イルをオープンし、ファイル記述子(「fd」という)を割
当てる。ステップ43では、ファイル属性情報をファイ
ル管理テーブルに登録する。ステップ44では、fdを
戻り値として返す。
Similarly, in the write step (3) (see FIG. 7 for details), data is written in the file partition. (4) close step
In the details (see FIG. 8), the device closing process, that is, the file descriptor is released. The detailed flow of each step will be described below. Figure 4 is open
It is a control flow of a step. In step 41, a file management table is allocated. In step 42, the file is opened and a file descriptor (referred to as "fd") is allocated. In step 43, the file attribute information is registered in the file management table. In step 44, fd is returned as a return value.

【0011】図5は、seekステップの制御フローで
ある。ステップ51では、引数であるファイル記述子
(fd)からファイル管理テーブルを得る。ステップ52
では、引数であるモードフラグから、ブロックモード指
定か否かを判定する。ブロック単位でのオフセット指定
であればステップ53へ、バイト単位でのオフセット指
定であればステップ54へ進む。ステップ53では、フ
ァイル管理テーブルのブロック単位でのオフセットエン
トリにオフセット値を登録し、ステップ56へ進む。ス
テップ54では、バイト単位のオフセット値をブロック
単位に変換し、ファイル管理テーブルのブロック単位で
のオフセットエントリに登録する。ステップ55では、
ステップ54での変換を行った後、端数がある場合に、
ファイル管理テーブルのバイト単位でのオフセットエン
トリに端数分のバイト値を登録する。
FIG. 5 is a control flow of the seek step. In step 51, the file descriptor that is an argument
The file management table is obtained from (fd). Step 52
Then, it is determined from the mode flag which is an argument whether the block mode is designated. If the offset is designated in block units, the process proceeds to step 53. If the offset is designated in byte units, the process proceeds to step 54. In step 53, the offset value is registered in the offset entry for each block of the file management table, and the process proceeds to step 56. In step 54, the offset value in bytes is converted into blocks and registered in the offset entry in blocks of the file management table. In step 55,
After the conversion in step 54, if there is a fraction,
Register the fractional byte value in the byte offset entry of the file management table.

【0012】ステップ56では、ブロック単位でのオフ
セット指定であればブロック単位でのオフセット値を、
また、バイト単位でのオフセット指定であればバイト単
位でのオフセット値を、戻り値として返す。次に、図6
は、readステップの制御フローである。ステップ6
1では、引数であるファイル記述子(fd)からファイル
管理テーブルを得る。ステップ62では、引数である読
み込み先アドレス,読み込むバイト数をファイル管理テ
ーブルに登録する。ステップ63では、ファイル管理テ
ーブルに書かれたブロック単位でのオフセット値とバイ
ト単位でのオフセット値から、読み込むディスクの論理
ブロック番号を得る。ステップ64では、上述の論理ブ
ロック番号から、データブロックをリードする。
In step 56, if the offset is designated in block units, the offset value in block units is
If the offset is specified in bytes, the offset value in bytes is returned as a return value. Next, FIG.
Is a control flow of the read step. Step 6
In 1, the file management table is obtained from the file descriptor (fd) that is an argument. In step 62, the read destination address and the number of bytes to be read, which are arguments, are registered in the file management table. In step 63, the logical block number of the disk to be read is obtained from the offset value in block units and the offset value in byte units written in the file management table. In step 64, the data block is read from the above logical block number.

【0013】ステップ65では、読み込んだバイト数を
ファイル管理テーブルのバイト単位のオフセットエント
リに加算する。ステップ66では、ファイル管理テーブ
ルのバイト単位オフセット値をブロック単位に変換した
後、ブロック単位オフセット値に加算し、余りをバイト
単位オフセットエントリに登録する。ステップ67で
は、読み込むべきデータブロックをすべて読み込んだか
どうか判定する。まだ読み込むべきデータブロックがあ
れば、ステップ63に戻って処理を繰り返す。次に、図
7は、writeステップの制御フローである。ステッ
プ71では、引数であるファイル記述子(fd)からファ
イル管理テーブルを得る。
In step 65, the number of bytes read is added to the offset entry in byte units of the file management table. In step 66, after converting the byte unit offset value of the file management table into block units, it is added to the block unit offset value, and the remainder is registered in the byte unit offset entry. In step 67, it is determined whether all the data blocks to be read have been read. If there is a data block to be read, the process returns to step 63 and the process is repeated. Next, FIG. 7 is a control flow of the write step. In step 71, a file management table is obtained from the file descriptor (fd) which is an argument.

【0014】ステップ72では、引数である書き込むデ
ータのアドレス,書き込むバイト数をファイル管理テー
ブルに登録する。ステップ73では、ファイル管理テー
ブルに書かれたブロック単位でのオフセット値とバイト
単位でのオフセット値から、書き込み先ディスクの論理
ブロック番号を得る。ステップ74では、論理ブロック
番号にデータブロックをライトする。ステップ75で
は、書き込んだバイト数をファイル管理テーブルのバイ
ト単位のオフセットエントリに加算する。ステップ76
では、ファイル管理テーブルのバイト単位オフセット値
をブロック単位に変換した後、ブロック単位オフセット
値に加算し、余りをバイト単位オフセットエントリに登
録する。ステップ77では、書き込むべきデータブロッ
クを全て書き込んだかどうか判定する。まだ書き込むべ
きデータブロックがあれば、ステップ73に戻って処理
を繰り返す。
In step 72, the address of the data to be written and the number of bytes to be written, which are arguments, are registered in the file management table. In step 73, the logical block number of the write destination disk is obtained from the offset value in block units and the offset value in byte units written in the file management table. In step 74, the data block is written to the logical block number. In step 75, the number of written bytes is added to the offset entry in byte unit of the file management table. Step 76
Then, after converting the byte unit offset value of the file management table into block units, it is added to the block unit offset value, and the remainder is registered in the byte unit offset entry. In step 77, it is determined whether all the data blocks to be written have been written. If there is a data block to be written, the process returns to step 73 and the process is repeated.

【0015】図8は、closeステップの制御フロー
である。ステップ81では、引数であるファイル記述子
(fd)のファイルをクローズする。ステップ82では、
ファイル管理テーブルを解放する。次に、具体的なプロ
グラムの一例に基づいて、ファイル管理テーブル210
の変化およびファイルパーテション上のオフセットポイ
ンタの指す位置の変化について、図9,図10を用いて
説明する。図9で示した例では、ブロックオフセットの
単位を1Kバイトとしている。ブロックオフセットの単
位は固定値であれば、他のサイズであっても構わない。
まず、はじめに、 (1)openステップで、ファイル管理テーブルを1個
割当てる。なお、この時点では、ファイル管理テーブル
のブロック/バイトの各オフセットエントリには、’
0’が書かれている。
FIG. 8 is a control flow of the close step. In step 81, the file descriptor that is an argument
Close the file (fd). In step 82,
Release the file management table. Next, based on an example of a specific program, the file management table 210
And changes in the position pointed to by the offset pointer on the file partition will be described with reference to FIGS. In the example shown in FIG. 9, the unit of block offset is 1 Kbyte. The block offset unit may be any other size as long as it is a fixed value.
First, in the (1) open step, one file management table is allocated. At this point, each block / byte offset entry in the file management table contains'
0'is written.

【0016】(2)次に、seekステップにより、希望
する位置へオフセットポインタを移動させる。ここで
は、ブロック単位のオフセット指定方法により、先頭か
ら5000000ブロック(1K×5000000=5Gバイト)の位置
に、オフセットポインタを移動させている。この時点で
のファイル管理テーブルには、ブロックオフセットエン
トリに’5000000’が登録される。 (3)更に、seekステップにより、現在位置からバイ
トオフセット指定で500バイト目に、オフセットポイ
ンタを移動させている。この時点でファイル管理テーブ
ルのブロックオフセットエントリには’5000000’,バイ
トオフセットエントリには’500’が登録される。 (4)ここで、readステップを実行することにより、
(5G+500)バイトの位置から1200バイトのデー
タを読み込むことになる。読み込みが終了した時点でフ
ァイル管理テーブルの各オフセットエントリは更新さ
れ、ブロックオフセットエントリに’5000000’、バイ
トオフセットエントリに’1700’が登録される。
(2) Next, in the seek step, the offset pointer is moved to the desired position. Here, the offset pointer is moved to the position of 5000000 blocks (1K × 5000000 = 5 Gbytes) from the beginning by the offset designation method in block units. At this point, "5000000" is registered in the block offset entry in the file management table. (3) Further, in the seek step, the offset pointer is moved from the current position to the 500th byte by specifying the byte offset. At this point, '5000000' is registered in the block offset entry and '500' is registered in the byte offset entry of the file management table. (4) Here, by executing the read step,
1200 bytes of data will be read from the position of (5G + 500) bytes. When the reading is completed, each offset entry of the file management table is updated, and "5000000" is registered in the block offset entry and "1700" is registered in the byte offset entry.

【0017】(5)ファイル記述子(fd)を引数としてc
loseステップを実行することにより、ファイル管理
テーブルの各オフセットエントリはクリアされ、ファイ
ル管理テーブルは解放される。 上記実施例によれば、ファイル管理テーブルに登録した
ブロック単位とバイト単位のオフセット値により、ユー
ザは、4Gバイト以上のオフセットにアクセスできるよ
うになるという効果が得られる。更に、ファイル操作の
インタフェースが従来と同様であるため、ブロック単位
とバイト単位の2段階のオフセット方法に置き換えて
も、アプリケーションプログラムの修正は最少限で利用
することができるいう効果も得られる。なお、既存のア
プリケーションプログラムはバイナリで従来と同様のア
ドレッシング範囲で動作させることができる。なお、上
記実施例は本発明の一例を示したものであり、本発明は
これに限定されるべきものではないことは言うまでもな
いことである。
(5) c with the file descriptor (fd) as an argument
By executing the lose step, each offset entry of the file management table is cleared and the file management table is released. According to the above-described embodiment, it is possible to obtain the effect that the user can access the offset of 4 Gbytes or more by the offset value of the block unit and the byte unit registered in the file management table. Further, since the file operation interface is the same as the conventional one, even if the offset method of two steps of block unit and byte unit is replaced, the effect that the modification of the application program can be used with a minimum is obtained. The existing application program is binary and can be operated in the same addressing range as the conventional one. It should be noted that the above embodiment is an example of the present invention, and it is needless to say that the present invention is not limited to this.

【0018】[0018]

【発明の効果】以上、詳細に説明した如く、本発明によ
れば、既存のプログラムとのバイナリレベルでの互換を
保証し、更に、ライブラリを変更することなく、最少限
の変更によりアドレッシングの範囲を拡げることが可能
なインタフェースをオペレーティングシステムに追加す
るだけで実現可能な、ファイルパーティション拡張方法
および装置を実現できるという顕著な効果を奏するもの
である。より具体的に述べれば、計算機システムに接続
された単一ディスク装置において、ファイル管理テーブ
ルに登録したブロック単位とバイト単位の両オフセット
指定方法をとることで、CPUにおける最大アドレス値
を超える領域へのアクセスを実現することができる。し
かも、ユーザは、ファイル操作のインタフェースが従来
と同様であるために、アプリケーションプログラムを修
正なしで利用することができるという効果も得られる。
As described above in detail, according to the present invention, compatibility with an existing program at the binary level is guaranteed, and the addressing range can be minimized without changing the library. It is possible to realize a file partition expanding method and device which can be realized only by adding an interface capable of expanding the file system to the operating system. More specifically, in the single disk device connected to the computer system, by adopting both the block unit and the byte unit offset designation method registered in the file management table, the area exceeding the maximum address value in the CPU can be stored. Access can be realized. Moreover, the user can use the application program without modification because the file operation interface is the same as the conventional one.

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

【図1】本発明の一実施例に係るファイルパーティショ
ン拡張方法を行うためのシステム構成例である。
FIG. 1 is a system configuration example for performing a file partition expansion method according to an embodiment of the present invention.

【図2】実施例に係る、ファイル管理テーブル210の
構成例を示す図である。
FIG. 2 is a diagram showing a configuration example of a file management table 210 according to the embodiment.

【図3】実施例に係る、ファイルパーティションアクセ
スの全体フロー図である。
FIG. 3 is an overall flowchart of file partition access according to an embodiment.

【図4】実施例に係る、openステップの制御フロー
図である。
FIG. 4 is a control flow diagram of an open step according to the embodiment.

【図5】実施例に係る、seekステップの制御フロー
図である。
FIG. 5 is a control flow chart of a seek step according to the embodiment.

【図6】実施例に係る、readステップの制御フロー
図である。
FIG. 6 is a control flow diagram of a read step according to the embodiment.

【図7】実施例に係る、writeステップの制御フロ
ー図である。
FIG. 7 is a control flow diagram of a write step according to the embodiment.

【図8】実施例に係る、closeステップの制御フロ
ー図である。
FIG. 8 is a control flow chart of a close step according to the embodiment.

【図9】ファイル管理テーブルの変化(その1)を示す図
である。
FIG. 9 is a diagram showing a change (part 1) in the file management table.

【図10】ファイル管理テーブルの変化(その2)を示す
図である。
FIG. 10 is a diagram showing a change (2) in the file management table.

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

100 CPU 110 メモリ 120 CRTディスプレイ 130 キーボード 140 ネットワークインタフェース 150 I/Oバスインタフェース 160 I/Oバス 170 磁気ディスク装置 180 ネットワーク 190 ワークステーション 200 アクセス制御プログラム 210 ファイル管理テーブル 300 アクセスタイプ 310 read/writeフラグ 320 デバイス名称 330 メモリアドレス 340 転送バイト数 350 ブロックオフセット領域 360 バイトオフセット領域 100 CPU 110 Memory 120 CRT Display 130 Keyboard 140 Network Interface 150 I / O Bus Interface 160 I / O Bus 170 Magnetic Disk Unit 180 Network 190 Workstation 200 Access Control Program 210 File Management Table 300 Access Type 310 read / write Flag 320 Device Name 330 Memory address 340 Number of transfer bytes 350 Block offset area 360 byte offset area

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 CPU,主記憶装置および少なくとも一
つのバスインタフェース装置を備え、該バスインタフェ
ース装置には入出力バスを介して外部記憶装置が接続さ
れ、該外部記憶装置に対して、前記主記憶装置から書き
込みまたは読み出しを行う計算機システムにおいて、 前記外部記憶装置へのアドレッシングの際にバイト単位
とブロック単位の両オフセット方法をとることを特徴と
するファイルパーティション拡張方法。
1. A CPU, a main storage device, and at least one bus interface device, an external storage device is connected to the bus interface device via an input / output bus, and the main storage device is connected to the external storage device. A method for expanding a file partition, characterized in that in a computer system for writing or reading from a device, both a byte unit and a block unit offset method are used when addressing to the external storage device.
【請求項2】 CPU,主記憶装置および少なくとも一
つのバスインタフェース装置を備え、該バスインタフェ
ース装置には入出力バスを介して外部記憶装置が接続さ
れ、該外部記憶装置に対して、前記主記憶装置から書き
込みまたは読み出しを行う計算機システムにおいて、 操作対象のデバイス名称とアクセスポイントへのオフセ
ット値を得て、前記外部記憶装置への書き込みまたは読
み出しを行うアクセス制御手段と、前記アクセスポイン
トへのオフセットをバイト単位とブロック単位で独立し
て管理するファイル管理手段とを有し、前記外部記憶装
置上の任意のアクセスポイントへアクセスする際に、前
記ファイル管理手段を参照することを特徴とするファイ
ルパーティション拡張装置。
2. A CPU, a main storage device and at least one bus interface device, an external storage device is connected to the bus interface device via an input / output bus, and the main storage device is connected to the external storage device. In a computer system that writes or reads data from a device, an access control unit that obtains the device name of the operation target and an offset value to the access point, writes or reads the external storage device, and an offset to the access point A file partition extension characterized by having a file management means for independently managing in byte units and block units, and referring to the file management means when accessing an arbitrary access point on the external storage device. apparatus.
【請求項3】 前記アクセス制御手段が、前記主記憶装
置に格納されたアクセス制御プログラムであることを特
徴とする請求項2記載のファイルパーティション拡張装
置。
3. The file partition expansion device according to claim 2, wherein the access control means is an access control program stored in the main storage device.
【請求項4】 前記ファイル管理手段を複数持つことに
より、複数のアプリケーションプログラムから独立して
並列に動作可能に構成したことを特徴とする請求項2記
載のファイルパーティション拡張装置。
4. The file partition expansion device according to claim 2, wherein a plurality of said file management means are provided so that they can be operated in parallel independently of a plurality of application programs.
【請求項5】 前記ファイル管理手段が、前記主記憶装
置に格納されたファイル管理テーブルであることを特徴
とする請求項2記載のファイルパーティション拡張装
置。
5. The file partition expansion device according to claim 2, wherein the file management means is a file management table stored in the main storage device.
JP7177578A 1995-07-13 1995-07-13 File partition extension method and device therefor Pending JPH0926853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7177578A JPH0926853A (en) 1995-07-13 1995-07-13 File partition extension method and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7177578A JPH0926853A (en) 1995-07-13 1995-07-13 File partition extension method and device therefor

Publications (1)

Publication Number Publication Date
JPH0926853A true JPH0926853A (en) 1997-01-28

Family

ID=16033428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7177578A Pending JPH0926853A (en) 1995-07-13 1995-07-13 File partition extension method and device therefor

Country Status (1)

Country Link
JP (1) JPH0926853A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013534680A (en) * 2010-07-15 2013-09-05 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド System and method for accessing PCI Express compatible device resources

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013534680A (en) * 2010-07-15 2013-09-05 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド System and method for accessing PCI Express compatible device resources

Similar Documents

Publication Publication Date Title
US5715455A (en) Apparatus and method for storing file allocation table efficiently in memory
US5652887A (en) Dynamic Meta commands for peripheral devices
US6041391A (en) Storage device and method for data sharing
US20020166022A1 (en) Access control method, access control apparatus, and computer-readable memory storing access control program
US20020065810A1 (en) File system translators and methods for implementing the same
JPS61190638A (en) File control system for virtual computer
KR20010041805A (en) Disturbance free update of data
JPH04275684A (en) Graphic information data base constructing emthod and device applying the method
JPH1069408A (en) Data storage method and device at file system level utilizing hole
US7376758B2 (en) I/O dependency graphs
CN110457261A (en) Data access method, device and server
JP3488500B2 (en) Distributed file system
US8589454B2 (en) Computer data file merging based on file metadata
US5519860A (en) Central processor index sort followed by direct record sort and write by an intelligent control unit
CN108334453B (en) File debugging method and device, terminal equipment and storage medium
JPH0926853A (en) File partition extension method and device therefor
JPS6237417B2 (en)
JPH09258908A (en) Computer system
CN112035380A (en) Data processing method, device and equipment and readable storage medium
US7382970B2 (en) Process control manager for audio/video file system
US6804754B1 (en) Space management in compressed main memory
JPH06110766A (en) Directory constitution method and computer system for sharing stored file system
KR101065114B1 (en) Accessing device driver memory in programming language representation
JPH08272815A (en) Object-oriented data base system and processing method therefor
JP3925461B2 (en) Computer system