stat of i-node

Chris Torek chris at mimsy.UUCP
Fri Sep 1 17:16:40 AEST 1989


In article <172 at bmers58.UUCP> davem at bmers58.UUCP (Dave Mielke) writes:
>How can I get stat information for an i-node? I would like to avoid the
>need to have a directory scanned for a name if I already know the file
>number.

Then open the disk and read the on-disk copy of the inode.

fstat() is a very cheap operation.  stat() is a bit more expensive, but
(with name cacheing) not all that bad.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list