Create LVM snapshots as read-write to avoid an error when snapshotting ext4 filesystems with orphaned files that need recovery (#1126).

This commit is contained in:
Dan Helfman
2025-08-11 10:01:13 -07:00
parent 5f468c4261
commit 36d6619099
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -2,6 +2,8 @@
* #1114: Document systemd configuration changes for the ZFS filesystem hook.
* #1118: Fix a bug in which Borg hangs during database backup when different filesystems are in
use.
* #1126: Create LVM snapshots as read-write to avoid an error when snapshotting ext4 filesystems
with orphaned files that need recovery.
* When running tests, use Ruff for faster and more comprehensive code linting and formatting,
replacing Flake8, Black, isort, etc.
* Switch from pipx to uv for installing development tools, and added tox-uv for speeding up test
+1 -1
View File
@@ -106,7 +106,7 @@ def snapshot_logical_volume(
('--extents' if '%' in snapshot_size else '--size'),
snapshot_size,
'--permission',
'r', # Read-only.
'rw', # Read-write in case an ext4 filesystem has orphaned files that need recovery.
'--name',
snapshot_name,
logical_volume_device,
+2 -2
View File
@@ -212,7 +212,7 @@ def test_snapshot_logical_volume_with_percentage_snapshot_name_uses_lvcreate_ext
'--extents',
'10%ORIGIN',
'--permission',
'r',
'rw',
'--name',
'snap',
'/dev/snap',
@@ -232,7 +232,7 @@ def test_snapshot_logical_volume_with_non_percentage_snapshot_name_uses_lvcreate
'--size',
'10TB',
'--permission',
'r',
'rw',
'--name',
'snap',
'/dev/snap',