Module Name: src
Committed By: ad
Date: Tue Apr 7 19:17:50 UTC 2020
Modified Files:
src/sys/kern: vfs_lookup.c
Log Message:
lookup_fastforward(): failure to vget foundobj vnode also translates into
EOPNOTSUPP; VOP_LOOKUP() should retry it.
To generate a diff of this commit:
cvs rdiff -u -r1.216 -r1.217 src/sys/kern/vfs_lookup.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/vfs_lookup.c
diff -u src/sys/kern/vfs_lookup.c:1.216 src/sys/kern/vfs_lookup.c:1.217
--- src/sys/kern/vfs_lookup.c:1.216 Tue Apr 7 18:28:31 2020
+++ src/sys/kern/vfs_lookup.c Tue Apr 7 19:17:50 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lookup.c,v 1.216 2020/04/07 18:28:31 ad Exp $ */
+/* $NetBSD: vfs_lookup.c,v 1.217 2020/04/07 19:17:50 ad Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.216 2020/04/07 18:28:31 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.217 2020/04/07 19:17:50 ad Exp $");
#ifdef _KERNEL_OPT
#include "opt_magiclinks.h"
@@ -1351,6 +1351,7 @@ lookup_fastforward(struct namei_state *s
/* v_interlock now unheld */
if (error != 0) {
foundobj = NULL;
+ error = EOPNOTSUPP;
}
break;
}