JPH0573383A - File access system - Google Patents

File access system

Info

Publication number
JPH0573383A
JPH0573383A JP3237561A JP23756191A JPH0573383A JP H0573383 A JPH0573383 A JP H0573383A JP 3237561 A JP3237561 A JP 3237561A JP 23756191 A JP23756191 A JP 23756191A JP H0573383 A JPH0573383 A JP H0573383A
Authority
JP
Japan
Prior art keywords
file
file system
virtual
real
path name
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
JP3237561A
Other languages
Japanese (ja)
Inventor
Hiromi Kobayashi
弘美 小林
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP3237561A priority Critical patent/JPH0573383A/en
Publication of JPH0573383A publication Critical patent/JPH0573383A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To structure a file system in tree structure matching the purpose of use by each user and to easily access a target file. CONSTITUTION:In the file system wherein respective files on a storage device 11 are rearranged in tree structure, virtual file systems by users are assumed and a correspondence table 12 showing correspondence relation between the file system in the tree structure and the virtual file systems by the users is generated. When a file on a virtual file system is accessed, a real/virtual conversion mechanism 13 refers to the correspondence table and converts the position of the target file on the virtual file system into a position on the file system in the tree structure and a file access mechanism 14 is used to access the target file.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、木構造のファイルシス
テム上のファイルをアクセスするファイルアクセス方式
に関する。つまり、木の各々の枝の先端となるところに
ファイルがついていて、かつ、枝の節となるところに節
から出ている枝の先についているファイルを管理するた
めのファイルがあるという構造をしたファイルシステム
上にあるファイルをアクセスする方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file access method for accessing files on a tree-structured file system. In other words, there is a file at the end of each branch of the tree, and there is a file for managing the file at the end of the branch out of the section at the branch node. The present invention relates to a method of accessing a file on a file system.

【0002】[0002]

【従来の技術】図3は、木構造のファイルシステムの例
を示す図であるが、利用者Aの現在位置をdir1、利
用者Bの現在位置をdir3とした場合、si1.cを
アクセスしようとする場合において従来のファイルアク
セス方式を説明する。利用者Aは、dir1→usr→
/→work→src→cmd→sr1.cという経路
で、利用者Bは、dir3→usr→/→work→s
rc→cmd→sr1.cという経路を通ることにより
アクセスしていた。
2. Description of the Related Art FIG. 3 is a diagram showing an example of a tree-structured file system. If the current position of user A is dir1 and the current position of user B is dir3, si1. A conventional file access method for accessing c will be described. User A is dir1 → usr →
/ → work → src → cmd → sr1. In the route of c, the user B has dir3 → usr → / → work → s
rc → cmd → sr1. It was accessed by going through the route c.

【0003】すなわち、従来のこの種のファイルアクセ
ス方式では、利用者の現在位置と目的ファイルのある枝
の上位にある共通の節を捜し、利用者は、その節まで上
がってから目的ファイルのある節まで下がって行きアク
セスしていた。
That is, in the conventional file access method of this type, a common section at the upper position of the user's current position and a branch of the target file is searched, and the user finds the target file after reaching that section. I went down to the knot and accessed it.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のファイ
ルアクセス方式では、利用者の現在位置と目的ファイル
のある枝の上位にある共通の節を捜し、利用者は、その
節まで上がってから目的ファイルのある節まで下がって
行くため、経路が長いと位置を指定するときに不便で間
違いやすい。
In the above-mentioned conventional file access method, the common position above the current position of the user and the branch where the target file is located is searched for, and after the user reaches that node, the target is searched. Because it goes down to a certain section of the file, it is inconvenient and easy to make mistakes when specifying the position if the path is long.

【0005】先の例で示すと、利用者Aとsr1.cと
の共通の節は、「 / 」で、利用者Aは、sr1.c
をアクセスするために5つもの節を通らなくてはならな
い。
In the above example, users A and sr1. The common clause with "c" is "/", and the user A uses sr1. c
You have to go through as many as five passages to access.

【0006】[0006]

