Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bcachefs-tools for openSUSE:Factory 
checked in at 2026-11-26 15:54:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bcachefs-tools (Old)
 and      /work/SRC/openSUSE:Factory/.bcachefs-tools.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bcachefs-tools"

Thu Nov 26 15:54:08 2026 rev:2 rq:1400622 version:1.39.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/bcachefs-tools/bcachefs-tools.changes    
2026-09-14 16:22:30.466884066 +0200
+++ 
/work/SRC/openSUSE:Factory/.bcachefs-tools.new.1340718/bcachefs-tools.changes   
    2026-11-26 15:54:48.009297992 +0100
@@ -1,0 +2,36 @@
+Wed Nov 25 17:37:35 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add bcachefs-tools-pagecache-div_u64.patch: Use div_u64 for
+  disk_res.r.sectors division to fix __udivdi3 modpost link error
+  in 32-bit kernel module build.
+
+-------------------------------------------------------------------
+Wed Nov 25 17:28:35 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add bcachefs-tools-fusemount-32bit-time_t.patch: Widen tv_sec to
+  i64 before unsigned_abs() so Duration::from_secs() compiles on
+  32-bit targets like i586.
+
+-------------------------------------------------------------------
+Wed Nov 18 11:15:00 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add bcachefs-tools-bvec_iter-bi_offset.patch: in include/linux/bvec.h,
+  use an anonymous union in struct bvec_iter to alias bi_bvec_done
+  and bi_offset. Fixes build against Linux 7.3+ kernel headers where
+  kernel-synced fs/data/read.c accesses bi_offset.
+
+-------------------------------------------------------------------
+Mon Oct  5 18:21:48 UTC 2026 - Jan Engelhardt <[email protected]>
+
+- Update to release 1.39.7
+  * Disk accounting now has replication level fully plumbed
+  * FUSE mount support
+  * Added a dracut module
+  * Added journal scrubbing
+
+-------------------------------------------------------------------
+Thu Oct  1 09:54:43 UTC 2026 - Jan Engelhardt <[email protected]>
+
+- Add messages.patch
+
+-------------------------------------------------------------------

Old:
----
  bcachefs-tools-vendored-1.39.6.tar.sign
  bcachefs-tools-vendored-1.39.6.tar.zst

New:
----
  bcachefs-tools-bvec_iter-bi_offset.patch
  bcachefs-tools-fusemount-32bit-time_t.patch
  bcachefs-tools-pagecache-div_u64.patch
  bcachefs-tools-vendored-1.39.7.tar.sign
  bcachefs-tools-vendored-1.39.7.tar.zst
  messages.patch

----------(New B)----------
  New:
- Add bcachefs-tools-bvec_iter-bi_offset.patch: in include/linux/bvec.h,
  use an anonymous union in struct bvec_iter to alias bi_bvec_done
  New:
- Add bcachefs-tools-fusemount-32bit-time_t.patch: Widen tv_sec to
  i64 before unsigned_abs() so Duration::from_secs() compiles on
  New:
- Add bcachefs-tools-pagecache-div_u64.patch: Use div_u64 for
  disk_res.r.sectors division to fix __udivdi3 modpost link error
  New:
- Add messages.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bcachefs-tools.spec ++++++
--- /var/tmp/diff_new_pack.1sOYX7/_old  2026-11-26 15:54:49.091343782 +0100
+++ /var/tmp/diff_new_pack.1sOYX7/_new  2026-11-26 15:54:49.093343867 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           bcachefs-tools
-Version:        1.39.6
+Version:        1.39.7
 Release:        0
 Summary:        Configuration utilities for bcachefs
 License:        Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR 
Apache-2.0 WITH LLVM-exception OR MIT) AND MIT AND MPL-2.0 AND (MIT OR 
Unlicense) AND BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND 
LGPL-2.1-only
@@ -29,6 +29,12 @@
 Source1:        
https://evilpiepirate.org/bcachefs-tools/%name-vendored-%version.tar.sign
 Source2:        %name.keyring
 Source3:        bcachefs-preamble
