diff options
author | Karel Zak | 2013-11-27 22:04:10 +0100 |
---|---|---|
committer | Karel Zak | 2013-11-27 22:04:10 +0100 |
commit | b37ab36eec4163d127f43ff72bad712fb8f02975 (patch) | |
tree | a67842182af3b8d4ed2aecd89e14691e1d08f96b /libfdisk/src/dos.c | |
parent | libfdisk: (dos) fix free part counter (diff) | |
download | kernel-qcow2-util-linux-b37ab36eec4163d127f43ff72bad712fb8f02975.tar.gz kernel-qcow2-util-linux-b37ab36eec4163d127f43ff72bad712fb8f02975.tar.xz kernel-qcow2-util-linux-b37ab36eec4163d127f43ff72bad712fb8f02975.zip |
libfdisk: (dos) warn on type 0
This is old warning, but somehow lost during rewrite to libfdisk. Sorry.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 7e2374df9..6af061b16 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); |