* [PATCH] fdisk: de-duplicate disk label strings
@ 2012-07-24 11:26 Bernhard Voelker
2012-07-24 12:21 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Voelker @ 2012-07-24 11:26 UTC (permalink / raw)
To: util-linux@vger.kernel.org
>From 91b486e98aaa72083ffec491b931dbab368e8a19 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
Date: Tue, 24 Jul 2012 13:18:16 +0200
Subject: [PATCH] fdisk: de-duplicate disk label strings
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
fdisks/fdisk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 4731918..9f06901 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -1528,7 +1528,7 @@ expert_command_prompt(struct fdisk_context *cxt)
fix_partition_table_order();
break;
case 'g':
- fdisk_create_disklabel(cxt, "sgi");
+ fdisk_create_disklabel(cxt, sgi_label.name);
break;
case 'h':
user_heads = cxt->geom.heads = read_int(cxt, 1, cxt->geom.heads, 256, 0,
@@ -1755,7 +1755,7 @@ static void command_prompt(struct fdisk_context *cxt)
new_partition(cxt);
break;
case 'o':
- fdisk_create_disklabel(cxt, "dos");
+ fdisk_create_disklabel(cxt, dos_label.name);
break;
case 'p':
list_table(cxt, 0);
@@ -1763,7 +1763,7 @@ static void command_prompt(struct fdisk_context *cxt)
case 'q':
handle_quit(cxt);
case 's':
- fdisk_create_disklabel(cxt, "sun");
+ fdisk_create_disklabel(cxt, sun_label.name);
break;
case 't':
change_sysid(cxt);
--
1.7.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-24 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 11:26 [PATCH] fdisk: de-duplicate disk label strings Bernhard Voelker
2012-07-24 12:21 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).