]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: don't use --geom-* prefix for CHS options
authorKarel Zak <kzak@redhat.com>
Mon, 30 Jun 2014 13:10:29 +0000 (15:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Jun 2014 13:10:29 +0000 (15:10 +0200)
We already use --cylinders, --heads and --sectors for sfdisk, let's
make new fdisk option compatible.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.8
disk-utils/fdisk.c

index d53d93b302ecf5f6e1a5ed709d0f3d89feab0174..1da15d903428d9437e45af83919c549b63e4d8ed 100644 (file)
@@ -90,16 +90,16 @@ Note that the optional \fIunit\fR argument cannot be separated from the \fB-u\fR
 option by a space, the correct form is for example '-u=cylinders'.
 
 .TP
-\fB\-C\fR, \fB\-\-geom\-cylinders\fR \fInumber\fR
+\fB\-C\fR, \fB\-\-cylinders\fR \fInumber\fR
 Specify the number of cylinders of the disk.
 I have no idea why anybody would want to do so.
 .TP
-\fB\-H\fR, \fB\-\-geom\-heads\fR \fInumber\fR
+\fB\-H\fR, \fB\-\-heads\fR \fInumber\fR
 Specify the number of heads of the disk.  (Not the physical number,
 of course, but the number used for partition tables.)
 Reasonable values are 255 and 16.
 .TP
-\fB\-S\fR, \fB\-\-geom\-sectors\fR \fInumber\fR
+\fB\-S\fR, \fB\-\-sectors\fR \fInumber\fR
 Specify the number of sectors per track of the disk.
 (Not the physical number, of course, but the number used for
 partition tables.) A reasonable value is 63.
index 88072810e30fdf50b52adc73c7a9a62cfcb0467a..e9b4fec5062182e918cad84632df2d7a52298585 100644 (file)
@@ -757,9 +757,9 @@ static void __attribute__ ((__noreturn__)) usage(FILE *out)
        fputs(_(" -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
-       fputs(_(" -C, --geom-cylinders <number> specify the number of cylinders\n"), out);
-       fputs(_(" -H, --geom-heads <number>     specify the number of heads\n"), out);
-       fputs(_(" -S, --geom-sectors <number>   specify the number of sectors per track\n"), out);
+       fputs(_(" -C, --cylinders <number>      specify the number of cylinders\n"), out);
+       fputs(_(" -H, --heads <number>          specify the number of heads\n"), out);
+       fputs(_(" -S, --sectors <number>        specify the number of sectors per track\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
        fputs(USAGE_HELP, out);
@@ -785,9 +785,9 @@ int main(int argc, char **argv)
        static const struct option longopts[] = {
                { "color",          optional_argument, NULL, 'L' },
                { "compatibility",  optional_argument, NULL, 'c' },
-               { "geom-cylinders", required_argument, NULL, 'C' },
-               { "geom-heads",     required_argument, NULL, 'H' },
-               { "geom-sectors",   required_argument, NULL, 'S' },
+               { "cylinders",      required_argument, NULL, 'C' },
+               { "heads",          required_argument, NULL, 'H' },
+               { "sectors",        required_argument, NULL, 'S' },
                { "getsz",          no_argument,       NULL, 's' },
                { "help",           no_argument,       NULL, 'h' },
                { "list",           no_argument,       NULL, 'l' },