mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-06-13 02:12:07 +03:00
dont automount/read props in testmode
This commit is contained in:
parent
50f8aba101
commit
16ab4f8183
@ -707,6 +707,8 @@ class ZfsDataset:
|
|||||||
def automount(self):
|
def automount(self):
|
||||||
"""mount the dataset as if one did a zfs mount -a, but only for this dataset"""
|
"""mount the dataset as if one did a zfs mount -a, but only for this dataset"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.debug("Auto mounting")
|
self.debug("Auto mounting")
|
||||||
|
|
||||||
if self.properties['type']!="filesystem":
|
if self.properties['type']!="filesystem":
|
||||||
@ -775,6 +777,8 @@ class ZfsDataset:
|
|||||||
#try to automount it, if its the initial transfer
|
#try to automount it, if its the initial transfer
|
||||||
if not prev_snapshot:
|
if not prev_snapshot:
|
||||||
target_snapshot.parent.force_exists=True
|
target_snapshot.parent.force_exists=True
|
||||||
|
#in test mode it doesnt actually exist, so dont try to mount it/read properties
|
||||||
|
if not target_snapshot.zfs_node.readonly:
|
||||||
target_snapshot.parent.automount()
|
target_snapshot.parent.automount()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user