From: Francesco Cosoleto Date: Tue, 10 May 2011 12:13:14 +0000 (+0200) Subject: fdisk: print logical partition number while adding it X-Git-Tag: v2.20-rc1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11187bfadd5876561eb4fe52b0a22ce84fc12b28;p=thirdparty%2Futil-linux.git fdisk: print logical partition number while adding it [kzak@redhat.com: - merged two Francesco's patches] Signed-off-by: Karel Zak Signed-off-by: Francesco Cosoleto --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index b34b6537db..640fb9dcad 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2475,6 +2475,7 @@ add_logical(void) { pe->changed = 1; partitions++; } + printf(_("Adding logical partition %d\n"), partitions); add_partition(partitions - 1, LINUX_NATIVE); } @@ -2522,9 +2523,10 @@ new_partition(void) { } if (!free_primary) { - if (extended_offset) + if (extended_offset) { + printf(_("All primary partitions are in use\n")); add_logical(); - else + } else printf(_("If you want to create more than four partitions, you must replace a\n" "primary partition with an extended partition first.\n")); } else if (partitions >= MAXIMUM_PARTS) {