Method, device, and computer program product for overwriting data

US11157187B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11157187-B2
Application numberUS-202016885788-A
CountryUS
Kind codeB2
Filing dateMay 28, 2020
Priority dateOct 21, 2019
Publication dateOct 26, 2021
Grant dateOct 26, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Data overwriting techniques involve: comparing, based on a request for overwriting target data in a storage area to cover original data, a first compression ratio with a second compression ratio; in accordance with a determination that the first compression ratio is larger, compressing the target data into fragments at the first compression ratio; storing the fragments in segments in the storage area, the segments being previously used for storing corresponding fragments of the original data; and storing at least one padding data fragment in at least one free segment interleaved with the segments and/or free sectors in the segments. Accordingly, the overwritten data can be stored in the storage area in a continuous manner, while the write alignment requirement of the storage device can be satisfied, thereby saving the additional read overheads incurred by the write request and enhancing the write performance of the storage device.

First claim

Opening claim text (preview).

We claim: 1. A method for overwriting data, comprising: comparing, based on a request for overwriting target data in a storage area to cover original data, a first compression ratio of the target data with a second compression ratio of the original data; in accordance with a determination that the first compression ratio is larger than the second compression ratio, compressing the target data into a plurality of data fragments at the first compression ratio; storing the plurality of data fragments in a plurality of overwriting segments in the storage area, the plurality of overwriting segments being previously used for storing corresponding fragments of the original data; and storing at least one padding data fragment in at least one free segment interleaved with the plurality of overwriting segments and/or free sectors in the plurality of overwriting segments, wherein storing at least one padding data fragment in at least one free segment interleaved with the plurality of overwriting segments and/or free sectors in the plurality of overwriting segments comprises: (1) determining candidate padding segments of the storage area; (2) determining, from the determined candidate padding segments, the at least one free segment and the free sectors based on locations of sectors storing the plurality of data fragments in the overwriting segments; and (3) storing the padding data fragments in at least one of the at least one free segment and the free sectors, and wherein storing the padding data fragments in at least one of the at least one free segment and the free sectors comprises: (1) determining a ratio of a number of the at least one free segment to a number of the candidate padding segments; (2) comparing the ratio with a predetermined threshold; and (3) in accordance with a determination that the ratio does not exceed the predetermined threshold, storing the padding data fragments in at least one of the at least one free segment and the free sectors. 2. The method of claim 1 , wherein determining candidate padding segments of the storage area comprises: generating a first bitmap indicative of writability of a segment in the storage area; determining, based on the first bitmap, an unwritable segment of the storage area; and determining segments except for the unwritable segment of the storage area as the candidate padding segments. 3. The method of claim 1 , wherein determining the at least one free segment and the free sectors comprises: generating a second bitmap indicative of overwritability of a sector in the candidate padding segments; determining, based on the second bitmap, sectors where the data fragments are stored; determining sectors except for the sectors where the data fragments are stored in the overwriting segments as the free sectors; and determining segments except for the overwriting segments in the candidate padding segments as the at least one free segment. 4. The method of claim 1 , wherein the at least one free segment interleaved with the plurality of overwriting segments is positioned between a starting overwriting segment and an ending overwriting segment of the plurality of overwriting segments. 5. The method of claim 1 , wherein the storage area is divided into a plurality of segments based on a starting sector index and a segment length of the storage area. 6. The method of claim 1 , wherein the padding data fragments are different from the data fragments. 7. The method of claim 1 , wherein storing at least one padding data fragment in at least one free segment interleaved with the plurality of overwriting segments or free sectors in the plurality of overwriting segments comprises: storing the at least one padding data fragment in the at least one free segment between the starting overwriting segment and the ending overwriting segment of the plurality of overwriting segments and/or in the free sectors of the plurality of overwriting segments, such that the plurality of data fragments are continuous. 8. A device for storing data, comprising: at least one processing unit; at least one memory coupled to the at least one processing unit and having instructions to be executed by the at least one processing unit stored thereon, the instructions, when executed by the at least one processing unit, causing the device to perform acts comprising: comparing, based on a request for overwriting target data in a storage area to cover original data, a first compression ratio of the target data with a second compression ratio of the original data; in accordance with a determination that the first compression ratio is larger than the second compression ratio, compressing the target data into a plurality of data fragments at the first compression ratio; storing the plurality of data fragments in a plurality of overwriting segments in the storage area, the plurality of overwriting segments being previously used for storing corresponding fragments of the original data; and storing at least one padding data fragment in at least one free sector interleaved with the plurality of overwriting segments and/or free sectors in the plurality of overwriting segments, wherein storing at least one padding data fragment in at least one free segment interleaved with the plurality of overwriting segments and/or free sectors in the plurality of overwriting segments comprises: (1) determining candidate padding segments of the storage area; (2) determining, from the determined candidate padding segments, the at least one free segment and the free sectors based on locations of sectors storing the plurality of data fragments in the overwriting segments; and (3) storing the padding data fragments in at least one of the at least one free segment and the free sectors, and wherein storing the padding data fragments in at least one of the at least one free segment and the free sectors comprises: (1) determining a ratio of a number of the at least one free segment to a number of the candidate padding segments; (2) comparing the ratio with a predetermined threshold; and (3) in accordance with a determination that the ratio does not exceed the predetermined threshold, storing the padding data fragments in at least one of the at least one free segment and the free sectors. 9. The device of claim 8 , wherein determining candidate padding segments of the storage area comprises: generating a first bitmap indicative of writability of a segment in the storage area; determining, based on the first bitmap, an unwritable segment of the storage area; and determining segments except for the unwritable segment of the storage area as the candidate padding segments. 10. The device of claim 8 , wherein determining the at least one free segment and the free sectors comprises: generating a second bitmap indicative of overwritability of a sector in the candidate padding segments; determining, based on the second bitmap, sectors where the data fragments are stored; determining sectors except for the sectors where the data fragments are stored in the overwriting segments as the free sectors; and determining segments except for the overwriting segments in the candidate padding segments as the at least one free segment. 11. The device of claim 8 , wherein the at least one free segment interleaved with the plurality of overwriting segments is positioned between a starting overwriting segment and an ending overwriting segment of the plurality of overwriting segments. 12. The device of claim 8 , wherein the storage area is divided into a plurality of segments based on a starting sector index and a segment length of the storage area. 13. The device o

Assignees

Inventors

Classifications

  • Saving storage space on storage systems · CPC title

  • in relation to throughput · CPC title

  • G06F3/064Primary

    Management of blocks · CPC title

  • Monitoring storage devices or systems · CPC title

  • G06F3/0673Primary

    Single storage device · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11157187B2 cover?
Data overwriting techniques involve: comparing, based on a request for overwriting target data in a storage area to cover original data, a first compression ratio with a second compression ratio; in accordance with a determination that the first compression ratio is larger, compressing the target data into fragments at the first compression ratio; storing the fragments in segments in the storag…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F3/064. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 26 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).