mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-05-28 01:09:13 +03:00
wip: test
This commit is contained in:
parent
b839c9a978
commit
7c06e24bd3
@ -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)
|
||||
|
||||
|
@ -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:
|
||||
|
@ -1,3 +1,6 @@
|
||||
from logging import warning
|
||||
|
||||
|
||||
class ZfsPool():
|
||||
"""a zfs pool"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user