Re: [Gptfdisk-general] gdisk 32-bit overflow bug on >2TB disks
Brought to you by:
srs5694
From: Rod S. <rod...@ro...> - 2013-04-20 03:07:05
|
On 04/19/2013 06:25 PM, Sage Weil wrote: > Hi- > > 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 > > 2:-${size}M:0 > > Switching to > > 2:0:${size} > > does not have the same problem. > > See this bug for details: > > http://tracker.ceph.com/issues/4757 > > 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 http://www.rodsbooks.com/gdisk/revisions.html: : 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. -- Rod Smith rod...@ro... http://www.rodsbooks.com |