Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 208792

Summary: sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM
Product: Gentoo Linux Reporter: Jason Dusek <jason.dusek>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason Dusek 2008-02-03 20:39:08 UTC
The man pages suggests that running sfdisk with -uC will cause it to display partition size in cylinders -- but this is not what happens:

 : /home/jsn/sandbox/oqo                                             !057 17:15
 :; sfdisk -uC -s /dev/sda
1007615
 : /home/jsn/sandbox/oqo                                             !058 17:15
 :; sfdisk -uC -l /dev/sda

Disk /dev/sda: 1015 cylinders, 32 heads, 62 sectors/track
Units = cylinders of 1015808 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   1014    1015-   1006879+  83  Linux
/dev/sda2          0       -       0          0    0  Empty
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty


Reproducible: Always

Steps to Reproduce:
1. Use sfdisk with an option that specifies units.
2.
3.

Actual Results:  
Default units -- apparently megabytes.

Expected Results:  
Units as specified by the command line option.

I'm using UTF-8 pervasively on my system -- but of course that should not effect the letters C, S, B and M...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 20:40:55 UTC

*** This bug has been marked as a duplicate of bug 208656 ***