【課題を解決するための手段】本発明は、各ファイルを
木構造で整理した実ファイルシステム中の目的ファイル
をアクセスするためのファイルアクセス方式において、
利用者毎に仮想ファイルシステムを想定し、前記実ファ
イルシステムと前記仮想ファイルシステムとのパスの対
応関係を示す対応表を作成し、前記目的ファイルの前記
仮想ファイルシステム上の絶対パス名を求め、前記目的
ファイルの前記仮想ファイルシステム上の絶対パス名を
前記対応表に基ずいて前記実ファイルシステム上の絶対
パス名に変換し、変換して得た前記実ファイルシステム
上の当該絶対パス名で前記目的ファイルにアクセスする
ことを特徴とする。
The present invention provides a file access method for accessing a target file in an actual file system in which each file is organized in a tree structure,
Assuming a virtual file system for each user, create a correspondence table showing the correspondence relationship of the path of the real file system and the virtual file system, and obtain the absolute path name on the virtual file system of the target file, The absolute path name on the virtual file system of the target file is converted to an absolute path name on the real file system based on the correspondence table, and the absolute path name on the real file system obtained by the conversion is used. It is characterized in that the target file is accessed.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】まず、本発明の実施例の説明で使用する用
語を図3に示す木構造のファイルシステムを用いて説明
する。図3において、 / (ルート)、usr、tm
p、work、dir1、dir2、dir3、dir
4、src、head等のように木の枝の節に位置する
ファイルをディレクトリファイル(以下、ディレクト
リ)という。そして、現在作業しているディレクトリを
カレントディレクトリといい、システム利用時に一番始
めに位置付げられるディレクトリをホームディレクトリ
という。
First, the terms used in the description of the embodiment of the present invention will be explained using the tree-structured file system shown in FIG. In FIG. 3, / (route), usr, tm
p, work, dir1, dir2, dir3, dir
A file located at a node of a tree branch, such as 4, src, or head, is called a directory file (hereinafter, directory). The current working directory is called the current directory, and the first directory that can be located when using the system is called the home directory.

【0009】また、木構造のファイルシステム中のファ
イルやディレクトリの位置を表す表現をパス名といい、
カレントディレクトリを起点として表されたパスを相対
パス名、ファイルシステム内の最上位を起点として表さ
れたパスを絶対パス名という。例えば、図3の「wor
k」をカレントディレクトリとした場合、sr1.c、
の相対パス名は、src/cmd/sr1.c、絶対パ
ス名は、/work/src/cmd/sr1.cとな
る。
An expression representing the position of a file or directory in a tree-structured file system is called a path name,
A path expressed starting from the current directory is called a relative path name, and a path expressed starting from the highest level in the file system is called an absolute path name. For example, in FIG.
k ”as the current directory, sr1. c,
The relative path name of src / cmd / sr1. c, the absolute path name is / work / src / cmd / sr1. c.

【0010】以下に、本発明の一実施例を説明する。図
3に示す木構造のファイルシステム(実ファイルシステ
ム)において、dir1がホームディレクトリである利
用者A用に図4(a)に示す仮想ファイルシステムを想
定する。即ち、実ファイルシステム上でdir1から直
接アクセスできるfilelおよびfile2が選ばれ
る。さらに、dir1からは直接アクセスできないsr
c及びheadが選ばれる。そして、srcからは直接
アクセスできるcmdとディレクトリcmdが管理して
いるファイルであるsr1.cとsr2.cが選ばれ
る。また、headから直接アクセスできるsys2と
ディレクトリsys2が管理しているファイルであるh
d2.hが選ばれる。これにより、実ファイルシステム
と仮想ファイルシステムとのパスの対応関係を示す対応
表(図4(b))が作成される。
An embodiment of the present invention will be described below. In the tree-structured file system (actual file system) shown in FIG. 3, the virtual file system shown in FIG. 4A is assumed for user A whose dir1 is a home directory. That is, file and file2 that can be directly accessed from dir1 on the real file system are selected. Furthermore, sr that cannot be directly accessed from dir1
c and head are selected. Then, cmd, which is directly accessible from src, and sr1. c and sr2. c is selected. In addition, the file h is a file managed by sys2 and the directory sys2 that can be directly accessed from the head.
d2. h is selected. As a result, a correspondence table (FIG. 4B) showing the correspondence relationship between the paths of the real file system and the virtual file system is created.

