Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 23:12:56 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r229231 - stable/8/sys/fs/nullfs
Message-ID:  <201201012312.q01NCu9B035951@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Jan  1 23:12:56 2012
New Revision: 229231
URL: http://svn.freebsd.org/changeset/base/229231

Log:
  MFC r227696:
  Do not use NULLVPTOLOWERVP() in the null_print(). If diagnostic is compiled
  in, and show vnode is used from ddb on the faulty nullfs vnode, we get
  panic instead of vnode dump.

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

Modified: stable/8/sys/fs/nullfs/null_vnops.c
==============================================================================
--- stable/8/sys/fs/nullfs/null_vnops.c	Sun Jan  1 23:12:43 2012	(r229230)
+++ stable/8/sys/fs/nullfs/null_vnops.c	Sun Jan  1 23:12:56 2012	(r229231)
@@ -729,7 +729,7 @@ null_print(struct vop_print_args *ap)
 {
 	struct vnode *vp = ap->a_vp;
 
-	printf("\tvp=%p, lowervp=%p\n", vp, NULLVPTOLOWERVP(vp));
+	printf("\tvp=%p, lowervp=%p\n", vp, VTONULL(vp)->null_lowervp);
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201012312.q01NCu9B035951>