public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Berry <trismegustis@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/btrfs-backup-ng] f43: Merge branch 'rawhide' into f43
Date: Thu, 22 Oct 2026 10:51:27 GMT [thread overview]
Message-ID: <179266628754.1.7265322444277781843.rpms-btrfs-backup-ng-3cf09c824eb4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/btrfs-backup-ng
Branch : f43
Commit : 3cf09c824eb454b5ddd4b25ae5e1fb3bcd057031
Author : Michael Berry <trismegustis@gmail.com>
Date : 2026-10-22T02:48:04-04:00
Stats : +40/-2 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/btrfs-backup-ng/c/3cf09c824eb454b5ddd4b25ae5e1fb3bcd057031?branch=f43
Log:
Merge branch 'rawhide' into f43
---
diff --git a/.gitignore b/.gitignore
index b710c26..a403bda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/btrfs_backup_ng-0.9.14.tar.gz
/btrfs_backup_ng-0.9.15.tar.gz
/btrfs_backup_ng-0.9.16.tar.gz
+/btrfs_backup_ng-0.9.17.tar.gz
diff --git a/btrfs-backup-ng-0.9.17-lock-rewind-before-listing.patch b/btrfs-backup-ng-0.9.17-lock-rewind-before-listing.patch
new file mode 100644
index 0000000..7abcc19
--- /dev/null
+++ b/btrfs-backup-ng-0.9.17-lock-rewind-before-listing.patch
@@ -0,0 +1,35 @@
+From: Michael Berry <trismegustis@gmail.com>
+Date: Wed, 22 Oct 2026 02:45:00 -0400
+Subject: [PATCH] lock: rewind the lock directory before counting records
+
+On btrfs a directory descriptor lists only the entries that existed when
+it was opened until it is rewound (since kernel 6.6 the last directory
+index is snapshotted at open so a reader always terminates), and
+os.listdir(fd) rewinds only after it has read. LocalLockManager._take
+opens the lock directory, writes its owner record, then lists through the
+same descriptor: on btrfs the record is not seen, the count is 0, the
+holder removes its own record and reports BUSY, so every exclusive
+acquire on a local btrfs target fails. Seek to 0 before listing.
+
+Upstream's suite passes on tmpfs /tmp; it fails wherever tmp_path is on
+btrfs (tests/test_lock_store_never_follows_a_link.py,
+TestTheLocalStoreIsWrittenAsItShouldBe::test_directories_and_records).
+--- a/src/btrfs_backup_ng/sshutil/lock.py 2026-10-22 01:44:01.339704800 -0400
++++ b/src/btrfs_backup_ng/sshutil/lock.py 2026-10-22 02:41:48.017419356 -0400
+@@ -1918,7 +1918,16 @@
+ return ["BUSY"]
+ with os.fdopen(fd, "wb") as f:
+ f.write(payload.encode("utf-8"))
++ # A directory descriptor on btrfs lists only the entries that
++ # existed when it was opened until it is rewound (the kernel
++ # snapshots the last directory index at open, since 6.6, so a
++ # reader always terminates), and os.listdir(fd) rewinds only
++ # AFTER it has read. lock_fd was opened before the record above
++ # was written, so without the rewind the record just written is
++ # not listed, the count below is 0, and the lock this holder has
++ # just taken is given up as BUSY.
+ try:
++ os.lseek(lock_fd, 0, os.SEEK_SET)
+ entries = os.listdir(lock_fd)
+ except OSError:
+ entries = []
diff --git a/btrfs-backup-ng.spec b/btrfs-backup-ng.spec
index fe13995..393f8c1 100644
--- a/btrfs-backup-ng.spec
+++ b/btrfs-backup-ng.spec
@@ -1,11 +1,13 @@
Name: btrfs-backup-ng
-Version: 0.9.16
+Version: 0.9.17
Release: %autorelease
Summary: Btrfs backups with snapshots, incremental transfers and restore
License: MIT
URL: https://github.com/berrym/btrfs-backup-ng
Source: %{pypi_source btrfs_backup_ng}
+# Fix exclusive lock acquire on btrfs; sent upstream.
+Patch0: btrfs-backup-ng-0.9.17-lock-rewind-before-listing.patch
BuildArch: noarch
BuildRequires: python3-devel
diff --git a/sources b/sources
index c28ca7b..5e6b43e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (btrfs_backup_ng-0.9.16.tar.gz) = 82bf569b655107a0e3406e83452e5272b42685591ff6801425e396112cf6f016381c1c3a2301d6a3f27e10c5dd3ad1c2dd31acce4fe0aedd703d96ee97db4831
+SHA512 (btrfs_backup_ng-0.9.17.tar.gz) = a6900c60cc3c6b9f6f00c80afebce059bb94c737da4c892ee5734edb43870f57481a1f449b8ff2a4c82279f8b338b0573ab78c6150032b01dc1528e092e7f307
next reply other threads:[~2026-10-22 10:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 10:51 Michael Berry [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-10 23:22 [rpms/btrfs-backup-ng] f43: Merge branch 'rawhide' into f43 Michael Berry
2026-10-23 4:27 Michael Berry
2026-10-23 3:04 Michael Berry
2026-10-23 3:04 Michael Berry
2026-10-22 10:51 Michael Berry
2026-10-20 12:15 Michael Berry
2026-10-19 20:17 Michael Berry
2026-10-19 4:41 Michael Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179266628754.1.7265322444277781843.rpms-btrfs-backup-ng-3cf09c824eb4@fedoraproject.org \
--to=trismegustis@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox