PERFORCE change 168026 for review

Marko Zec zec at FreeBSD.org
Mon Aug 31 20:07:53 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=168026

Change 168026 by zec at zec_tpx32 on 2009/08/31 20:07:17

	Make options VIMAGE kernels actually boot.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/vfs_lookup.c#29 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/vfs_lookup.c#29 (text+ko) ====

@@ -349,6 +349,7 @@
 			break;
 		}
 #ifdef IMUNES_SYMLINK_HACK
+		CURVNET_SET(TD_TO_VNET(curthread));
 		if (V_morphing_symlinks) {
 			char *sp = strchr(cp, '@');
 			int vnamelen = strlen(td->td_ucred->cr_prison->pr_name);
@@ -358,6 +359,7 @@
 					if (ndp->ni_pathlen > 1)
 						uma_zfree(namei_zone, cp);
 					error = ENAMETOOLONG;
+					CURVNET_RESTORE();
 					break;
 				}
 				bcopy(sp + 1, sp + vnamelen,
@@ -367,6 +369,7 @@
 				linklen += (vnamelen - 1);
 			}
 		}
+		CURVNET_RESTORE();
 #endif
 		if (linklen + ndp->ni_pathlen >= MAXPATHLEN) {
 			if (ndp->ni_pathlen > 1)


More information about the p4-projects mailing list