Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

Commit 680e4cb

Browse files
committed
Make adjstments for btrfs-progs-4.4
With btrfs-progs 4.4.1 the format of two messages was changed, causing us to fail to find the a btrfs root directory as well as a test failure due to a string mismatch. This change addresses both problems. Note that we do not keep backwards compatibility for we do not have paths accepting the previous strings, meaning that btrfs-progs version 4.4 (or higher) is a requirement.
1 parent 826ae91 commit 680e4cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

btrfs-backup/src/deso/btrfs/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
# given directory is a subvolume. However, if it is the root of the
100100
# btrfs file system then it will end in 'is btrfs root'. We need to
101101
# detect this case to determine the btrfs root.
102-
_SHOW_IS_ROOT = "is btrfs root"
102+
_SHOW_IS_ROOT = "is toplevel subvolume"
103103
_SHOW_SUBVOL_NAME_REGEX = regex(r"\s*Name:\s*(.*)")
104104
# The marker ending the file list reported by the diff() function. If
105105
# this marker is the only thing reported then no files have changed.

btrfs-backup/src/deso/btrfs/test/testRepository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def testRepositorySyncFailsForNonExistentSubvolume(self):
473473
backup = make(m, "backup")
474474

475475
directory = "non-existent-directory"
476-
regex = r"error accessing.*%s" % directory
476+
regex = r"cannot access subvolume.*%s" % directory
477477
src = Repository(snaps)
478478
dst = Repository(backup)
479479

0 commit comments

Comments
 (0)