Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/autofs autofs: Make autofs(5) timeout messages includ...



details:   https://anonhg.NetBSD.org/src/rev/6a1ebffa4a85
branches:  trunk
changeset: 746329:6a1ebffa4a85
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Sat Mar 28 17:29:56 2020 +0000

description:
autofs: Make autofs(5) timeout messages include affected process name and PID

Sync warning message with FreeBSD and DragonFlyBSD.
taken-from: FreeBSD

diffstat:

 sys/fs/autofs/autofs.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 08c7f4fdd4c9 -r 6a1ebffa4a85 sys/fs/autofs/autofs.c
--- a/sys/fs/autofs/autofs.c    Sat Mar 28 15:50:25 2020 +0000
+++ b/sys/fs/autofs/autofs.c    Sat Mar 28 17:29:56 2020 +0000
@@ -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 @@
 
        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;
 



Home | Main Index | Thread Index | Old Index