From 305fccf949726b6dcaea65919c9adcbd342919f6 Mon Sep 17 00:00:00 2001 From: Marek Becka Date: Wed, 24 Jun 2015 11:39:55 -0400 Subject: [PATCH] don't report inodes if fs doesn't provide f_files and f_ffree --- src/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2