public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/btrfs-backup-ng] f45: Update to 0.9.18
@ 2026-10-22  8:45 Michael Berry
  0 siblings, 0 replies; only message in thread
From: Michael Berry @ 2026-10-22  8:45 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/btrfs-backup-ng
            Branch : f45
            Commit : d64fd93f9a3a5ebc14e63daad4db50219b1fbbdf
            Author : Michael Berry <trismegustis@gmail.com>
            Date   : 2026-10-22T04:06:23-04:00
            Stats  : +3/-39 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/btrfs-backup-ng/c/d64fd93f9a3a5ebc14e63daad4db50219b1fbbdf?branch=f45

            Log:
            Update to 0.9.18

Drop the btrfs lock patch, which upstream fixed in this release.

---
diff --git a/.gitignore b/.gitignore
index a403bda..0d9fbb4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
 /btrfs_backup_ng-0.9.15.tar.gz
 /btrfs_backup_ng-0.9.16.tar.gz
 /btrfs_backup_ng-0.9.17.tar.gz
+/btrfs_backup_ng-0.9.18.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
deleted file mode 100644
index 7abcc19..0000000
--- a/btrfs-backup-ng-0.9.17-lock-rewind-before-listing.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-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 393f8c1..1fbb433 100644
--- a/btrfs-backup-ng.spec
+++ b/btrfs-backup-ng.spec
@@ -1,13 +1,11 @@
 Name:           btrfs-backup-ng
-Version:        0.9.17
+Version:        0.9.18
 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 5e6b43e..49a1ca3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (btrfs_backup_ng-0.9.17.tar.gz) = a6900c60cc3c6b9f6f00c80afebce059bb94c737da4c892ee5734edb43870f57481a1f449b8ff2a4c82279f8b338b0573ab78c6150032b01dc1528e092e7f307
+SHA512 (btrfs_backup_ng-0.9.18.tar.gz) = d39104d3fffc52d5e467f6cc6d66d3c44fad7fac168a90e13b7530b5392918d24d4fd441402027d11fa0c64479f718c3052bd8779e6a1114379e6250236e6b3a

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-22  8:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22  8:45 [rpms/btrfs-backup-ng] f45: Update to 0.9.18 Michael Berry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox