On Mon, 28 Oct 2002, Terry Lambert wrote:

> John Baldwin wrote:
> > Yes.  This means that you don't need to even look at v_tag to see
> > if it is a UFS vnode or not.  What does libgtop want with
> > device and inode numbers anways?  Does it actually do anything
> > useful with them or does it just print them somewhere?  Is a user
> > going to care if the inode number was obtained from the vnode
> > or if we groveled in the internals of UFS to find it?
>
> The user will, if they try to use "find -inum" to identify the
> file name associated with it, since the vnode number is useless
> for this purpose, and the inode number is not... particularly
> if the information is being obtained from a log file.
>

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.

Cheers,
Jeff


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to