bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issues with mountlist.c and fsusage.c


From: Thomas Guyot-Sionnest
Subject: Issues with mountlist.c and fsusage.c
Date: Thu, 10 Jan 2008 06:53:07 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20071022)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm a Nagios-plugins developer. We're having some issues with
mountlist.c and fsusage.c and since I'm about to update Gnulib I'm
wondering if anything can be done about it.

1. When using get_fs_usage on FreeBSD with a partition filled over 100%
(this can happen when disk usage grows beyond what's available to normal
users), fsu_bavail becomes insanely high. We needed a quick fix so we
check if fsu_bavail > fsu_bfree before using it.

Since we worked around this I didn't take the time to look at the issue
in Gnulib. Also I don't have much experience with this kind of stuff.


2. On Solaris, trying to get fs usage on a huge filesystem (16 TiB for
ex.) triggers a statvfs EOVERFLOW error. When comparing check_disk
output (the plugin that uses get_fs_usage) with df, df uses statvfs64
instead.

Although mountlist.c and fsusage.c support such filesystem sizes (I've
been able to check fake 80TiB partitions using sparse files on Linux) it
does not try to detect and use statvfs64.

This seems to be a trivial fix (I don't have such partitions to test
with on Solaris, but I've been able to replace "statvfs" with
"statvfs64" and get check_disk working properly) but I don't have any
knowledge of auto* stuff to do the proper detection.

Thanks,

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhgcj6dZ+Kt5BchYRAhNgAKDuUGuPSIWPfFbOf4yMj4Kl+oDQtwCg3abL
LDGNuKPBXof68mKLnjf2gxg=
=QemR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]