Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: Re: What, exactly, are stat.st_blocks, statfs.f_bsize? Message-ID: <124359@uunet.UU.NET> Date: 1 Mar 91 07:18:04 GMT References: <1991Feb25.205932.16587@athena.mit.edu> <10283@dog.ee.lbl.gov> Organization: UUNET Communications Services, Falls Church, VA Lines: 24 In article <10283@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: >[Reno is 512, Tahoe is 1024] >Note that there may be (probably are) some systems out there in which >st_blocks is in terms of 1 kbyte blocks; these should dwindle away, >but will probably leave a lingering stench. :-) Methinks the stench comes from POSIX, which gutlessly refused to buck existing but ancient practice. I assume that's why BSD changed. Oddly enuf, this came at a time when 1K FS blocks were becoming more common in System V. It is a fortunate coincidence that 2^10 ~= 10^3. Too important not to take advantage of. I was delighted when Berkeley "defined" a "block" as 1K. No more doubling or halving in one's head when trying convert blocks to chars. To make it worse, Pyramid's FS block sizes are 2K to 16K (yes, the sectors are 2K), and so they report blocks in 2K increments. It is rather sad to see filesystems quadruple in size when reported between NFS partitions mounted to or from a Pyramid. Oh well... -- [rbj@uunet 1] stty sane unknown mode: sane