mirror of https://github.com/jimsalterjrs/sanoid
fix stream sync from bookmark
syncoid fails in the following case: - performing a stream sync (default) - there are no matching snapshots between source and target - there is a bookmark on the source matching a snapshot on the target - there is an unrelated snapshot on the source older than this bookmark This happens because the units for snapshots and bookmarks were different. syncoid tells `zfs send` to generate an incremental stream starting from the bookmark and going to the unrelated older snapshot. ZFS refuses to do this because it doesn't make sense. This fix is a bit of hack. Ideally we should share the counter code between getsnaps and getbookmarks.
This commit is contained in:
parent
e6c5aa052e
commit
6bc210deb3
Loading…
Reference in New Issue