From ef561b71a70d5bae3a6e51cd0f9763fe360447e4 Mon Sep 17 00:00:00 2001 From: jtk Date: Sat, 1 Jun 1996 20:24:05 +0000 Subject: [PATCH] print out file systems being unmounted, #ifdef DEBUG. pr#1492 --- sys/kern/vfs_subr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 4cbf0a43afa5..be564d32a327 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ +/* $NetBSD: vfs_subr.c,v 1.54 1996/06/01 20:24:05 jtk Exp $ */ /* * Copyright (c) 1989, 1993 @@ -1553,6 +1553,10 @@ vfs_unmountall() for (allerror = 0, mp = mountlist.cqh_last; mp != (void *)&mountlist; mp = nmp) { nmp = mp->mnt_list.cqe_prev; +#ifdef DEBUG + printf("unmounting %s (%s)...\n", + mp->mnt_stat.f_mntonname, mp->mnt_stat.f_mntfromname); +#endif if ((error = dounmount(mp, MNT_FORCE, &proc0)) != 0) { printf("unmount of %s failed with error %d\n", mp->mnt_stat.f_mntonname, error);