JPH03225412A - File data read system - Google Patents

File data read system

Info

Publication number
JPH03225412A
JPH03225412A JP2021345A JP2134590A JPH03225412A JP H03225412 A JPH03225412 A JP H03225412A JP 2021345 A JP2021345 A JP 2021345A JP 2134590 A JP2134590 A JP 2134590A JP H03225412 A JPH03225412 A JP H03225412A
Authority
JP
Japan
Prior art keywords
file
data
storage
file data
storage location
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
JP2021345A
Other languages
Japanese (ja)
Inventor
Seiichiro Naka
誠一郎 中
Kazunori Hoshi
星 和典
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.)
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Tohoku 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 TOHOKU NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Tohoku Ltd filed Critical TOHOKU NIPPON DENKI SOFTWARE KK
Priority to JP2021345A priority Critical patent/JPH03225412A/en
Publication of JPH03225412A publication Critical patent/JPH03225412A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the read processing speed by retrieving storage locations with a filing system consisting of plural storage devices without using the volume indexes of the storage devices. CONSTITUTION:A data position setting means 23 retrieves a filing system detail information control table 21 and a 1st retrieval key at this time is a partition ID and retrieval is performed with a next file name. The presence of file data on a data storage position control file 22 indicating the leading storage position is recorded as an address pointer in the table 21, so a target storage position record is accessed by using the pointer to extract from which block number in which storage device the file data of a file 'F' are stored. Then a data read means 24 reads the target file data out of storage positions of a specified storage devices 11-13 based on the information from the data position setting means 23. Consequently, the processing speed is improved on the whole.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイルデータ読込み方式に関し、特に複数の
記憶装置を補助記憶資源として使用するコンピュータの
ファイルシステムにおけるファイルデータ読込み方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file data reading method, and more particularly to a file data reading method in a computer file system that uses a plurality of storage devices as auxiliary storage resources.

〔従来の技術〕[Conventional technology]

従来、複数の記憶装置から構成されたファイルシステム
において、ファイルがらファイルデータの読込みを行う
場合、まず、各記憶装置内に設けられそれぞれ自装置内
に格納されているファイルデータの格納情報を記録した
ボリューム目録を検索し、その検索結果から目的とする
ファイルデータの格納位置を求め、その位置からファイ
ルデータを読み込んでいた。すなわち、原則として複数
の記憶装置に対する検索処理が行われていた。
Conventionally, when reading file data from file to file in a file system composed of multiple storage devices, first, the storage information of the file data provided in each storage device and stored in its own device is recorded. The volume catalog was searched, the storage location of the target file data was determined from the search results, and the file data was read from that location. That is, in principle, search processing is performed on a plurality of storage devices.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のファイルデータ読込み方式においては、
目的とするファイルデータの位置を特定するため、ファ
イルシステムに属する一つのファイルが複数の記憶装置
に割り付けられている場合はもちろん、一つの記憶装置
のみに含まれている場合でも、原則的に複数の記憶装置
に対して検索のための読込み処理が繰り返されるので、
全体の読込み処理速度が低下するという欠点がある。
In the conventional file data reading method described above,
In order to identify the location of the target file data, in principle, it is possible to locate multiple files, not only when a file belonging to a file system is allocated to multiple storage devices, but also when it is contained in only one storage device. Since the read process for searching is repeated for the storage device,
This has the disadvantage that the overall reading processing speed decreases.

本発明の目的は、上述した欠点を解決し、読込み速度の
速いファイルデータ読込み方式を提供することである。
An object of the present invention is to solve the above-mentioned drawbacks and provide a file data reading method with high reading speed.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のファイルデータ読込み方式は、複数の記憶装置
で構成されるファイルシステムのファイルデータ読込み
方式において、(a)ファイルデータのブロック単位の
格納位置を記憶装置の装置番号とその記憶装置内のシリ
ンダ番号およびブロック番号とで表した格納位置レコー
ドを各ファイル単位でまとめて格納順に記録したデータ
格納位置管理ファイル、(b)各ファイルのファイル名
と、そのファイルが属するファイルシステムの謂別名と
、そのファイルのファイルデータの先頭格納位置に対応
する前記格納位置レコードの前記データ格納位置管理フ
ァイル上の位置を示すポインタとを含むファイル管理情
報を記録したファイルシステム詳細管理テーブル、(c
)前記ファイルシステム詳細管理テーブルと前記データ
格納位置管理ファイルとから各ファイルデータの格納位
置を抽出するデータ位置設定手段、(d)前記データ位
置設定手段からの情報に基づいて実際のファイルデータ
を読み込むデータ読込み手段を有する。
The file data reading method of the present invention is a file data reading method for a file system composed of a plurality of storage devices. A data storage location management file in which storage location records expressed by number and block number are collectively recorded for each file in the storage order; (b) the file name of each file, the so-called alias of the file system to which the file belongs, and its a file system detailed management table (c
) data position setting means for extracting the storage position of each file data from the file system detailed management table and the data storage position management file; (d) reading actual file data based on information from the data position setting means; It has data reading means.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のシステム構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention.

第1図に示したシステムは、3種類の記憶装置11.1
2.13を有する記憶装置部1と、これらの記憶装置を
制御するファイルシステム制御部2とから成り、ユーザ
プログラム3からの入出力要求を処理する。ファイルシ
ステム制御部2は、各ファイルのファイル管理情報を記
録したファイルシステム詳細情報管理テーブル21と、
実際のファイルデータのブロック単位の格納位置を記録
したデータ格納位置管理ファイル22と、ファイルシス
テム詳細情報管理テーブル21とデータ格納位置管理フ
ァイル22とから目的とするファイルデータの格納位置
を抽出するデータ位置設定手段23と、データ位置設定
手段23から指示された記憶装置の格納位置から実際の
ファイルデータを読み込むデータ読込み手段24とを含
み、更にユーザプログラム3からの入出力要求を分離す
る入出力制御部25と、データ書込みを制御し実行する
データ書込み制御部26を備えて構成されている。
The system shown in FIG. 1 includes three types of storage devices 11.1.
2.13, and a file system control section 2 that controls these storage devices, and processes input/output requests from the user program 3. The file system control unit 2 includes a file system detailed information management table 21 in which file management information of each file is recorded;
A data location where the storage location of the target file data is extracted from the data storage location management file 22 that records the storage location of actual file data in blocks, the file system detailed information management table 21, and the data storage location management file 22. an input/output control section that includes a setting means 23 and a data reading means 24 that reads actual file data from the storage location of the storage device instructed by the data position setting means 23, and further separates input/output requests from the user program 3; 25, and a data write control section 26 that controls and executes data writing.

第2図はファイルシステム詳細情報管理テーブル21の
構成例を示すフォーマット図で、ユーザプログラムの要
求する処理速度に適合するよう、一つのファイルを複数
の記憶装置上に最適に割り付けた仮想パーティション制
御方式の例を示している。複数の記憶装置にまたがって
設定したパーティションと呼ばれる領域およびそこに構
成されるファイルシステムを識別するための識別名であ
るパーティションID及びファイルシステムIDに対し
て、このファイルシステムに属する各ファイルのファイ
ル名およびファイルデータの先頭格納位置を示す格納位
置レコードが格納されているデータ格納位置管理ファイ
ル22上のアドレスを示すアドレスファイルポインタを
含む個別ファイル管理情報が記録されている。
FIG. 2 is a format diagram showing an example of the configuration of the file system detailed information management table 21, which is a virtual partition control method in which one file is optimally allocated on multiple storage devices to match the processing speed required by the user program. An example is shown. For the partition ID and file system ID, which are identification names for identifying an area called a partition set across multiple storage devices and the file system configured there, the file name of each file belonging to this file system. and individual file management information including an address file pointer indicating the address on the data storage location management file 22 where the storage location record indicating the first storage location of the file data is stored.

第3図はデータ格納位置管理ファイル22の格納位置レ
コードの構成例を示すフォーマット図である。格納位置
レコードは図に示すようなプロッり単位で記憶装置上の
格納位置を示した固定長レコードであるが、各ファイル
について、アドレスファイルポインタが示すデータ格納
位置管理ファイル22のアドレスから、必要な数だけま
とめて格納順に配置されており、ファイルとしては実質
的に可変長レコードである。
FIG. 3 is a format diagram showing an example of the structure of a storage location record of the data storage location management file 22. As shown in FIG. The storage location record is a fixed-length record that indicates the storage location on the storage device in units of plots as shown in the figure. They are arranged in the order in which they are stored, and the file is essentially a variable length record.

次に、ユーザプログラム3から、例えば、パーティショ
ンIDがrVPJでファイル名が「F」のファイルにつ
き、先頭がらXバイトまでの読込みを行う場合の動作を
説明する。ユーザプログラム3からの命令は、入出力制
御部25で入力処理と出力処理とに分けられ、読込み命
令についてはデータ位置設定手段23に制御が移る。
Next, the operation when the user program 3 reads, for example, X bytes from the beginning of a file whose partition ID is rVPJ and whose file name is "F" will be described. Commands from the user program 3 are divided into input processing and output processing by the input/output control section 25, and control of the read command is transferred to the data position setting means 23.

