diff options
author | 2003-05-06 20:52:14 +0000 | |
---|---|---|
committer | 2003-05-06 20:52:14 +0000 | |
commit | 8e2a8047a63d78fa0105abcbde4c110e9a226106 (patch) | |
tree | d99bc902b124f9ef61747a5a1fb551d4c96eaabb /sys/kern/vfs_subr.c | |
parent | avoid doing a lookup on no longer mounted directories. (diff) | |
download | wireguard-openbsd-8e2a8047a63d78fa0105abcbde4c110e9a226106.tar.xz wireguard-openbsd-8e2a8047a63d78fa0105abcbde4c110e9a226106.zip |
attempt to put a process's cwd back in place after a forced umount.
won't always work, but it's the best we can do for now. this covers
at least some of the failure cases the previous commit to vfs_lookup.c
checks for.
ok weingart@
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index b4192a84ee9..6d30d424d67 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.90 2003/05/01 21:13:05 tedu Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.91 2003/05/06 20:52:14 tedu Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1771,7 +1771,7 @@ vfs_unmountall(void) nmp = CIRCLEQ_PREV(mp, mnt_list); if ((vfs_busy(mp, LK_EXCLUSIVE|LK_NOWAIT, NULL, p)) != 0) continue; - if ((error = dounmount(mp, MNT_FORCE, curproc)) != 0) { + if ((error = dounmount(mp, MNT_FORCE, curproc, NULL)) != 0) { printf("unmount of %s failed with error %d\n", mp->mnt_stat.f_mntonname, error); allerror = 1; |