From: Davidlohr Bueso <dave@gnu.org>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: [PATCH 6/8] fdisk: do not call sgi and sun code when creating a new dos label
Date: Mon, 16 Apr 2012 11:44:46 +0200 [thread overview]
Message-ID: <1334569487.2552.15.camel@offbook> (raw)
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
next reply other threads:[~2012-04-16 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 9:44 Davidlohr Bueso [this message]
2012-04-23 10:57 ` [PATCH 6/8] fdisk: do not call sgi and sun code when creating a new dos label Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1334569487.2552.15.camel@offbook \
--to=dave@gnu.org \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox