Fix the ZFS hook to support datasets with a "canmount" property of "noauto" (#1269).

This commit is contained in:
Dan Helfman
2026-02-15 11:06:34 -08:00
parent d532fc0f88
commit 55375cc9e7
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -3,6 +3,7 @@
handy for fetching borgmatic configuration from external scripts. See the documentation for more
information:
https://torsion.org/borgmatic/reference/command-line/actions/config-show/
* #1269: Fix the ZFS hook to support datasets with a "canmount" property of "noauto".
2.1.2
* #1231: If a source file is deleted during a "spot" check, consider the file as non-matching
+1 -1
View File
@@ -71,7 +71,7 @@ def get_datasets_to_backup(zfs_command, patterns):
)
# Skip datasets that are marked "canmount=off", because mounting their snapshots will
# result in completely empty mount points—thereby preventing us from backing them up.
if can_mount == 'on'
if can_mount != 'off'
),
key=lambda dataset: dataset.mount_point,
reverse=True,
+1 -1
View File
@@ -35,7 +35,7 @@ BUILTIN_DATASETS = (
'used': '256K',
'avail': '23.7M',
'refer': '25K',
'canmount': 'on',
'canmount': 'noauto',
'mountpoint': '/e2e/pool/dataset',
},
)