Error detection using data block mapping is provided. One method includes receiving
a write request to write a user data block having a first block size, generating
an error detection code for the user data block, appending the error detection
code to the user data block to form an extended data block, and mapping the extended
data block to a plurality of actual data blocks, each actual data block having
a block size equal to the first block size.