svn commit: r292377 - in projects/zfsd/head/cddl/sbin/zfsd: . tests

Alan Somers asomers at FreeBSD.org
Wed Dec 16 21:58:50 UTC 2015


Author: asomers
Date: Wed Dec 16 21:58:48 2015
New Revision: 292377
URL: https://svnweb.freebsd.org/changeset/base/292377

Log:
  Minor zfsd(8) fixes
  
  cddl/sbin/zfsd/case_file.cc
  	Add comment
  
  cddl/sbin/zfsd/tests/Makefile
  	Allow TESTSDIR to be overridden
  
  Sponsored by:	Spectra Logic Corp

Modified:
  projects/zfsd/head/cddl/sbin/zfsd/case_file.cc
  projects/zfsd/head/cddl/sbin/zfsd/tests/Makefile

Modified: projects/zfsd/head/cddl/sbin/zfsd/case_file.cc
==============================================================================
--- projects/zfsd/head/cddl/sbin/zfsd/case_file.cc	Wed Dec 16 21:52:36 2015	(r292376)
+++ projects/zfsd/head/cddl/sbin/zfsd/case_file.cc	Wed Dec 16 21:58:48 2015	(r292377)
@@ -804,6 +804,7 @@ CaseFile::SerializeEvList(const EventLis
 	     curEvent != events.end(); curEvent++) {
 		const string &eventString((*curEvent)->GetEventString());
 
+		// TODO: replace many write(2) calls with a single writev(2)
 		if (prefix)
 			write(fd, prefix, strlen(prefix));
 		write(fd, eventString.c_str(), eventString.length());

Modified: projects/zfsd/head/cddl/sbin/zfsd/tests/Makefile
==============================================================================
--- projects/zfsd/head/cddl/sbin/zfsd/tests/Makefile	Wed Dec 16 21:52:36 2015	(r292376)
+++ projects/zfsd/head/cddl/sbin/zfsd/tests/Makefile	Wed Dec 16 21:58:48 2015	(r292377)
@@ -39,7 +39,7 @@ CFLAGS+= -DGTEST_HAS_PTHREAD
 
 # Install the tests
 TESTSBASE?=	/usr/tests
-TESTSDIR=	${TESTSBASE}/cddl/sbin/zfsd
+TESTSDIR?=	${TESTSBASE}/cddl/sbin/zfsd
 # TODO: Convert from an ATF SH test to a Kyua plain test
 # Long term TODO: Convert to a Kyua googletest test
 ATF_TESTS_SH+=	zfsd_test


More information about the svn-src-projects mailing list