| CPC G06F 3/0652 (2013.01) [G06F 3/0604 (2013.01); G06F 3/064 (2013.01); G06F 3/0674 (2013.01)] | 18 Claims |

|
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.
|