X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdf.c;h=d327164ac601e3a98c59217122240b0e77b8ea4b;hb=c9596f6cf39a128c10764c3091e6a28186be2303;hp=8eed1f548cb4f9d074cd272fd70c953199413aba;hpb=b1eba7255b8910ce6b6b781a64f0605f68b89edb;p=collectd.git diff --git a/src/df.c b/src/df.c index 8eed1f54..d327164a 100644 --- a/src/df.c +++ b/src/df.c @@ -125,6 +125,7 @@ static int df_config (char *key, char *value) ignorelist_set_invert (il_mountpoint, 1); ignorelist_set_invert (il_fstype, 1); } + return (0); } return (-1); @@ -209,7 +210,10 @@ static void df_read (void) mnt_name[i] = '-'; } - if (ignorelist_match (il_device, mnt_ptr->device)) + if (ignorelist_match (il_device, + (mnt_ptr->spec_device != NULL) + ? mnt_ptr->spec_device + : mnt_ptr->device)) continue; if (ignorelist_match (il_mountpoint, mnt_ptr->dir)) continue;