Support for ZFS "Bookmarks"

Why should it not be used automatically in case the source snapshot no longer exists? In the end, as far as I understand, zfs send doesn’t care where it gets the snapshot metadata from. It mainly needs the TXG and GUID to generate an incremental stream.

I just confirmed it in the ZFS source.

Call stack:

So even if given a snapshot it just extracts the same metadata the corresponding bookmark would hold. I don’t see a reason not to fall back to a bookmark.

The only hindrance could be that zfs send -R does not yet support bookmarks as you pointed out in your explanatory post. I’m not sure whether TrueNAS uses the -R option internally or whether they iterate the children datasets manually.

1 Like