US 12,487,767 B2
Data access method, storage medium drive, and storage device
Guiyou Pu, Chengdu (CN)
Assigned to HUAWEI TECHNOLOGIES CO. LTD., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Jul. 5, 2022, as Appl. No. 17/857,519.
Application 17/857,519 is a continuation of application No. PCT/CN2020/114379, filed on Sep. 10, 2020.
Claims priority of application No. 202010011440.2 (CN), filed on Jan. 6, 2020; and application No. 202010185272.9 (CN), filed on Mar. 17, 2020.
Prior Publication US 2022/0334750 A1, Oct. 20, 2022
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0652 (2013.01) [G06F 3/0604 (2013.01); G06F 3/064 (2013.01); G06F 3/0674 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A hard disk comprising:
a storage medium configured to provide a first storage space and store metadata of data, wherein the first storage space comprises a plurality of logical units, wherein each of the logical units comprises a different logical unit identifier, and wherein each of the logical units is configured to store the data in an append-only write manner;
an interface coupled to the storage medium and configured to:
communicate with a controller;
provide, to the controller, a first logical unit identifier and the metadata;
receive, from the controller, a data access request comprising the first logical unit identifier; and
receive, from the controller, a data processing request comprising a second logical unit identifier and at least one attribute comprised in the metadata; and
a processor coupled to the storage medium and the interface, and configured to:
search for the first storage space based on the first logical unit identifier and in response to the data access request;
search for a second storage space based on the second logical unit identifier; and
perform screening or processing on second data in the second storage space based on the at least one attribute,
wherein the interface is further configured to receive, from the controller, a data deletion request comprising a third logical unit identifier, wherein the processor is further configured to:
search for a second storage space of to-be-deleted data based on the third logical unit identifier;
determine whether the second data in the second storage space is currently being processed;
monitor until processing of all data in the second storage space has stopped before deleting the second data when the second data is still being processed;
send, by the interface, a deletion failure response to the controller when the processing has not stopped and deletion cannot proceed; and
delete the second data in the second storage space when the processing has stopped, and
wherein the interface is further configured to send, to the controller, a data deletion response comprising the third logical unit identifier.