DISK DEVICE AND DATA MANAGEMENT METHOD
20190295595 ยท 2019-09-26
Inventors
Cpc classification
G11B20/1833
PHYSICS
G11B2020/1222
PHYSICS
G11B2020/1238
PHYSICS
G11B2020/1232
PHYSICS
International classification
G11B20/18
PHYSICS
G06F11/10
PHYSICS
Abstract
A disk device includes a disk medium, a magnetic recording head, a processor configured to control the magnetic recording head to write data to and read data from a plurality of tracks of the disk medium on a sector-by-sector basis, and a check value generation circuit configured to generate, for each of the plurality of tracks, check value data based on data stored in one or more sectors of the track. The processor controls the magnetic recording head to write check value data for a first track of the plurality of tracks in a first sector on the disk medium and check value data for a second track of the plurality of tracks in a second sector on the disk medium that is adjacent to the first sector.
Claims
1. A disk device comprising: a disk medium; a magnetic recording head; a processor configured to control the magnetic recording head to write data to and read data from a plurality of tracks of the disk medium on a sector-by-sector basis; and a check value generation circuit configured to generate, for each of the plurality of tracks, check value data based on data stored in one or more sectors of the track, wherein the processor controls the magnetic recording head to write check value data for a first track of the plurality of tracks in a first sector on the disk medium and check value data for a second track of the plurality of tracks in a second sector on the disk medium that is adjacent to the first sector.
2. The disk device of claim 1, wherein the first sector comprises a first check value sector that stores the check value data for the first track and no check value data for any other track of the plurality of tracks, and the second sector comprises a second check value sector that stores the check value data for the second track and no check value data for any other track of the plurality of tracks.
3. The disk device of claim 1, wherein the first sector is disposed in the first track, the second sector is disposed in the second track, and the first sector is radially aligned with the second sector.
4. The disk device of claim 3, wherein the processor controls the magnetic recording head to write check value data for a third track of the plurality of tracks in a third sector on the disk medium that is radially aligned with the first check value sector, the third track being adjacent to the second track.
5. The disk device of claim 4, wherein at least a portion of the first sector overlaps the second sector in a circumferential direction of the disk medium.
6. The disk device of claim 4, wherein all of the first sector overlaps the second sector in a circumferential direction of the disk medium.
7. The disk device of claim 1, wherein the check value generation circuit generates the check value data for the track by performing XOR operations on the data stored in the one or more sectors of the track.
8. The disk device of claim 1, wherein the first sector and the second sector are disposed in a third track of the plurality of tracks.
9. The disk device of claim 8, wherein the third track includes a plurality of check value sectors and no user data sectors.
10. The disk device of claim 8, wherein the third track is adjacent to a fourth track that includes a plurality of check value sectors and no user data sectors.
11. The disk device of claim 10, wherein the third track is adjacent to the fourth track on a first side of the third track and is adjacent to an empty area on a second side of the third track, wherein the empty area separates the third track from a fifth track that includes user data.
12. The disk device of claim 1, wherein the first sector and the second sector are included in a check value sector group that spans multiple tracks in the plurality of tracks of a specified range.
13. The disk device of claim 12, wherein the check value sector group includes no data use sectors.
14. The disk device according to claim 1, wherein, when the magnetic recording head writes data to a user data sector of a particular track in the plurality of tracks, the check value generation circuit recalculates check value data for the particular track and the magnetic recording head writes the recalculated check value data in a check value sector of the particular track.
15. A method of data management in a disk device that records data on a disk medium that includes a plurality of tracks, the method comprising: generating, for each of the plurality of tracks, check value data based on data stored in one or more sectors of the track; and writing check value data for a first track of the plurality of tracks in a first sector on the disk medium and check value data for a second track of the plurality of tracks in a second sector on the disk medium that is adjacent to the first sector.
16. The method of claim 15, wherein the first sector is disposed in the first track, the second sector is disposed in the second track, and the first sector is radially aligned with the second sector.
17. The method of claim 16, further comprising: writing check value data for a third track of the plurality of tracks in a third sector on the disk medium that is radially aligned with the first check value sector, the third track being adjacent to the second track.
18. The method of claim 17, wherein at least a portion of the first sector overlaps the second sector in a circumferential direction of the disk medium.
19. The method of claim 17, wherein all of the first sector overlaps the second sector in a circumferential direction of the disk medium.
20. The method of claim 15, wherein the first sector and the second sector are disposed in a third track of the plurality of tracks.
Description
DESCRIPTION OF THE DRAWINGS
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
DETAILED DESCRIPTION
[0013] Embodiments provide a disk device and a data management method that can prevent repeated writing to a check value sector from having pronounced ATI on a user area.
[0014] In general, according to one embodiment, a disk device includes a disk medium, a magnetic recording head, a processor configured to control the magnetic recording head to write data to and read data from a plurality of tracks of the disk medium on a sector-by-sector basis, and a check value generation circuit configured to generate, for each of the plurality of tracks, check value data based on data stored in one or more sectors of the track. The processor controls the magnetic recording head to write check value data for a first track of the plurality of tracks in a first sector on the disk medium and check value data for a second track of the plurality of tracks in a second sector on the disk medium that is adjacent to the first sector.
[0015] Hereinafter, embodiments will be described with reference to the drawings.
[0016] The disclosure is merely an example, and the scope of the present disclosure includes embodiments that those skilled in the art can appropriately implement by modifying the meaning of the disclosure. In addition, in order to make the description clearer, the drawings may be schematically illustrated in terms of a width, a thickness, a shape, and the like, of each element, and may not be to scale when compared with an actual implementation. Thus, the drawings only depict an example, and are not intended to limit the interpretation of the present disclosure. In addition, in the specification and each drawing, the same reference numerals or symbols are attached to the same elements as the elements described above with reference to the preceding drawings, and the detailed description thereof may be omitted for brevity and clarity.
[0017]
[0018] As illustrated in
[0019] The disk medium 15 stores data. In addition, the read and write head 14 writes and reads signals to and from the disk medium 15 as data; the SPM 13 is a motor that rotates the disk medium 15; the VCM 12 is a motor that drives the read and write head 14; the servo control circuit 11 controls the VCM 12 and the SPM 13, and the head IC 7 amplifies signals read from and written to the disk medium 15 by the read and write head 14. In addition, the read channel 6 converts data to be read from and written to the disk medium 15 into a signal; the format control circuit 5 generates a recording format of data to be recorded on the disk medium 15; the buffer memory 4 is a memory that temporarily storing data to be read from and written to the disk medium 15; the buffer control circuit 3 controls the buffer memory 4;and the memory 9 is a volatile memory and stores a program for controlling the HDD. In addition, the host IF 17 is an IF that communicates data and commands to be read from and written to the disk medium 15 with a higher device; the MPU 8 performs control and processing of the HDD1; and the check value generation circuit 18 will be described below.
[0020] Generally, when data is read from the disk medium in HDD 1, the data is read from the disk medium 15 by the read and write head 14 and sent to the read channel 6 via the head IC 7. The data sent to the read channel 6 is temporarily held in the buffer memory 4 via the format control circuit 5 and the buffer control circuit 3. The data held in the buffer memory 4 is sent to the higher device via the host IF control circuit 2 and the host IF 17. In addition, when data is written to the disk medium in HDD 1, the data is temporarily held in the buffer memory 4 from the higher device via the host IF 17, the host IF control circuit 2, and the buffer control circuit 3. The data held in the buffer memory 4 is written to the disk medium 15 by the read and write head 14 via the format control circuit 5, the read channel 6, and the head IC 7 with timing suitable for writing.
[0021] Next, the check value generation circuit 18 according to the present embodiment will be described.
[0022] As illustrated in
[0023] The XOR calculation circuit 182 can recover error sector data by performing the XOR arithmetic for the XOR data and each sector (first block) of the user data other than the error sector data. In addition, even if the order of input data is changed, the arithmetic result data is not changed, and thus, even if all the sector data of a particular block is input in any order, the XOR calculation circuit 182 can obtain the same value for the XOR data as final arithmetic result data. In the same manner, regardless of the order in which the user data other than error sector data and the XOR data are input to the XOR calculation circuit 182 in a block where an error sector exists, the error sector data recovered as the final arithmetic result data can be obtained. In addition, even in a block having few sectors other than the final sector in the disk medium 15, all the sector data in the user data within the block is used, and thereby, the XOR data can be generated in the same manner as in other blocks, and the error sector data for the block can be recovered.
[0024] Next, XOR data generation processing will be described.
[0025] When the data of the redundant sector is not valid (S101, NO), the MPU 8 causes the read channel 6 to read the user data in which ECC data in the block for which the data of the check value sector is not valid is added to each sector. That is, the MPU 8 causes the read channel 6 to read the user data for the block that corresponds to the check value sector is not valid. The MPU 8 stores the user data into the buffer memory 4 via the buffer control circuit 3 and the format control circuit 5 (S102).
[0026] Next, the MPU 8 causes the user data that was stored in the buffer memory 4 in step S101 to be transmitted to the check value generation circuit 18 via the format control circuit 5 (S103, arithmetic step), and writes the arithmetic result data in the data memory 181 to the check value sector for the block of the user data which is input data to the check value generation circuit 18 via the read channel 6 as the check value data (S104, writing step).
[0027] In addition, in step 5101, when the data of the check value sector is valid (S101, YES), the MPU 8 ends the check value generation processing.
[0028] As such, the check value generation processing reads all the data in the block and updates the check value data for that block. In an instance in which all the data in the block is updated (that is, newly overwritten), it is necessary to perform updating without confirming whether or not the corresponding check value data is valid. Therefore, when all the sectors in the block are overwritten, the MPU 8 inputs the written data to the read channel 6 and inputs the data to the check value generation circuit 18, thereby, generating the check value data without reading data from the disk medium 15.
[0029] Next, an arrangement of the check value sectors (XOR sectors) on the disk medium 15 will be described with reference to
[0030] An arrangement example of the related art is illustrated in
FIRST EXAMPLE
[0031]
[0032] Writing of the XOR data to each track is performed according to a flowchart illustrated in
[0033] Here, if data are updated in a certain track, i.e., if a rewritten sector exists in a certain track, the check value generation circuit 18 recalculates the check value data of the track including the rewritten sector and records the recalculated check value data in the check value sector of the corresponding track. In addition, check value data corresponding to a random track from the check value sector group can be read from the check value sector. Thereby, when the existence of an error block in the disk medium is detected, the corresponding sector data on each track including a portion of the error block is read out, the check value data is read from the check value sector corresponding to the track that includes a portion of the error block, and it is possible to recover the error block by performing inverse arithmetic.
[0034] As described above, in the present embodiment, predetermined sectors of each track that are aligned in the radial direction are organized as an XOR sector group, and XOR data on each track is written to the sectors included in the XOR sector group as an XOR sector. Since the effect of ATI extends into the radial direction, embodiments described herein prevent ATI from affecting user data. Thus, user data is protected from the writing and rewriting of data to the XOR sector for a track, which is advantageous over the related art.
SECOND EXAMPLE
[0035] In the first embodiment, the XOR sector groups are arranged to have the same phase in each track, but the arrangement is not limited to a such a configuration.
[0036] As described above, according to the first embodiment, XOR sectors are aligned in the radial direction, and thus, user data is not affected by ATI, and user data is protected. Alternatively, by arranging the XOR sectors in a certain area together, user data tracks that are adjacent to such areas can be affected by ATI from the XOR sectors, but it is possible to avoid ATI by taking the countermeasure of widening an interval between the XOR sector group(s) and the user data tracks. In addition, other user data is separated from the XOR sector group, leading to protection of user data. Since a sector to be used for data recovery and known location can be specified as the XOR sector, even if the user data is damaged due to power interruption or the like, data can be recovered from the corresponding track and the remaining sector of the track normally.
[0037] While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.