bug-parted
[Top][All Lists]
Advanced

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

Re: Parted 1.6.23 - problem with resizing of the extended partition


From: Andrew Clausen
Subject: Re: Parted 1.6.23 - problem with resizing of the extended partition
Date: Mon, 1 Aug 2005 09:37:43 +1000
User-agent: Mutt/1.5.6+20040907i

Hi Vlado,

On Sun, Jul 31, 2005 at 12:21:29PM +0200, Vlado Potisk wrote:
> Please find the debug information below.

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().

If this still doesn't fix the problem, would you be able to trace
through the execution of this function?  (Do you know how to do that?)

You should get the following values:

        ratio = 254.0
        X = -130671.0
        Y = -2099229615.0
        cyl_size = 16065.0
        head_size = 63.0

Thanks,
Andrew

PS: Please keep cc'ing the lists.

For the benefit of the list:

> (gdb) print ped_partition_print(part)
>   logical    05  (8305668->10410119)
> (gdb) printf "%d %d %d %d %d\n",c,h,s,a,a_
> 517 1 0 8305668 8305668
> (gdb) printf "%d %d %d %d %d\n",C,H,S,A,A_
> 647 254 62 10410119 10410057
> (gdb) print head_size
> $4 = 580
> 
> 
> disk geometry:
> Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
> 
> Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
>  1 80   1   1    0 254  63  485         63    7807527 83
>  2 00   0   1  486 254  63  516    7807590     498015 82
>  3 00   0   0    0   0   0    0          0          0 00
>  4 00   0   1  517 254  63 1023    8305605   57737610 05
>  5 00   1   1  517 254  63  647         63    2104452 83
>  6 00   1   1  648 254  63  778         63    2104452 83
>  7 00   1   1  779 254  63 1023         63    9960237 83
>  8 00 254  63 1023 254  63 1023         63   43568217 83
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]