svn commit: r269493 - stable/10/sys/fs/nullfs

Konstantin Belousov kib at FreeBSD.org
Mon Aug 4 01:10:48 UTC 2014


Author: kib
Date: Mon Aug  4 01:10:47 2014
New Revision: 269493
URL: http://svnweb.freebsd.org/changeset/base/269493

Log:
  MFC r269187:
  Assert that nullfs vnode has VV_ROOT set whenever lower vnode has.
  Assert that dotdot lookup on the root vnode is not performed.

Modified:
  stable/10/sys/fs/nullfs/null_vnops.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/nullfs/null_vnops.c
==============================================================================
--- stable/10/sys/fs/nullfs/null_vnops.c	Mon Aug  4 00:58:12 2014	(r269492)
+++ stable/10/sys/fs/nullfs/null_vnops.c	Mon Aug  4 01:10:47 2014	(r269493)
@@ -372,6 +372,10 @@ null_lookup(struct vop_lookup_args *ap)
 	 */
 	ldvp = NULLVPTOLOWERVP(dvp);
 	vp = lvp = NULL;
+	KASSERT((ldvp->v_vflag & VV_ROOT) == 0 ||
+	    ((dvp->v_vflag & VV_ROOT) != 0 && (flags & ISDOTDOT) == 0),
+	    ("ldvp %p fl %#x dvp %p fl %#x flags %#x", ldvp, ldvp->v_vflag,
+	     dvp, dvp->v_vflag, flags));
 	error = VOP_LOOKUP(ldvp, &lvp, cnp);
 	if (error == EJUSTRETURN && (flags & ISLASTCN) &&
 	    (dvp->v_mount->mnt_flag & MNT_RDONLY) &&


More information about the svn-src-stable mailing list