OT: multi-platform *nix blocksize detection

Fairlight fairlite at fairlite.com
Wed Oct 20 12:01:51 PDT 2004


On Wed, Oct 20, 2004 at 02:54:32PM -0400, Fairlight, the prominent pundit,
witicized:
> Nope.  Tested that yesterday.  Both linux systems running differing kernel
> trees both return 4096 for st_blksize, even though one is 1K blocks and the
> other is 2K blocks in the filesystem itself.  I -would- expect it to work
> as you say, and perhaps it does on other unixen--Solaris kicks back 8192,
> and they're indeed using 8K blocks.

Argh.  I have a hard time keeping the math straight (I'll never write an
accounting package, let's put it that way).

I just created a 1K file on Solaris and ls shows 8.  8K block size, not 4K.
I've gotten into this whole /2 thing mentally.  *sigh*

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list