summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: caa8bd6)
raw | patch | inline | side by side (parent: caa8bd6)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 20 Nov 2008 08:14:41 +0000 (08:14 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 20 Nov 2008 08:14:41 +0000 (08:14 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2088 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_disk.c | patch | blob | history |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 3caf4a147fd7f736e6410448f67e9fb3102074bc..12b77a8ab8b16d7d36d446f548fc2326d1a52403 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
se->group = group;
set_all_thresholds(se);
- /* With autofs, it is required to stat() the path before populating the mount_list */
+ /* With autofs, it is required to stat() the path before re-populating the mount_list */
stat_path(se);
+ /* NB: We can't free the old mount_list "just like that": both list pointers and struct
+ * pointers are copied around. One of the reason it wasn't done yet is that other parts
+ * of check_disk need the same kind of cleanup so it'd better be done as a whole */
mount_list = read_file_system_list (0);
np_set_best_match(se, mount_list, exact_match);