<<On Wed, 12 Jan 2000 17:45:51 -0500, Garance A Drosihn <[EMAIL PROTECTED]> said:

> Yes, it may be "more pure" to use 1024 when comparing 'ls' listings
> to block counts, but it is less confusing WITHIN a single 'ls -l'
> listing if all the numbers are decimal, and not some combination of
> base-10 and base-2.

OK, let's try again.

BLOCKSIZE=1000 ls -s

Actually, this doesn't quite do what one would want, either -- the
remainder is always rounded up, so a file which takes 1024 bytes even
shows up as two 1000-blocks.  However, it does do the right thing for
large block sizes:

wollman@khavrinen$ BLOCKSIZE=1M df /
Filesystem   1M-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s1a         93       28       56    34%    /
wollman@khavrinen$ BLOCKSIZE=1000000 df /
Filesystem   1000000-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s1a              97       30       59    34%    /

-GAWollman



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to