IP Library Granted Patent US 8,756,361
Granted Patent B1
US 8,756,361 · App. 13/166,695 · Granted Jun 17, 2014

Disk drive modifying metadata cached in a circular buffer when a write operation is aborted

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,756,361
App. No.
13/166,695
Granted
Jun 17, 2014
Kind
B1
Abstract

A disk drive is disclosed comprising a head actuated over a rotatable disk. A write operation is processed to write data on the disk using the head, wherein prior to writing the data on the disk, logical-to-physical mapping information is stored in a circular buffer, wherein the logical-to-physical mapping information identifies locations on the disk to write the data. A plurality of metadata files are written on the disk using the head, wherein the plurality of metadata files are interspersed with the data on the disk and each of the metadata files includes contents of the circular buffer at a time the metadata file is written on the disk. When the write operation is aborted, the logical-to-physical mapping information in the circular buffer is modified to identify the locations on the disk actually written.

Claims (34)

1. A disk drive, comprising:

a disk;

a head actuated over the disk; and

a controller configured to:

process a write operation to write data on the disk using the head;

prior to writing the data on the disk, store logical-to-physical mapping information in a circular buffer for the data to be written, wherein the logical-to-physical mapping information identifies locations on the disk to write the data;

write a plurality of metadata files on the disk using the head, wherein the plurality of metadata files are interspersed with the data on the disk and each of the metadata files includes contents of the circular buffer at a time the metadata file is written on the disk;

maintain a newest entry pointer identifying a head of the circular buffer; and

when the write operation is aborted, modify the logical-to-physical mapping information in the circular buffer by adjusting the newest entry pointer to correspond to the data last written to the disk.

2. The disk drive of claim 1 , wherein the controller is further configured to modify the logical-to-physical mapping information by invalidating the logical-to-physical mapping information in the circular buffer corresponding to data not written on the disk due to aborting the write operation.

3. A method of operating a disk drive, the disk drive comprising a head actuated over a disk, the method comprising:

processing a write operation to write data on the disk using the head;

prior to writing the data on the disk, storing logical-to-physical mapping information in a circular buffer for the data to be written, wherein the logical-to-physical mapping information identifies locations on the disk to write the data;

writing a plurality of metadata files on the disk using the head, wherein the plurality of metadata files are interspersed with the data on the disk and each of the metadata files includes contents of the circular buffer at a time the metadata file is written on the disk;

maintain a newest entry pointer identifying a head of the circular buffer; and

when the write operation is aborted, modifying the logical-to-physical mapping information in the circular buffer by adjusting newest entry pointer to correspond to the data last written to the disk.

4. The method of claim 3 , wherein modifying the logical-to-physical mapping information comprises invalidating the logical-to-physical mapping information in the circular buffer corresponding to data not written on the disk due to aborting the write operation.

5. A disk drive, comprising:

a disk;

a head actuated over the disk; and

a controller configured to:

process a write operation to write data on the disk using the head;

prior to writing the data on the disk, store logical-to-physical mapping information in a circular buffer for the data to be written, wherein the logical-to-physical mapping information identifies locations on the disk to write the data;

write a plurality of metadata files on the disk using the head, wherein the plurality of metadata files are interspersed with the data on the disk and each of the metadata files includes contents of the circular buffer at a time the metadata file is written on the disk;

save a copy of at least part of the content of the circular buffer when one of the metadata files is written on the disk; and

when the write operation is aborted, modify the logical-to-physical mapping information in the circular buffer using the copy to revert at least part of the circular buffer to a point prior to processing the write operation.

6. The disk drive of claim 5 , wherein the controller is further configured to revert the circular buffer based on the data of the write operation not written to the disk due to aborting the write operation.

7. A method of operating a disk drive, the disk drive comprising a head actuated over a disk, the method comprising:

processing a write operation to write data on the disk using the head;

prior to writing the data on the disk, storing logic-al-to-physical mapping information in a circular buffer for the data to be written, wherein the logical-to-physical mapping information identifies locations on the disk to write the data;

writing a plurality of metadata files on the disk using the head, wherein the plurality of metadata files are interspersed with the data on the disk and each of the metadata files includes contents of the circular buffer at a time the metadata file is written on the disk;

saving a copy of at least part of the content of the circular buffer when one of the metadata files is written on the disk; and

when the write operation is aborted, modifying the logical-to-physical mapping information in the circular buffer using the copy to revert at least part of the circular buffer to a point prior to processing the write operation.

8. The method of claim 7 , further comprising reverting the circular buffer based on the data of the write operation not written to the disk due to aborting the write operation.

Assignments (8)
PATENT COLLATERAL AGREEMENT - DDTL LOAN AGREEMENT Recorded Aug 21, 2023
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 067045/0156 →
PATENT COLLATERAL AGREEMENT - A&R LOAN AGREEMENT Recorded Aug 21, 2023
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 064715/0001 →
RELEASE OF SECURITY INTEREST AT REEL 038744 FRAME 0481 Recorded Feb 8, 2022
From: JPMORGAN CHASE BANK, N.A.
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 058982/0556 →
RELEASE OF SECURITY INTEREST Recorded Mar 5, 2018
From: U.S. BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 045501/0714 →
SECURITY AGREEMENT Recorded May 17, 2016
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: U.S. BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT
Reel/Frame 038744/0281 →
SECURITY AGREEMENT Recorded May 17, 2016
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A., AS COLLATERAL AGENT
Reel/Frame 038722/0229 →
SECURITY AGREEMENT Recorded May 17, 2016
From: WESTERN DIGITAL TECHNOLOGIES, INC.
To: JPMORGAN CHASE BANK, N.A., AS COLLATERAL AGENT
Reel/Frame 038744/0481 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 22, 2011
From: CARLSON, MARCUS A.; PRUETT, DAVID C.
To: WESTERN DIGITAL TECHNOLOGIES, INC.
Reel/Frame 026486/0590 →