Date: Mon, 28 Oct 2002 15:46:54 -0500 (EST) From: Jeff Roberson <jroberson@chesapeake.net> To: John Baldwin <jhb@FreeBSD.org> Cc: Nate Lawson <nate@root.org>, <current@FreeBSD.org>, Joe Marcus Clarke <marcus@marcuscom.com>, Terry Lambert <tlambert2@mindspring.com> Subject: Re: libgtop port and v_tag changes Message-ID: <20021028154420.K62100-100000@mail.chesapeake.net> In-Reply-To: <XFMail.20021028154207.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Oct 2002, John Baldwin wrote: > > > Terry is right. It needs to be the same inode number that is reported by > > stat and getdirents. It's unfortunate that you can't do a getattr or stat > > based on the address of the vnode. I have actually used and relied on this > > behavior in the past. Not specifically with gtop though. > > if ((error = VOP_GETATTR(vp, vap, cred, td)) == 0) { > vp->v_cachedfs = vap->va_fsid; > vp->v_cachedid = vap->va_fileid; > } > > and the only other place it is set: > > vap = &vattr; > error = VOP_GETATTR(vp, vap, active_cred, td); > if (error) > return (error); > > vp->v_cachedfs = vap->va_fsid; > vp->v_cachedid = vap->va_fileid; > Oh, right you are. I was thinking of v_id. The cachedfs/id have been added recently. Cheers, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021028154420.K62100-100000>