Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add "unmounting disks..." [unmount] " done" to vfs_...
details: https://anonhg.NetBSD.org/src/rev/cfae0f5e2645
branches: trunk
changeset: 570075:cfae0f5e2645
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Sep 22 11:47:23 2004 +0000
description:
Add "unmounting disks..." [unmount] " done" to vfs_unmountall(),
so the user has some idea what's occurring after "syncing disks... done"
diffstat:
sys/kern/vfs_subr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 70222479cd48 -r cfae0f5e2645 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Wed Sep 22 11:32:02 2004 +0000
+++ b/sys/kern/vfs_subr.c Wed Sep 22 11:47:23 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.234 2004/09/21 03:10:35 thorpej Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.235 2004/09/22 11:47:23 lukem Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.234 2004/09/21 03:10:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.235 2004/09/22 11:47:23 lukem Exp $");
#include "opt_inet.h"
#include "opt_ddb.h"
@@ -2658,11 +2658,12 @@
struct mount *mp, *nmp;
int allerror, error;
+ printf("unmounting file systems...");
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",
+ printf("\nunmounting %s (%s)...",
mp->mnt_stat.f_mntonname, mp->mnt_stat.f_mntfromname);
#endif
/*
@@ -2680,6 +2681,7 @@
allerror = 1;
}
}
+ printf(" done\n");
if (allerror)
printf("WARNING: some file systems would not unmount\n");
}
Home |
Main Index |
Thread Index |
Old Index