At 08/28/2016 11:46 AM, Christoph Anton Mitterer wrote:
Hey.
I've often wondered:
When I do a send/receive, does the receiving side use the checksums
from the sending side (either by directly storing them or by comparing
them with calculated checksums and failing if they don't match after
the transfer)?
Send will generate checksum for each command.
https://btrfs.wiki.kernel.org/index.php/Design_notes_on_Send/Receive#Overal_strucutre
(Finally the new page is useful now)
Although the checksum is not the same way for btrfs.
For btrfs, data checksum is CRC32 per sectorsize(4K for x86_64), and
CRC32 for the whole tree block.
For send stream, it's CRC32 for the whole command.
Thanks,
Qu
Cause that would effectively secure any transport in between against
transmission errors ... and also against badblocks/etc. on the
receiving fs.
If btrfs is already that smart, then I think this feature should be
mentioned in the send/receive manpages.
Cheers,
Chris.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html