]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: revert add 'G' to create SGI label to the main menu
authorKarel Zak <kzak@redhat.com>
Wed, 15 May 2013 13:34:54 +0000 (15:34 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:46:55 +0000 (16:46 +0200)
'G' does not make sense, fdisk menus are case insensitive. Yes...

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

index 2dc275234166c9ddd0daa9c11af6092656c10b7a..e6e527c3dcc72b10728a225d424a7b00c7099870 100644 (file)
@@ -76,7 +76,6 @@ static const struct menulist_descr menulist[] = {
        {'f', N_("fix partition order"), {0, FDISK_DISKLABEL_DOS}},
        {'g', N_("create a new empty GPT partition table"), {~FDISK_DISKLABEL_OSF, 0}},
        {'g', N_("create an IRIX (SGI) partition table"), {0, FDISK_DISKLABEL_ANY}}, /* for backward compatibility only */
-       {'G', N_("create an IRIX (SGI) partition table"), {~FDISK_DISKLABEL_OSF, 0}},
        {'h', N_("change number of heads"), {0, FDISK_DISKLABEL_DOS | FDISK_DISKLABEL_SUN}},
        {'i', N_("change interleave factor"), {0, FDISK_DISKLABEL_SUN}},
        {'i', N_("change the disk identifier"), {0, FDISK_DISKLABEL_DOS}},
@@ -1049,9 +1048,6 @@ static void command_prompt(struct fdisk_context *cxt)
                case 'g':
                        fdisk_create_disklabel(cxt, "gpt");
                        break;
-               case 'G':
-                       fdisk_create_disklabel(cxt, "sgi");
-                       break;
                case 'i':
                        if (fdisk_is_disklabel(cxt, SGI))
                                create_sgiinfo(cxt);