Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!accuvax.nwu.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: stat of i-node Message-ID: <19362@mimsy.UUCP> Date: 1 Sep 89 07:16:40 GMT References: <172@bmers58.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 12 In article <172@bmers58.UUCP> davem@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@mimsy.umd.edu Path: uunet!mimsy!chris