checkpoint (first pass at "...")
authorJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1994 05:43:48 +0000 (21:43 -0800)
committerJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1994 05:43:48 +0000 (21:43 -0800)
SCCS-vsn: sys/miscfs/union/union_vnops.c 8.18

usr/src/sys/miscfs/union/union_vnops.c

index 6c257f9..75c237c 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)union_vnops.c       8.17 (Berkeley) %G%
+ *     @(#)union_vnops.c       8.18 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -138,6 +138,22 @@ union_lookup(ap)
        struct union_mount *um = MOUNTTOUNIONMOUNT(dvp->v_mount);
        struct ucred *saved_cred;
 
        struct union_mount *um = MOUNTTOUNIONMOUNT(dvp->v_mount);
        struct ucred *saved_cred;
 
+#ifdef notyet
+       if (cnp->cn_namelen == 3 &&
+                       cnp->cn_nameptr[2] == '.' &&
+                       cnp->cn_nameptr[1] == '.' &&
+                       cnp->cn_nameptr[0] == '.') {
+               dvp = *ap->a_vpp = LOWERVP(ap->a_dvp);
+               if (dvp == NULLVP)
+                       return (ENOENT);
+               VREF(dvp);
+               VOP_LOCK(dvp);
+               if (!lockparent || !(cnp->cn_flags & ISLASTCN))
+                       VOP_UNLOCK(ap->a_dvp);
+               return (0);
+       }
+#endif
+
        cnp->cn_flags |= LOCKPARENT;
 
        upperdvp = dun->un_uppervp;
        cnp->cn_flags |= LOCKPARENT;
 
        upperdvp = dun->un_uppervp;