]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (dos) warn on type 0
authorKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2013 21:04:10 +0000 (22:04 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2013 21:04:10 +0000 (22:04 +0100)
This is old warning, but somehow lost during rewrite to libfdisk. Sorry.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index 7e2374df915de6d3d64767f0485c054321bdb08e..6af061b167e2f4709163ee37dbe423958ccb4284 100644 (file)
@@ -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);