[Top][All Lists]
[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: |
K.G. |
Subject: |
Re: Parted 1.6.23 - problem with resizing of the extended partition |
Date: |
Mon, 1 Aug 2005 09:06:32 +0200 |
On Mon, 1 Aug 2005 09:37:43 +1000 Andrew Clausen <address@hidden> wrote:
>
> 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 think the floating point code is really unsafe. It doesn't seem to
take care of approximations (or if it does with some magic in the
choice of equations, it should be documented in the comments)
Let's take a simple exemple to illustrate what can happen in FP
arithmetic :
>>> int (1/253.*253.)
0
Using double instead of float won't solve all this class of potential
issues.
Cheers,
Guillaume Knispel
- Re: Parted 1.6.23 - problem with resizing of the extended partition, (continued)
- Re: Parted 1.6.23 - problem with resizing of the extended partition, K.G., 2005/08/01
- Re: Parted 1.6.23 - problem with resizing of the extended partition, Vlado Potisk, 2005/08/01
- Re: Parted 1.6.23 - problem with resizing of the extended partition, K.G., 2005/08/01
- Re: Parted 1.6.23 - problem with resizing of the extended partition, Vlado Potisk, 2005/08/01
- Re: Parted 1.6.23 - problem with resizing of the extended partition, K.G., 2005/08/02
- Re: Parted 1.6.23 - problem with resizing of the extended partition, Vlado Potisk, 2005/08/02
Re: Parted 1.6.23 - problem with resizing of the extended partition,
K.G. <=