Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Revert previous, it breaks nullfs. (And I guess the...
details: https://anonhg.NetBSD.org/src/rev/a0697cb7c6bb
branches: trunk
changeset: 768162:a0697cb7c6bb
user: dholland <dholland%NetBSD.org@localhost>
date: Wed Aug 10 05:42:32 2011 +0000
description:
Revert previous, it breaks nullfs. (And I guess there are no tests for
nullfs?)
diffstat:
sys/kern/vfs_lookup.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r af8a2f90008f -r a0697cb7c6bb sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c Wed Aug 10 01:32:43 2011 +0000
+++ b/sys/kern/vfs_lookup.c Wed Aug 10 05:42:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lookup.c,v 1.187 2011/08/09 23:46:05 dholland Exp $ */
+/* $NetBSD: vfs_lookup.c,v 1.188 2011/08/10 05:42:32 dholland Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.187 2011/08/09 23:46:05 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.188 2011/08/10 05:42:32 dholland Exp $");
#include "opt_magiclinks.h"
@@ -1123,10 +1123,11 @@
for (;;) {
/*
- * If the directory we're on is unmounted, or has been
- * rmdir'd, bail out.
+ * If the directory we're on is unmounted, bail out.
+ * XXX: should this also check if it's unlinked?
+ * XXX: yes it should... but how?
*/
- if (searchdir->v_mount == NULL || searchdir->v_size == 0) {
+ if (searchdir->v_mount == NULL) {
vput(searchdir);
ndp->ni_dvp = NULL;
ndp->ni_vp = NULL;
Home |
Main Index |
Thread Index |
Old Index