Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-05-07 20:49:38 +02:00
main: unconditionally enable workaround for the logical_ino-vs-clone kernel bug
This obviously doesn't fix or prevent the kernel bug, but it does prevent bees from triggering the bug without assitance from another application. The bug can still be triggered by running bees at the same time as an application which uses clone or LOGICAL_INO. `btdu` uses LOGICAL_INO, while `cp` from coreutils (and many others) use clone (reflink copy). Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
+2
-6
@@ -875,12 +875,8 @@ bees_main(int argc, char *argv[])
|
||||
// Set root scan mode
|
||||
bc->roots()->set_scan_mode(root_scan_mode);
|
||||
|
||||
if (root_scan_mode == BeesRoots::SCAN_MODE_EXTENT) {
|
||||
MultiLocker::enable_locking(false);
|
||||
} else {
|
||||
// Workaround for a kernel bug that the subvol-based crawlers keep triggering
|
||||
MultiLocker::enable_locking(true);
|
||||
}
|
||||
// Workaround for the logical-ino-vs-clone kernel bug
|
||||
MultiLocker::enable_locking(true);
|
||||
|
||||
// Start crawlers
|
||||
bc->start();
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren