JPH05143245A - Floppy disk device control system - Google Patents

Floppy disk device control system

Info

Publication number
JPH05143245A
JPH05143245A JP33134091A JP33134091A JPH05143245A JP H05143245 A JPH05143245 A JP H05143245A JP 33134091 A JP33134091 A JP 33134091A JP 33134091 A JP33134091 A JP 33134091A JP H05143245 A JPH05143245 A JP H05143245A
Authority
JP
Japan
Prior art keywords
file
floppy disk
disk device
control system
memory
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
JP33134091A
Other languages
Japanese (ja)
Inventor
Masahiro Okada
正博 岡田
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP33134091A priority Critical patent/JPH05143245A/en
Publication of JPH05143245A publication Critical patent/JPH05143245A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the floppy disk device control system which can execute a file access in a short time. CONSTITUTION:In the case a disk is inserted into a floppy disk device 4, all files stored in the disk are stored onto an internal memory 6. In the case a file access request is generated to the disk device 4, a CPU 5 executes the access request by executing read/write to the file stored in the memory 6 or generating the file on the internal memory 6. In the case the access request is a write request or a file generating request, a file updating bit in file control information is set to '1' from '0'. After a prescribed time elapses after '0' becomes '1', or in the case a disk fetching button is pushed, the file is written in the disk.

Description

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

【0001】[0001]

【技術分野】本発明は、フロッピィディスクに格納され
たデータのリードおよびライトを行なうフロッピィディ
スク装置制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a floppy disk drive control system for reading and writing data stored on a floppy disk.

【0002】[0002]

【従来技術】図2を参照して、従来のフロッピィディス
ク装置制御方式について説明する。ホストプロセッサ
1、メモリ2およびフロッピィディスク装置10が、シ
ステムバス3により接続されている。フロッピィディス
ク装置10はFDD制御部14を有している。
2. Description of the Related Art A conventional floppy disk drive control system will be described with reference to FIG. A host processor 1, a memory 2 and a floppy disk device 10 are connected by a system bus 3. The floppy disk device 10 has an FDD control unit 14.

【0003】従来、この種のフロッピィディスク装置制
御方式では、フロッピィディスクに格納されているファ
イルに対するリード、ライトおよびファイル作成等のフ
ァイルアクセス要求が発生した場合、フロッピィディス
ク装置10は、ホストプロセッサ1からのファイルアク
セス要求に対し、ファイルアクセス毎にFDD制御部1
1を介して対象のファイルのリード、ライトおよびファ
イル作成を行なっていた。
Conventionally, in this type of floppy disk drive control system, when a file access request such as read, write, or file creation for a file stored in a floppy disk is issued, the floppy disk drive 10 is sent from the host processor 1. FDD control unit 1 for each file access
The target file was read, written, and created via 1.

【0004】このように、従来のフロッピィディスク装
置制御方式では、ファイルに対するリード、ライトおよ
びファイル作成等のアクセス要求が発生するたびに、フ
ロッピィディスクにアクセスしていたため、ファイルに
対するアクセス処理が完了するまでに多くの時間を費や
す。
As described above, in the conventional floppy disk drive control method, the floppy disk is accessed every time an access request such as read, write, and file creation is made to the file, so that the access processing to the file is completed. Spend a lot of time on.

【0005】[0005]

【発明の目的】したがって、本発明の目的は、短時間で
ファイルアクセスが可能なフロッピィディスク装置制御
方式を提供することである。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a floppy disk drive control system capable of accessing a file in a short time.

【0006】[0006]

【発明の構成】本発明のフロッピィディスク装置制御方
式は、フロッピィディスク装置へのフロッピィディスク
の着脱の検出を行ない、前記フロッピィディスクの装着
を検出した場合、前記フロッピィディスクに格納された
すべてのファイルを読出してメモリ上に格納し、ホスト
プロセッサから発生するファイルへのアクセス要求に対
し、前記メモリ上のファイルを用いてリードおよびライ
ト動作を実行し、ライト動作を行なった前記ファイルを
前記フロッピィディスクに書込むことを特徴としてい
る。
According to the floppy disk drive control system of the present invention, when the floppy disk is attached / detached to / from the floppy disk drive, and when the attachment of the floppy disk is detected, all files stored in the floppy disk are detected. The file is read out and stored in the memory, and in response to an access request to the file generated from the host processor, the file in the memory is used to perform the read and write operations, and the file subjected to the write operation is written to the floppy disk. It is characterized by including.

【0007】[0007]

【実施例】次に、本発明の一実施例を示した図面を参照
して、本発明をより詳細に説明する。
The present invention will now be described in more detail with reference to the drawings showing one embodiment of the present invention.

