CPC G06F 3/0647 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |
1. An article of manufacture comprising a non-transitory computer readable storage medium having content stored thereon which when accessed causes the performance of operations to execute a method comprising:
receiving, at a non-volatile storage device, a copy command from a host to copy data from a source logical block address (LBA) to a destination logical block address (LBA);
modifying a logical-to-physical (L2P) table to map the destination LBA to a same physical address as the source LBA;
updating flags in the L2P table corresponding to the source LBA and the destination LBA to indicate more than one LBA refers to the same physical address;
after modifying the L2P table and setting the flags and before copying the data, storing a token to the non-volatile storage device to indicate the copy command is complete;
sending an acknowledgement to the host to indicate the copy command is complete; and
in response to receipt of a write command to write to the source LBA or the destination LBA and in response to at least one of the flags having been set, copying the data.
|