JP7056867B2 - Control devices, control programs, and control methods - Google Patents
Control devices, control programs, and control methods Download PDFInfo
- Publication number
- JP7056867B2 JP7056867B2 JP2017241781A JP2017241781A JP7056867B2 JP 7056867 B2 JP7056867 B2 JP 7056867B2 JP 2017241781 A JP2017241781 A JP 2017241781A JP 2017241781 A JP2017241781 A JP 2017241781A JP 7056867 B2 JP7056867 B2 JP 7056867B2
- Authority
- JP
- Japan
- Prior art keywords
- user data
- format
- sector
- processing
- data area
- 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.)
- Active
Links
Images
Description
本発明は、制御装置、制御プログラム、及び制御方法に関する。 The present invention relates to a control device, a control program, and a control method.
フォーマット完了までの時間を短縮することができる、情報記録媒体に対する「論理フォーマット」にかかる技術が開示されている(例えば、特許文献1)。一般的に、情報記録媒体は、「セクタ」単位で記録情報を保存する。セクタとは、ユーザデータを含む最小基本単位であり、「ユーザデータ領域」及び「非ユーザデータ領域」を含んでいる。ユーザデータ領域のサイズは、「セクタサイズ」と呼ばれることがあり、一般的には、512バイト又は520バイトである。論理フォーマット処理は、ユーザデータ領域のデータを初期化する処理であり、セクタサイズの変更やセクタの欠陥箇所の更新を行うことはできない。 A technique relating to "logical formatting" for an information recording medium, which can shorten the time until formatting is completed, is disclosed (for example, Patent Document 1). Generally, the information recording medium stores recorded information in "sector" units. A sector is a minimum basic unit including user data, and includes a "user data area" and a "non-user data area". The size of the user data area is sometimes referred to as "sector size" and is generally 512 bytes or 520 bytes. The logical format process is a process of initializing the data in the user data area, and it is not possible to change the sector size or update the defective part of the sector.
ところで、フォーマット処理には、上記の論理フォーマット処理の他に、「物理フォーマット処理」がある。物理フォーマット処理は、上記の論理フォーマット処理と異なり、ユーザデータ領域及び非ユーザデータ領域の記録情報の初期化、セクタサイズの変更、及びセクタの欠陥箇所の更新などを行う処理である。すなわち、物理フォーマット処理は、セクタサイズの変更が伴うため、論理フォーマット処理に比べて長い処理時間を要する可能性がある。 By the way, in addition to the above-mentioned logical formatting process, the formatting process includes "physical formatting process". The physical formatting process is different from the above-mentioned logical formatting process, and is a process of initializing recorded information in a user data area and a non-user data area, changing a sector size, updating a defective part of a sector, and the like. That is, since the physical format processing involves changing the sector size, it may take a longer processing time than the logical format processing.
本開示の目的は、物理フォーマット処理の処理時間を短縮することができる、制御装置、制御プログラム、及び制御方法を提供することにある。 An object of the present disclosure is to provide a control device, a control program, and a control method capable of shortening the processing time of the physical format processing.
第1の態様にかかる制御装置は、各セクタが非ユーザデータ領域及びユーザデータ領域を有する複数のセクタをそれぞれマッピングする複数のマッピング領域を含む情報記録媒体に対する物理フォーマット処理を制御する制御部であって、フォーマット対象セクタに対応するマッピング領域の長さを変更することなく、前記フォーマット対象セクタのユーザデータ領域及び非ユーザデータ領域のサイズを変更する制御部、を具備する。 The control device according to the first aspect is a control unit that controls physical formatting processing for an information recording medium including a plurality of mapping areas in which each sector maps a plurality of sectors having a non-user data area and a user data area. A control unit that changes the size of the user data area and the non-user data area of the format target sector without changing the length of the mapping area corresponding to the format target sector is provided.
第2の態様にかかる制御プログラムは、各セクタが非ユーザデータ領域及びユーザデータ領域を有する複数のセクタをそれぞれマッピングする複数のマッピング領域を含む情報記録媒体に対する物理フォーマット処理を制御する制御処理であって、フォーマット対象セクタに対応するマッピング領域の長さを変更することなく、前記フォーマット対象セクタのユーザデータ領域及び非ユーザデータ領域のサイズを変更する制御処理を、制御装置に実行させる。 The control program according to the second aspect is a control process for controlling physical formatting processing for an information recording medium including a plurality of mapping areas in which each sector maps a plurality of sectors having a non-user data area and a user data area. Therefore, the control device is made to execute a control process for changing the size of the user data area and the non-user data area of the format target sector without changing the length of the mapping area corresponding to the format target sector.
第3の態様にかかる制御方法は、各セクタが非ユーザデータ領域及びユーザデータ領域を有する複数のセクタをそれぞれマッピングする複数のマッピング領域を含む情報記録媒体に対する物理フォーマット処理を制御するときに、フォーマット対象セクタに対応するマッピング領域の長さを変更することなく、前記フォーマット対象セクタのユーザデータ領域及び非ユーザデータ領域のサイズを変更する。 The control method according to the third aspect is a format when controlling physical formatting processing for an information recording medium including a plurality of mapping areas in which each sector maps a plurality of sectors having a non-user data area and a user data area. The size of the user data area and the non-user data area of the format target sector is changed without changing the length of the mapping area corresponding to the target sector.
本発明により、物理フォーマット処理の処理時間を短縮することができる、制御装置、制御プログラム、及び制御方法を提供することができる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to provide a control device, a control program, and a control method capable of shortening the processing time of the physical format processing.
以下、図面を参照しつつ、実施形態について説明する。なお、実施形態において、同一又は同等の要素には、同一の符号を付し、重複する説明は省略される。 Hereinafter, embodiments will be described with reference to the drawings. In the embodiment, the same or equivalent elements are designated by the same reference numerals, and duplicate description is omitted.
<第1実施形態>
<制御装置の構成例>
図1は、第1実施形態の制御装置の一例を示すブロック図である。図1において制御装置10は、制御部11を有する。
<First Embodiment>
<Configuration example of control device>
FIG. 1 is a block diagram showing an example of the control device of the first embodiment. In FIG. 1, the
制御部11は、複数の「マッピング領域」を含む情報記録媒体(例えば、ハードディスク)に対する物理フォーマット処理を制御する。各マッピング領域は、1つのセクタをマッピングする領域である。図2は、情報記録媒体の記憶領域全体(プラッタ)におけるセクタの配列の一例を示す図である。各セクタは、図2に示すようにユーザデータ領域と非ユーザデータ領域を有している。そして、非ユーザデータ領域には、同期・アドレスマーク、ECC(Error Check and Correct)領域、及び、空隙部が含まれている。同期・アドレスマークは、セクタの先頭位置を定めるために用いられるものである。また、ECCは、ユーザデータ領域に格納されたユーザデータの修復に用いられるものである。情報記録媒体を使用する場合、ホスト(OS(Operating System)又はアプリケーション等)がサポートするユーザデータ領域のサイズを使用することが求められる。例えば、複数のホストによって1つの情報記録媒体を使い回す場合、ユーザデータ領域のサイズ変更が必要となる。
The
具体的には、制御部11は、「フォーマット対象セクタ」に対応するマッピング領域の長さを変更することなく、「フォーマット対象セクタ」のユーザデータ領域及び非ユーザデータ領域のサイズを変更する。マッピング領域の長さは、情報記録媒体が対応する最大のセクタサイズに対応する固定長Lである。また、制御部11は、ライトコマンド及びユーザデータを受け取った場合、サイズ変更後のサイズに従って、ライト処理対象セクタのユーザデータ領域にユーザデータを書き込む。ここで、例えばユーザデータ領域のサイズが大きくなるように変更された場合、空隙の長さが短く調整され、逆にユーザデータ領域のサイズが小さくなるように変更された場合、空隙の長さが長く調整されてもよい。また、空隙の代わりに、非ユーザデータ領域の含まれるECCの長さが調整されてもよい。すなわち、非ユーザデータ領域の長さが変わることで、セクタが固定長のマッピング領域に収まるようにしている。
Specifically, the
この制御部11の構成により、物理フォーマット処理によってユーザデータ領域のサイズ変更がされる場合でも、図3に示すようにサイズ変更の前後でセクタの先頭位置に変化が生じない。この結果として、物理フォーマット処理にかかる時間を短縮することができる。図3は、第1実施形態の制御装置の物理フォーマット処理の説明に供する図である。図3においてバックグランドフォーマットは、ホストからのライトコマンド及びリードコマンドが来ていないアイドル時に、制御部11が行う物理フォーマット処理である。また、制御部11は、ライト処理対象セクタに対するライトコマンド及びユーザデータを受け取った場合、そのライト処理対象セクタのバックグランドフォーマット(物理フォーマット処理)が完了していない状態であっても、ライト処理を行うことができる。これは、上記の通り、図3に示すようにサイズ変更の前後でセクタの先頭位置に変化が生じないためである。この制御部11の構成により、物理フォーマット処理にかかる時間をさらに短縮することができる。
Due to the configuration of the
図4は、比較例を示す図である。図4に示すようにマッピング領域のサイズが変更されてしまう場合には、サイズ変更の前後でセクタの先頭位置に変化が生じてしまう。これにより、物理フォーマット処理に長い時間を要することになる。さらに、物理フォーマット処理が完了していないセクタに対してライト処理を行うこともできないので、物理フォーマット処理にさらに長い時間を要することになる。 FIG. 4 is a diagram showing a comparative example. When the size of the mapping area is changed as shown in FIG. 4, the head position of the sector is changed before and after the size change. As a result, the physical formatting process takes a long time. Further, since the write processing cannot be performed on the sector for which the physical formatting processing has not been completed, the physical formatting processing will take a longer time.
<第2実施形態>
<ハードディスクドライブの構成例>
図5は、第2実施形態の制御装置を含むハードディスクドライブの一例を示すブロック図である。図5においてハードディスクドライブ20は、ホストインタフェース21と、ボイスコイルモータ(VCM)ドライバ22と、ボイスコイルモータ23と、ヘッド24とを有している。ハードディスクドライブ20は、さらに、リード/ライト(R/W)チャンネル25と、スピンドルモータ(SPM)ドライバ26と、スピンドルモータ27と、情報記録媒体28と、制御装置30とを有している。
<Second Embodiment>
<Hard disk drive configuration example>
FIG. 5 is a block diagram showing an example of a hard disk drive including the control device of the second embodiment. In FIG. 5, the
ホストインタフェース21は、ホストと制御装置30との間のインタフェースである。
The
ボイスコイルモータドライバ22は、制御装置30の制御によって、ボイスコイルモータ23を駆動させる。
The voice
ヘッド24は、ボイスコイルモータ23によって移動可能に構成されている。
The
リード/ライト(R/W)チャンネル25は、制御装置30の制御によってヘッド24を介して情報記録媒体28に対するリード処理、ライト処理、及び物理フォーマット処理を行うためのチャンネルである。
The read / write (R / W)
スピンドルモータドライバ26は、制御装置30の制御によって、スピンドルモータ27を駆動させる。情報記録媒体28は、スピンドルモータ27によって回転可能に構成されている。
The
<制御装置の構成例>
図6は、第2実施形態の制御装置の一例を示すブロック図である。図6において制御装置30は、制御部31と、メモリ32とを有している。
<Configuration example of control device>
FIG. 6 is a block diagram showing an example of the control device of the second embodiment. In FIG. 6, the
メモリ32は、管理情報を記憶(保持)している。図7は、第2実施形態の管理情報の説明に供する図である。図7には、特に、管理情報の変更履歴が記載されている。図7に示すように管理情報には、項目として、フォーマットビット(つまり、管理世代情報)と、フォーマット完了論理ブロックアドレス(LBA)と、セクタサイズと、イニシャライズパターン(初期化パターン)とを含んでいる。管理情報は、「モードパラメータ」と呼ぶことができ、管理情報が記憶されるメモリ32の領域を、「モードページ」と呼ぶことができる。また、モードページは、電源断後にも保持できるように、情報記録媒体28にも保存される。図7における「初期状態」は、第2実施形態の前回の物理フォーマット処理が完了している状態の管理情報に対応する。また、「高速フォーマットユニットコマンド発行直後」は、第2実施形態の現在の物理フォーマット処理の開始直後の管理情報に対応する。また、「バックグランドフォーマット完了時」は、第2実施形態の現在の物理フォーマット処理の完了時の管理情報に対応する。
The
フォーマットビット(つまり、管理世代情報)は、物理フォーマット処理の世代を表す情報である。フォーマット完了LBAは、LBA=0のセクタから連続して物理フォーマット処理が完了しているセクタの次のLBAを示している。すなわち、フォーマット完了LBAは、次にバックグランドフォーマットを行うべきセクタのLBAを示している。LBAとは、セクタ毎に割り当てられるアドレスである。第2実施形態では、LBAは、ゼロから最大LBAまでの値をとなる。最大LBAは、情報記録媒体28の全セクタ数-1である。
The format bit (that is, management generation information) is information representing the generation of physical format processing. The format complete LBA indicates the next LBA of the sector in which the physical format processing is continuously completed from the sector with LBA = 0. That is, the format complete LBA indicates the LBA of the sector to which the background format should be performed next. The LBA is an address assigned to each sector. In the second embodiment, the LBA is a value from zero to the maximum LBA. The maximum LBA is the total number of sectors-1 of the
セクタサイズは、物理フォーマット処理で変更されるべきセクタサイズを表している。また、イニシャライズパターンは、物理フォーマット処理時に対象のセクタに書き込むデータパターンである。 The sector size represents the sector size that should be changed by the physical formatting process. The initialization pattern is a data pattern to be written in the target sector during the physical format processing.
制御部31は、「高速フォーマットコマンド」が発行された場合、情報記録媒体28の全セクタに対する現在の物理フォーマット処理の前の物理フォーマット処理が完了していることを開始条件として、現在の物理フォーマット処理を開始する。「高速フォーマット処理」とは、第2実施形態の物理フォーマット処理である。図7の「初期状態」では、前の物理フォーマット処理の管理世代情報の値が「ゼロ」であり、フォーマット完了LBAが最大LBA+1となっている。フォーマット完了LBAが最大LBA+1であることは、前の物理フォーマット処理が完了していることを意味している。
When the "high-speed format command" is issued, the
また、制御部31は、情報記録媒体28の全セクタに対する現在の物理フォーマット処理を開始する場合、上記の管理情報に含まれる管理世代情報の値を、現在の物理フォーマット処理の世代を示す世代情報の値に更新する。例えば、制御部31は、前の物理フォーマット処理の管理世代情報の値を論理否定することによって、現在の物理フォーマット処理の管理世代情報の値を算出することができる。図7の例では、「初期状態」における前の物理フォーマット処理の管理世代情報の値が「ゼロ」なので、現在の物理フォーマット処理の管理世代情報の値は、「ゼロ」を論理否定した「1」となる。
Further, when the
また、制御部31は、情報記録媒体28の全セクタに対する現在の物理フォーマット処理を開始する場合、上記の管理情報に含まれるイニシャライズパターンを変更してもよい。図7の例では、イニシャライズパターンが「00」から「FF」に変更されている。さらに、制御部31は、情報記録媒体28の全セクタに対する現在の物理フォーマット処理を開始する場合、上記の管理情報に含まれるセクタサイズを変更する。図7では、前回の物理フォーマット処理のセクタサイズ512バイトが、今回の物理フォーマット処理によってセクタサイズ520バイトへ変更される例が示されている。
Further, when the
また、制御部31は、ホストからライト処理対象セクタに対するライトコマンド及びユーザデータを受け取った場合、ライト処理対象セクタのユーザデータ領域に、ユーザデータを上記管理情報のセクタサイズに従ったサイズによって書き込む。さらに、制御部31は、ライト処理対象セクタの非ユーザデータ領域の「世代情報領域(フォーマットビット領域)」に、上記の管理情報の世代情報値を書き込む。この世代情報領域に書き込まれた世代情報値によって、制御部31は、このライト処理対象セクタが既に物理フォーマット処理が完了したセクタであると判断することができる。
Further, when the
また、制御部31は、ホストからリード処理対象セクタに対するリードコマンドを受け取った場合、上記の管理情報の管理世代情報値とリード処理対象セクタの世代情報領域に書き込まれている世代情報値とを比較する。この比較の結果、両者が一致する場合、制御部31は、リード処理対象セクタのユーザデータ領域に書き込まれているユーザデータをリードコマンドの送信元であるホストに向けて出力する。一方、この比較の結果、両者が一致しない場合、制御部31は、上記の管理情報のイニシャライズパターンをリードコマンドの送信元であるホストに向けて出力する。
Further, when the
また、制御部31は、「バックグランドフォーマット」の制御を行う。「バックグランドフォーマット」とは、ホストからのリードコマンド及びライトコマンドを受け取っていないアイドル時に行う物理フォーマット処理である。「バックグランドフォーマット」は、現在の物理フォーマット処理が情報記録媒体28の全セクタについて完了するまで行われる。制御部31は、上記の管理情報の「フォーマット完了LBA」に対応する処理対象セクタに対して、バックグランドフォーマットを実行する。上記の管理情報の「フォーマット完了LBA」に対応する処理対象セクタを、以下では、単に「処理対象セクタ」と呼ぶ。
Further, the
具体的には、制御部31は、上記の管理情報の管理世代情報の値と処理対象セクタの世代情報領域に書き込まれている世代情報の値とを比較する。この比較の結果、両者が一致しない場合、制御部31は、上記の管理情報のフォーマットサイズの値及びイニシャライズパターンを取得する。そして、制御部31は、取得したフォーマットサイズにしたイニシャライズパターンを、処理対象セクタに対して書き込む。さらに、制御部31は、上記の管理情報から取得した管理世代情報値を、処理対象セクタの非ユーザデータ領域の「世代情報領域(フォーマットビット領域)」に書き込む。そして、制御部31は、上記の管理情報の「フォーマット完了LBA」をインクリメントする。これにより、次のセクタが、バックグランドフォーマットの処理対象セクタとなる。
Specifically, the
一方、この比較の結果、両者が一致する場合、制御部31は、処理対象セクタに対してバックグランドフォーマットを行わずに、上記の管理情報の「フォーマット完了LBA」をインクリメントする。これにより、次のセクタが、バックグランドフォーマットの処理対象セクタとなる。
On the other hand, if the two match as a result of this comparison, the
<制御装置の動作例>
以上の構成を有する制御装置30の処理動作の一例について説明する。
<Operation example of control device>
An example of the processing operation of the
〈高速フォーマット開始時の処理〉
図8は、第2実施形態の高速フォーマット開始時の処理動作の一例を示すフローチャートである。図8に示す処理フローは、例えば、高速フォーマットが発行されたときにスタートする。
<Processing at the start of high-speed formatting>
FIG. 8 is a flowchart showing an example of the processing operation at the start of the high-speed format of the second embodiment. The processing flow shown in FIG. 8 starts, for example, when a high-speed format is issued.
制御部31は、モードページ(つまり、管理情報)からフォーマット完了LBA(=f)を読み込み、読み込んだフォーマット完了LBAが最大LBAより大きいか否かを判定する(ステップS101)。上記の通り、現在の高速フォーマットの開始条件は、前の高速フォーマットが完了していることである。フォーマット完了LBAが最大LBAより大きいことは、前の高速フォーマットが完了していることを意味する。
The
読み込んだフォーマット完了LBAが最大LBAより大きい場合(ステップS101YES)、制御部31は、モードページのフォーマットビット(つまり、管理世代情報)を論理否定する(ステップS102)。この処理によって、情報記録媒体28の全セクタのユーザデータを、即座に実質的に無効状態にすることができる。ここで、上記の通り、現在の高速フォーマットの開始条件は、前の高速フォーマットが完了していることである。この開始条件により、高速フォーマット中においてセクタの種別には、現在の高速フォーマットが完了しているセクタ、及び、現在の高速フォーマットが完了していないセクタの2種類しか存在しないので、世代情報を1ビットの情報とすることができる。
When the read format completion LBA is larger than the maximum LBA (step S101YES), the
次いで、制御部31は、今回の高速フォーマットで用いられるイニシャライズパターンを、モードページに保存する(ステップS103)。
Next, the
次いで、制御部31は、モードページのセクタサイズを、今回の高速フォーマットで用いられるセクタサイズに変更する(ステップS104)。
Next, the
次いで、制御部31は、モードページのフォーマット完了LBAの値fを「ゼロ」に変更する(ステップS105)。
Next, the
以上によって高速フォーマット開始時の処理が終了する。なお、読み込んだフォーマット完了LBAが最大LBA以下である場合(ステップS101NO)、前回の高速フォーマットが未だ完了していない。このため、図8の処理フローは、失敗となって終了する。 This completes the process at the start of high-speed formatting. When the read format complete LBA is equal to or less than the maximum LBA (step S101NO), the previous high-speed format has not been completed yet. Therefore, the processing flow of FIG. 8 ends with a failure.
〈ライト処理〉
図9は、第2実施形態の高速フォーマットをサポートするライト処理の一例を示すフローチャートである。図10は、第2実施形態のライト処理の説明に供する図である。図9に示す処理フローは、ライト処理対象セクタ(LBA=i)に対するライトコマンド及びユーザデータを受け取ったときにスタートする。
<Light processing>
FIG. 9 is a flowchart showing an example of write processing that supports the high-speed format of the second embodiment. FIG. 10 is a diagram for explaining the light processing of the second embodiment. The processing flow shown in FIG. 9 starts when a write command and user data for the write processing target sector (LBA = i) are received.
制御部31は、モードページのフォーマットビット(つまり、管理情報の管理世代情報)を読み出し、受け取ったユーザデータの先頭に置き、ECCを作成する(ステップS201)。例えば、図10に示すLBA=1のセクタがライト対象セクタである場合、520バイトのユーザデータの先頭に、今回の物理フォーマット処理の管理世代情報の値である「1」を配置し、これらの全体を用いて、ECCを作成する。すなわち、ここでは、フォーマットビット及びユーザデータの両方の信頼性が、ECCによって確保されている。因みに、図10の上段に示されるトラックに含まれるすべてのセクタは、世代情報領域の値がゼロであるため、前回の物理フォーマット処理に対応し且つ今回の物理フォーマット処理が行われていないセクタである。
The
次いで、制御部31は、ライト処理対象セクタに対してユーザデータ及びECCをモードページが定めるセクタサイズで書き込む(ステップS202)。さらに、制御部31は、モードページの管理世代情報の値によってライト処理対象セクタの世代情報領域(フォーマットビット領域)の値を更新する(ステップS202)。
Next, the
以上のように、世代情報を管理しているため、ライト処理対象セクタの世代情報領域(フォーマットビット領域)の値を確認することなくライト処理を実行することができる。 Since the generation information is managed as described above, the write processing can be executed without checking the value of the generation information area (format bit area) of the write processing target sector.
〈リード処理〉
図11は、第2実施形態の高速フォーマットをサポートするリード処理の一例を示すフローチャートである。図11に示す処理フローは、リード処理対象セクタ(LBA=i)に対するリードコマンドを受け取ったときにスタートする。
<Lead processing>
FIG. 11 is a flowchart showing an example of read processing that supports the high-speed format of the second embodiment. The processing flow shown in FIG. 11 starts when a read command for a read processing target sector (LBA = i) is received.
制御部31は、リード処理対象セクタのフォーマットビット(つまり、世代情報領域の値)とユーザデータとを読み込む(ステップS301)。
The
次いで、制御部31は、読み込んだリード処理対象セクタのフォーマットビットとモードページのフォーマットビット(つまり、管理世代情報)とが一致するか否かを判定する(ステップS302)。
Next, the
両者が一致している場合(ステップS302YES)、制御部31は、ステップS301で読み込んだユーザデータを上位(つまり、ホスト)へ出力する(ステップS303)。
When both match (step S302YES), the
一方、両者が一致していない場合(ステップS302NO)、制御部31は、モードページのイニシャライズパターンを読み込む(ステップS304)。
On the other hand, when the two do not match (step S302NO), the
制御部31は、読み込んだイニシャライズパターンを、このイニシャライズパターンがリード処理対象セクタ(LBA=i)に書かれているものとして、上位(つまり、ホスト)へ出力する(ステップS305)。
The
以上のように、世代情報を管理しているため、制御部31は、読み込んだリード処理対象セクタのフォーマットビットとモードページのフォーマットビット(つまり、管理世代情報)とが一致するか否かを判定することができる。これにより、今回の物理フォーマット処理が済んでおらず前回の物理フォーマット処理に対応するフォーマットビットが付されているセクタのユーザデータを、即座に実質的に無効状態にすることができる。
Since the generation information is managed as described above, the
〈バックグランドフォーマット処理〉
図12は、第2実施形態のバックグランドフォーマット処理の一例を示す図である。図12に示す処理フローは、ホストからのライトコマンド及びリードコマンドが制御部31に来ていないアイドル状態となったときにスタートする。
<Background format processing>
FIG. 12 is a diagram showing an example of the background format processing of the second embodiment. The processing flow shown in FIG. 12 starts when a write command and a read command from the host are in an idle state in which the
制御部31は、モードページ(つまり、管理情報)のフォーマット完了LBA(=f)を読み込み、読み込んだフォーマット完了LBAが最大LBA以下であるか否かを判定する(ステップS401)。
The
読み込んだフォーマット完了LBAが最大LBAより大きい場合(ステップS401NO)、全セクタに対して今回の物理フォーマット処理が既に完了しているので、図12の処理フローは終了する。このとき、管理情報の状態は、図7の「バックグランドフォーマット完了時」の状態になる。 When the read format completion LBA is larger than the maximum LBA (step S401NO), the current physical format processing has already been completed for all sectors, so the processing flow of FIG. 12 ends. At this time, the state of the management information is the state of "when the background format is completed" in FIG. 7.
読み込んだフォーマット完了LBAが最大LBA以下である場合(ステップS401YES)、制御部31は、フォーマット完了LBAに対応する処理対象セクタのフォーマットビット(つまり、世代情報)を読み込む(ステップS402)。
When the read format complete LBA is equal to or less than the maximum LBA (step S401YES), the
次いで、制御部31は、読み込んだ処理対象セクタのフォーマットビットに基づいて、処理対象セクタが未フォーマットLBA(つまり、未フォーマットセクタ)であるか否かを判定する(ステップS403)。具体的には、制御部31は、読み込んだ処理対象セクタのフォーマットビットとモードページのフォーマットビットとを比較して、両者が一致するか否かを判定する。そして、制御部31は、両者が一致する場合、処理対象セクタが既フォーマットLBAであると判定し、両者が一致しない場合、処理対象セクタが未フォーマットLBAであると判定する。
Next, the
処理対象セクタが未フォーマットLBAである場合(ステップS403YES)、制御部31は、モードページのイニシャライズパターンを読み込む(ステップS404)。
When the sector to be processed is an unformatted LBA (step S403YES), the
次いで、制御部31は、フォーマットサイズにしたイニシャライズパターンを、処理対象セクタに対して書き込む(ステップS405)。さらに、制御部31は、モードページのフォーマットビットによって、処理対象セクタのフォーマットビット領域の値を更新する(ステップS405)。
Next, the
次いで、制御部31は、モードページのフォーマット完了LBAの値をインクリメントする(ステップS406)。ここで、処理対象セクタが未フォーマットLBAではない場合(ステップS403NO)、処理ステップは、ステップS404及びステップS405を経ることなく、ステップS406へ進む。
Next, the
以上のように第2実施形態によれば、制御装置30において制御部31は、管理情報を記憶するメモリ32を有している。そして、制御部31は、情報記録媒体28の全セクタに対する現在の物理フォーマット処理を開始する場合、管理情報に含まれる管理世代情報の値を、現在の物理フォーマット処理の世代を示す世代情報の値に更新する。
As described above, according to the second embodiment, in the
この制御装置30の構成により、情報記録媒体28の全セクタのユーザデータを、即座に実質的に無効状態にすることができる。これにより、物理フォーマット処理の処理時間を短縮することができる。
With the configuration of the
さらに、制御装置30において制御部31は、フォーマット対象セクタに対する物理フォーマット処理を行う場合、現在の物理フォーマット処理の世代を示す世代情報の値をフォーマット対象セクタの非ユーザデータ領域の世代情報領域に書き込む。
Further, when the
この制御装置30の構成により、物理フォーマット処理が完了していないセクタに対するリード処理及びライト処理が可能となる。
The configuration of the
また、制御装置30において制御部31は、情報記録媒体28の全セクタに対する現在の物理フォーマット処理の前の物理フォーマット処理が完了していることを開始条件として、現在の物理フォーマット処理を開始する。
Further, in the
この制御装置30の構成により、情報記録媒体28の全セクタに対する現在の物理フォーマット処理の最中におけるセクタの種別を、現在の物理フォーマット処理の未完了セクタと現在の物理フォーマット処理の完了済みセクタの2種類に限定することができる。これにより、世代情報を1ビットの情報とすることができる。
Depending on the configuration of the
また、制御装置30において制御部31は、バックグランドフォーマット処理をアイドル時に実施する。これにより、ホストからのリード及びライトを妨げることなく、物理フォーマット処理を実行することができる。
Further, in the
上記管理情報には、上記フォーマット完了LBAが含まれる。これにより、バックグランドフォーマット処理の進捗度を管理することができる。なお、制御部31は、バックグランドフォーマット処理が進行中であるときに、フォーマット完了LBAを最大LBAで除算することによって、物理フォーマット処理の完了割合を算出してもよい。そして、制御部31は、算出した完了割合をモニタ(図示せず)に表示させてもよい。
The management information includes the format completion LBA. This makes it possible to manage the progress of the background format processing. The
<変形例>
以上で説明した制御装置30に対して次の様な変形を施すこともできる。例えば、メモリ32に、各セクタの物理フォーマット処理が完了しているか否かを示す情報を保持する「管理テーブル」を記憶させてもよい。制御部31が、この管理テーブルを管理する。制御部31がこの管理テーブルを用いることにより、リード処理対象セクタが物理フォーマット処理の未完了セクタであることを、情報記録媒体28のリード処理対象セクタの情報を読み込まずに、確認できる。これにより、リード処理対象セクタが物理フォーマット処理の未完了セクタである場合、ステップS301のようなリード処理が不要となるので、物理フォーマット処理の未完了セクタに対するリード処理時の応答速度を速くすることができる。
<Modification example>
The
以上で説明した制御装置30をハードディスクドライブ(HDD)に用いることによって次のような効果が得られる。HDDの大容量化により長時間化する傾向にある物理フォーマット時間を待つことなく、HDDの使用を開始することができる。このため、HDDの評価、製造、検査時の利便性を向上することができる。物理フォーマットをユーザ先で実施することにより、製造時間を短縮できる効果も見込める。また、物理フォーマット時間を大幅に削減することによって、フォーマットが中断してしまうリスクも低減できる。さらに、物理フォーマットの利便性が向上することにより、異なるセクタサイズを要求するホストにおいて、部品としてHDDを共通化することができる。
By using the
<他の実施形態>
図13は、制御装置のハードウェア構成例を示す図である。図13において、制御装置100は、プロセッサ101と、メモリ102とを有している。第1実施形態及び第2実施形態の制御装置10,30は、それぞれ、制御装置100と同じ構成を有していてもよい。制御装置10,30の制御部11,31は、プロセッサ101がメモリ102に記憶されたプログラムを読み込んで実行することにより実現されてもよい。また、制御装置30のメモリ32は、メモリ102によって実現されてもよい。
<Other embodiments>
FIG. 13 is a diagram showing a hardware configuration example of the control device. In FIG. 13, the
なお、本発明は上記の実施形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。 The present invention is not limited to the above embodiment, and can be appropriately modified without departing from the spirit.
10,30 制御装置
11,31 制御部
20 ハードディスクドライブ
21 ホストインタフェース
22 ボイスコイルモータドライバ
23 ボイスコイルモータ
24 ヘッド
25 リード/ライトチャンネル
26 スピンドルモータドライバ
27 スピンドルモータ
28 情報記録媒体
32 メモリ
10, 30
Claims (9)
請求項1記載の制御装置。 When performing physical formatting processing on the formatting target sector, the control unit writes a value of generation information indicating the generation of the current physical formatting processing to the generation information area of the non-user data area of the formatting target sector.
The control device according to claim 1.
前記制御部は、前記複数のセクタに対して前記現在の物理フォーマット処理を開始する場合、前記管理情報に含まれる管理世代情報の値を前記現在の物理フォーマット処理の世代を示す世代情報の値に更新する、
請求項2記載の制御装置。 It also has a memory to store management information.
When the control unit starts the current physical format processing for the plurality of sectors, the value of the management generation information included in the management information is converted into the value of the generation information indicating the generation of the current physical format processing. Update,
The control device according to claim 2.
請求項3記載の制御装置。 The control unit performs the current physical formatting process on the plurality of sectors on the condition that the physical formatting process before the current physical formatting process is completed for all of the plurality of sectors. To start,
The control device according to claim 3.
請求項4記載の制御装置。 The generation information is information represented by one bit.
The control device according to claim 4.
請求項3から5のいずれか1項に記載の制御装置。 When the control unit receives a read command for a read processing target sector among the plurality of sectors, the control generation information includes the value of the management generation information and the value of the generation information written in the generation information area of the read processing target sector. If they do not match, the initialization pattern used to initialize the format target sector is output to the source of the read command.
The control device according to any one of claims 3 to 5.
前記制御部は、前記複数のセクタのうちのライト処理対象セクタに対するライトコマンド及びユーザデータを受け取った場合、前記ライト処理対象セクタの前記世代情報領域に、前記管理世代情報の値を書き込むと共に、前記ライト処理対象セクタの前記ユーザデータ領域に、前記ユーザデータを前記変更サイズに従ったサイズによって書き込む、
請求項3から6のいずれか1項に記載の制御装置。 The management information includes, in addition to the management generation information, information regarding the change size of the current physical formatting process for the plurality of sectors.
When the control unit receives a write command and user data for a write processing target sector among the plurality of sectors, the control unit writes the value of the management generation information in the generation information area of the write processing target sector, and at the same time, writes the value of the management generation information. The user data is written in the user data area of the write processing target sector in a size according to the change size.
The control device according to any one of claims 3 to 6.
制御方法。 The length of the mapping area corresponding to the sector to be formatted when controlling the physical formatting process for an information recording medium containing a plurality of mapping areas in which each sector maps a plurality of sectors having a non-user data area and a user data area. The size of the user data area and the non-user data area of the format target sector is changed without changing.
Control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017241781A JP7056867B2 (en) | 2017-12-18 | 2017-12-18 | Control devices, control programs, and control methods |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017241781A JP7056867B2 (en) | 2017-12-18 | 2017-12-18 | Control devices, control programs, and control methods |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019109950A JP2019109950A (en) | 2019-07-04 |
JP7056867B2 true JP7056867B2 (en) | 2022-04-19 |
Family
ID=67179985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017241781A Active JP7056867B2 (en) | 2017-12-18 | 2017-12-18 | Control devices, control programs, and control methods |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7056867B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006252530A (en) | 2005-02-08 | 2006-09-21 | Fujitsu Ltd | Detection device for disk write omission and detection method for disk write omission |
JP2008071297A (en) | 2006-09-15 | 2008-03-27 | Toshiba Corp | Disk array device and data management method for disk array device |
JP2008117395A (en) | 2006-10-31 | 2008-05-22 | Hewlett-Packard Development Co Lp | Detection and correction of block-level data corruption in fault-tolerant data storage system |
JP2009129201A (en) | 2007-11-22 | 2009-06-11 | Hitachi Ltd | Storage control device and control method for storage control device |
JP2011504632A (en) | 2007-11-26 | 2011-02-10 | エミュレックス デザイン アンド マニュファクチュアリング コーポレーション | Virtual formatting method based on allocation unit and device using the method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5523903A (en) * | 1993-12-23 | 1996-06-04 | International Business Machines Corporation | Sector architecture for fixed block disk drive |
-
2017
- 2017-12-18 JP JP2017241781A patent/JP7056867B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006252530A (en) | 2005-02-08 | 2006-09-21 | Fujitsu Ltd | Detection device for disk write omission and detection method for disk write omission |
JP2008071297A (en) | 2006-09-15 | 2008-03-27 | Toshiba Corp | Disk array device and data management method for disk array device |
JP2008117395A (en) | 2006-10-31 | 2008-05-22 | Hewlett-Packard Development Co Lp | Detection and correction of block-level data corruption in fault-tolerant data storage system |
JP2009129201A (en) | 2007-11-22 | 2009-06-11 | Hitachi Ltd | Storage control device and control method for storage control device |
JP2011504632A (en) | 2007-11-26 | 2011-02-10 | エミュレックス デザイン アンド マニュファクチュアリング コーポレーション | Virtual formatting method based on allocation unit and device using the method |
Also Published As
Publication number | Publication date |
---|---|
JP2019109950A (en) | 2019-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8667248B1 (en) | Data storage device using metadata and mapping table to identify valid user data on non-volatile media | |
JP4886877B2 (en) | Recording medium control apparatus and method | |
JP4469906B2 (en) | Magnetic disk device and data refresh method in the same | |
JP3634809B2 (en) | Disk storage device for AV use and method for processing sector error in the device | |
US8291190B2 (en) | Disk drive including a host interface supporting different sizes of data sectors and method for writing data thereto | |
JP2012174325A (en) | Information recorder and information recording method | |
JP2012014415A (en) | Information processing apparatus, raid controller card, and mirroring method | |
JP5049835B2 (en) | Hybrid recording device | |
JP4922433B2 (en) | Magnetic disk apparatus and data block rewriting method | |
JP4672454B2 (en) | Storage device | |
JP4504450B1 (en) | Magnetic disk device and data refresh method in the same | |
JP2004103127A (en) | Rearranging method of sectors of information recording medium and information storage device | |
JP2019164854A (en) | Magnetic disk device and recording method thereof | |
JP2013157068A (en) | Data storage control device, data storage device and data storage method | |
JPH10301721A (en) | Method for processing defective sector of information storage medium, and information storing and reproducing device | |
JP7056867B2 (en) | Control devices, control programs, and control methods | |
JP3437502B2 (en) | Dynamic defect management method for rewritable optical disk | |
US20070174736A1 (en) | Storage medium management apparatus, storage medium management program, and storage medium management method | |
JP2002100126A (en) | Recording and reproducing device, storage device, computer system, data processing method, program transmitting device | |
JP4869416B2 (en) | Magnetic disk device and data refresh method in the same | |
US10867633B1 (en) | Reduced adjacent track erasure from write retry | |
JP2018185877A (en) | Disk device, controller circuit, and control method | |
US10379972B1 (en) | Minimizing reads for reallocated sectors | |
JP2006338731A (en) | Data write method | |
JP2010027140A (en) | Reading device for hard disk driving device, and copying device with reading device for hard disk driving device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20201109 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210712 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210824 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220308 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220329 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7056867 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |