Patent ID: 8443263

Claim:
A method for performing a copy-back command, the method comprising: performing in a controller in communication with a host and at least one flash memory device: receiving a source address and a copy-back read command from the host; sending the source address and the copy-back read command to the at least one flash memory device, wherein in response to receiving the source address and the copy-back read command, the at least one flash memory device reads data from the source address and writes the data in a register in the at least one flash memory device; receiving data stored at the source address and an error correction code associated with the data received from the at least one flash memory device; determining that the error correction code indicates there is no error in the data; modifying the received data, wherein the modification changes or adds information rather than corrects errors; generating error correction code bits for modified data from the at least one flash memory device; receiving a destination address and a copy-back program command from the host; and sending the destination address, the modified data with the error correction code bits, and a program command to the at least one flash memory device.