From b37ab36eec4163d127f43ff72bad712fb8f02975 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 27 Nov 2013 22:04:10 +0100 Subject: [PATCH] libfdisk: (dos) warn on type 0 This is old warning, but somehow lost during rewrite to libfdisk. Sorry. Signed-off-by: Karel Zak --- libfdisk/src/dos.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.3