> Again, I can't reproduce the problem from the numbers below.  I get
> head_size = 63.  (I was typing in the formulas into python...)
>
> Perhaps the problem is that "float" doesn't have enough precision.
> So, the first thing to try is replacing "float" with "double"
> throughout probe_partition_for_geom().
>

I did not change anything, just watched the variables.
> You should get the following values:
>
>       ratio = 254.0
>       X = -130671.0
>       Y = -2099229615.0
OK: 254.000000 -130671.000000 -2099229568.000000
>       cyl_size = 16065.0
I got one less - 16064 (file disk_dos.c, line #564: cyl_size = Y / X)
>       head_size = 63.0
head size is computed at line #575 as head_size = a_ - c * cyl_size) / h;
(8305668 - 517 * 16064) / 1 = 580

Hope this will help.

Best regards,

        Vlado



_______________________________________________
Bug-parted mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-parted

Reply via email to