]> git.hungrycats.org Git - bees/commitdiff
config-v1: define the keys version 2 added, at their v0.11 values
authorZygo Blaxell <bees@furryterror.org>
Sat, 10 Oct 2026 18:59:14 +0000 (14:59 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 10 Oct 2026 18:59:14 +0000 (14:59 -0400)
Version 2 added thread.workaround-clone-logical-ino and
resolve.commit-root, and version 1 has neither.  A configuration pinned
to version 1 or v0.11 finds them only by reading forward into version
2, so it gets version 2's defaults (auto and yes) instead of v0.11
behaviour.

v0.11 did not serialize dedupe against LOGICAL_INO, and it resolved
references against the live tree.  Give version 1 both keys with those
values (no and no).  Version 2 already states its own defaults, so it
is unaffected.

Assisted-by: Claude-Code:claude-opus-5-5
src/bees-config-v1.cc

index a17cbc3a5eccf343bea6ea8ebf16e9a97010b151..7f115c13059fd05e57d072b5cb317e23c67cea6b 100644 (file)
@@ -63,6 +63,11 @@ static const char bees_config_v1[] = R"--v1-config--(
         # Maximum number of extent-scan tasks queued in memory at once.
         task-queue-max = 9999
 
+        # Serialize the dedupe ioctl against LOGICAL_INO to avoid a kernel
+        # bug triggered when both run concurrently (yes, no, auto).
+        # v0.11 did not serialize them.
+        workaround-clone-logical-ino = no
+
 # The [throttle] section controls pacing of command submission to reduce
 # btrfs commit latency and CPU/IO load.
 
@@ -363,6 +368,15 @@ static const char bees_config_v1[] = R"--v1-config--(
         # crash, which would cause missed deduplication on restart.
         defer = no
 
+# The [resolve] section controls how bees maps physical addresses back to
+# the files that reference them.
+
+[resolve]
+
+        # Resolve references against the commit roots instead of the live
+        # tree.  v0.11 resolved against the live tree.
+        commit-root = no
+
 # The [scan.subvol] section controls legacy subvol crawlers (scan modes 0-3).
 
 [scan.subvol]