Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!nostromo.austin.ibm.com!dcm From: dcm@nostromo.austin.ibm.com (craig miller) Newsgroups: comp.unix.aix Subject: Re: Strange behaviour of statfs (AIX 2.2.1)? Keywords: statfs, AIX 2.2.1, block size Message-ID: <4370@awdprime.UUCP> Date: 28 Nov 90 15:15:45 GMT References: Sender: news@awdprime.UUCP Reply-To: ..!cs.utexas.edu!ibmchs!auschs!slaughter!dcm (Craig Miller) Organization: IBM AWD, Austin, TX Lines: 35 In article liesert@nixdorf.de (Hansi) writes: >Hi out there, Howdy. (fake Texas accent here...) >I had a problem using statfs(). In a C-program I tried to evaluate the >block size of a filesystem by calling statfs() (surely I made all the >stuff needed like includes etc.). Although all my filesystems have block >of 512 bytes, statfs() reports block size 2048. Am I wrong, or is it AIX? I'm only about 98% sure about this, but I think AIXV2.2.1 runs a 2K filesystem. Even though various programs such as df talk in 1/2K blocks, I'm pretty sure block allocations are done 2K at a time. I think statfs() is correct. To test (on a quiet /tmp): df /tmp # note "free" column (in 1/2K blocks) echo "hello world" > /tmp/t # allocate 1 'filesystem' block df /tmp # note "free" dropped by 4 blocks (2K) >Thanks for your help >-- >| Hans Joachim Liesert, Dep. STO-SI 35 | Email: liesert.pad@sni.de | >| Siemens-Nixdorf Informationssysteme AG | Outside Europe: | >| Pontanusstrasse 55 | liesert.pad@nixdorf.com | >| W-4790 Paderborn, Germany | Disc.: I don't speak for SNI!!! | Sure. Hope it helped... Craig Miller ------ Craig Miller Locus Computing Corporation, Austin, TX. UUCP: ..!cs.utexas.edu!ibmchs!auschs!slaughter!dcm "I do not represent LCC or IBM. I represent myself (usually)."