svn commit: r256475 - projects/zfsd/head/cddl/sbin/zfsd

Alan Somers asomers at FreeBSD.org
Mon Oct 14 23:24:54 UTC 2013


Author: asomers
Date: Mon Oct 14 23:24:53 2013
New Revision: 256475
URL: http://svnweb.freebsd.org/changeset/base/256475

Log:
  Logging changes in zfsd
  
  	sbin/zfsd/zfsd.cc
  		Log when a system rescan event request is processed.  This
  		is primarily so it can be differentiated from other system
  		rescan events.
  
  	sbin/zfsd/zfsd_event.cc
  		Stop emitting "Searching for CaseFile by Physical Path" log.
  		It contributes nothing to the log and occurs very
  		frequently.
  
  Submitted by:	will
  Approved by:	ken (mentor)
  Sponsored by:	Spectra Logic Corporation

Modified:
  projects/zfsd/head/cddl/sbin/zfsd/zfsd.cc
  projects/zfsd/head/cddl/sbin/zfsd/zfsd_event.cc

Modified: projects/zfsd/head/cddl/sbin/zfsd/zfsd.cc
==============================================================================
--- projects/zfsd/head/cddl/sbin/zfsd/zfsd.cc	Mon Oct 14 23:21:02 2013	(r256474)
+++ projects/zfsd/head/cddl/sbin/zfsd/zfsd.cc	Mon Oct 14 23:24:53 2013	(r256475)
@@ -345,6 +345,7 @@ ZfsDaemon::EventLoop()
 
 		if (s_systemRescanRequested == true) {
 			s_systemRescanRequested = false;
+			syslog(LOG_INFO, "System Rescan request processed.");
 			RescanSystem();
 		}
 

Modified: projects/zfsd/head/cddl/sbin/zfsd/zfsd_event.cc
==============================================================================
--- projects/zfsd/head/cddl/sbin/zfsd/zfsd_event.cc	Mon Oct 14 23:21:02 2013	(r256474)
+++ projects/zfsd/head/cddl/sbin/zfsd/zfsd_event.cc	Mon Oct 14 23:24:53 2013	(r256475)
@@ -195,7 +195,6 @@ DevfsEvent::Process() const
 		       "as a replace by physical path candidate.\n",
 		       devName.c_str());
 	} else if (havePhysPath && IsWholeDev()) {
-		syslog(LOG_INFO, "Searching for CaseFile by Physical Path\n");
 		CaseFile *caseFile(CaseFile::Find(physPath));
 		if (caseFile != NULL) {
 			syslog(LOG_INFO,


More information about the svn-src-projects mailing list