CPC G06F 12/1009 (2013.01) [G06F 12/109 (2013.01); G06F 2212/1044 (2013.01)] | 17 Claims |
1. A method for performing operations to namespaces of a flash memory device, by a processing unit of a storage device, comprising:
providing a first logical-physical mapping table corresponding to a first namespace, wherein the first logical-physical mapping table stores physical information corresponding to logical addresses in the first namespace;
providing a second logical-physical mapping table corresponding to a second namespace, wherein the second logical-physical mapping table stores physical information corresponding to logical addresses in the second namespace;
receiving a cross-namespace data-movement command from a host, requesting to move user data of a first logical address of the first namespace to a second logical address of the second namespace in a storage unit of the storage device, wherein the user data of the first logical address of the first namespace is stored in a physical address of the storage unit; and
in response to the cross-namespace data-movement command, ignoring original intention of the cross-namespace data-movement command for an actual data movement from the first namespace to the second namespace, deleting physical address information corresponding to the first logical address from the first logical-physical mapping table corresponding to the first namespace, and storing the physical address information in an entry corresponding to the second logical address in the second logical-physical mapping table corresponding to the second namespace, wherein the physical address information describes the physical address of the storage unit that stores the user data, and the user data stored in the physical address of the storage unit remains.
|