JPH0378165A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH0378165A
JPH0378165A JP21259189A JP21259189A JPH0378165A JP H0378165 A JPH0378165 A JP H0378165A JP 21259189 A JP21259189 A JP 21259189A JP 21259189 A JP21259189 A JP 21259189A JP H0378165 A JPH0378165 A JP H0378165A
Authority
JP
Japan
Prior art keywords
record
magnetic disk
writing
end mark
disk device
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
JP21259189A
Other languages
Japanese (ja)
Inventor
Toshiaki Takagi
敏彰 高木
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP21259189A priority Critical patent/JPH0378165A/en
Publication of JPH0378165A publication Critical patent/JPH0378165A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent the omission of a record due to the erroneous recognition of a final record from occurring by detecting the presence/absence of specific information at every reading of the record. CONSTITUTION:The microprocessor 11 of a magnetic disk controller 1 controls the read/write of the record on the magnetic disk medium of a magnetic disk device 3. A recording completion mark write circuit 12 writes a recording completion mark representing the completion of the write of the final record when it is performed at the same track on the magnetic disk medium. A recording completion mark detection circuit 13 detects the recording completion mark recorded on the magnetic disk medium of the magnetic disk device 3. In such a way, it is possible to confirm whether or not reading up to the final record on the same track is completed, and to prevent the omission of the record from occurring due to the erroneous recognition of the final record.

Description

【発明の詳細な説明】 技術分野 本発明は磁気ディスク制御装置に関し、特に磁気ディス
クボリュームのセイブ処理などにおけるレコードぬけ防
止方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a magnetic disk control device, and more particularly to a method for preventing record omission during save processing of a magnetic disk volume.

従来技術 従来、磁気ディスク制御装置においては、磁気ディスク
ボリュームのセイブ処理、す−なわち磁気ディスクのデ
ータを磁気テープなどの他の記憶媒体に移す処理を行う
場合、同一トラック内の最初のレコードから他のレコー
ドのカウント部が検出できなくなるまで、同一トラック
上のレコードを連続して読出すようになっていた。
Prior Art Conventionally, in a magnetic disk control device, when saving a magnetic disk volume, that is, transferring data on a magnetic disk to another storage medium such as a magnetic tape, data is saved from the first record in the same track. Records on the same track are successively read until the count section of another record can no longer be detected.

このような従来の磁気ディスク制御装置では、レコード
のカウント部が検出できなくなると、同一トラック内の
レコードの読出しを終了するようになっているので、レ
コードの書込みが連続して行われず、レコード間が開い
ている場合に非連続のレコードを読出すことができず、
磁気ディスクボリュームのセイブ処理などにおいてレコ
ードぬけが発生するという欠点がある。
In such conventional magnetic disk control devices, reading of records in the same track is terminated when the count section of the record can no longer be detected, so records are not written consecutively and there is no gap between records. is open, non-contiguous records cannot be read,
There is a drawback that record omissions occur when saving a magnetic disk volume.

すなわち、最終レコードまで連続して書込まれていると
きにはよいが、レコードの書込みが連続して行われてい
ないときには最終レコードを誤認することがあり、この
最終レコードの誤認によりその後のレコードが読出され
ず、レコードぬけが発生することになる。
In other words, it works well when the last record is written continuously, but when records are not written consecutively, the last record may be misidentified, and subsequent records may be read out due to this misidentification of the last record. Otherwise, record omissions will occur.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、最終レコードの誤認によるレコードぬけ
の発生を防止することができる磁気ディスク制御装置の
提供を目的とする。
OBJECTS OF THE INVENTION The present invention has been made to eliminate the above-mentioned drawbacks of the conventional devices, and an object of the present invention is to provide a magnetic disk control device that can prevent record omissions due to misidentification of the final record.

発明の構成 本発明による磁気ディスク制御装置は、可変長のレコー
ドを記憶する磁気ディスク装置を制御する磁気ディスク
制御装置であって、前記磁気ディスク装置に前記レコー
ドを書込むとき、同一トラック内において最後に書込む
レコードを示す最終レコードの書込み後に、前記最終レ
コードを特定する特定情報を書込む書込み手段と、前記
磁気ディスク装置に書込まれた前記レコードを他の記憶
手段に移し変えるとき、前記磁気ディスク装置から前記
レコードを読出す毎に前記特定情報の有無を検出する検
出手段とを有することを特徴とする。
Composition of the Invention A magnetic disk control device according to the present invention is a magnetic disk control device that controls a magnetic disk device that stores variable-length records, and the magnetic disk control device is a magnetic disk control device that controls a magnetic disk device that stores variable-length records. a writing means for writing specific information specifying the final record after writing a final record indicating a record to be written in the magnetic disk device; The present invention is characterized by comprising a detection means for detecting the presence or absence of the specific information each time the record is read from the disk device.

