Re: Difference in folder sizes on NT and Mac
Re: Difference in folder sizes on NT and Mac
- Subject: Re: Difference in folder sizes on NT and Mac
- From: Joe Szedula <email@hidden>
- Date: Mon, 9 Jul 2001 20:25:46 -0500
On 7/9/01 6:20 PM, email@hidden
(email@hidden) wrote:
>
From: Andrew McNichol <email@hidden>
>
>
The problem occurs when I try to estimate the amount of space that
>
the folders residing on the server will take up when they are placed
>
in a mac environment. Unfortunately it hasn't been a consistent
>
difference in size, each folder has ranged from 5-20% larger on the
>
mac.
>
Is there a formula I can use that will give me a predictable file
>
size so I can maximize my cd usage?
The problem you've run into is a result of how the OS allocates disk
space. Since Toast 3.5.x (& I think 4.x, I don't know about 5.0) burns
disks using HFS the file size will vary according to how big the disk is.
I think the HFS allocation block sizes go like this:
Block Disk
Size Size
[KB] [MB]
1.0 64
1.5 96
2.0 128 <-- smallest size Toast will use
2.5 160
3.0 192
3.5 224
4.0 256
4.5 288
5.0 320
5.5 352
6.0 384
6.5 416
7.0 448
7.5 480
8.0 512
8.5 544
9.0 576
9.5 608
10.0 640
10.5 672
11.0 704 <-- largest burnable CD is 700MB
I don't know exactly how you would calculate the individual files sizes
since you need to know how big all the files are to determine the size of
the disk. One way to do this might be:
1. get the first guess on the block size by just counting bytes of all
the files to get the disk size
2. use the current block size to recalculate the file sizes, remembering
that even one byte over an even block size means another block needs to
be allocated
3. use the new file sizes to get the new block size
4. repeat steps 2 & 3 until the sizes no longer change
What I've thought of may not be very efficient but I can't think of
anything else.
Good Luck,
Joe Szedula
Email: email@hidden