Bugzilla – Bug 1145650
btrfsprogs: do not recommend btrfsmaintenance
Last modified: 2020-04-18 10:55:24 UTC
In https://bugzilla.suse.com/show_bug.cgi?id=1063638#c73 it was suggested that btrfsmaintenance is not actually needed. Since those cron jobs/timers cause trouble on quite some systems we should not pull in btrfsmaintenance by default. Unfortunately btrfsprogs still pulls it in. Could you please remove the Recommends or change it to a Suggests?
Yes please. That would also solve (or at least alleviate) bug #1124823.
Btrfsprogs still has "Recommends btrfsmaintenance" (version 5.2.2 updated Sep 12).
The issue still exists in Leap 15.2 Build 547.2. Is there any chance to get rid of this annoying "feature" in due time?
David refused it: https://build.opensuse.org/request/show/697571 He is probably right that there was no proper discussion. The referenced Fate also doesn't give much insight. I guess the btrfs developers either do not use btrfs on a Desktop themselves or the problem of the annoying maintenance task only hits certain setups that the developers don't have (rotating disks maybe?). So they don't suffer therefore have no pressure to fix. Feel free to open the discussion in a public place so we maybe get some insight on the affected setups.
Trouble caused by btrfsmaintenance predominantly comes from starting btrfsmaintenance-refresh.path before local-fs.target is reached: https://github.com/kdave/btrfsmaintenance/issues/78
There is a bug in btrfsmaintenance-refresh.path triggering btrfsmaintenance-refresh.service for no good reason. Fixing this bug btrfsmaintenance tools are quite unobtrusive without making further modifications: btrfsmaintenance-refresh.path starts up in no time and watches for changes of /etc/sysconfig/btrfsmaintenance which does not take a noticeable fraction of a second. The fix is easy: Make *absolutely* sure btrfsmaintenance-refresh.path starts after local-fs.target is reached. Don't rely on defaults. They may change with versions of systemd, programmers changing their mind or making mistakes, phases of the moon ... https://github.com/kdave/btrfsmaintenance/pull/79