From: Marek Becka Date: Wed, 24 Jun 2015 15:39:55 +0000 (-0400) Subject: don't report inodes if fs doesn't provide f_files and f_ffree X-Git-Tag: collectd-5.5.1~68^2~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=305fccf949726b6dcaea65919c9adcbd342919f6;p=collectd.git don't report inodes if fs doesn't provide f_files and f_ffree --- diff --git a/src/df.c b/src/df.c index ae09e6b7..3b0c995b 100644 --- a/src/df.c +++ b/src/df.c @@ -321,7 +321,7 @@ static int df_read (void) } /* inode handling */ - if (report_inodes) + if (report_inodes && statbuf.f_files != 0 && statbuf.f_ffree != 0) { uint64_t inode_free; uint64_t inode_reserved;