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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to