Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git] / src / df.c
index 61964f3..cb0ff2f 100644 (file)
--- 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;