Skip to contentSkip to conversation

fdisk: do not call sgi and sun code when creating a new dos label

PATCH Applied Davidlohr Bueso 2 participants 2 messages Apr 16, 2012 – Apr 23, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 6/8 fdisk: do not call sgi and sun code when creating a new dos label

From: Davidlohr Bueso <[email protected]>

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.

---
 fdisk/fdisk.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fdisk/fdisk.c +0 -2
index f4b33d2..15fb56c 100644
@@ -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();
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso

fdisk/fdisk.c | 2 --

1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com