From: Florian Forster Date: Mon, 5 Jul 2010 18:08:04 +0000 (+0200) Subject: df plugin: Remove the "ReportReserved" config option. X-Git-Tag: collectd-5.0.0-beta0~84 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fcb3cbf43fce07261fd30611edbc4e61bcbcee37;p=collectd.git df plugin: Remove the "ReportReserved" config option. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 2cfa196f..d7cad071 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -994,22 +994,6 @@ Report using the device name rather than the mountpoint. i.e. with this I (the default), it will report a disk as "root", but with it I, it will be "sda1" (or whichever). -=item B B|B - -When enabled, the blocks reserved for root are reported separately. When -disabled (the default for backwards compatibility reasons) the reserved space -will be included in the "free" space. - -When disabled, the "df" type will be used to store "free" and "used" space. The -mount point or disk name (see option B) is used as type -instance in this case (again: backwards compatibility). - -When enabled, the type "df_complex" is used and three files are created. The -mount point or disk name is used as plugin instance and the type instance is -set to "free", "reserved" and "used" as appropriate. - -Enabling this option is recommended. - =item B B|B Enables or disables reporting of free, reserved and used inodes. Defaults to diff --git a/src/df.c b/src/df.c index 61d0c28c..a96b79e5 100644 --- a/src/df.c +++ b/src/df.c @@ -120,11 +120,6 @@ static int df_config (const char *key, const char *value) return (0); } - else if (strcasecmp (key, "ReportReserved") == 0) - { - /* Nop for backwards compatibility. */ - return (0); - } else if (strcasecmp (key, "ReportInodes") == 0) { if (IS_TRUE (value))