+Patch1:         messages.patch
+Patch2:         bcachefs-tools-bvec_iter-bi_offset.patch
+# PATCH-FIX-UPSTREAM f906fcbae386277b9827299956c94ca9a751f226 fusemount: build 
on targets with a 32 bit time_t
+Patch3:         bcachefs-tools-fusemount-32bit-time_t.patch
+# PATCH-FIX-UPSTREAM f129d0ef4c282ec03c10d42ea95074422d1b53cb vfs: folio 
reservation: use div_u64() for the sectors per replica
+Patch4:         bcachefs-tools-pagecache-div_u64.patch
 BuildRequires:  cargo
 BuildRequires:  clang-devel
 BuildRequires:  libaio-devel >= 0.3.111

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.1sOYX7/_old  2026-11-26 15:54:49.129345390 +0100
+++ /var/tmp/diff_new_pack.1sOYX7/_new  2026-11-26 15:54:49.132345517 +0100
@@ -1,5 +1,5 @@
-mtime: 1789309607
-commit: d9f8639c53343ccba48b487069ea97755f8df697a18e661fde14b3de3494a036
+mtime: 1795628270
+commit: 617e4606a75fe1cbfe9b25e088d2752ff4ed360530f343f168ccea06e2cabf13
 url: https://src.opensuse.org/jengelh/bcachefs-tools
 revision: master
 

++++++ bcachefs-tools-bvec_iter-bi_offset.patch ++++++
From: Dominique Leuenberger <[email protected]>
Date: Wed, 18 Nov 2026 13:00:00 +0000
Subject: [PATCH] include/linux/bvec.h: alias bi_bvec_done and bi_offset in 
struct bvec_iter
Upstream: pending

In Linux 7.3+, the kernel block layer renamed bi_bvec_done to bi_offset
in struct bvec_iter.
When building against kernel headers >= 7.3, kernel-synced code like
fs/data/read.c checks LINUX_VERSION_CODE and attempts to access
bi_iter.bi_offset.
However, bcachefs-tools compiles against its own bundled userspace
include/linux/bvec.h header which still had bi_bvec_done.

Use an anonymous union in struct bvec_iter to alias bi_bvec_done and
bi_offset, satisfying both modern kernel-synced code and existing
userspace iterator helpers without macro pollution.

---
 include/linux/bvec.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- a/include/linux/bvec.h
