Bug 345971 - fdisk +sizeG is 1000M instead of 1024M
fdisk +sizeG is 1000M instead of 1024M
Status: CLOSED NEXTRELEASE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: util-linux (Show other bugs)
5.0
All Linux
low Severity low
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-22 16:25 EDT by macker
Modified: 2007-12-13 05:38 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-12-13 05:38:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description macker 2007-10-22 16:25:55 EDT
Description of problem:
When creating a new partition in fdisk, if using +sizeM (e.g. +100M), size is
calculated based on 1024K.  When using +100G, size is calculated based on 1000M,
instead of 1024M.

Version-Release number of selected component (if applicable):
util-linux-2.13-0.44.el5

How reproducible:
100%

Steps to Reproduce:
1. fdisk /dev/[hs]da
2. n
3. [pl]
4. [enter]
5. +1G
  
Actual results:
1000M

Expected results:
1024M

Additional info:
May be fixed in Update 1, have not checked.  Encountered bug during RH300,
course material specifies using 'G".
Comment 1 Karel Zak 2007-12-13 05:38:27 EST
Thanks. Fixed in upstream code.

Note You need to log in before you can comment on or make changes to this bug.