From: Rick W. <ri...@mi...> - 2004-09-17 21:26:04
|
We have run into an issue with gmond continually checking the /media/floppy and /media/cdrom subfs mounts under suse 9.1. This patch corrects that behavior. Here is the patch: diff -aurN ganglia-monitor-core-2.5.6.orig/gmond/machines/linux.c ganglia-monitor-core-2.5.6/gmond/machines/linux.c --- ganglia-monitor-core-2.5.6.orig/gmond/machines/linux.c 2004-08-10 11:59:14.374046000 -0400 +++ ganglia-monitor-core-2.5.6/gmond/machines/linux.c 2004-08-10 11:59:38.310407896 -0400 @@ -930,7 +930,7 @@ or if (it is of type smbfs and its Fs_name starts with `//'). */ return ((strchr(device,':') != 0) || (!strcmp(type, "smbfs") && device[0]=='/' && device[1]=='/') - || (!strcmp(type, "autofs"))); + || (!strcmp(type, "autofs")) || (!strcmp(type, "subfs"))); } /* --------------------------------------------------------------------------- */ -- Richard Warner Systems Integration Microway, Inc (508)732-5517 |