+++ b/include/linux/bvec.h
@@ -38,8 +38,10 @@ struct bvec_iter {
 
        unsigned int            bi_idx;         /* current index into bvl_vec */
 
-       unsigned int            bi_bvec_done;   /* number of bytes completed in
-                                                  current bvec */
+       union {
+               unsigned int    bi_bvec_done;   /* number of bytes completed in 
current bvec */
+               unsigned int    bi_offset;
+       };
 };
 
 struct bvec_iter_all {

++++++ bcachefs-tools-fusemount-32bit-time_t.patch ++++++
>From f906fcbae386277b9827299956c94ca9a751f226 Mon Sep 17 00:00:00 2001
From: Kent Overstreet <[email protected]>
Date: Tue, 6 Oct 2026 08:23:16 -0500
Subject: [PATCH] fusemount: build on targets with a 32 bit time_t

On i586 tv_sec is an i32, so unsigned_abs() returns a u32 and
Duration::from_secs() won't take it:

  error[E0308]: mismatched types
     --> src/commands/fusemount.rs:904:42
  904 |         UNIX_EPOCH - Duration::from_secs(ts.tv_sec.unsigned_abs()) + 
nsec
      |                                          ^^^^^^^^^^^^^^^^^^^^^^^^ 
expected `u64`, found `u32`

Widen to i64 first. That cast is a no-op on 64 bit targets, which
clippy flags, hence the allow.

Fixes: a2a1faa21e0f ("fusemount: times before 1970")
Closes: https://github.com/koverstreet/bcachefs-tools/issues/1087

Co-Authored-By: Proof of Concept <[email protected]>
---
 src/commands/fusemount.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/commands/fusemount.rs b/src/commands/fusemount.rs
index 9a0950af8c..033c41f8c5 100644
--- a/src/commands/fusemount.rs
+++ b/src/commands/fusemount.rs
@@ -896,12 +896,14 @@ impl BcachefsFs {
 
 /// Times before 1970 are valid on bcachefs: a timespec's tv_sec is then
 /// negative, with tv_nsec still counting forwards from it.
+// time_t is 32 bits on some targets (i586): the cast isn't a no-op there
+#[allow(clippy::unnecessary_cast)]
 fn ts_to_systime(ts: c::timespec) -> SystemTime {
     let nsec = Duration::from_nanos(ts.tv_nsec as u64);
     if ts.tv_sec >= 0 {
         UNIX_EPOCH + Duration::from_secs(ts.tv_sec as u64) + nsec
     } else {
-        UNIX_EPOCH - Duration::from_secs(ts.tv_sec.unsigned_abs()) + nsec
+        UNIX_EPOCH - Duration::from_secs((ts.tv_sec as i64).unsigned_abs()) + 
nsec
     }
 }
 

++++++ bcachefs-tools-pagecache-div_u64.patch ++++++
>From f129d0ef4c282ec03c10d42ea95074422d1b53cb Mon Sep 17 00:00:00 2001
From: Rosen Penev <[email protected]>
Date: Tue, 6 Oct 2026 18:19:04 -0700
Subject: [PATCH] vfs: folio reservation: use div_u64() for the sectors per
 replica

disk_reservation.sectors is a u64; dividing it with a plain / makes gcc
emit a libgcc call on 32 bit, which the kernel doesn't provide. The DKMS
build on armv7 fails at modpost:

  ERROR: modpost: "__aeabi_uldivmod" [src/fs/bcachefs/bcachefs.ko] undefined!

With this the module links on armv7 (7.2.7, C-only build) and loads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 fs/vfs/pagecache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/vfs/pagecache.c b/fs/vfs/pagecache.c
index 221db88be4..249010f3d8 100644
--- a/fs/vfs/pagecache.c
+++ b/fs/vfs/pagecache.c
@@ -535,7 +535,7 @@ static ssize_t __bch2_folio_reservation_get(struct bch_fs 
*c,
                                              res->disk.nr_replicas,
                                              partial ? 
BCH_DISK_RESERVATION_PARTIAL : 0));
 
-               unsigned got = disk_res.r.sectors / disk_res.r.nr_replicas;
+               unsigned got = div_u64(disk_res.r.sectors, 
disk_res.r.nr_replicas);
                if (unlikely(got < last - first)) {
                        /*
                         * Make sure to get a reservation that's aligned to the

++++++ bcachefs-tools-vendored-1.39.6.tar.zst -> 
bcachefs-tools-vendored-1.39.7.tar.zst ++++++
/work/SRC/openSUSE:Factory/bcachefs-tools/bcachefs-tools-vendored-1.39.6.tar.zst
 
/work/SRC/openSUSE:Factory/.bcachefs-tools.new.1340718/bcachefs-tools-vendored-1.39.7.tar.zst
 differ: char 8, line 1


++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-25 18:37:50.000000000 +0100
@@ -0,0 +1 @@
+.osc

++++++ messages.patch ++++++
* Do away with unhelpful SPLINES log messages and tell the user what's actually
  happening.
* kmod: We build the kernel module, therefore we know what's enabled.
  Don't steer users anywhere in particular.
* userspace: Warn about future unavailability (failure to compile, including
  cases unrelated to rust).
---
 fs/Makefile             |    2 +-
 src/bcachefs.rs         |    3 +++
 src/recovery_display.rs |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

Index: bcachefs-tools-1.39.7/fs/Makefile
===================================================================
--- bcachefs-tools-1.39.7.orig/fs/Makefile
+++ bcachefs-tools-1.39.7/fs/Makefile
@@ -266,7 +266,7 @@ BCACHEFS_RUST ?= auto
 # Why the kernel's own Rust can't be used; empty if it can:
 bcachefs-kernel-rust-why :=
 ifndef CONFIG_RUST
-bcachefs-kernel-rust-why := kernel $(KERNELVERSION) was built without 
CONFIG_RUST
+bcachefs-kernel-rust-why := ignore
 else ifeq ($(BCACHEFS_RUST_VENDOR),1)
 bcachefs-kernel-rust-why := vendored Rust forced with BCACHEFS_RUST_VENDOR=1
 else ifneq ($(BCACHEFS_RUST),1)
Index: bcachefs-tools-1.39.7/src/bcachefs.rs
===================================================================
--- bcachefs-tools-1.39.7.orig/src/bcachefs.rs
+++ bcachefs-tools-1.39.7/src/bcachefs.rs
@@ -72,6 +72,9 @@ fn check_kernel_warnings() {
     let Some(config) = read_kernel_config() else { return };
 
     if !kernel_config_has(&config, "CONFIG_RUST") {
+        eprintln!("WARNING: bcachefs may stop functioning in the future if it 
exceeds the kernel APIs available in this distro");
+    }
+    if false {
         eprintln!("WARNING: kernel does not have CONFIG_RUST enabled; \
                    this will be required for bcachefs in the near future");
         eprintln!("         please alert your distribution or kernel 
developers \
Index: bcachefs-tools-1.39.7/src/recovery_display.rs
===================================================================
--- bcachefs-tools-1.39.7.orig/src/recovery_display.rs
+++ bcachefs-tools-1.39.7/src/recovery_display.rs
@@ -347,7 +347,7 @@ fn render_block(f: &Fields, cols: usize)
         lines.push(l);
     }
 
-    lines.push(format!("  {}...", crate::splines::reticulate(f.elapsed)));
+    lines.push(format!("  running recovery..."));
 
     for l in &mut lines {
         truncate(l, cols);

Reply via email to