JPH0654583B2 - Auxiliary storage device data writing method - Google Patents

Auxiliary storage device data writing method

Info

Publication number
JPH0654583B2
JPH0654583B2 JP16496086A JP16496086A JPH0654583B2 JP H0654583 B2 JPH0654583 B2 JP H0654583B2 JP 16496086 A JP16496086 A JP 16496086A JP 16496086 A JP16496086 A JP 16496086A JP H0654583 B2 JPH0654583 B2 JP H0654583B2
Authority
JP
Japan
Prior art keywords
write
read
sector
storage device
auxiliary storage
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.)
Expired - Fee Related
Application number
JP16496086A
Other languages
Japanese (ja)
Other versions
JPS6320767A (en
Inventor
晴夫 伊藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP16496086A priority Critical patent/JPH0654583B2/en
Publication of JPS6320767A publication Critical patent/JPS6320767A/en
Publication of JPH0654583B2 publication Critical patent/JPH0654583B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔概要〕 フロッピーディスク内の指定されたシリンダ内の指定さ
れたセクタにアクセスすると同時にカウンタで書込みバ
イト数の計数を開始し、指定された計数値になると更新
データをセクタに書込む。
DETAILED DESCRIPTION [Outline] When a designated sector in a designated cylinder in a floppy disk is accessed, the counter starts counting the number of write bytes at the same time, and when the designated count value is reached, the update data is updated to the sector. Write to.

〔産業上の利用分野〕[Industrial application field]

本発明は補助記憶装置に対するデータ書込み方式の改善
に関するものである。
The present invention relates to improvement of a data writing method for an auxiliary storage device.

〔従来の技術〕[Conventional technology]

第3図は従来の補助記憶装置に対するデータ書込み方式
の一例を示す図である。
FIG. 3 is a diagram showing an example of a data writing method for a conventional auxiliary storage device.

図中、1はリード/ライト制御部、2はメモリ、3はフ
ロッピーディスクである。尚以下全図を通じ同一信号は
同一対象物を表す。
In the figure, 1 is a read / write controller, 2 is a memory, and 3 is a floppy disk. The same signal represents the same object throughout the drawings.

従来フロッピーディスク、ハードディスク等の補助記憶
装置に対するデータ書込み方式はセクタ単位で行われて
いた。
Conventionally, a data writing method for an auxiliary storage device such as a floppy disk or a hard disk has been performed in units of sectors.

フロッピーディスク3に対して書込み/読出しを行う時
は其のシリンダを指定し、セクタを指定して書込み/読
出しを行う。
When writing / reading to / from the floppy disk 3, the cylinder is designated, and the sector is designated to write / read.

フロッピーディスク3のメモリ領域は同心円状の多数の
シリンダCm、Cm+1等から構成され、一つのシリンダC
には第3図に示す様に多数のセクタS1〜Snが収容さ
れ、一例として各セクタS1〜Snは夫々256バイトで構
成される。
The memory area of the floppy disk 3 is composed of a large number of concentric cylinders C m , C m + 1, etc.
As shown in FIG. 3, a large number of sectors S 1 to S n are accommodated in each sector, and each sector S 1 to S n is composed of 256 bytes as an example.

例えばフロッピーディスク3に対しデータの更新を行う
時は、処理部(図示されていない)からシリンダCのア
ドレスとセクタSのアドレスを指定したリード・コマン
ドが出る。
For example, when updating data on the floppy disk 3, a read command specifying the address of the cylinder C and the address of the sector S is issued from the processing unit (not shown).

リード/ライト制御部1は此のリード・コマンドを受信
すると、指定されたアドレスのシリンダC内の指定され
たアドレスのセクタにアクセスし、其のセクタの内容
(256バイト分)を一旦読出してメモリ2に格納する。
When the read / write control unit 1 receives this read command, it accesses the sector of the specified address in the cylinder C of the specified address, once reads the contents (256 bytes) of that sector, and stores it in the memory. Store in 2.

従ってメモリ2は少なくとも1セクタ分の記憶容量(25
6バイト)が必要となる。
Therefore, the memory 2 has a storage capacity of at least one sector (25
6 bytes) is required.

次にリード/ライト制御部1は此のメモリ2内の指定さ
れたバイト位置のデータを更新する。
Next, the read / write controller 1 updates the data at the designated byte position in the memory 2.

メモリ2内のデータを更新した後、リード/ライト制御
部1は再び前と同じセクタSにアクセスし、メモリ2内
の256バイト分の全データを当該セクタに移す−書込む
−方式を採っている。
After updating the data in the memory 2, the read / write control unit 1 again accesses the same sector S as before and moves all the data of 256 bytes in the memory 2 to the sector-writing-method. There is.

即ち、セクタ単位で読出しを1回、書込みを1回、計2
回のアクセスを行う方式を採っている。
That is, once for each sector, once for writing, and once for writing, a total of 2
The method of accessing once is adopted.

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

此の様にフロッピーディスク内のデータを更新する場
合、従来方式では2回アクセスしなければならないと云
う欠点があった。
As described above, when updating the data in the floppy disk, the conventional method has a drawback that it must be accessed twice.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点は第1図の原理図に示す様にリード/ライト
命令によりリード/ライト制御部1が補助記憶装置3内
のシリンダ及びセクタを指定してアクセスし、セクタ単
位でリード/ライトを行うデータ書込み方式に於いて、
リード/ライト制御部1に、セクタ内の書込みバイト数
を計数するカウンタ4を付加することにより解決され
る。
As for the above-mentioned problem, as shown in the principle diagram of FIG. 1, the read / write control unit 1 specifies the cylinder and sector in the auxiliary storage device 3 by the read / write command to access, and performs the read / write in sector units. In the data writing method,
This can be solved by adding a counter 4 for counting the number of write bytes in a sector to the read / write control unit 1.

〔作用〕[Action]

本発明に依るとライト命令によりリード/ライト制御部
1は指定されたシリンダ内の指定されたセクタにアクセ
スする。同時にカウンタ4が書込みバイト数の計数を開
始し、カウンタ4の計数値が指定された値になった時
に、リード/ライト制御部1は処理部5から送られて来
た更新データをセクタに書込むので補助記憶装置3に対
するアクセスが1回で済む。
According to the present invention, the read / write control unit 1 accesses a designated sector in a designated cylinder by a write command. At the same time, the counter 4 starts counting the number of write bytes, and when the count value of the counter 4 reaches the designated value, the read / write control unit 1 writes the update data sent from the processing unit 5 to the sector. Since it is included, the access to the auxiliary storage device 3 is required only once.

〔実施例〕〔Example〕

第2図は本発明に依る補助記憶装置のデータ書込み方式
の一実施例を示す図である。
FIG. 2 is a diagram showing an embodiment of the data writing method of the auxiliary storage device according to the present invention.

図中、4はカウンタ、5は処理部、6はI/O制御プロ
グラムである。
In the figure, 4 is a counter, 5 is a processing unit, and 6 is an I / O control program.

処理部5がI/O制御プログラム6に基づき、リード/
ライト制御部1に対してライトコマンドを出し、希望す
るシリンダ、及び希望するセクタのアドレスを指定す
る。
Based on the I / O control program 6, the processing unit 5 reads /
A write command is issued to the write control unit 1 to specify the address of the desired cylinder and the desired sector.

リード/ライト制御部1は上記コマンドによりフロッピ
ーディスク3内のシリンダC、及びセクタSのアドレス
を設定してアクセスする。
The read / write control unit 1 sets the addresses of the cylinder C and the sector S in the floppy disk 3 by the above command and accesses the floppy disk 3.

アクセスすると同時にカウンタ4が書込みバイト数の計
数を開始し、カウンタ4の計数値が指定された値になる
と、リード/ライト制御部1は処理部5から送られて来
た更新データをセクタSに書込む。
At the same time as the access, the counter 4 starts counting the number of write bytes, and when the count value of the counter 4 reaches a specified value, the read / write control unit 1 transfers the update data sent from the processing unit 5 to the sector S. Write.

此の様に1回のアクセスによりセクタ内の所定位置に書
込みを行うことが出来る。
As described above, writing can be performed at a predetermined position in the sector by one access.

〔発明の効果〕〔The invention's effect〕

以上詳細に説明した様に本発明によれば、1回のアクセ
スにより、フロッピーディスクの所定の位置に書き込む
ことが出来ると云う大きい効果がある。
As described in detail above, according to the present invention, there is a great effect that the data can be written in a predetermined position of the floppy disk by one access.

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

第1図は本発明の原理図である。 第2図は本発明に依る補助記憶装置のデータ書込み方式
の一実施例を示す図である。 第3図は従来の補助記憶装置のデータ書込み方式の一例
を示す図である。 図中、1はリード/ライト制御部、2はメモリ、3はフ
ロッピーディスク補助記憶装置、4はカウンタ、5は処
理部、6はI/O制御プログラムである。
FIG. 1 is a principle diagram of the present invention. FIG. 2 is a diagram showing an embodiment of the data writing method of the auxiliary storage device according to the present invention. FIG. 3 is a diagram showing an example of a data writing method of a conventional auxiliary storage device. In the figure, 1 is a read / write control unit, 2 is a memory, 3 is a floppy disk auxiliary storage device, 4 is a counter, 5 is a processing unit, and 6 is an I / O control program.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】リード/ライト命令によりリード/ライト
制御部(1)が補助記憶装置(3)内のシリンダ及びセクタを
指定してアクセスし、該セクタ単位でリード/ライトを
行うデータ書込み方式に於いて、 該リード/ライト制御部(1)に、該セクタ内の書込みバ
イト数を計数するカウンタ(4)を付加し、 該ライト命令により該リード/ライト制御部(1)は指定
されたシリンダ内の指定されたセクタにアクセスすると
同時に該カウンタ(4)が書込みバイト数の計数を開始
し、 該カウンタ(4)の計数値が指定された値になった時に該
リード/ライト制御部(1)が更新データを書込むことを
特徴とする補助記憶装置のデータ書込み方式。
1. A data write system in which a read / write control unit (1) specifies a cylinder and a sector in an auxiliary storage device (3) to access by a read / write command, and performs read / write in sector units. In this case, a counter (4) for counting the number of write bytes in the sector is added to the read / write control unit (1), and the read / write control unit (1) is designated by the write command. The counter (4) starts counting the number of write bytes at the same time when the designated sector in the counter is accessed, and when the count value of the counter (4) reaches the designated value, the read / write control unit (1 ) Writes the update data, the data writing method of the auxiliary storage device.
JP16496086A 1986-07-14 1986-07-14 Auxiliary storage device data writing method Expired - Fee Related JPH0654583B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16496086A JPH0654583B2 (en) 1986-07-14 1986-07-14 Auxiliary storage device data writing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16496086A JPH0654583B2 (en) 1986-07-14 1986-07-14 Auxiliary storage device data writing method

Publications (2)

Publication Number Publication Date
JPS6320767A JPS6320767A (en) 1988-01-28
JPH0654583B2 true JPH0654583B2 (en) 1994-07-20

Family

ID=15803135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16496086A Expired - Fee Related JPH0654583B2 (en) 1986-07-14 1986-07-14 Auxiliary storage device data writing method

Country Status (1)

Country Link
JP (1) JPH0654583B2 (en)

Also Published As

Publication number Publication date
JPS6320767A (en) 1988-01-28

Similar Documents

Publication Publication Date Title
JP2998857B2 (en) Structured data storage method and medium
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
JPH05224822A (en) Collective storage device
JPH0654583B2 (en) Auxiliary storage device data writing method
EP0108651A2 (en) Dynamic addressing for variable track length cache memory
JP2681986B2 (en) Computer system
JPH0673112B2 (en) Disk cache controller
JPS6331809B2 (en)
JPS6024491B2 (en) Address conversion control method
JPS58219658A (en) Magnetic disk controller
JPH0728700A (en) Storage device
JPS6249549A (en) Magnetic disk controller
JPH04195563A (en) Controller for memory system
JPH01292421A (en) Method for copying data in memory card
JPS6349924A (en) Rapid disk access device
JPH02302813A (en) Device for storing and setting up hard disk parameter
JPH073661B2 (en) Information processing system and control method thereof
JPH03178093A (en) Disk controller
JPH01113844A (en) Disk cache device
JPS6228831A (en) Control device for magnetic disk or the like
JPS58169271A (en) Data buffer control system
JPS61147358A (en) Initial program loading circuit
JPS59231665A (en) Disk controller
JPH0477916A (en) Magnetic disk device
JPH01188966A (en) Magnetic disk controller containing cache

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees