[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad Metric ... 1k = 1024 or 1000?



Charles A. Plater <ab3189@wayne.edu> wrote:

> in article 
> jonINTERNETrelayCHAT-2810992003010001@nn-157-22-180-143.napanet.net, Jon
> Bettenct formerly Mr.I'mAnOutOfControlLisaSimpsonFannnn at
> jonINTERNETrelayCHAT@napaVALLEYnet.CLARInet wrote on 10/28/99 10:59 PM:
> 
> > What gave me that impression was that the Get Info box said a 143360 byte
> > disk image was 143KB. Shortly after I posted that message, I started to
> > think that it just might be rounding it off to the nearest sector.
> 
> Ok - 143 * 1024 = 146432.  The reason the file is taking up more space on
> the disk is that the disk is formatted in 1k blocks (at least w/ HFS+, this
> is the smallest block size.) Therefore the file takes up some extra space on
> the HD.

Exactly.  I just created a file with a length of 143360 bytes.

On my HFS Plus partition (4096 byte allocation blocks), its size is
reported as "140 K".

If I increase the file size by one byte, it now reports "144 K".

Both files saved to two other HFS partitions (not sure of the allocation
block sizes) are reported as "143 K" in one case, "144 K" in the other.

-- 
David Empson
dempson@actrix.gen.nz
Snail mail: P O Box 27-103, Wellington, New Zealand