【0008】図1を参照すると、本発明の一実施例にお
いて、ホストプロセッサ1、メモリ2およびフロッピィ
ディスク装置4が、システムバス3によって接続されて
いる。フロッピィディスク装置4においては、内部バス
7によって、CPU5、内部メモリ6、FDD制御部8
およびディスク検出部9が接続されている。
Referring to FIG. 1, in one embodiment of the present invention, a host processor 1, a memory 2 and a floppy disk device 4 are connected by a system bus 3. In the floppy disk device 4, the CPU 5, the internal memory 6, and the FDD control unit 8 are connected by the internal bus 7.
And the disk detection unit 9 is connected.

【0009】ディスク検出部9は、フォト・センサやマ
イクロ・スイッチなどのディスク検出スイッチを有して
おり、フロッピィディスクの着脱の検出を行ない、検出
結果をCPU5に通知する機能を有している。CPU5
はディスク検出部9からフロッピィディスクの着脱状態
を認識し、フロッピィディスクがフロッピィディスク装
置4に挿入された場合、フロッピィディスクに格納され
ているすべてのファイルを読出し、内部メモリ6上に格
納する。
The disk detection section 9 has a disk detection switch such as a photo sensor or a micro switch, and has a function of detecting attachment / detachment of the floppy disk and notifying the CPU 5 of the detection result. CPU5
Recognizes the removable state of the floppy disk from the disk detector 9, and when the floppy disk is inserted into the floppy disk device 4, reads all files stored in the floppy disk and stores them in the internal memory 6.

【0010】図3は内部メモリ6上に格納されたファイ
ルの状態を示すメモリマップであり、ファイルの状態を
示すファイル制御情報12、ファイル名やBOE(ファ
イルの始まり)、EOB(ファイルの終わり)、EOE
(格納されるデータの終わり)などのファイル保守情報
13が、ファイルのデータ14に付加された状態で格納
されていることを示している。
FIG. 3 is a memory map showing the state of the file stored in the internal memory 6, and file control information 12 showing the state of the file, file name and BOE (beginning of file), EOB (end of file). , EOE
It indicates that the file maintenance information 13 such as (end of stored data) is added to the file data 14 and stored.

【0011】ホストプロセッサ1からのフロッピィディ
スク装置4に対するリード、ライトおよびファイル作成
などのファイイルアクセス要求が発生した場合、CPU
5は、内部メモリ6に格納されたファイルに対するリー
ド/ライトあるいは内部メモリ6上にファイル作成する
ことにより、アクセス要求を実行する。その際、アクセ
ス要求がライト要求あるいはファイル作成要求だった場
合、ファイル制御情報12内のファイル更新ビットを
「0」から「1」にして、ファイルの更新が行なわれた
ことを明示する。
When a file access request such as read, write and file creation from the host processor 1 to the floppy disk device 4 is issued, the CPU
Reference numeral 5 executes an access request by reading / writing a file stored in the internal memory 6 or by creating a file in the internal memory 6. At that time, if the access request is a write request or a file creation request, the file update bit in the file control information 12 is changed from "0" to "1" to clearly indicate that the file has been updated.

【0012】CPU5は、一定時間毎に全てのファイル
のファイル制御情報12の監視を行ない、ファイルの更
新が行われファイル制御情報12のファイル更新ビット
が「0」から「1」になってから一定時間経過したファ
イルをフロッピィディスクに書込み、ファイル制御情報
12内のファイル更新ビットを「1」から「0」にす
る。
The CPU 5 monitors the file control information 12 of all the files at regular intervals, updates the files, and keeps constant after the file update bit of the file control information 12 changes from "0" to "1". The file whose time has passed is written to the floppy disk, and the file update bit in the file control information 12 is changed from "1" to "0".

【0013】その後、フロッピィディスク装置4のフロ
ッピィディスク取出しボタンが押された場合、CPU5
は、ファイル制御情報12内のファイル更新ビットが
「1」であるファイルをすべてフロッピィディスクに書
込み、同時に内部メモリ6に格納していたファイルの情
報およびデータを消去する。
After that, when the floppy disk take-out button of the floppy disk device 4 is pressed, the CPU 5
Writes all the files having the file update bit "1" in the file control information 12 to the floppy disk, and at the same time erases the information and data of the file stored in the internal memory 6.

【0014】[0014]

【発明の効果】以上説明したように、本発明によれば、
まずディスク検出部からのフロッピィディスク着脱情報
をCPUに通知し、次に、フロッピィディスクに格納さ
れるすべてのファイルの内容をメモリ上に転送し、その
後発生するファイルアクセス要求に対し、メモリ上のフ
ァイルのデータによってファイルアクセスを実行し、フ
ァイルアクセスを行なったファイルだけをフロッピィデ
ィスクに書込むことにより、ファイルアクセスに要する
時間を短縮することができる。
As described above, according to the present invention,
First, the floppy disk attachment / detachment information from the disk detection unit is notified to the CPU, then the contents of all files stored on the floppy disk are transferred to the memory, and the file on the memory is responded to by the file access request that occurs subsequently. By executing the file access with the data of and writing only the accessed file to the floppy disk, the time required for the file access can be shortened.

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

