Module Name: src
Committed By: tkusumi
Date: Sat Mar 28 17:29:57 UTC 2020
Modified Files:
src/sys/fs/autofs: autofs.c
Log Message:
autofs: Make autofs(5) timeout messages include affected process name and PID
Sync warning message with FreeBSD and DragonFlyBSD.
taken-from: FreeBSD
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/fs/autofs/autofs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/autofs/autofs.c
diff -u src/sys/fs/autofs/autofs.c:1.4 src/sys/fs/autofs/autofs.c:1.5
--- src/sys/fs/autofs/autofs.c:1.4 Sat Dec 14 12:01:13 2019
+++ src/sys/fs/autofs/autofs.c Sat Mar 28 17:29:56 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: autofs.c,v 1.4 2019/12/14 12:01:13 tkusumi Exp $ */
+/* $NetBSD: autofs.c,v 1.5 2020/03/28 17:29:56 tkusumi Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autofs.c,v 1.4 2019/12/14 12:01:13 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autofs.c,v 1.5 2020/03/28 17:29:56 tkusumi Exp $");
#include "autofs.h"
@@ -376,8 +376,9 @@ autofs_trigger_one(struct autofs_node *a
request_error = ar->ar_error;
if (request_error)
- 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;