From b7622235d0e563c2609371f489b305d67f6e8358 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Fri, 27 May 2016 23:58:00 +0000 Subject: [PATCH] Don't truncate existing error when writing the log. Suggested by: markj MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- sys/dev/filemon/filemon_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index ba4fe1603249..1b304d2e370f 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -66,7 +66,7 @@ filemon_output(struct filemon *filemon, char *msg, size_t len) bwillwrite(); error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread); - if (error != 0) + if (error != 0 && filemon->error == 0) filemon->error = error; }