Re: [PATCH 2/3] mirror: Make sure that source and target size match

2020-05-07 Thread Eric Blake
On 5/7/20 9:52 AM, Kevin Wolf wrote: If the target is shorter than the source, mirror would copy data until it reaches the end of the target and then fail with an I/O error when trying to write past the end. If the target is longer than the source, the mirror job would complete successfully,

[PATCH 2/3] mirror: Make sure that source and target size match

2020-05-07 Thread Kevin Wolf
If the target is shorter than the source, mirror would copy data until it reaches the end of the target and then fail with an I/O error when trying to write past the end. If the target is longer than the source, the mirror job would complete successfully, but the target wouldn't actually be an