From: Karel Zak Date: Fri, 17 May 2013 13:27:39 +0000 (+0200) Subject: fdisk: (sgi) don't try to convert MBR to SGI X-Git-Tag: v2.24-rc1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38eea0d5031a7a605ac9030e4319aa8063f199e0;p=thirdparty%2Futil-linux.git fdisk: (sgi) don't try to convert MBR to SGI .. because there don't have to be old MBR at all. Signed-off-by: Karel Zak --- diff --git a/fdisks/fdisksgilabel.c b/fdisks/fdisksgilabel.c index 15a25c503f..6f12663909 100644 --- a/fdisks/fdisksgilabel.c +++ b/fdisks/fdisksgilabel.c @@ -823,7 +823,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt) /* * Convert old MBR to SGI label, make it DEPRECATED, this feature * has to be handled in by any top-level fdisk command. - */ + * for (i = 0; i < 4; i++) { old[i].sysid = 0; if (mbr_is_valid_magic(cxt->firstsector)) { @@ -843,6 +843,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt) printf(_("Trying to keep parameters of partitions already set.\n")); break; } + */ fdisk_zeroize_firstsector(cxt); sgilabel->magic = SSWAP32(SGI_LABEL_MAGIC);