diff options
author | Davidlohr Bueso | 2012-04-23 12:55:52 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-23 12:55:52 +0200 |
commit | 3813eb5ead1abedca7fea27b1f4275162b0d7e9b (patch) | |
tree | d561f2e4e11e64fb8f5c075be0ef19e05fd753ec /fdisk/fdisk.c | |
parent | sfdisk: improve F_MEGABYTE header (diff) | |
download | kernel-qcow2-util-linux-3813eb5ead1abedca7fea27b1f4275162b0d7e9b.tar.gz kernel-qcow2-util-linux-3813eb5ead1abedca7fea27b1f4275162b0d7e9b.tar.xz kernel-qcow2-util-linux-3813eb5ead1abedca7fea27b1f4275162b0d7e9b.zip |
fdisk: do not call sgi and sun code when creating a new dos label
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>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r-- | fdisk/fdisk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 337e5f7e6..100b1971d 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(); |