データ位置設定手段23は、まずファイルシステム詳細
情報管理テーブル21を検索する。この際の最初の検索
キーはパーティションID(又はファイルシステムID
)であり、次にファイル名で検索が行われる。ファイル
データ詳細情報管理テーブル21には、第2図に示すよ
うにファイルデータの先頭の格納位置を示す格納位置レ
コードのデータ格納位置管理ファイル22上の所在がア
ドレスファイルポインタとして記録されているので、こ
れを用いて目的とする格納位置レコードにアクセスし、
ファイル「F」のファイルデータがどの記憶装置のどの
ブロック番号から格納されているかを抽出する。
The data location setting means 23 first searches the file system detailed information management table 21. The first search key in this case is the partition ID (or file system ID)
), and then a search is performed by file name. In the file data detailed information management table 21, as shown in FIG. 2, the location of the storage location record indicating the storage location of the beginning of file data in the data storage location management file 22 is recorded as an address file pointer. Use this to access the desired storage location record,
Extract from which block number of which storage device the file data of file "F" is stored.

次いでデータ読込み手段24は、データ位置設定手段2
3からの情報に基づいて、指定された記憶装置の格納位
置から目的のファイルデータを読み込む。
Next, the data reading means 24 reads the data position setting means 2.
Based on the information from step 3, the target file data is read from the specified storage location of the storage device.

もし、ユーザプログラム3が要求しているバイト数Xが
、定められているデータブロックのサイズを超えている
ときは、上述したように各ファイルごとにそのファイル
の格納位置レコードが連続して格納順に記録されている
ので、バイト数Xを満足するブロックの個数分だけ続け
て格納位置レコードを読めばよい。
If the number of bytes requested by the user program Since the data has been recorded, it is only necessary to read the storage position records consecutively for the number of blocks that satisfy the number of bytes X.

又、ファイルの途中からの読込み要求に対しては、読込
みを開始する位置をファイル先頭からのバイト数で指定
し、読み込むサイズを同様にバイト数で指定することに
より、上述した1ブロツク長を超えるファイルデータの
読込みと類似の処理でファイルデータを読み込むことが
できる。
In addition, for requests to read from the middle of a file, by specifying the reading start position in bytes from the beginning of the file and the read size in bytes, the length exceeds the one block length mentioned above. File data can be read using processing similar to reading file data.

上述したように、格納位置を求めるにはファイルシステ
ム詳細情報管理テーブル21とデータ格納位置管理ファ
イル22とを用い、記憶装置へのアクセスはデータの読
込み時のみとなるので、全体としての処理速度が向上す
る。
As mentioned above, the file system detailed information management table 21 and the data storage location management file 22 are used to determine the storage location, and the storage device is accessed only when reading data, so the overall processing speed is reduced. improves.

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

以上詳細に説明したように、本発明は、複数の記憶装置
で構成されるファイルシステムで、格納位置の検索を記
憶装置のボリューム目録を使用せずに行うため、記憶装
置からの読込みは必要とするファイルデータのみでよく
、読込み処理速度が向上する効果がある。
As explained in detail above, the present invention is a file system composed of a plurality of storage devices, and since the storage location is searched without using the volume catalog of the storage device, reading from the storage device is not necessary. Only the file data required is required, which has the effect of improving the reading processing speed.

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

第1図は本発明の一実施例のシステム構成を示すブロッ
ク図、第2図はファイルシステム詳細情報管理テーブル
のフォーマット図、第3図はデータ格納位置管理ファイ
ル中の格納位置レコードのフォーマット図である。 ■・・・・・・記憶装置部、2・・・・−ファイルシス
テム制御部、3・・・・−・ユーザプログラム、11,
12゜13・・・・・・記憶装置、21・・−・・・フ
ァイルデータ詳細情報管理テーブル、22・−・・・・
データ格納位置管理ファイル、23・・・・・・データ
位置設定手段、24・・・・・・データ読込み手段、2
5・・・・−・入出力制御部、26・・・・・・データ
書込み制御部。
Figure 1 is a block diagram showing the system configuration of an embodiment of the present invention, Figure 2 is a format diagram of a file system detailed information management table, and Figure 3 is a format diagram of a storage location record in a data storage location management file. be. ■...Storage unit, 2...-File system control unit, 3...-User program, 11,
12゜13...Storage device, 21...File data detailed information management table, 22...
Data storage position management file, 23... Data position setting means, 24... Data reading means, 2
5...--input/output control section, 26...-data write control section.

