Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!texbell!texsun!newstop!sun!snafu!lm From: lm@snafu.Sun.COM (Larry McVoy) Newsgroups: comp.unix.wizards Subject: Re: what are st_blksize and st_blocks exactly? Message-ID: <138932@sun.Eng.Sun.COM> Date: 15 Jul 90 00:50:45 GMT References: Sender: news@sun.Eng.Sun.COM Reply-To: lm@sun.UUCP (Larry McVoy) Distribution: na Organization: Sun Microsystems, Mountain View Lines: 17 In article djm@eng.umd.edu (David J. MacKenzie) writes: >The stat(2) documentation for SunOS 4.0.3 says: > > long st_blksize; /* preferred blocksize for file system I/O*/ > long st_blocks; /* actual number of blocks allocated */ > >It doesn't mention what units st_blocks is measured in, but those >units don't look like they're the value of st_blksize. >How are these two fields related, if at all? >Is st_blocks always measured in 512 byte units, or is there a value >somewhere that indicates the block size for it? st_blocks is in units of 512 bytes since the beginning of time. It's unlikely to change (sigh). st_blksize is the file system block size, usually 8K on BSD derived systems. --- Larry McVoy, Sun Microsystems (415) 336-7627 ...!sun!lm or lm@sun.com