check_disk of monitoring-plugins breaks on btrfs due to some obscure workaround for BSD in 2007. A bug fix has been published upstream, but packages still have to released. I'm requesting a backport of the fix to our ebuild. Reproducible: Sometimes Steps to Reproduce: 1. Install =monitoring-plugins-2.3.1 2. run check_disk against any btrfs filesystem Actual Results: check_disk reports 0% free sometimes even for half-empty disks Expected Results: check_disk reports correct free/usage values I opened this bug as requested by sam_ on IRC. I have manually applied the suggested fix from the link and it now returns correct results.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9fa9976a7c5fed79242dd70b2b46b1e07da0152 commit c9fa9976a7c5fed79242dd70b2b46b1e07da0152 Author: Tomáš Mózes <hydrapolic@gmail.com> AuthorDate: 2022-01-08 14:05:43 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-02-01 08:17:07 +0000 net-analyzer/monitoring-plugins: fix check_disk on btrfs Closes: https://bugs.gentoo.org/830249 Reported-by: satmd@satmd.de Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/23700 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...onitoring-plugins-fix-check-disk-on-btrfs.patch | 20 ++++ .../monitoring-plugins-2.3.1-r1.ebuild | 108 +++++++++++++++++++++ 2 files changed, 128 insertions(+)