【0011】同様にして、ホームディレクトリがdir
3である利用者B用の仮想ファイルシステム(図4
(c))を想定し、実ファイルシステムとの対応表(図
4(d))が作成させる。
Similarly, the home directory is dir.
A virtual file system for user B (see FIG. 4).
Assuming (c)), a correspondence table (Fig. 4 (d)) with the actual file system is created.

【0012】図1は、本実施例の機能ブロック図であ
る。本実施例において、実ファイルシステムは、実ファ
イルシステム記憶装置11に格納されている。実ファイ
ルシステムと仮想ファイルシステムとの対応表は、対応
表テーブル12に記憶されている。実/仮想変換機構1
3は、仮想ファイルシステム上の位置を実ファイルシス
テム上の位置に変換する。ファイルアクセス機構14は
変換された位置を用いて実ファイルシステム上の目的フ
ァイルをアクセスする。図2は実/仮想変換機構13お
よびファイルアクセス機構14によるファイルアクセス
の手順を説明する流れ図である。
FIG. 1 is a functional block diagram of this embodiment. In this embodiment, the real file system is stored in the real file system storage device 11. The correspondence table between the real file system and the virtual file system is stored in the correspondence table table 12. Real / virtual conversion mechanism 1
3 converts the position on the virtual file system into the position on the real file system. The file access mechanism 14 uses the converted position to access the target file on the real file system. FIG. 2 is a flow chart for explaining a file access procedure by the real / virtual conversion mechanism 13 and the file access mechanism 14.

【0013】次に図4(a)の仮想ファイルシステム上
のcmdをカレントディレクトリとする利用者Aがsr
1.をアクセスする場合と図4(c)の仮想ファイルシ
ステム上の#をカレントディレクトリとする利用者Bが
sr3.cをアクセスする場合を例に本実施例を説明す
る。
Next, the user A whose current directory is cmd on the virtual file system shown in FIG.
1. When the user B is accessing sr3. This embodiment will be described by taking the case of accessing c as an example.

【0014】まず、利用者Aの場合、図2のステップ2
1において、仮想ファイルシステム上の相対的な位置、
つまり相対パス名として、「cmd/sr1.c」とい
う結果を得る。ステップ22で現在位置までの経路、つ
まりカレントディレクトリまでの絶対パス名である「#
/src/cmd」という情報を得、ステップ21と2
2の結果よりステップ23において、仮想ファイルシス
テム上の目的ファイルまでの絶対的な位置、つまり絶対
パス名として「#/src/cmd/sr1.c」を得
る。
First, in the case of user A, step 2 in FIG.
1, the relative position on the virtual file system,
That is, the result "cmd / sr1.c" is obtained as the relative path name. In step 22, the path to the current position, that is, the absolute path name to the current directory, "#
/ Src / cmd "information, steps 21 and 2
From the result of step 2, in step 23, "# / src / cmd / sr1.c" is obtained as an absolute position to the target file on the virtual file system, that is, as an absolute path name.

【0015】次に、図4(b)に示す対応表を検索し、
ステップ23で得た絶対パス名の部分に対応表の仮想フ
ァイルシステム側に示されたパスのうち最長に一致する
パス名を仮想ファイルシステム上のものから実ファイル
システム上の対応するパス名に変換する(ステップ2
4)。この場合、、「#/src」が「/work/s
rc」に対応しているので、その部分を置き変えると
「/work/src/cmd/sr1.c」という結
果を得る。この最終結果は、実ファイルシステム上での
sr1.cの絶対パス名で、これを用いて実ファイルシ
ステム上のファイルのsr1.cのアクセスを行う(ス
テップ25)。
Next, the correspondence table shown in FIG. 4B is searched,
Convert the longest path name among the paths shown on the virtual file system side of the correspondence table that corresponds to the absolute path name obtained in step 23 from the one on the virtual file system to the corresponding path name on the real file system. Yes (Step 2
4). In this case, "# / src" is "/ work / s"
Since it corresponds to "rc", if that part is replaced, the result "/work/src/cmd/sr1.c" is obtained. This final result is sr1. The absolute path name of the file sr1. c is accessed (step 25).

