Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 23:58:00 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300893 - head/sys/dev/filemon
Message-ID:  <201605272358.u4RNw0kn017789@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri May 27 23:58:00 2016
New Revision: 300893
URL: https://svnweb.freebsd.org/changeset/base/300893

Log:
  Don't truncate existing error when writing the log.
  
  Suggested by:	markj
  MFC after:	2 weeks
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/filemon/filemon_wrapper.c

Modified: head/sys/dev/filemon/filemon_wrapper.c
==============================================================================
--- head/sys/dev/filemon/filemon_wrapper.c	Fri May 27 23:57:57 2016	(r300892)
+++ head/sys/dev/filemon/filemon_wrapper.c	Fri May 27 23:58:00 2016	(r300893)
@@ -66,7 +66,7 @@ filemon_output(struct filemon *filemon, 
 		bwillwrite();
 
 	error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread);
-	if (error != 0)
+	if (error != 0 && filemon->error == 0)
 		filemon->error = error;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605272358.u4RNw0kn017789>