wip: test

This commit is contained in:
Edwin Eefting 2024-09-25 15:38:58 +02:00
parent b839c9a978
commit 7c06e24bd3
No known key found for this signature in database
GPG Key ID: 0F3C35D8E9887737
3 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class TestZfsAutobackup34(unittest2.TestCase):
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)

View File

@ -1333,7 +1333,7 @@ class ZfsDataset:
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:

View File

@ -1,3 +1,6 @@
from logging import warning
class ZfsPool():
"""a zfs pool"""