【図1】本発明の実施例によるフロッピィディスク装置
制御方式のブロック図である。
FIG. 1 is a block diagram of a floppy disk drive control method according to an embodiment of the present invention.

【図2】従来のフロッピィディスク装置制御方式のブロ
ック図である。
FIG. 2 is a block diagram of a conventional floppy disk drive control system.

【図3】図1に示した実施例における内部メモリのメモ
リマップを示す図である。
FIG. 3 is a diagram showing a memory map of an internal memory in the embodiment shown in FIG.

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

1 ホストプロセッサ 2 メモリ 3 システムバス 4,10 フロッピィディスク装置 5 CPU 6 内部メモリ 7 内部バス 8,11 FDD制御部 9 ディスク検出部 12 ファイル制御情報 13 ファイル保守情報 14 データ 1 Host Processor 2 Memory 3 System Bus 4, 10 Floppy Disk Unit 5 CPU 6 Internal Memory 7 Internal Bus 8, 11 FDD Control Unit 9 Disk Detection Unit 12 File Control Information 13 File Maintenance Information 14 Data

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 フロッピィディスク装置へのフロッピィ
ディスクの着脱の検出を行ない、前記フロッピィディス
クの装着を検出した場合、前記フロッピィディスクに格
納されたすべてのファイルを読み出してメモリ上に格納
し、ホストプロセッサからの発生するファイルへのアク
セス要求に対し、前記メモリ上のファイルを用いてリー
ドおよびライト動作を実行し、ライト動作を行なった前
記フロッピィディスクに書込むことを特徴とするフロッ
ピィディスク装置制御方式。
1. A host processor which detects the attachment / detachment of a floppy disk to / from a floppy disk device and, when the floppy disk installation is detected, reads all files stored in the floppy disk and stores them in a memory. In response to an access request to a file generated from, a read / write operation is executed using the file in the memory, and the write operation is performed to the floppy disk device control system.
【請求項2】 前記ファイルから前記フロッピィディス
クへの書込みを、ライト動作が行なわれた後一定時間経
過した時点で行なうことを特徴とする請求項1記載のフ
ロッピィディスク装置制御方式。
2. The floppy disk drive control system according to claim 1, wherein writing from the file to the floppy disk is performed at a time point when a predetermined time has elapsed after a write operation was performed.
【請求項3】 前記ファイルから前記フロッピィディス
クへの書込みを、フロッピィディスク取出しボタンが押
された場合に行なうことを特徴とする請求項1または2
記載のフロッピィディスク装置制御方式。
3. The writing to the floppy disk from the file is performed when a floppy disk eject button is pressed.
Floppy disk device control method described.
JP33134091A 1991-11-20 1991-11-20 Floppy disk device control system Pending JPH05143245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33134091A JPH05143245A (en) 1991-11-20 1991-11-20 Floppy disk device control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33134091A JPH05143245A (en) 1991-11-20 1991-11-20 Floppy disk device control system

Publications (1)

Publication Number Publication Date
JPH05143245A true JPH05143245A (en) 1993-06-11

Family

ID=18242590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33134091A Pending JPH05143245A (en) 1991-11-20 1991-11-20 Floppy disk device control system

Country Status (1)

Country Link
JP (1) JPH05143245A (en)

Similar Documents

Publication Publication Date Title
JP2000148465A (en) Firmware changing method
JP4453203B2 (en) Device environment setting system, device environment setting processing method, and information recording medium
JPH1049365A (en) Floppy disk drive
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
US8688938B2 (en) Data copying
JP2007128448A (en) File system and file information processing method
JPH05143245A (en) Floppy disk device control system
JPH027096B2 (en)
JP3951808B2 (en) Hard disk drive subsystem
JPH0793101A (en) Data backup device
JP3130798B2 (en) Bus transfer device
JP2005182254A (en) Device driver installation system
JP2664168B2 (en) Starting method of information processing device
JPH11212845A (en) Device and method for backup data management and recording medium
JP3057883B2 (en) File reference method
JP2584001B2 (en) Information processing device
JPS6125168B2 (en)
JP2001195283A (en) Device and method for processing data
JPS63298442A (en) Application managing device
JP2020087021A (en) Information processing device, image forming device and program
JPH0962455A (en) Computer system
JPH11353159A (en) Computer, re-setup method for computer, and recording medium where re-setup program is recorded
JPH06124218A (en) Disk content destruction factor estimation supporting method and information processing system with disk content destruction factor estimation supporting function
JPH05216718A (en) Debugging method
JPH06230987A (en) Information processor