[pve-devel] applied: [zsync] fix: check for incremental sync snapshot.

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Mar 19 13:05:50 CET 2020


On 3/19/20 11:51 AM, Fabian Ebner wrote:
> Hi,
> this does fix an issue when the receiving side has the most recent snapshot, but not the 'old_snap' one. And of course testing for 'last_snap' is correct, since that one is the relevant one for the incremental sync. With that:
> 
> Reviewed-By: Fabian Ebner <f.ebner at proxmox.com>
> Tested-By: Fabian Ebner <f.ebner at proxmox.com>

With that applied, thanks to all.
Wolfgang you missed your signed-off-by (FYI).

> 
> Some ideas for further improvements:
> * If on the destination there are older snapshots but not most recent one, pve-zsync tries to do a full sync and fails with: "destination has snapshots". One could get the list of snapshots from the destination, the list of snapshots from the source and use the most recent common one as the starting point for an incremental sync (and fail if both sides do have snapshots but no match).
> * Knowing the list of snapshots for the destination could also be used to prevent issuing a useless remote 'zfs destroy' when the snapshot to be deleted does not exist for the destination.

Sounds reasonable, IMO.





More information about the pve-devel mailing list