X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdf.c;h=194c25730107f43149d6ea9f273ef24f74a19d45;hb=79c87aeda9172e219a842e393c6499c8bf37662a;hp=79829855d18d6fbf86f9fd0604390216121af550;hpb=e6a052ab22a285b1c6e91fb8678168fd1ffdca92;p=collectd.git diff --git a/src/df.c b/src/df.c index 79829855..194c2573 100644 --- a/src/df.c +++ b/src/df.c @@ -164,6 +164,16 @@ static int df_read (void) for (mnt_ptr = mnt_list; mnt_ptr != NULL; mnt_ptr = mnt_ptr->next) { + 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; + if (ignorelist_match (il_fstype, mnt_ptr->type)) + continue; + if (STATANYFS (mnt_ptr->dir, &statbuf) < 0) { char errbuf[1024]; @@ -213,16 +223,6 @@ static int df_read (void) } } - 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; - if (ignorelist_match (il_fstype, mnt_ptr->type)) - continue; - df_submit (disk_name, df_used, df_free); }