JPH0447581A - File storing system for floppy disk - Google Patents
File storing system for floppy diskInfo
- Publication number
- JPH0447581A JPH0447581A JP15724290A JP15724290A JPH0447581A JP H0447581 A JPH0447581 A JP H0447581A JP 15724290 A JP15724290 A JP 15724290A JP 15724290 A JP15724290 A JP 15724290A JP H0447581 A JPH0447581 A JP H0447581A
- Authority
- JP
- Japan
- Prior art keywords
- file
- floppy disk
- index
- storage area
- files
- 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 36
- 230000001771 impaired effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 3
- 230000001010 compromised effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、フロッピーディスクのファイル格納方式に関
し、特に、目的とするファイルの読出を高速化すること
ができるフロッピーディスクのファイル格納方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a floppy disk file storage system, and more particularly to a floppy disk file storage system that can speed up the reading of a target file.
従来の技術
]ンピュータへのオペレーティングシステム、プログラ
ムのインドールには当初磁気テープが使用されており、
磁気テープはランダムアクセスが行えないために磁気テ
ープの先頭がらファイルが1つずつ順番に記憶され、フ
ァイルの格納位置に関する情報は磁気テープには記憶さ
れていない。[Conventional technology] Magnetic tape was initially used for computer operating systems and program inlets.
Since magnetic tape cannot be accessed randomly, files are stored one by one starting from the beginning of the magnetic tape, and information regarding the storage location of the files is not stored on the magnetic tape.
フロッピーディスクについても、インストール目的に使
用される場合には、磁気テープでのファイル格納方式と
同様のファイル格納方式が用いられており、フロッピー
ディスクを磁気テープに見立ててファイルをフロッピー
ディスクの先頭がら1つずつ順番に格納していた。When floppy disks are used for installation purposes, a file storage method similar to that of magnetic tape is used. They were stored one by one.
このような従来のフロッピーディスクのファイル格納方
式では、特定の目的に使用するファイルのみを読み出し
てコンピュータシステムの磁気ディスク装置に登録する
場合に、フロッピーディスクの先頭のファイルがら読み
出し対象のファイルに行き当たるまでファイルを順次読
みとばし、読み出し対象のファイルに行き当たったとき
にそのファイルを読み出すようになっている。In this conventional floppy disk file storage method, when reading only files used for a specific purpose and registering them in the computer system's magnetic disk drive, the first file on the floppy disk is used to find the file to be read. The system reads files sequentially until the end of the file, and when the file to be read is encountered, that file is read.
発明が解決しようとする課題
上述した従来のフロッピーディスクのファイル格納方式
では、フロッピーディスクの先頭に記憶されているファ
イルから順番に読み出し対象のファイルを探すようにな
っているために、特定の目的に使用するファイルが複数
になるとき、対象となるファイルのファイル名を1つず
つあたえなければならないことと、読み出し対象のファ
イルの位置によっては続出までに時間を要するという欠
点がある。Problems to be Solved by the Invention In the conventional floppy disk file storage method described above, the file to be read is searched for in order from the file stored at the beginning of the floppy disk. When a plurality of files are to be used, the disadvantages are that the names of the target files must be given one by one, and that depending on the location of the file to be read, it takes time to read successive files.
本発明は従来の技術に内在する上記欠点を解消する為に
なされたものであり、従って本発明の目的は、ファイル
の発見を短時間で行うためにファイルの使用用途とファ
イル名と格納位置とを登録するインデックスを利用する
とともに、従来のフロッピーディスクのファイル格納方
式にて続出をサポートするコンピュータシステムに於い
ても本発明のフロッピーディスクのファイル格納方式で
ファイルを書き込んだフロッピーディスクからファイル
を読み出せるように互換性を配慮したフロッピーディス
クの新規なファイル格納方式を提供することにある。The present invention has been made in order to eliminate the above-mentioned drawbacks inherent in the conventional technology. Therefore, an object of the present invention is to identify the intended use of files, file names, and storage locations in order to discover files in a short time. In addition to using an index to register files, files can be read from a floppy disk on which files have been written using the floppy disk file storage method of the present invention even in a computer system that supports continuous storage using the conventional floppy disk file storage method. The purpose of this invention is to provide a new file storage method for floppy disks that takes compatibility into account.
課題を解決するための手段
上記目的を達成する為に、本発明に係るフロッピーディ
スクのファイル格納方式は、フロッピーディスクへのフ
ァイルの書き込み時にファイルのファイル名と格納位置
とファイルの用途を登録するインデックスをフロッピー
ディスクの最後部のインデックス格納領域に書き込む手
段と、フロッピーディスクからのファイルの読み出し時
にフロッピーディスクの最後部におかれたインデックス
格納領域のインデックスを参照し読み出しインデックス
に登録されている用途を照合して目的と一致するファイ
ルの格納位置を得てファイルにアクセスする読み出し手
段とを備えて構成される。Means for Solving the Problems In order to achieve the above object, the floppy disk file storage method according to the present invention uses an index that registers the file name, storage location, and file usage when writing files to the floppy disk. When reading a file from a floppy disk, refer to the index of the index storage area placed at the end of the floppy disk and check the purpose registered in the read index. and reading means for accessing the file by obtaining the storage location of the file that matches the purpose.
実施例
次に、本発明をその好ましい一実施例について図面を参
照して具体的に説明する。Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.
第1図は本発明に係るフロッピーディスクのファイル格
納方式の一実施例を示すブロック構成図である。FIG. 1 is a block diagram showing an embodiment of a floppy disk file storage system according to the present invention.
第1図を参照するに、本発明に係るフロッピーディスク
のファイル格納方式の一実施例は、フロッピーディスク
1を入れたフロッピーディスク装置2と、フロッピーデ
ィスク装置2を接続するコンピュータのオペレーティン
グシステムの書き込み手段3及び読み込み手段4を有す
るディスク入出力処理プログラム5とから構成されてい
る。Referring to FIG. 1, one embodiment of the floppy disk file storage method according to the present invention includes a floppy disk device 2 containing a floppy disk 1, and a writing means for an operating system of a computer to which the floppy disk device 2 is connected. 3 and a disk input/output processing program 5 having a reading means 4.
第2図は本発明に係るフロッピーディスクのファイル格
納方式によりファイルの書き込み及び読み込みを行うフ
ロッピーディスク1の概念図である。FIG. 2 is a conceptual diagram of a floppy disk 1 on which files are written and read using the floppy disk file storage method according to the present invention.
第2図を参照するに、このフロッピーディスク1は、第
Nシリンダから第Nシリンダまでがファイル格納領域1
1となり、第N+1シリンダから第Nシリンダまでがイ
ンデックス格納領域12となっている。Referring to FIG. 2, this floppy disk 1 has a file storage area from the Nth cylinder to the Nth cylinder.
1, and the index storage area 12 is from the N+1th cylinder to the Nth cylinder.
第3図はファイル格納領域11に格納されるファイルの
形式を示す図である。FIG. 3 is a diagram showing the format of files stored in the file storage area 11.
第3図において、ファイルは、固定数のセクタを占める
ファイルヘッダ13と不定数のセクタを占めるファイル
の実体14とから構成される。ファイルヘッダ13は、
ファイルのファイル名、大きさ等の情報を格納する。フ
ァイル格納領域11には、第3図に示す形式のファイル
が先頭より順番に格納される。In FIG. 3, a file is composed of a file header 13 that occupies a fixed number of sectors and a file entity 14 that occupies an undefined number of sectors. The file header 13 is
Stores information such as the file name and size of the file. In the file storage area 11, files in the format shown in FIG. 3 are stored in order from the beginning.
第4図はインデックス格納領域12に格納されるインデ
ックスの形式を示す図である。FIG. 4 is a diagram showing the format of the index stored in the index storage area 12.
第4図を参照するに、インデックスは、ファイル格納領
域11に格納されているファイルのファイル名を格納す
る固定長のファイル名フィールド15と、ファイル名フ
ィールド15に格納されているファイル名で示されるフ
ァイルのファイル格納領域11での格納位置(ファイル
ヘッダ13の先頭位置)を記憶する固定長のアドレスフ
ィールド16と、ファイルの使用用途を示すフィールド
17とから構成される。インデックス格納領域12には
、第4図に示す形式のインデックスが先頭から順番に格
納される。Referring to FIG. 4, the index is indicated by a fixed-length file name field 15 that stores the file name of the file stored in the file storage area 11, and the file name stored in the file name field 15. It consists of a fixed-length address field 16 that stores the storage position of the file in the file storage area 11 (the starting position of the file header 13), and a field 17 that indicates the intended use of the file. In the index storage area 12, indexes in the format shown in FIG. 4 are stored in order from the beginning.
第5図は書き込み手段3の処理の流れを示す流れ図であ
る。FIG. 5 is a flowchart showing the processing flow of the writing means 3.
第6図は読み込み手段4の処理の流れを示す流れ図であ
る。FIG. 6 is a flowchart showing the processing flow of the reading means 4.
次に、本実施例の動作について説明する。第1に書き込
みについて第5図を参照しながら説明する。ここでは第
7図に示すように空のフロッピーディスク1にファイル
Aを書き込む場合について説明する。Next, the operation of this embodiment will be explained. First, writing will be explained with reference to FIG. Here, a case will be explained in which a file A is written to an empty floppy disk 1 as shown in FIG.
第5図、第7図を参照するに、フロッピーディスク1へ
のファイルAの書き込み時に、書き込み手段3は、イン
デックス73の作成のためにフロッピーディスク1上の
ファイル格納位置(この場合は、ファイル格納領域11
の先頭)を取り込んで記憶する(処理31)。5 and 7, when writing the file A to the floppy disk 1, the writing means 3 writes the file storage location (in this case, the file storage location) on the floppy disk 1 to create the index 73. Area 11
) is taken in and stored (process 31).
次に、記憶した格納位置より書き込み対象のファイルA
のファイル名等をファイルヘッダ71として書き込む(
処理32)、11!いて、書き込んだファイルヘッダ7
1の直後から書き込み対象のファイルAのファイル実体
72を書き込む(処理33)。Next, write to file A from the memorized storage location.
Write the file name etc. as the file header 71 (
Processing 32), 11! file header 7 written
1, the file entity 72 of the file A to be written is written (process 33).
次いで、書き込み手段3は、次ファイルの書き込みに備
えてファイル格納位置をファイルAのファイル実体72
の直後になるように更新する(処理34)。Next, the writing means 3 sets the file storage position to the file entity 72 of the file A in preparation for writing the next file.
(processing 34).
次に、書き込みを行ったファイルAに対応するインデッ
クス73をインデックス格納領域12に書き込む(処理
35)、インデックスには、ファイルAのファイル名と
格納位置と使用用途とを登録する。Next, the index 73 corresponding to the written file A is written in the index storage area 12 (process 35), and the file name, storage location, and usage of the file A are registered in the index.
最後に、ファイルAのインデックスが最終インデックス
であることを示すために、次のインデックスをヌルイン
デックス74として書き込む(処理36)。Finally, to indicate that the index of file A is the final index, the next index is written as a null index 74 (process 36).
第2に読み込みについて第6図を参照しながら説明する
。ここでは、第8図に示す場合を例にとって説明する。Second, reading will be explained with reference to FIG. Here, the case shown in FIG. 8 will be explained as an example.
第8図は読み込み対象のファイルを格納するフロッピー
ディスク1を示す概念図である。このフロッピーディス
ク1には、K個のファイルが登録されており、それに対
応してに個のインデックス81〜82が登録されており
、K+1個目のインデックスはヌルインデックス83と
なっており最終インデックスを示している。FIG. 8 is a conceptual diagram showing a floppy disk 1 that stores files to be read. K files are registered on this floppy disk 1, and correspondingly, indexes 81 to 82 are registered, and the K+1st index is a null index 83, which is the final index. It shows.
第6図、第8図を参照するに、フロッピーディスク1か
らのファイルの読みだし時には、読みだし手段4は、イ
ンデックス格納領域12中のインデックスを第1番目の
インデックス81より1個ずつ読み出すく処理41)。Referring to FIGS. 6 and 8, when reading a file from the floppy disk 1, the reading means 4 performs a process of reading out the indexes in the index storage area 12 one by one starting from the first index 81. 41).
次に、読みだしたインデックスがヌルインデックス83
か否かの判定を行い(処理42)、ヌルインデックス8
3でなければ読みだし対象となる使用用途とインデック
スの使用用途フィールド17と一致するか否かを照合し
判定する(処理43)、与えられた使用用途とインデッ
クスの使用用途が一致しなければ、処理41に制御を戻
し次のインデックスを読みだして処理42.43を行う
。Next, the read index is null index 83
It is determined whether or not (processing 42), and the null index 8
If it is not 3, it is checked and determined whether the usage to be read matches the usage usage field 17 of the index (process 43). If the given usage and the usage of the index do not match, Control is returned to process 41, the next index is read, and processes 42 and 43 are performed.
使用用途が一致すれば、読み出し手段4は、致したイン
デックスが記憶しているファイルの格納位置をもとにフ
ァイルにアクセスしてファイルを読み出しく処理44)
、処理を終了する。If the usage matches, the reading means 4 accesses the file based on the storage location of the file stored in the matched index and reads the file 44)
, ends the process.
処理42にてヌルインデックス83であると判定された
場合には、その時点で処理を終了する。If it is determined in process 42 that the index is a null index 83, the process ends at that point.
発明の詳細
な説明したように、本発明によれば、ファイルの使用用
途とファイル名と格納位置を登録するインデックスを利
用することにより、使用用途に適合するファイルのファ
イル名を与えファイル名にて検索を行うことなく、用途
に適合した全ファイルを短時間にインストールできるよ
うになるという効果が得られる。特に、大容量フロッピ
ーディスクのように多数のファイルが登録されている場
合にはこの効果がより明らかになると考えられる。As described in detail, according to the present invention, by using an index that registers the intended use of a file, the file name, and the storage location, the file name of the file that matches the intended use is given and the file name is used. The effect is that all files suitable for the purpose can be installed in a short time without searching. In particular, this effect is considered to be more obvious when a large number of files are registered, such as on a large-capacity floppy disk.
また、本発明によれば、インデックスをフロッピーディ
スクの最後部の領域に格納するようにしたことにより、
本発明のフロッピーディスクのファイル格納方式でファ
イルを格納したフロッピーディスクは従来のフロッピー
ディスクのファイル格納方式による読み出しも可能であ
り、互換性を損なうことがないという効果が得られる。Further, according to the present invention, by storing the index in the last area of the floppy disk,
A floppy disk in which files are stored using the floppy disk file storage method of the present invention can also be read using the conventional floppy disk file storage method, resulting in the effect that compatibility is not compromised.
第1図は本発明に係るフロッピーディスクのファイル格
納方式の一実施例を示すブロック構成図である。
1・・・フロッピーディスク、2・・・フロッピーディ
スク装置、3・・・書き込み手段、4・・・読み出し手
段、5・・・ディスク入出力処理プログラム第2図は本
発明に係るフロッピーディスクのファイル格納方式によ
りファイルの書き込み及び読み出しを行うフロッピーデ
ィスクを示す概念図である。
11・・・ファイル格納領域、12・・・インデックス
格納領域
第3図はフロッピーディスクのファイル格納領域に格納
されるファイルの形式を示す図である。
13・・・ファイルヘッダ、14・・・ファイル実体第
4図はフロッピーディスクのインデックス格納領域に格
納されるインデックスの形式を示す図である。
15・・・ファイル名フィールド、16・・・アドレス
フィールド、17・・・使用用途フィールド第5図は書
き込みの処理を示す流れ図である。
処理31・・・ファイル格納位置の取り込み、処理32
・・・ファイルヘッダの書き込み、処理33・・・ファ
イル実体の書き込み、処理34・・・ファイル格納位置
の更新、処理35・・・インデックスの書き込み、処理
36・・・ヌルインデックスの書き込み
第6図は読み込みの処理を示す流れ図である。
処理41・・・インデックスの読みだし、処理42・・
・ヌルインデックスの判定、処理43・・・使用用途の
判定、処理44・・・ファイルの読みだし第7図は第2
図のフロッピーディスクにファイルを書き込む場合のイ
メージを示す概念図である。
71・・・ファイルヘッダ、72・・・ファイル実体、
73・・・インデックス、74・・・ヌルインデックス
第8図は第2図のフロッピーディスクにファイルの書き
込み状態を示す概念図である。
81.22・・・インデックス、83・・・ヌルインデ
ックス第
図
第
図
第
図
第
図FIG. 1 is a block diagram showing an embodiment of a floppy disk file storage system according to the present invention. DESCRIPTION OF SYMBOLS 1...Floppy disk, 2...Floppy disk device, 3...Writing means, 4...Reading means, 5...Disk input/output processing program FIG. 2 shows the file of the floppy disk according to the present invention. FIG. 2 is a conceptual diagram showing a floppy disk on which files are written and read using a storage method. 11... File storage area, 12... Index storage area FIG. 3 is a diagram showing the format of files stored in the file storage area of the floppy disk. 13...File header, 14...File entity FIG. 4 is a diagram showing the format of the index stored in the index storage area of the floppy disk. 15...File name field, 16...Address field, 17...Usage field FIG. 5 is a flowchart showing the writing process. Process 31: Importing file storage location, Process 32
...Write file header, Process 33...Write file entity, Process 34...Update file storage position, Process 35...Write index, Process 36...Write null index FIG. is a flowchart showing the reading process. Process 41... Index reading, Process 42...
・Determination of null index, processing 43...Determination of purpose of use, processing 44...File reading Figure 7 shows the second
FIG. 3 is a conceptual diagram showing an image when writing a file to the floppy disk shown in the figure. 71... File header, 72... File entity,
73...Index, 74...Null index FIG. 8 is a conceptual diagram showing the state of writing files to the floppy disk of FIG. 2. 81.22... Index, 83... Null index Figure Figure Figure Figure
Claims (1)
ルのファイル名と格納位置とファイルの用途を登録する
インデックスをフロッピーディスクの最後部のインデッ
クス格納領域に書き込む手段と、フロッピーディスクか
らのファイルの読み出し時にフロッピーディスクの最後
部におかれたインデックス格納領域のインデックスを参
照し読み出しインデックスに登録されている用途を照合
して目的と一致するファイルの格納位置を得てファイル
にアクセスする読み出し手段とを有することを特徴とす
るフロッピーディスクのファイル格納方式。A method for writing an index for registering the file name, storage location, and file usage of a file to the index storage area at the end of the floppy disk when writing a file to the floppy disk, and a method for writing an index to the index storage area at the end of the floppy disk when reading a file from the floppy disk. reading means for accessing the file by referring to the index of the index storage area placed in the storage area, collating the purpose registered in the reading index, obtaining the storage position of the file that matches the purpose. Floppy disk file storage method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15724290A JPH0447581A (en) | 1990-06-15 | 1990-06-15 | File storing system for floppy disk |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15724290A JPH0447581A (en) | 1990-06-15 | 1990-06-15 | File storing system for floppy disk |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0447581A true JPH0447581A (en) | 1992-02-17 |
Family
ID=15645357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15724290A Pending JPH0447581A (en) | 1990-06-15 | 1990-06-15 | File storing system for floppy disk |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0447581A (en) |
-
1990
- 1990-06-15 JP JP15724290A patent/JPH0447581A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5890208A (en) | Command executing method for CD-ROM disk drive | |
| JP2770855B2 (en) | Digital information storage and retrieval method and apparatus | |
| KR920005107A (en) | Initial and updated data recording and reading methods and data storage media | |
| US5165043A (en) | Memory card system and access method for memory card | |
| JPH0447581A (en) | File storing system for floppy disk | |
| JPS5851348A (en) | High-speed access system for variable-length record | |
| JPS63104284A (en) | Disk file access system | |
| JPH036634A (en) | File storing system for floppy disk | |
| JPS61103242A (en) | High-speed retrieval system | |
| JPH03276254A (en) | Document control system | |
| JPH02265074A (en) | Write-once optical disk for data file system | |
| JPS62177642A (en) | File management system for postscript filing device | |
| JPS63184960A (en) | Data control system | |
| JPH07141112A (en) | External memory control unit | |
| JP2000305817A (en) | Data storage method of data retrieval system | |
| JPS62226346A (en) | File control system | |
| JPS619721A (en) | Sector control system of magnetic disk device | |
| JPH01258288A (en) | Directory retrieving method | |
| JPH02185783A (en) | Read/write system for cartridge magnetic tape device | |
| JPS62271029A (en) | Disk cache control system | |
| JPS6278638A (en) | File recording and control system | |
| JPH06149647A (en) | Multi-media file managing system | |
| JPH0498516A (en) | Disk accessing system | |
| JPH03252738A (en) | File managing system | |
| JPH04150112A (en) | Character code checking processor |