JPH04338844A - Control system for path name of file - Google Patents
Control system for path name of fileInfo
- Publication number
- JPH04338844A JPH04338844A JP3111686A JP11168691A JPH04338844A JP H04338844 A JPH04338844 A JP H04338844A JP 3111686 A JP3111686 A JP 3111686A JP 11168691 A JP11168691 A JP 11168691A JP H04338844 A JPH04338844 A JP H04338844A
- Authority
- JP
- Japan
- Prior art keywords
- path name
- file
- path
- name
- management unit
- 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
Links
- 238000000034 method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 2
- 230000004044 response Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は,パス名をもってファイ
ルを管理制御するデータ処理装置において,パス名と対
応づけたIDを管理する機構をもうけ,パス名に対応づ
けられたIDをもってファイルを管理制御するようにし
たファイルのパス名管理制御方式に関する。[Industrial Application Field] The present invention provides a mechanism for managing IDs associated with path names in a data processing device that manages and controls files using path names, and manages files using IDs associated with path names. This article relates to a file path name management control method.
【0002】0002
【従来の技術】従来,プログラム上でアクセスするファ
イルを管理するに当たっては,例えば65バイト程度の
大きさをもつパス名を対応づけ,当該パス名をもって管
理制御するようにしている。2. Description of the Related Art Conventionally, in managing files accessed by a program, path names each having a size of, for example, about 65 bytes are associated with each other, and management and control are performed using the path names.
【0003】0003
【発明が解決しようとする課題】従来の場合には,メモ
リ上およびデータファイル上でパス名を直接的にもつよ
うにしていたために,
(1)パス名に対応する大きさのパス名格納領域を必要
としており,メモリ及びデータファイルの格納域を圧迫
する要因となる。
(2)メモリやデータファイル上にパス名が格納されて
いることから,(i)パス名の一部を変更する場合には
,メモリやデータファイルを総て読み込んで,変更対象
のパス名を変更する必要があり,(ii) パス名全体
を別のパス名に置き換える場合には,メモリやデータフ
ァイル内の領域に新しいパス名長の分の領域を確保する
ために,新旧のパス名長を比較して正しく収まるか否か
をチェックする必要がある。[Problems to be Solved by the Invention] In the conventional case, path names were directly stored in memory and data files, so (1) a path name storage area of a size corresponding to the path name; This is a factor that puts pressure on memory and data file storage space. (2) Since path names are stored in memory and data files, (i) if you want to change part of a path name, read all of the memory and data files and enter the path name to be changed. (ii) If you replace the entire pathname with another pathname, the old and new pathname lengths must be updated in order to reserve space for the new pathname length in memory or in the data file. It is necessary to compare and check whether they fit correctly.
【0004】本発明は,上記の点を解決することを目的
としており,ファイルに対応づけられたパス名を,より
バイト数の少ない所定バイト長のIDに対応づけて管理
するようにすることを目的としている。The purpose of the present invention is to solve the above-mentioned problems, and to manage the path name associated with a file by associating it with an ID having a predetermined byte length, which is a smaller number of bytes. The purpose is
【0005】[0005]
【課題を解決するための手段】図1は本発明の原理構成
図を示す。図中の符号1はディスプレイ,2は入力/編
集部であってメモリに対するアクセスなどを管理する。
3はメモリであり,本発明の場合には,従来のパス名に
代えてIDをもってデータファイルが管理されるよう格
納される。[Means for Solving the Problems] FIG. 1 shows a diagram of the basic configuration of the present invention. Reference numeral 1 in the figure is a display, and 2 is an input/editing section which manages access to memory and the like. 3 is a memory, and in the case of the present invention, data files are stored so that they can be managed using IDs instead of conventional path names.
【0006】4はパス名管理部であって,ID−パス管
理部5とパス名ファイル管理部6とを少なくとも有する
。ID−パス管理部5は,パス名とそれに対応づけられ
たIDとを管理し,■パス名の登録処理時には,登録し
たパス名に対応づけた新しいIDを割付けてパス名ファ
イル管理部6に渡し,■パス名の問い合わせに当たって
は,与えられたIDをもってパス名ファイル管理部6に
問い合わせを依頼する。Reference numeral 4 denotes a path name management section, which includes at least an ID-path management section 5 and a path name file management section 6. The ID-path management unit 5 manages path names and IDs associated with them, and when registering a path name, allocates a new ID associated with the registered path name and sends it to the path name file management unit 6. (2) When inquiring about a pass name, use the given ID to request the pass name file management section 6 to make an inquiry.
【0007】パス名ファイル管理部6は,■パス名の登
録依頼に対応して,新しいIDとパス名とを,後述する
パス名ファイル7に登録し,■パス名の問い合わせ依頼
に対応して,与えられたIDをもってパス名ファイル7
を索引し,読み取ったパス名を,ID−パス管理部5に
転送する。[0007] The path name file management unit 6: ■ In response to a path name registration request, registers a new ID and a path name in a path name file 7 to be described later, and ■ In response to a path name inquiry request. , path name file 7 with the given ID
is indexed and the read path name is transferred to the ID-path management section 5.
【0008】7はパス名ファイルであって,ID(i)
とパス名(i)とを格納している。[0008] 7 is a path name file with ID(i)
and path name (i) are stored.
【0009】[0009]
【作用】メモリ3をアクセスするに当たっては,データ
ファイルに対応して,IDをもって行うようにされる。
パス名が登録される際には,ID−パス管理部5は,当
該パス名に対して新しいIDを対応づけ,当該パス名と
IDとを,パス名ファイル管理部6に対して登録依頼を
行う。入力/編集部2から,或るIDをもってパス名を
問い合わせるパス名問い合わせ依頼があった場合には,
ID−パス管理部5は,当該IDをパス名ファイル管理
部6に転送する。[Operation] When accessing the memory 3, the ID is used in accordance with the data file. When a path name is registered, the ID-path management unit 5 associates a new ID with the path name and requests the path name file management unit 6 to register the path name and ID. conduct. When there is a path name inquiry request from the input/editing section 2 to inquire about a path name using a certain ID,
The ID-path management unit 5 transfers the ID to the path name file management unit 6.
【0010】パス名ファイル管理部6は,登録依頼に対
応しては,IDとパス名とを登録し,パス名問い合わせ
に対応しては,パス名を読み取る。The path name file management section 6 registers an ID and a path name in response to a registration request, and reads a path name in response to a path name inquiry.
【0011】[0011]
【実施例】図2は処理機能フローチャートを示す。
(S1):パス名登録に対応して,登録されたパス名に
対して新しいIDを割付ける。
(S2):パス名ファイル管理部6は,パス名とIDと
を受け取って両者を登録する処理を行う。
(S3):IDとパス名とをパス名ファイル7に書き込
む。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 shows a processing function flowchart. (S1): In response to path name registration, a new ID is assigned to the registered path name. (S2): The path name file management unit 6 receives the path name and ID and performs a process of registering both. (S3): Write the ID and path name to the path name file 7.
【0012】上記の如くパス名登録が行われるが,入力
/編集部2からパス名の問い合わせがあった場合には,
次の如く処理が行われる。
(S4):入力/編集部2は,或るID(i)をもって
要求を行う。
(S5):ID−パス管理部5は,与えられたID(i
)をパス名ファイル管理部6に対して転送する。
(S6):パス名ファイル管理部6は,与えられたID
(i)を用いて,パス名ファイル7を索引する。
(S7):パス名ファイル7において読出しが行われる
。
(S8):パス名ファイル管理部6は,読出されたパス
名(i)を読み取る。
(S9):ID−パス管理部5は,パス名ファイル管理
部6から受け取ったパス名(i)を,入力/編集部2に
転送する。
(S10):入力/編集部2は,先に要求を行ったID
(i)に対応するパス名がパス名(i)であることを知
り,例えばメモリ3に対してパス名(i)を格納するよ
うにする。即ち,従来の場合にデータファイルに対応づ
けてパス名,例えば/DIRECTORY1/DIRE
CTORY2/DIRECTORY3/DIRECTO
RY4/FILENAEM1の如き65バイト分のパス
名を格納していたものに代えて,例えば2バイト分のI
Dを当該データファイルに対応づけて格納する。[0012] The path name registration is performed as described above, but when there is a path name inquiry from the input/editing section 2,
Processing is performed as follows. (S4): The input/editing unit 2 makes a request using a certain ID (i). (S5): The ID-path management unit 5 receives the given ID (i
) is transferred to the path name file management section 6. (S6): The path name file management unit 6 uses the given ID
(i) is used to index the path name file 7. (S7): Reading is performed in the path name file 7. (S8): The path name file management unit 6 reads the read path name (i). (S9): The ID-path management unit 5 transfers the path name (i) received from the path name file management unit 6 to the input/editing unit 2. (S10): The input/editing unit 2 uses the ID that made the request earlier.
Knowing that the path name corresponding to (i) is path name (i), the path name (i) is stored in the memory 3, for example. That is, in the conventional case, a path name, for example /DIRECTORY1/DIRE, is associated with a data file.
CTORY2/DIRECTORY3/DIRECTO
Instead of storing a 65-byte path name such as RY4/FILENAEM1, for example, a 2-byte I
D is stored in association with the data file.
【0013】なお,必要に応じてパス名を変更する如き
場合には,パス名ファイル7上で,IDとパス名との対
応づけを変更すればよい。即ちID自体は変更する必要
がなくパス名のみを変更すればよい。勿論メモリやデー
タファイルの内容を書き替える必要がない。[0013] If the path name is to be changed as necessary, the correspondence between the ID and the path name may be changed in the path name file 7. That is, there is no need to change the ID itself, and only the path name needs to be changed. Of course, there is no need to rewrite the contents of memory or data files.
【0014】[0014]
【発明の効果】以上説明した如く,本発明によれば,メ
モリやデータファイル上で2バイト分程度のIDを格納
する領域を用意すれば足りることから,メモリ容量の面
で余裕をもつことができる。またパス名の変更に当たっ
ては,パス名ファイルの内容を変更するだけで足りる。[Effects of the Invention] As explained above, according to the present invention, it is sufficient to prepare an area on the memory or data file to store an ID of about 2 bytes, so it is possible to have a margin in terms of memory capacity. can. In addition, when changing a path name, it is sufficient to simply change the contents of the path name file.
【図1】本発明の原理構成図である。FIG. 1 is a diagram showing the principle configuration of the present invention.
【図2】処理機能フローチャートを示す。FIG. 2 shows a processing function flowchart.
1 ディスプレイ 2 入力/編集部 3 メモリ 4 パス名管理部 5 ID−パス管理部 6 パス名ファイル管理部 7 パス名ファイル 1 Display 2 Input/editing department 3 Memory 4 Path name management department 5 ID-Path Management Department 6 Path name file management section 7 Path name file
Claims (3)
対応してパス名を附与しておき,当該パス名を用いて所
望するファイルをアクセスするデータ処理装置において
,上記パス名と対応づけられたIDを当該パス名と対応
づけて格納するパス名ファイル(7)をもうけると共に
,複数のパス名の夫々と個々のパス名に対応するIDと
管理するID−パス管理部(5)と上記パス名ファイル
(7)をアクセスする処理を管理するパス名ファイル管
理部(6)とをもうけ,メモリ(3)上において,個々
のファイルに対応づけて,当該ファイルに対応するID
が保持され,入力/編集部(2)が夫々のIDをもって
上記ファイルをアクセスするようにしたことを特徴とす
るファイルのパス名管理制御方式。Claim 1: A path name is assigned to a file that a program accesses, and an ID associated with the path name is used in a data processing device that uses the path name to access a desired file. A path name file (7) is created that is stored in association with the relevant path name, and an ID-path management unit (5) that manages each of the multiple path names and the ID corresponding to each path name, and the above path name file. It has a path name file management unit (6) that manages the process of accessing (7), and in the memory (3), it associates with each file and ID corresponding to the file.
1. A file path name management control method characterized in that a file is stored and an input/editing section (2) accesses the file using each ID.
パス名を変更するに当たって,上記ID−パス管理部(
5)は,上記パス名ファイル(7)上で,変更されたパ
ス名を書き替えるようにしたことを特徴とする請求項1
記載のファイルのパス名管理制御方式。Claim 2: In changing the path names associated with the individual files, the ID-path management unit (
Claim 5) is characterized in that the changed path name is rewritten on the path name file (7).
Path name management control method for the files described.
イルのパス名を獲得するに当たって,上記ID−パス管
理部(5)に対して,IDをもってパス名を獲得する処
理を要求することを特徴とする請求項1記載のファイル
のパス名管理制御方式。3. When acquiring the path name of the desired file, the input/editing unit (2) requests the ID-path management unit (5) to acquire the path name using the ID. 2. The file path name management control method according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3111686A JPH04338844A (en) | 1991-05-16 | 1991-05-16 | Control system for path name of file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3111686A JPH04338844A (en) | 1991-05-16 | 1991-05-16 | Control system for path name of file |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04338844A true JPH04338844A (en) | 1992-11-26 |
Family
ID=14567608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3111686A Pending JPH04338844A (en) | 1991-05-16 | 1991-05-16 | Control system for path name of file |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04338844A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6754649B2 (en) | 2000-04-18 | 2004-06-22 | Matsushita Electric Industrial Co., Ltd. | Apparatus and method for storing data in a storage medium, while saving storage areas which are used for holding a data path name and become necessary in response to the storing of data |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63743A (en) * | 1986-06-20 | 1988-01-05 | Fujitsu Ltd | Document management system for word processor |
-
1991
- 1991-05-16 JP JP3111686A patent/JPH04338844A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63743A (en) * | 1986-06-20 | 1988-01-05 | Fujitsu Ltd | Document management system for word processor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6754649B2 (en) | 2000-04-18 | 2004-06-22 | Matsushita Electric Industrial Co., Ltd. | Apparatus and method for storing data in a storage medium, while saving storage areas which are used for holding a data path name and become necessary in response to the storing of data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5706511A (en) | Data base system and load distribution control method | |
JPH04338844A (en) | Control system for path name of file | |
US5623639A (en) | Memory management system for the time-wise management of memory | |
JP2924786B2 (en) | Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system | |
JPH06187201A (en) | File system | |
JP2903605B2 (en) | File area management processing method | |
JPH0488440A (en) | Data base reorganizing system | |
JPH0452826A (en) | Difference control processing system for generation-sorted load module library | |
JPH04199237A (en) | System for controlling decentralized file cache | |
JP3711817B2 (en) | Database access method and apparatus, and machine-readable recording medium recording program | |
JP3298935B2 (en) | File management device | |
JPH0337748A (en) | External storage accessing system utilizing main storage | |
JPS61276040A (en) | File access system | |
JPH0327470A (en) | Data storage system for electronic file | |
JP3349715B2 (en) | Distributed memory computer system. | |
JPS63291145A (en) | Method for managing file | |
JPH05120340A (en) | Routing address managing method | |
JPS5839359A (en) | Program registering method of external storage device | |
JPH04102140A (en) | System for sharing file between systems | |
JPH01220023A (en) | Centralized control system for secondary storage device | |
JPS62251992A (en) | File control system for ic card | |
JPH07271640A (en) | File map device | |
JPH04175841A (en) | Data base reformation processing system | |
JPH0337769A (en) | Drawing name managing system | |
JPH0314019A (en) | Access system for medium collective device |