【0016】利用者Bの場合、図2のステップ21にお
いて、仮想ファイルシステム上の相対パス名「#/li
b/sr3.c」を得る。ステップ22においてカレン
トディレクトリの絶対パス名を得るが、この場合「#」
なので、ステップ23の結果は、ステップ21と同じ
「#/lib/sr3.c」となる。
In the case of user B, in step 21 of FIG. 2, the relative path name "# / li" on the virtual file system is used.
b / sr3. c ”is obtained. In step 22, the absolute pathname of the current directory is obtained, but in this case "#"
Therefore, the result of step 23 is “# / lib / sr3.c” which is the same as that of step 21.

【0017】次に、図4(d)の対応表を用いてこれを
実ファイルシステム上のパス名に変換する(ステップ2
4)。この場合、「#/lib」が「/work/sr
c/lib」に対応しているので、その部分を置き換え
ると「/work/src/lib/sr3.c」とい
う実ファイルシステム上でのsr3.cの絶対パス名を
得る。これを用いてファイルアクセスを行う(ステップ
25)。
Next, using the correspondence table of FIG. 4D, this is converted into a path name on the real file system (step 2).
4). In this case, "# / lib" is "/ work / sr"
Since it corresponds to "c / lib", if that part is replaced, "/work/src/lib/sr3.c" sr3. Get the absolute pathname of c. File access is performed using this (step 25).

【0018】[0018]

【発明の効果】以上説明したように本発明は、実ファイ
ルシステムから利用者毎の仮想ファイルシステムを想定
し、実ファイルシステムとの対応関係を表した対応表を
用いてファイルアクセスを行うことにより、利用者の用
途に合う木構造のファイルシステムが構築でき、かつ、
目的のファイルも簡単にアクセスすることが可能にな
る。
As described above, according to the present invention, the virtual file system for each user is assumed from the real file system, and the file access is performed by using the correspondence table showing the correspondence relationship with the real file system. , You can build a tree-structured file system that suits your needs, and
The target file can be easily accessed.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示す実施例のファイルアクセスを行うと
きの手順を説明する流れ図である。
FIG. 2 is a flowchart illustrating a procedure when performing file access according to the embodiment shown in FIG.

【図3】本発明の対象とする木構造のファイルシステム
の一例を示す図である。
FIG. 3 is a diagram showing an example of a tree-structured file system that is a target of the present invention.

【図4】(a)および(b)はそれぞれ図1に示す実施
例での仮想ファイルシステムの一例の図およびその実フ
ァイルシステムとの対応表、(c)および(d)はそれ
ぞれ仮想ファイルシステムの他の例の図およびその実フ
ァイルシステムとの対応表である。
4 (a) and (b) are diagrams of an example of a virtual file system in the embodiment shown in FIG. 1 and a correspondence table with the actual file system, and (c) and (d) of the virtual file system, respectively. It is a table of another example and its corresponding file system.

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

