diff options
author | Karel Zak | 2014-06-30 15:10:29 +0200 |
---|---|---|
committer | Karel Zak | 2014-06-30 15:10:29 +0200 |
commit | 4b4e391a28b4dfeb69781c20190bffe8622d1907 (patch) | |
tree | 311f1d088b973b6b7f42aea25769811a5116a433 /disk-utils/fdisk.c | |
parent | libsmartcols: add note about deallocations (diff) | |
download | kernel-qcow2-util-linux-4b4e391a28b4dfeb69781c20190bffe8622d1907.tar.gz kernel-qcow2-util-linux-4b4e391a28b4dfeb69781c20190bffe8622d1907.tar.xz kernel-qcow2-util-linux-4b4e391a28b4dfeb69781c20190bffe8622d1907.zip |
fdisk: don't use --geom-* prefix for CHS options
We already use --cylinders, --heads and --sectors for sfdisk, let's
make new fdisk option compatible.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r-- | disk-utils/fdisk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 88072810e..e9b4fec50 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -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' }, |