JPH0467468A - Writing control system for disk device - Google Patents
Writing control system for disk deviceInfo
- Publication number
- JPH0467468A JPH0467468A JP18096290A JP18096290A JPH0467468A JP H0467468 A JPH0467468 A JP H0467468A JP 18096290 A JP18096290 A JP 18096290A JP 18096290 A JP18096290 A JP 18096290A JP H0467468 A JPH0467468 A JP H0467468A
- Authority
- JP
- Japan
- Prior art keywords
- data
- disk medium
- counting means
- writing
- value
- 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
- 230000006378 damage Effects 0.000 abstract description 4
- 230000002401 inhibitory effect Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 241001122767 Theaceae Species 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
データ書込み時にディスク装置のデータ破壊を防止する
ディスク装置の書込み制御方式に関し、データアンダラ
ン状態での書込みを禁止してディスク媒体へ無効データ
か書込まれデータか破壊されることを防止することを目
的とし、上位装置から転送されるデータをデー・タバッ
ファに格納し、該データバッファからブロック単位で読
出したデータをディスク媒体に書込むディスク装置の書
込み制御方式において、該データバッファに上位装置か
ら1ブロック分のデータか格納される毎にカウントアツ
プする第1のカウント手段と、該データバッファから1
ブロック分のデータを読出して該ディスク媒体に書込む
毎にカウントアツプする第2のカウント手段と、該第1
のカウント手段の値と該第2のカウント手段の値とを比
較して該第1のカウント手段の値か大なるときにのみ該
ディスク媒体への書込みを許可する書込み許可手段とを
有し構成する。[Detailed Description of the Invention] [Summary] Regarding a write control method for a disk device that prevents data destruction in a disk device during data writing, writing in a data underrun state is prohibited and invalid data or data is written to a disk medium. A write control method for disk devices in which data transferred from a host device is stored in a data buffer, and data read in blocks from the data buffer is written to a disk medium, with the aim of preventing data from being destroyed. a first counting means that counts up each time one block of data is stored from the host device in the data buffer;
a second counting means that counts up each time a block of data is read and written to the disk medium;
write permission means for comparing the value of the counting means and the value of the second counting means and permitting writing to the disk medium only when the value of the first counting means is greater. do.
本発明はディスク装置の書込み制御方式に関し、データ
書込み時にディスク装置のデータ破壊を防止するディス
ク装置の書込み制御方式に関する。The present invention relates to a write control method for a disk device, and more particularly, to a write control method for a disk device that prevents data destruction in the disk device during data writing.
磁気ディスク装置、光デイスク装置等のディスク装置て
は上位装置からのデータ転送速度かディスク媒体へのデ
ータ書込み速度と異なるために一担上位装置からのデー
タをデータバッファに蓄積しデータバッファからディス
ク媒体へデータの書込みを行なう。この際に無効データ
かディスク媒体に書込まれてデータか破壊されることを
防止する必要かある。For disk devices such as magnetic disk devices and optical disk devices, the data transfer speed from the host device is different from the data writing speed to the disk medium, so data from the host device is stored in a data buffer and transferred from the data buffer to the disk medium. Write data to. At this time, it is necessary to prevent invalid data from being written to the disk medium and being destroyed.
従来においてはデータバッファにデータの書込み単位で
あるlブロワ2分のデータか上位装置から転送されてな
い状態、所謂データアンダラ〉状態であっても、ディス
ク媒体から書込み要求かあると、データバッファ上の1
ブロツクのデータをディスク媒体に書込んでおり、この
後、データバッファに上位装置から1ブロツク分のデー
タか転送された後でディスク媒体への再書込みを行なっ
ている。Conventionally, even if the data for two blowers, which is the data writing unit, has not been transferred from the host device to the data buffer (a so-called data under-order state), when there is a write request from the disk medium, the data is stored in the data buffer. 1
A block of data is written to the disk medium, and after one block of data is transferred from the host device to the data buffer, it is rewritten to the disk medium.
上記従来方式ではデータアンダラン状態でディスク媒体
への書込みを行なった場合、ディスク媒体には上記書込
まれたIブ0ツクの一部に無効データか書込まれており
、この後、電源かおちる等によって上位装置によるリト
ライ(再書込み)かできない場合、ディスク媒体のデー
タか無効データの書込みによって破壊されたままになる
という問題かあった。In the above conventional method, when data is written to a disk medium in a data underrun state, invalid data is written to a part of the written I block on the disk medium, and after this, the power is turned off. If the host device cannot retry (rewrite) due to a failure or the like, there is a problem in that the data on the disk medium remains destroyed due to writing of invalid data.
本発明は上記の点に鑑みなされたもので、データアンタ
ラン状態での書込みを禁止してディスク媒体へ無効デー
タか書込まれデータか破壊されることを防止するディス
ク装置の書込み制御方式を提供することを目的とする。The present invention has been made in view of the above points, and provides a write control method for a disk device that prohibits writing in a data untarrun state to prevent invalid data from being written to a disk medium and data being destroyed. The purpose is to
本発明のディスク装置の書込み制御方式は、上位装置か
ら転送されるデータをデータバッファに格納し、データ
バッファからブロック単位で読出したデータをディスク
媒体に書込むディスク装置の書込み制御方式において、
データバッファに上位装置から1ブロツク分のデータか
格納される毎にカウントアツプする第1のカウント手段
と、データバッファから1ブロツク分のデータを読出し
てディスク媒体に書込む毎にカウントアツプする第2の
カウント手段と、第1のカウント手段の値と第2のカウ
ント手段の値とを比較して第1のカウント手段の値か大
なるときにのみディスク媒体への書込みを許可する書込
み許可手段とを有す〔作用〕
本発明においては、第1のカウント手段の値か第2のカ
ウント手段の値より大となってデータアンダラン状聾か
解消した後、書込みか許可されるため、データアンダラ
ン状態てのディスク媒体へのデータ書込みか禁止され、
ディスク媒体に無効データか書込まれることか防止され
、これによってディスク媒体のデータ破壊か防止される
。A write control method for a disk device according to the present invention stores data transferred from a host device in a data buffer, and writes data read in blocks from the data buffer to a disk medium.
A first counting means that counts up each time one block of data is stored from the host device in the data buffer, and a second counting means that counts up each time one block of data is read from the data buffer and written to the disk medium. counting means, and write permission means for comparing the value of the first counting means and the value of the second counting means and permitting writing to the disk medium only when the value of the first counting means is greater. [Function] In the present invention, writing is permitted after the value of the first counting means becomes larger than the value of the second counting means and the data underrun condition is resolved. Writing data to disk media during run state is prohibited.
Invalid data is prevented from being written to the disk medium, thereby preventing data from being destroyed on the disk medium.
第1図は本発明方式のディスク装置の一実施例のブロッ
ク図を示す。FIG. 1 shows a block diagram of an embodiment of a disk device according to the present invention.
同図中、lOは上位装置とのデータ転送を制御するイン
タフェース制御部、11はデータバッファ12を制御す
るデータバッファ制御部、13はデータバッファ12に
有効なデータかあるときにディスク媒体14への書込み
を許可する書込み許可部、14はディスク媒体15への
データの書込み及び読出しを側副するフォーマ、ト制画
部である。In the figure, IO is an interface control unit that controls data transfer with the host device, 11 is a data buffer control unit that controls the data buffer 12, and 13 is a control unit that controls data transfer to the disk medium 14 when there is valid data in the data buffer 12. A write permission section 14 that permits writing is a formatting section that assists in writing and reading data to and from the disk medium 15.
上位装置より転送されたデータはインタフェース部10
よりデータバッファ制御部IIに供給され、データバッ
ファ制御部11によってデータバッファ12に書込まれ
る。The data transferred from the host device is transferred to the interface unit 10.
The data is supplied to the data buffer control section II, and written into the data buffer 12 by the data buffer control section 11.
データバッファ制御部11は第1のカウント手段として
のホストポインタjl aと第2のカウント手段として
のドライブポインタ11bとを有しており、インタフェ
ース制御部IOより1フロック分のデータか転送されて
データバッファ12に格納すると第2図に示す如くホス
トポインタ11aの値を「1」たけカウントツプし、ま
たデータバッファ12より1ブロック部のデータをフォ
ーマット制御部14に転送するとドライブポインタ11
bの値を「1」たけカウントアツプする。The data buffer control section 11 has a host pointer jl a as a first counting means and a drive pointer 11b as a second counting means, and the data buffer control section 11 has a host pointer jl a as a first counting means and a drive pointer 11b as a second counting means. When data is stored in the buffer 12, the value of the host pointer 11a is counted up by "1" as shown in FIG.
Count up the value of b by "1".
フォーマット制御部14はディスク媒体15の書込み準
備か整うとデータバッファ制御部11にHレベルの転送
要求信号REQDRVを供給する。When the format control unit 14 is ready for writing to the disk medium 15, it supplies the data buffer control unit 11 with an H-level transfer request signal REQDRV.
書込み許可部13は第3図に示す構成であり、端子20
.21夫々よりホストポインタtea、ドライブポイン
タ11b夫々の値を供給されると共に、端子22より転
送要求信号RE Q D RVを供給される。コンベア
回路23はホストポインタ値とドライブポインタ値とを
比較してホストポインタ値か大なるときにのみHI/ヘ
ルの信号を生成してアンド回路24に供給し、アント回
路24はコンベア回路23出力がHレベルて、かつ転送
要求信号REQDRVかHレベルのときにHしヘルの転
送応答信号ACKDRVを生成し、これをデータバッフ
ァ制御部11よりフォーマント制御部14に供給する。The write permission unit 13 has the configuration shown in FIG.
.. The terminal 21 supplies the values of the host pointer tea and the drive pointer 11b, respectively, and the transfer request signal REQDRV is supplied from the terminal 22. The conveyor circuit 23 compares the host pointer value and the drive pointer value, and only when the host pointer value is greater, generates a HI/HER signal and supplies it to the AND circuit 24. When the transfer request signal REQDRV is at H level, a transfer response signal ACKDRV of H level is generated, and this is supplied from the data buffer control unit 11 to the formant control unit 14.
データバッファ制御部11は上記転送応答信号ACKD
RVかHレベルのときにデータバッファ12より1ブロ
ック分のデータを読出してフォーマット制御部14に転
送し、フォーマット制御部14はHレベルの転送応答信
号ACKDRVの入来によってデータバッファ12より
読出された11072分のデータをディスク媒体15に
書込む。The data buffer control unit 11 receives the transfer response signal ACKD.
When RV is at the H level, one block of data is read from the data buffer 12 and transferred to the format control unit 14, and the format control unit 14 receives the transfer response signal ACKDRV at the H level to read out data from the data buffer 12. Data for 11,072 minutes is written to the disk medium 15.
このように、第1のカウント手段であるホストポインタ
11aの値か第2のカウント手段であるドライブポイン
タ11bの値より大となってデータアンダラン状態か解
消した後、書込みか許可されるため、データアンダラン
状態でのディスク媒体15へのデータ書込みか禁止され
、ディスク媒体15に無効データか書込まれることか防
止され、これによってディスク媒体のデータ破壊か防止
される。In this way, writing is permitted after the value of the host pointer 11a, which is the first counting means, becomes larger than the value of the drive pointer 11b, which is the second counting means, and the data underrun state is resolved. Data writing to the disk medium 15 in a data underrun state is prohibited, invalid data is prevented from being written to the disk medium 15, and data destruction of the disk medium is thereby prevented.
上述の如く、本発明のディスク装置の書込み制御方式に
よれば、データアンダラン状態での書込みを禁止してデ
ィスク媒体へ無効データか書込まれることを防止でき、
ディスク媒体のデータか破壊されることを防止でき、実
用上きわめて有用である。As described above, according to the write control method of the disk device of the present invention, writing in a data underrun state can be prohibited to prevent invalid data from being written to the disk medium.
This is extremely useful in practice as it can prevent the data on the disk medium from being destroyed.
のブロック図、
第2図はホストポインタとドライブポインタを説明する
ための図、
第3図は書込み許可部のブロック図である。FIG. 2 is a diagram for explaining the host pointer and drive pointer, and FIG. 3 is a block diagram of the write permission section.
図において、 10はインターフェース部、 11はデータバッファ制御部、 12はデータバッファ、 13は書込み制御部、 14はフォーマット制御部、 15はディスク媒体 を示す。In the figure, 10 is an interface section, 11 is a data buffer control unit; 12 is a data buffer; 13 is a write control unit; 14 is a format control unit; 15 is a disk medium shows.
第1図は本発明方式のディスク装置の一実施例本発明方
式のディスク装置のブロック図ホストポインタ(各)
m m+1
↓
↓
?
m m+1
ドライブポインタ
?
?
?
ホストポインタとドライブポインタを説明するだめの図
第2図FIG. 1 is a block diagram of an embodiment of a disk device according to the present invention. Host pointers (each) m m+1 ↓ ↓ ? m m+1 Drive pointer? ? ? Diagram 2 to explain host pointer and drive pointer
Claims (1)
)に格納し、該データバッファ (12)からブロック単位で読出したデータをディスク
媒体(15)に書込むディスク装置の書込み制御方式に
おいて、 該データバッファ(12)に上位装置から1ブロック分
のデータが格納される毎にカウントアップする第1のカ
ウント手段(11a)と、 該データバッファ(12)から1ブロック分のデータを
読出して該ディスク媒体(15)に書込む毎にカウント
アップする第2のカウント手段(11b)と、 該第1のカウント手段(11a)の値と該第2のカウン
ト手段(11b)の値とを比較して該第1のカウント手
段(11a)の値が大なるときにのみ該ディスク媒体(
15)への書込みを許可する書込み許可手段(13)と
を有することを特徴とするディスク装置の書込み制御方
式。[Claims] Data transferred from a host device is stored in a data buffer (12
), and writes the data read in blocks from the data buffer (12) to the disk medium (15). a first counting means (11a) that counts up each time one block of data is stored; and a second counting means (11a) that counts up each time one block of data is read from the data buffer (12) and written to the disk medium (15). The value of the first counting means (11a) is compared with the value of the second counting means (11b), and the value of the first counting means (11a) is larger. Only when the disc media (
15) a write permission means (13) for permitting writing to a disk device;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18096290A JPH0467468A (en) | 1990-07-09 | 1990-07-09 | Writing control system for disk device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18096290A JPH0467468A (en) | 1990-07-09 | 1990-07-09 | Writing control system for disk device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0467468A true JPH0467468A (en) | 1992-03-03 |
Family
ID=16092327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18096290A Pending JPH0467468A (en) | 1990-07-09 | 1990-07-09 | Writing control system for disk device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0467468A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7123554B2 (en) | 2000-09-18 | 2006-10-17 | Sanyo Electric Co., Ltd. | Disk apparatus |
-
1990
- 1990-07-09 JP JP18096290A patent/JPH0467468A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7123554B2 (en) | 2000-09-18 | 2006-10-17 | Sanyo Electric Co., Ltd. | Disk apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2002041249A (en) | Access control method and storage device using this | |
JP3178794B2 (en) | Information storage medium copy control method and information storage medium copy apparatus | |
US6018788A (en) | Data access control for disk system using a limit value and count value to optimize sequential and repeat access | |
JPH03295071A (en) | Disk driving device | |
US5584029A (en) | Data protecting system for an echangeable storage medium comprising power supply control means, medium detection means and medium identifying means | |
JPH0467468A (en) | Writing control system for disk device | |
US5319503A (en) | Method and apparatus for writing successive streams of data on a magnetic medium by writing a cancel mark indicating the cancellation of a previously-written file mark | |
JPH0129636Y2 (en) | ||
JPH0793101A (en) | Data backup device | |
JPS6217299B2 (en) | ||
JP2713317B2 (en) | Write data protection method for momentary power interruption in disk drive | |
JPS61127026A (en) | Optical disk controller | |
JPS58211257A (en) | Write controlling system of magnetic disk device | |
JPS6346553A (en) | File copying method | |
JPS6320790A (en) | Floppy disk system | |
JPH02165248A (en) | Disk cache controller | |
JPS6252761A (en) | Floppy disc device | |
JPS61127025A (en) | Optical disk controller | |
JP2001135000A (en) | Library device | |
JPH01296362A (en) | System for protecting secrecy of recording medium | |
JPH0117172B2 (en) | ||
JPS63311455A (en) | Copy protection device for software | |
JPH012155A (en) | External storage device write control method | |
JPS63251964A (en) | System for protecting magnetic disk memory | |
JPS58130408A (en) | Preventing system of breakdown of recording for disc device |