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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"