Magnetic disk device
AssigneesKabushiki Kaisha Toshiba, Toshiba Electronic Devices & Storage Corporation
InventorsKana Furuhashi, Hiroyuki Takeda
Life of this patent
Estimating the term…
Abstract
A magnetic disk device includes a disk including a plurality of error sectors including a defect, a first track having a first parity sector, and a controller. The controller is configured to, upon receiving a write command to write first data in a first region of a portion of the first track, which is a portion of the first track, first perform an XOR operation on all sectors of the first track other than one or more sectors of the first region and the first parity sector of the first track, and then write the first data in the one or more sectors of the first region, perform a second XOR operation on the one or more sectors of the first region and the result of the first XOR operation, and write the result of the second XOR operation in the first parity sector.
Claims20
A magnetic disk device comprising:
- a disk including a media cache and a plurality of sectors, that include sectors of a first track having a first parity sector, and sectors of a second track having a second parity sector;
- a head configured to write data on the disk and read data from the disk;
- and
- a controller configured to:
- detect error sectors among the plurality of the sectors and record information about the error sectors in a memory device;
- and
- upon receiving a write command to write first data in a first region of the first track, which is a portion of the first track, determine from the information recorded in the memory device whether the first track includes one or more of the error sectors, and in response to determining that the first track includes one or more of the error sectors, (i) perform a first XOR operation on all sectors of the first track other than one or more sectors of the first region and the first parity sector of the first track, and then, (ii) write the first data in the one or more sectors of the first region, perform a second XOR operation on the one or more sectors of the first region and the result of the first XOR operation, and write the result of the second XOR operation in the first parity sector.
A method of updating a parity sector in a magnetic disk device comprising a disk including a media cache and a plurality of sectors, that include sectors of a first track having a first parity sector, and sectors of a second track having a second parity sector, said method comprising:
- detecting error sectors among the plurality of the sectors and recording information about the error sectors in a memory device;
- and
- upon receiving a write command to write first data in a first region of the first track, which is a portion of the first track, determining from the information recorded in the memory device whether the first track includes one or more of the error sectors, and in response to determining that the first track includes one or more of the error sectors, (i) performing a first XOR operation on all sectors of the first track other than one or more sectors of the first region and the first parity sector of the first track, and then (ii) writing the first data in the one or more sectors of the first region, performing a second XOR operation on the one or more sectors of the first region and the result of the first XOR operation, and writing the result of the second XOR operation in the first parity sector.
Dependencies are inferred from the claim text.