Description of problem: When the default unit is bytes, in the results returned via the print command, parted reports disks are one byte smaller than they actually are. If the default unit is any other size, it ends up being rounded correctly, and the problem doesn't occur at all when the default unit is cylinders or CHS. Version-Release number of selected component (if applicable): 0.8.6-2 How reproducible: 100% Actual results: e.g. (parted) unit B (parted) print Model: ATA HDS728080PLA380 (scsi) Disk /dev/sda: 79999999999B Expected results: (parted) unit B (parted) print Model: ATA HDS728080PLA380 (scsi) Disk /dev/sda: 80000000000B Additional info: The same bug is present in the version of parted in RHEL5 and older versions of Fedora.
Created attachment 152168 [details] patch to fix the off-by-one
Patch applied in parted-1.8.6-3.fc7. Thanks.