実施例 次に、本発明の一実施例について図面を参照して説明す
る。
Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、磁気ディスク制御装置1はホストプロ
セッサ2および磁気ディスク装置3に接続されており、
磁気ディスク装置3には複数のファイルが可変長で記録
される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a magnetic disk control device 1 is connected to a host processor 2 and a magnetic disk device 3.
A plurality of files are recorded in the magnetic disk device 3 with variable lengths.

磁気ディスク制御装置1のマイクロプロセッサ11は磁
気ディスク装置3の磁気ディスク媒体(図示せず)に対
するレコードの書込みおよび読出しを制御する。
The microprocessor 11 of the magnetic disk control device 1 controls writing and reading of records to and from a magnetic disk medium (not shown) of the magnetic disk device 3.

レコード終了マーク書込み回路12は磁気ディスク媒体
の同一トラックにおいて最終レコードの書込みが終了し
たとき、これを示すレコード終了マークを書込む。
The record end mark writing circuit 12 writes a record end mark indicating when writing of the last record on the same track of the magnetic disk medium is completed.

レコード終了マーク検出回路13は磁気ディスク装置3
の磁気ディスク媒体に記録されたレコード終了マークの
検出を行う。
The record end mark detection circuit 13 is connected to the magnetic disk device 3.
The record end mark recorded on the magnetic disk medium is detected.

第2図は本発明の一実施例によるレコード読取り処理の
動作を示すフローチャートである。これら第1図および
第2図を用いて本発明の一実施例の動作について説明す
る。
FIG. 2 is a flowchart showing the operation of record reading processing according to an embodiment of the present invention. The operation of an embodiment of the present invention will be explained using FIG. 1 and FIG. 2.

磁気ディスク装置3の磁気ディスク媒体にレコードを書
込む場合、マイクロプロセッサ11はデータバス100
を介してホストプロセッサ2から転送されてきたデータ
を受取ると、データバス+01を介して磁気ディスク装
置3に書込みデータを転送し、その書込みデータを磁気
ディスク装置3に書込む。
When writing a record to the magnetic disk medium of the magnetic disk device 3, the microprocessor 11 uses the data bus 100.
Upon receiving the data transferred from the host processor 2 via the data bus +01, the write data is transferred to the magnetic disk device 3 via the data bus +01, and the write data is written into the magnetic disk device 3.

マイクロプロセッサ11は磁気ディスク装置3の磁気デ
ィスク媒体の同一トラックにおいて最終レコードの書込
みが終了すると、信号線102を介してレコード終了マ
ーク書込み回路12に書込み指示信号を出力し、レコー
ド終了マークの書込みを指示する。
When the microprocessor 11 finishes writing the last record on the same track of the magnetic disk medium of the magnetic disk device 3, it outputs a write instruction signal to the record end mark writing circuit 12 via the signal line 102, and writes the record end mark. Instruct.

レコード終了マーク書込み回路12はマイクロプロセッ
サ11からの書込み指示信号を受取ると、信号線103
を介して磁気ディスク装置3にレコード終了マークを出
力し、磁気ディスク装置3の磁気ディスク媒体の同一ト
ラック上に書込まれた最終レコードの後にレコード終了
マークを書込む。
When the record end mark writing circuit 12 receives a write instruction signal from the microprocessor 11, the signal line 103 is
A record end mark is output to the magnetic disk device 3 via the magnetic disk device 3, and the record end mark is written after the last record written on the same track of the magnetic disk medium of the magnetic disk device 3.

このときの最終レコードの後に追加レコードが書込まれ
るときには、その追加レコードの後にレコード終了マー
クが書込まれる。
When an additional record is written after the last record at this time, a record end mark is written after the additional record.

磁気ディスク装置3に対してボリュームセイブ処理を行
う場合、ホストプロセッサ2からマイクロプロセッサ1
1にマルチレコードの読出し命令が出力される。
When performing volume save processing on the magnetic disk device 3, the host processor 2 to the microprocessor 1
1, a multi-record read command is output.

マイクロプロセッサ11はホストプロセッサ2からの読
出し命令を受取ると、磁気ディスク装置3において読出
し位置の位置決めを行う。マイクロプロセッサ11は位
置決めが終了すると、磁気ディスク装置3からレコード
の読出しを開始する。
When the microprocessor 11 receives a read command from the host processor 2, it positions the read position in the magnetic disk device 3. When the positioning is completed, the microprocessor 11 starts reading records from the magnetic disk device 3.

