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

Bug 208656

Summary: sys-apps/util-linux - sfdisk ignores -uS -uB -uC -uM when using -s
Product: Gentoo Linux Reporter: Jason Dusek <jason.dusek>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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)