On 04/19/2013 06:25 PM, Sage Weil wrote:
> We hit a bug on sgdisk where it would create a new partition of the
> wrong size, apparently due to a 32-bit field used in the partition
> creating/sizing code. It appears to trigger when we use syntax like
> Switching to
> does not have the same problem.
> See this bug for details:
> It wasn't immediately obvious if this was fixed in a newer version
> (we're on ubuntu precise, 0.8.1-1build1).
Please try using the latest version (0.8.6). Version 0.8.1 is OLD -- it
was released 1.5 years ago! Also, version 0.8.3 fixed what sounds like
the problem you're reporting; from
: 0.8.3 (3/23/2012)—This version offers a few minor improvements and
: bug fixes. The gdisk program now states the name of the disk that's
: been modified after a write operation, and a bug has been fixed that
: caused sgdisk to incorrectly truncate the sizes of over-2TiB
: partitions on 32-bit (but not 64-bit) systems. This version also
: improves the handling of Ctrl+D on some systems and includes a fix to
: enable proper compilation under GCC 4.7.