まず、マイクロプロセッサ11はレコードのカウント部
の読出しを行い(第2図ステップ21)、カウント部が
検出されて読出されると(第2図ステップ22)、レコ
ードのキ一部の有無のチエツクを行う(第2図ステップ
23)。
First, the microprocessor 11 reads out the count part of the record (step 21 in Figure 2), and when the count part is detected and read out (step 22 in Figure 2), it checks the presence or absence of the key part of the record. (Step 23 in Figure 2).

マイクロプロセッサ11はキ一部が存在すれば、そのキ
一部の読出しを行い(第2図ステップ24)、ついでレ
コードのデータ部の読出しを行う(第2図ステップ25
)。
If the key part exists, the microprocessor 11 reads out the key part (step 24 in FIG. 2), and then reads out the data part of the record (step 25 in FIG. 2).
).

このデータ部の読出しが終了すると、マイクロプロセッ
サ11は次のレコードを読出すために次のレコードのカ
ウント部の読出しを行う(第2図ステップ21)。
When the reading of this data section is completed, the microprocessor 11 reads the count section of the next record in order to read the next record (step 21 in FIG. 2).

マイクロプロセッサ11はレコードのカウント部の読出
しを行ったとき(第2図ステップ21)、そのカウント
部が検出されなければ(第2図ステップ22)、信号線
105を介して人力されるレコード終了マーク検出回路
13からのレコード終了マーク検出信号をチエツクする
(第2図ステップ26)。
When the microprocessor 11 reads the count section of the record (step 21 in FIG. 2), if the count section is not detected (step 22 in FIG. The record end mark detection signal from the detection circuit 13 is checked (step 26 in FIG. 2).

すなわち、レコード終了マーク検出回路13はマイクロ
プロセッサ11がレコードのカウント部の読出しを行っ
ているときに、信号線104を介して磁気ディスク媒体
上のレコード終了マークの有無をチエツクしており、そ
の結果をレコード終了マーク検出信号として信号線10
5を介してマイクロプロセッサ11に出方している。
That is, the record end mark detection circuit 13 checks the presence or absence of the record end mark on the magnetic disk medium via the signal line 104 when the microprocessor 11 is reading the count section of the record. signal line 10 as the record end mark detection signal.
5 to the microprocessor 11.

このレコード終了マーク検出信号によりレコード終了マ
ーク検出回路】3でレコード終了マークが検出されなか
ったことを知ると、マイクロプロセッサ11は最終レコ
ードまでの読出しが終了していないと判断し、エラー処
理番行う(第2図ステップ27)。
When the record end mark detection circuit 3 detects that no record end mark has been detected by this record end mark detection signal, the microprocessor 11 determines that the reading up to the last record has not been completed and performs an error processing step. (Step 27 in Figure 2).

また、このし、コード終了マーク検出信号によりレコー
ド終了マーク検出回路13でレコード終了マークが検出
されたことを知ると、マイクロプロセッサ11は最終レ
コードまでの読出しが終了したと判断し、その処理の終
了もしぐは次の処理に移行する(第2図ステップ28)
Furthermore, when the microprocessor 11 learns that the record end mark has been detected by the record end mark detection circuit 13 based on the code end mark detection signal, the microprocessor 11 determines that reading up to the last record has been completed, and ends the process. If so, move on to the next process (Step 28 in Figure 2)
.

このように、磁気ディスク媒体の同一トラック内におい
て最終レコードが書込まれた後にレコード終了マークを
書込んでおき、ボリュームセイブ処理のマルチレコード
の読出しを行うときにレコード終了マークの有無を検出
するようにすることによって、同一トラック内の最終レ
コードまでの読出しが終了したが否がを確認することが
でき、最終レコードの誤認によるレコードぬけを防止す
ることができる。
In this way, a record end mark is written after the last record is written in the same track on a magnetic disk medium, and the presence or absence of the record end mark is detected when reading multiple records during volume save processing. By doing so, it is possible to confirm whether reading up to the last record in the same track has been completed, and it is possible to prevent record omission due to misidentification of the last record.

尚、本発明の一実施例では最終レコードの書込み後にレ
コード終了マークを書込んでいるが、レコードのカウン
ト部にレコード終了マークフラグを設け、最終レコード
の後のカウント部のレコード終了マークフラグをセット
しておき、カウント部の読出し時にそのレコード終了マ
ークフラグをチエツクすることにより最終レコードの確
認を行うこともできる。
In one embodiment of the present invention, the record end mark is written after the last record is written, but the record end mark flag is provided in the count section of the record, and the record end mark flag is set in the count section after the last record. The last record can also be confirmed by checking the record end mark flag when reading out the count section.

また、レコード終了マークの検出をマイクロプロセッサ
11においてファームウェアを実行することによっても
行うことができ、これらに限定されない。
Furthermore, the record end mark can also be detected by executing firmware in the microprocessor 11, but the present invention is not limited thereto.

発明の詳細 な説明したように本発明によれば、同一トラック内にお
いて最終レコードの書込み後に、この最終レコードを特
定する特定情報を書込んでおき、磁気ディスク装置に書
込まれたレコードを他の記憶手段に移し変えるとき、レ
コードを読出す毎に特定情報の有無を検出するようにす
ることによって、最終レコードの誤認によるレコードぬ
けの発生を防止することができるという効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, after the last record is written in the same track, specific information for specifying the last record is written, and the record written in the magnetic disk device is shared with other records. By detecting the presence or absence of specific information each time a record is read when transferring it to the storage means, it is possible to prevent record omissions due to misidentification of the final record.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例によるレコード読取り処理の動
作を示すフローチャートである。 主要部分の符号の説明 1・・・・・・磁気ディスク制御装置 3・・・・・・磁気ディスク装置 11・・・・・・マイクロプロセッサ
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of record reading processing according to the embodiment of the invention. Explanation of symbols of main parts 1...Magnetic disk control device 3...Magnetic disk device 11...Microprocessor

Claims (1)

【特許請求の範囲】[Claims] (1)可変長のレコードを記憶する磁気ディスク装置を
制御する磁気ディスク制御装置であって、前記磁気ディ
スク装置に前記レコードを書込むとき、同一トラック内
において最後に書込むレコードを示す最終レコードの書
込み後に、前記最終レコードを特定する特定情報を書込
む書込み手段と、前記磁気ディスク装置に書込まれた前
記レコードを他の記憶手段に移し変えるとき、前記磁気
ディスク装置から前記レコードを読出す毎に前記特定情
報の有無を検出する検出手段とを有することを特徴とす
る磁気ディスク制御装置。
(1) A magnetic disk control device that controls a magnetic disk device that stores variable-length records, wherein when writing the record to the magnetic disk device, a final record indicating the last record to be written in the same track is provided. a writing means for writing specific information specifying the final record after writing; and a writing means for writing specific information for specifying the final record; and a writing means for writing specific information for specifying the final record; and a detection means for detecting the presence or absence of the specific information.
JP21259189A 1989-08-18 1989-08-18 Magnetic disk controller Pending JPH0378165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21259189A JPH0378165A (en) 1989-08-18 1989-08-18 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21259189A JPH0378165A (en) 1989-08-18 1989-08-18 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH0378165A true JPH0378165A (en) 1991-04-03

Family

ID=16625235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21259189A Pending JPH0378165A (en) 1989-08-18 1989-08-18 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0378165A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5143908A (en) * 1974-10-12 1976-04-15 Fujitsu Ltd JIKITEEPUSEIGYOHOSHIKI
JPS63197057A (en) * 1987-02-12 1988-08-15 Hitachi Ltd Information recording method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5143908A (en) * 1974-10-12 1976-04-15 Fujitsu Ltd JIKITEEPUSEIGYOHOSHIKI
JPS63197057A (en) * 1987-02-12 1988-08-15 Hitachi Ltd Information recording method

Similar Documents

Publication Publication Date Title
US5241521A (en) Optical disk driving apparatus
US20070263313A1 (en) Storage apparatus, defect check method, and program
JPS60113361A (en) Discrimination system of magnetic disk format
JPH0378165A (en) Magnetic disk controller
JPH05303854A (en) Magnetic disk device
JPS58109954A (en) Magnetic disc controller
JP2589673B2 (en) Address data detection device
JPH01171044A (en) Method for positioning block of memory
JP2002042303A (en) Magnetic disk device and error-processing method of magnetic disk device
JPH02244409A (en) Magnetic tape device
JPS63195877A (en) Data recording and reproducing system
JPH0258768A (en) Disk controller
JPS6163968A (en) Writing control method for data block
JPS6180564A (en) Alternate track write control circuit
JPS6344390A (en) Optical disk controller
JPS6095763A (en) Optical disc processor
JPH01312782A (en) Defect sector processing system
JPS6381663A (en) Data checking system for magnetic disk
JPS6141042B2 (en)
JPH09320209A (en) Disk storage device and its accessing method
JPS59121560A (en) Read control system of floppy disc
JPS60230233A (en) Magnetic disk read-out controlling system
JPH036614A (en) Magnetic disk controller
JPS6070571A (en) Detection of overrun of disc device
JPH0380321A (en) Write system for rewrite unable medium