wip: bookmarks. disable bookmarking if its not supported in on the pools

This commit is contained in:
Edwin Eefting 2024-09-25 15:49:16 +02:00
parent bcd2b69c04
commit 865d9602d4
No known key found for this signature in database
GPG Key ID: 0F3C35D8E9887737

View File

@ -1333,6 +1333,7 @@ class ZfsDataset:
prev_target_snapshot.release()
#bookmark common snapshot on source, or use holds if bookmarks are not enabled.
#NOTE: bookmark_written seems to be needed. (only 'bookmarks' was not enough on ubuntu 20)
if 'bookmark_written' in features:
source_snapshot.bookmark()
else: