"FSType",
"IgnoreSelected",
"ReportByDevice",
- "ReportReserved"
+ "ReportReserved",
+ "ReportInodes"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
static _Bool by_device = false;
static _Bool report_reserved = false;
+static _Bool report_inodes = false;
static int df_init (void)
{
return (0);
}
+ else if (strcasecmp (key, "ReportInodes") == 0)
+ {
+ if (IS_TRUE (value))
+ report_inodes = true;
+ else
+ report_inodes = false;
+
+ return (0);
+ }
return (-1);
}
/* inode handling */
+ if (report_inodes)
{
uint64_t inode_free;
uint64_t inode_reserved;