summaryrefslogtreecommitdiffstats
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-20 08:14:41 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-20 08:14:41 +0000
commit56cf151ae91c5081a99365848a3f060dfe14a68c (patch)
treead5097f63add69317e9c66d22210229e57c9ef30 /plugins/check_disk.c
parentcaa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (diff)
downloadmonitoring-plugins-56cf151ae91c5081a99365848a3f060dfe14a68c.tar.gz
Add comment to recent check_disk patch
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2088 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 3caf4a14..12b77a8a 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -637,8 +637,11 @@ process_arguments (int argc, char **argv)
637 se->group = group; 637 se->group = group;
638 set_all_thresholds(se); 638 set_all_thresholds(se);
639 639
640 /* With autofs, it is required to stat() the path before populating the mount_list */ 640 /* With autofs, it is required to stat() the path before re-populating the mount_list */
641 stat_path(se); 641 stat_path(se);
642 /* NB: We can't free the old mount_list "just like that": both list pointers and struct
643 * pointers are copied around. One of the reason it wasn't done yet is that other parts
644 * of check_disk need the same kind of cleanup so it'd better be done as a whole */
642 mount_list = read_file_system_list (0); 645 mount_list = read_file_system_list (0);
643 np_set_best_match(se, mount_list, exact_match); 646 np_set_best_match(se, mount_list, exact_match);
644 647