Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830249 - net-analyzer/monitoring-plugins-2.3.1: check_disk.c broken -- backport request
Summary: net-analyzer/monitoring-plugins-2.3.1: check_disk.c broken -- backport request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL: https://github.com/monitoring-plugins...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-29 20:03 UTC by satmd
Modified: 2022-02-01 08:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description satmd 2021-12-29 20:03:54 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2022-02-01 08:17:13 UTC
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(+)