Patent ID: 11880222
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method for erasing a Solid State Disk (SSD), wherein the SSD comprises a controller and a NAND storage medium, the controller comprises firmware, and a Flash Translation Layer (FTL) and a manager are configured in the firmware, the method comprising:
running the FTL in a preset virtual environment to implement a Virtual Flash Translation Layer (VFTL), wherein the VFTL is configured to perform operations of the FTL in the preset virtual environment, and performs virtual writing and erasing operations without directly manipulating hardware;
receiving, from the VFTL and by the manager, which is running outside the preset virtual environment, an erasing request for erasing a target block stored in the NAND storage medium;
selecting, by the manager, a target spare block from preset spare blocks and feeding back, by the manager, the target spare block to the VFTL as a block already erased, so that the VFTL continues to provide a service in response to a user request;
collecting, by the manager, running information of the VFTL within a preset period of time, and determining, by the manager, whether a function of the VFTL is normal according to the running information; and
in response to determining that the function of the VFTL is normal, performing, by the manager, an erasing operation on the target block stored in the NAND storage medium;
wherein before selecting, by the manager, the target spare block from the preset spare blocks and feeding back, by the manager, the target spare block to the VFTL as the block already erased, the method further comprises:
verifying, by the manager, security of the erasing request, and in response to determining the verification has passed, executing, by the manager, the operation of selecting the target spare block from preset spare blocks and feeding back the target spare block to the VFTL as the block already erased.