[parted-devel] a problem about 100% indicating the whole disk
zhuyj
zyjzyj2000 at gmail.com
Thu Nov 7 06:33:05 UTC 2013
On 11/06/2013 10:31 PM, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/6/2013 1:22 AM, zhuyj wrote:
>> Hi, Phillip
>>
>> Thanks for your reply. I made tests. Other percentages will not get
>> the incorrect treatment. Only when percentage is 100%, this problem
>> will appear, that is, parted fails to work.
> The problem has two parts: the first is that the power of two size is
> triggering the exact placement, and the second is that with 100%,
> rounding error ends up changing the size to 1 sector past the end of
> the disk, and when that is combined with the exact placement, causes
> you to be unable to create the partition. The exact placement still
> applies to the other percentages and it shouldn't.
>
> This should become visible as failures if you try to create multiple
> partitions using percentages, where the exact placement rule will
> likely cause a problem creating a partition starting at 50% of the
> disk, when the first partition ends at 50%.
>
Thanks a lot.
I made tests. The results can verify your advice.
Best Regards!
Zhu Yanjun
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJSelLEAAoJEJrBOlT6nu75kOcIAK8JmM4oTNjcruj346f/lPJi
> 4BQiQRT+RsagsmguJmECyHXlkZVPSAA3YDcvNf6dAOJLdnVoM+IibKoY876lt4PI
> 66b3zkKuoRge/H2GU0eDFUKMDNuGs4OwMQFj6jdULs1nUGUGrvVEgkad56JqXL70
> e2UJ2cQN0zaf9Rr/9x9owd/cXbl/kx5hyYPyNzdVlyhEZKfXyhMDD7HkdUfGnFTV
> L6lxk9Ayb9nyYvNhJ7/SEYiHU5VakaS0i2O9K6mLBEfKmoXQ7w0UoU44BjWl0ASk
> SjcGCHtsoh7Y0zfKD0zCBznAHpkCwWrtgm0txoXG+BiBs89OiAtaqrJ0iN8j8sc=
> =tLrf
> -----END PGP SIGNATURE-----
>
More information about the parted-devel
mailing list