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/a1be3894e3c4
branches:  trunk
changeset: 1008612:a1be3894e3c4
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 1766c7ae4b72 -r a1be3894e3c4 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