From: Karel Zak Date: Wed, 27 Nov 2013 21:04:10 +0000 (+0100) Subject: libfdisk: (dos) warn on type 0 X-Git-Tag: v2.25-rc1~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37ab36eec4163d127f43ff72bad712fb8f02975;p=thirdparty%2Futil-linux.git libfdisk: (dos) warn on type 0 This is old warning, but somehow lost during rewrite to libfdisk. Sorry. Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 7e2374df91..6af061b167 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -1474,6 +1474,9 @@ static int dos_set_parttype( "partitions, please see the fdisk documentation for additional " "information.")); + if (!t->type) + fdisk_warnx(cxt, _("Type 0 means free space to many systems. " + "Having partitions of type 0 is probably unwise.")); p->sys_ind = t->type; partition_set_changed(cxt, partnum, 1);