Claims (1)

【特許請求の範囲】 複数の記憶装置で構成されるファイルシステムのファイ
ルデータ読込み方式において、 (a)ファイルデータのブロック単位の格納位置を記憶
装置の装置番号とその記憶装置内のシリンダ番号および
ブロック番号とで表した格納位置レコードを各ファイル
単位でまとめて格納順に記録したデータ格納位置管理フ
ァイル、 (b)各ファイルのファイル名と、そのファイルが属す
るファイルシステムの識別名と、そのファイルのファイ
ルデータの先頭格納位置に対応する前記格納位置レコー
ドの前記データ格納位置管理ファイル上の位置を示すポ
インタとを含むファイル管理情報を記録したファイルシ
ステム詳細管理テーブル、 (c)前記ファイルシステム詳細管理テーブルと前記デ
ータ格納位置管理ファイルとから各ファイルデータの格
納位置を抽出するデータ位置設定手段、 (d)前記データ位置設定手段からの情報に基づいて実
際のファイルデータを読み込むデータ読込み手段、 を備えたことを特徴とするファイルデータ読込み方式。
[Claims] In a file data reading method for a file system configured with a plurality of storage devices, (a) the storage position of file data in blocks is determined by the device number of the storage device, the cylinder number within the storage device, and the block; A data storage location management file in which storage location records expressed as numbers are recorded for each file in the order of storage; (b) the file name of each file, the identification name of the file system to which that file belongs, and the file of that file; (c) a file system detailed management table recording file management information including a pointer indicating a position on the data storage position management file of the storage position record corresponding to the first storage position of data; and (d) data reading means for reading actual file data based on information from the data position setting means. A file data reading method featuring:
JP2021345A 1990-01-30 1990-01-30 File data read system Pending JPH03225412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021345A JPH03225412A (en) 1990-01-30 1990-01-30 File data read system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021345A JPH03225412A (en) 1990-01-30 1990-01-30 File data read system

Publications (1)

Publication Number Publication Date
JPH03225412A true JPH03225412A (en) 1991-10-04

Family

ID=12052506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021345A Pending JPH03225412A (en) 1990-01-30 1990-01-30 File data read system

Country Status (1)

Country Link
JP (1) JPH03225412A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07140993A (en) * 1993-11-16 1995-06-02 Yamaha Corp 'karaoke' device
WO2004049167A1 (en) * 2002-11-25 2004-06-10 Matsushita Electric Industrial Co., Ltd. File management device, file management method, file management program, and recording medium
US7099324B2 (en) * 1999-12-08 2006-08-29 Nec Corporation System and method for processing packets

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07140993A (en) * 1993-11-16 1995-06-02 Yamaha Corp 'karaoke' device
US7099324B2 (en) * 1999-12-08 2006-08-29 Nec Corporation System and method for processing packets
WO2004049167A1 (en) * 2002-11-25 2004-06-10 Matsushita Electric Industrial Co., Ltd. File management device, file management method, file management program, and recording medium

Similar Documents

Publication Publication Date Title
US5261065A (en) Input/output processing method in a database management system
JPH03225412A (en) File data read system
JPH07334402A (en) Data base as main memory
JPS62186361A (en) Information retrieval device
JPS5851348A (en) High-speed access system for variable-length record
JPH0383147A (en) Semiconductor recorder
EP0080878A2 (en) Cache memory and method of control for use with magnetic disks
JP2002091806A (en) Filing system
JP3578501B2 (en) Document search method and apparatus
JP2573577B2 (en) File access device
JPS61103242A (en) High-speed retrieval system
JPS62177642A (en) File management system for postscript filing device
JPS6162923A (en) Access system for file
JPH04336340A (en) Disk cache access control system
JP2618029B2 (en) How to divide an indexed file
JPS593549A (en) File management system
JPH03174654A (en) Filing method and its device
JPH04287245A (en) System for managing free area of file system
JP2530020B2 (en) Search method
JPH0664599B2 (en) Document file search device
Chun Access and organization of secondary memory devices
JPH05158760A (en) Migration processing system
JPH04116737A (en) Electronic filing device
JPH0833900B2 (en) Content retrieval device
JPS63217417A (en) Degeneration processing system for index part