Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!cs.edinburgh.ac.uk!paul From: paul@cs.edinburgh.ac.uk (Paul Anderson) Newsgroups: comp.unix.internals Subject: Re: What, exactly, are stat.st_blocks, statfs.f_b Message-ID: <7235@skye.cs.ed.ac.uk> Date: 5 Mar 91 13:27:30 GMT References: <1991Mar4.001026.3043@athena.mit.edu> <1991Mar04.015451.10436@kithrup.COM> <6428@auspex.auspex.com> Sender: nnews@cs.ed.ac.uk Reply-To: paul@cs.edinburgh.ac.uk (Paul Anderson) Organization: Department of Computer Science, University of Edinburgh Lines: 18 In article <6428@auspex.auspex.com>, guy@auspex.auspex.com (Guy Harris) writes: > The SunOS documentation doesn't say what the units are, but "st_blocks" > is in units of 512 bytes on UFS and on NFS to most if not all UNIX > servers, and should be in units of 512 bytes on any other file systems > plugged into your system. Things might have changed, but this certainly didn't used to be true of the Pyramid system we had - st_blocks was in units of f_bsize. Things like "du" gave results that were out by a factor of two (or more) depending on the NFS filesystem that your files lived on! I agree with you that this was wrong, but I have never seen the correct units actually stated anywhere. -- Paul Anderson JANET: paul@uk.ac.ed.lfcs LFCS, Dept. of Computer Science UUCP: ..!mcvax!ukc!lfcs!paul University of Edinburgh ARPA: paul%lfcs.ed.ac.uk@nsfnet-relay.ac.uk Edinburgh EH9 3JZ, UK. Tel: 031-650-5193