Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208656 - sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM when using -s
Summary: sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM when using -s
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 208792 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-03 01:18 UTC by Jason Dusek
Modified: 2008-02-09 22:34 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 01:18:37 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
*** Bug 208792 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2008-02-09 22:34:50 UTC
the -s option takes no arguments as the man page indicates:
sfdisk [options] device
sfdisk -s [partition]

the -u[SBCM] options work otherwise (for example with -l)