11 記憶装置 12 対応表テーブル 13 実/仮想変換機構 14 ファイルアクセス機構 11 storage device 12 correspondence table 13 real / virtual conversion mechanism 14 file access mechanism

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 各ファイルを木構造で整理した実ファイ
ルシステム中の目的ファイルをアクセスするためのファ
イルアクセス方式において、利用者毎に仮想ファイルシ
ステムを想定し、前記実ファイルシステムと前記仮想フ
ァイルシステムとのパスの対応関係を示す対応表を作成
し、前記目的ファイルの前記仮想ファイルシステム上の
絶対パス名を求め、前記目的ファイルの前記仮想ファイ
ルシステム上の絶対パス名を前記対応表に基ずいて前記
実ファイルシステム上の絶対パス名に変換し、変換して
得た前記実ファイルシステム上の当該絶対パス名で前記
目的ファイルにアクセスすることを特徴とするファイル
アクセス方式。
1. In a file access method for accessing a target file in a real file system in which each file is arranged in a tree structure, a virtual file system is assumed for each user, and the real file system and the virtual file system are assumed. A correspondence table showing the correspondence relationship of the paths with and is obtained, the absolute path name of the target file on the virtual file system is obtained, and the absolute path name of the target file on the virtual file system is based on the correspondence table. Then, the file access method is characterized by converting to an absolute path name on the real file system and accessing the target file by the absolute path name on the real file system obtained by the conversion.
JP3237561A 1991-09-18 1991-09-18 File access system Pending JPH0573383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3237561A JPH0573383A (en) 1991-09-18 1991-09-18 File access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3237561A JPH0573383A (en) 1991-09-18 1991-09-18 File access system

Publications (1)

Publication Number Publication Date
JPH0573383A true JPH0573383A (en) 1993-03-26

Family

ID=17017143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3237561A Pending JPH0573383A (en) 1991-09-18 1991-09-18 File access system

Country Status (1)

Country Link
JP (1) JPH0573383A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08171571A (en) * 1994-12-16 1996-07-02 Mitsubishi Electric Corp Data base device
US6638475B1 (en) 2000-11-08 2003-10-28 The Regents Of The University Of California Method for inhibiting pathogenic and spoilage activity in products
JP2008522302A (en) * 2004-12-02 2008-06-26 トムソン ライセンシング How to generate a multilingual menu
JP2009251760A (en) * 2008-04-02 2009-10-29 Nec Corp File system and method for controlling file system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08171571A (en) * 1994-12-16 1996-07-02 Mitsubishi Electric Corp Data base device
US6638475B1 (en) 2000-11-08 2003-10-28 The Regents Of The University Of California Method for inhibiting pathogenic and spoilage activity in products
JP2008522302A (en) * 2004-12-02 2008-06-26 トムソン ライセンシング How to generate a multilingual menu
US8701004B2 (en) 2004-12-02 2014-04-15 Thomson Licensing Method for generating multi-language menus
US9298354B2 (en) 2004-12-02 2016-03-29 Thomson Licensing Method for generating multi-language menus
US9304664B2 (en) 2004-12-02 2016-04-05 Thomas Licensing Method for generating multi-language menus
JP2009251760A (en) * 2008-04-02 2009-10-29 Nec Corp File system and method for controlling file system

Similar Documents

Publication Publication Date Title
AU2005209584B2 (en) System and method for determining target failback and target priority for a distributed file system
JP2005141768A (en) File management system by network structure
US7853625B2 (en) System for defining data mappings between data structures
JP3280326B2 (en) Installable file system, method for accessing and delivering audio CD data, computer program
JPH10512986A (en) Reconstructing directory pathnames from file handles in computer systems
EP1265155A2 (en) File tree comparator
KR20220051224A (en) Access docking component, system, and method and apparatus applying the access docking component
JPH0573383A (en) File access system
EP1632856A1 (en) Storage management unit, storage unit, file processing system, file management system, and their methods and programs
JP3300399B2 (en) Computer system and file management method
JPS5995648A (en) File search system
JPH0659953A (en) Method for controlling input/output of virtual file
JPH0232430A (en) File control device
JPH04362746A (en) Virtual directory device
JPH04312140A (en) File controller
JPH07152623A (en) File system and its access method
JPH06175818A (en) Data converter
JPS6195437A (en) File access control system
JPH0736755A (en) Input/output method for index file
JPH04115343A (en) Computer resource management system
JPH07104807B2 (en) Control method for data with multiple names
JPH01246643A (en) Error message output system
JP2002351717A (en) Data access system, and system/program/method for data cooperation
JPH1021131A (en) Method for converting file name
JPH05158768A (en) Batch converter for floppy disk medium