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

Re: [MacPerl] Mac File 'GetInfo' Size Descrepancies



At 9:05 AM -0700 5/26/98, Greg Aiken wrote:
>I'm unclear why in Mac OS, if one selects a file, then chooses 'File/Get
>Info', the file size is shown as two distinct fields (xk on disk, y
>bytes).
>
>a. Whats the significance of the two numbers? and
>b. Why is it that if the same file is copied to/from a floppy and a hard
>disk, the values shown for 'on disk' will be different on the floppy
>than will be shown for the hard disk?
>
>
>
>***** Want to unsubscribe from this list?
>***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch

Greg,

a) The first number is the size the file takes on the disk based on block
size while the second is how many bytes the file actually uses.  There's a
way to calculate how big of blocks the system uses (at least for HFS -- not
sure on HFS+) but I'm not sure what it is or where to find it.

b) The difference in size is caused due to the difference in block size.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dennis Little			       mailto://dennis.j.little@lmco.com
Lockheed Martin Missiles & Space       mailto://metnet@worldnet.att.net
Sunnyvale, CA			       Web: http://www.lmms.lmco.com/
Phone: 408/756-2170		       LMMS: O/EA52 B/076 C/3E8
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch