1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +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>
This commit is contained in:
Zygo Blaxell 2025-02-06 01:17:09 -05:00
parent c1d7fa13a5
commit 88b1e4ca6e

View File

@ -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();