public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6/8] fdisk: do not call sgi and sun code when creating a new dos label
@ 2012-04-16  9:44 Davidlohr Bueso
  2012-04-23 10:57 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2012-04-16  9:44 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

From: Davidlohr Bueso <dave@gnu.org>

When creating a new DOS label, SGI and SUN pt logic have no business being there. Remove sun/sgi_nolabel(), since
the default amount of partitions are previously set to 4 and the sun/sgi magic nums are not used in this context.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 fdisk/fdisk.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index f4b33d2..15fb56c 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -838,8 +838,6 @@ create_doslabel(void) {
 	random_get_bytes(&id, sizeof(id));
 
 	fprintf(stderr, _("Building a new DOS disklabel with disk identifier 0x%08x.\n"), id);
-	sun_nolabel();  /* otherwise always recognised as sun */
-	sgi_nolabel();  /* otherwise always recognised as sgi */
 
 	dos_init();
 	zeroize_mbr_buffer();
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-23 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16  9:44 [PATCH 6/8] fdisk: do not call sgi and sun code when creating a new dos label Davidlohr Bueso
2012-04-23 10:57 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox