aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/autofs
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2020-03-16 16:17:58 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2020-03-16 16:17:58 +0000
commitfb48a42f032c3c28bec4cfcf8d4184172035f067 (patch)
treed50f28de84e4d6e58f62d80e7be2e3ffaf4c20bc /sys/fs/autofs
parentee7a9e506e90b65a912a661799f54a5762bb1688 (diff)
downloadsrc-fb48a42f032c3c28bec4cfcf8d4184172035f067.tar.gz
src-fb48a42f032c3c28bec4cfcf8d4184172035f067.zip
Make autofs(5) timeout messages include affected process name and PID.
MFC after: 2 weeks Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=359017
Diffstat (limited to 'sys/fs/autofs')
-rw-r--r--sys/fs/autofs/autofs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c
index 2c5d54f15e79..08aff972aa92 100644
--- a/sys/fs/autofs/autofs.c
+++ b/sys/fs/autofs/autofs.c
@@ -468,8 +468,9 @@ autofs_trigger_one(struct autofs_node *anp,
request_error = ar->ar_error;
if (request_error != 0) {
- AUTOFS_WARN("request for %s completed with error %d",
- ar->ar_path, request_error);
+ AUTOFS_WARN("request for %s completed with error %d, "
+ "pid %d (%s)", ar->ar_path, request_error,
+ curproc->p_pid, curproc->p_comm);
}
wildcards = ar->ar_wildcards;