Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208792 - sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM
Summary: sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM
Status: VERIFIED DUPLICATE of bug 208656
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 20:39 UTC by Jason Dusek
Modified: 2008-02-03 20:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***