Skip to content

Commit

Permalink
wip: test
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Sep 25, 2024
1 parent b839c9a commit 7c06e24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_zfsautobackup34.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def test_no_bookmark_source_support(self):

subprocess.check_call("zpool destroy test_source1", shell=True)
subprocess.check_call("zpool create -d test_source1 /dev/ram0", shell=True)
shelltest("zpool get all test_source1")
subprocess.check_call("zfs create -p test_source1/fs1/sub", shell=True) # recreate with no features at all
subprocess.check_call("zfs set autobackup:test=true test_source1/fs1", shell=True)

Expand Down
2 changes: 1 addition & 1 deletion zfs_autobackup/ZfsDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ def sync_snapshots(self, target_dataset, features, show_progress, filter_propert
prev_target_snapshot.release()

#bookmark common snapshot on source, or use holds if bookmarks are not enabled.
if 'bookmarks' in features:
if 'bookmark_v2' in features:
source_snapshot.bookmark()
else:
if holds:
Expand Down
3 changes: 3 additions & 0 deletions zfs_autobackup/ZfsPool.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from logging import warning


class ZfsPool():
"""a zfs pool"""

Expand Down

0 comments on commit 7c06e24

Please sign in to comment.