Subject: kern/1492: no feedback at shutdown-time unmounts
To: None <gnats-bugs@gnats.netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 09/21/1995 21:39:40
>Number:         1492
>Category:       kern
>Synopsis:       no feedback at shutdown-time unmounts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 21 21:50:01 1995
>Last-Modified:
>Originator:     John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release:        NetBSD-current, 1995/09/21
>Environment:
	
System: NetBSD pattern 1.0A NetBSD 1.0A (PATTERN) #125: Wed Sep 20 22:42:13 EDT 1995 jtk@pattern:/u1/NetBSD-current/src/sys/arch/i386/compile/PATTERN i386


>Description:
The kernel doesn't have any printf's or anything to indicate what file
systems are being unmounted.

>How-To-Repeat:
Shutdown & reboot
>Fix:
===================================================================
RCS file: RCS/vfs_subr.c,v
retrieving revision 1.1
diff -c -r1.1 vfs_subr.c
*** vfs_subr.c	1995/07/23 20:40:18	1.1
--- vfs_subr.c	1995/07/23 21:38:54
***************
*** 1495,1500 ****
--- 1495,1504 ----
  	for (allerror = 0,
  	     mp = mountlist.cqh_last; mp != (void *)&mountlist; mp = nmp) {
  		nmp = mp->mnt_list.cqe_prev;
+ #ifdef DIAGNOSTIC
+ 		printf("unmounting %s (%s)...\n",
+ 		       mp->mnt_stat.f_mntonname, mp->mnt_stat.f_mntfromname);
+ #endif
  		if (error = dounmount(mp, MNT_FORCE, &proc0)) {
  			printf("unmount of %s failed with error %d\n",
  			    mp->mnt_stat.f_mntonname, error);

>Audit-Trail:
>Unformatted: