Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!samsung!munnari.oz.au!mundamutti.cs.mu.OZ.AU!kre From: kre@cs.mu.OZ.AU (Robert Elz) Newsgroups: comp.unix.internals Subject: Re: What, exactly, are stat.st_blocks, statfs.f_bsize? Message-ID: Date: 3 Mar 91 22:28:41 GMT References: <1991Feb25.205932.16587@athena.mit.edu> <10283@dog.ee.lbl.gov> <124359@uunet.UU.NET> Sender: news@cs.mu.oz.au Lines: 12 st_blocks should be in units of the most elementary allocation amount (which is typically disc sectors) - that's required for accuracy in the count. Factors of that number are OK, but wasteful, multiples of it (picking a "nice" number) are simply wrong. This is definitely a system dependant number (and could be file system dependant). Programs reporting this number should probably convert it to a useful standard unit in most cases, for this purpose it doesn't matter much what that unit is - I believe POSIX chose units of 512 for most applications, I would have thought 1K was more human friendly. kre