Implement filling up to a certain point
Implement filling up to a certain point

This will be used to implement resuming heal.
As a minor optimisation, it also makes sync_batch heal only up to when it rsync'd.

unbrice/carbonate,unbrice/carbonate,unbrice/carbonate